custom-hooks-commands
textPage 16 of 152
50 messages on this page
Wednesday, June 5, 2024
User 7fd701
with regex
.*made level\s*(\d*(25|50|75|100|125|150|175|200|225|250|275|300|325|350|375|400|425|450|475|500|525|550|575|600)\b)User 7fd701
wait(5);say2 [ff5a01]PARANOIA "[FFFFFF]Além dos Fragmentos de Moeda, o Tio NeffaS está mandando uma caixa de suprimentos para o nosso amigo ${player.name}... Isso deve ajudar um pouco!";sendDiscord(1163615789690130552, "Além dos Fragmentos de Moeda, o Tio NeffaS está mandando uma caixa de suprimentos para o nosso amigo **${player.name}**... Isso deve ajudar um pouco!");wait(5);se ${player.entityId} sc_General;wait(5);say2 [ff5a01]PARANOIA "[FFFFFF]Cuidado ${player.name}... A Samara sempre aparece quando o Tio NeffaS da um presente pra alguém...";spawnscouts ${player.entityId};spawnscouts ${player.entityId};sendDiscord(1163615789690130552, "Cuidado **${player.name}**... A Samara sempre aparece quando o Tio NeffaS da um presente pra alguém...")User 7fd701
I no longer have the code, but here is a similar one.... the difference is that in this one I used it to spawn a screamer every 25 lvl of the player
Monday, June 3, 2024
User 9035b6
IT WORKS!! thanks guys. You've helped me add insult to injury.
User 602ca8
The machine has spoken 😛
User 6ceaf4
My turn:
say "[FFFF00]Oh no, [FF7F00]${player.name} [FFFF00]has died. This gift should help";giveplus ${entityId} DFturd 1User 9035b6
Thank you!
User 9035b6
Thank you. I see the obvious mistakes now.
User 23fa64
True dat
User 602ca8
This works even better
say "[FFFF00]Oh no, ${player.name} has died. This gift should help";giveplus ${entityId} DFturd 1User 23fa64
Quite a bit.
Try something like this.
say "[FFFF00]Oh no, ${player.name} has died. This gift should help";giveplus ${player.steamId} DFturd 1User 9035b6
say "[FF7F00]${player.name} [FFFF00]oh no has died, this gift should help" ; giveplus ${player.steamId} {DFturd }
User 9035b6
ok, what am I doing wrong. trying to give my players a turd when they die,
User 9035b6
mind sharing the commands you used? maybe a screen shot? gonna mess with it now
User 6ceaf4
No, each logline is an event of its own
User 7fd701
Is it possible to check two different log lines before triggering a command? I noticed that, when we finish a zombie with a headshot, two lines appear in the log. The first says Entity zombieName 198 killed by NeffaS 171, the second shows zombieName SpawnLimbGore loaded preafab in asset bundle. path: @:Entities/Zombies/Dismemberment/HeadGore.prefab
Is there any way to compare these two lines so that I can give an item to the player who killed the zombie with a headshot or can we just search for one line at a time in the log?
User 7fd701
oh yeah, this really works! first I put another player's name in the search line and gave myself xp to level up.... nothing happened other than the coins.... then I changed it to my name and gave myself xp to level up again.. .. I got the coins and a screamer
User 7fd701
I was curious to see if it works... I'm going to test it right now
User 9035b6
Cool. Thanks for your help. lol, what if I mess it up and anytime anyone levels that players gets zombies .
User 7fd701
it should work
User 9035b6
Might. I’ll give it a try tomorrow. I can just target myself to test.
User 7fd701
If you put the player's name in the Search string, this might work, right?
User 9035b6
That would hit everyone. Maybe if I set it to anything over a set level. I just added the dude thing. Still messing with the amount
User 7fd701
on my server, every time the player levels up I give 500 duke coins... just set the playerLevel event to fire 'spawnscouts ${player.entityId}'
this should work
this should work
User 7fd701
maybe with Event - PlayerLevel?
User 9035b6
looking for a suggestion. Can I set a hook that only targets a set player? like if I wanted to spawn a screamer every time this player leveled, is that do able?
Sunday, June 2, 2024
User 5791fc
well maybe it wont happen again. But, after running a shutdownba it counted down, causing people to leave. Then, checked if the server had been up for 2 hours and canceled. By the way I asked GPT to make me a script to login to one of the rented server companies, and turn on the server if it is off. Now I can use the full suite of shutdown csmm commands and my newest bot will turn it right back on. Not that I dont have other full control linux servers. But, thought It was cool I overcame the big restart limitation on the rented servers.
User 602ca8
You need csmm so you can do a cron which will execute the command. When the command is executed you can use for example
shutdownba 10 which will restart the server in 10 minutes with a warning every minute in game.User 5791fc
how might I change the shutdownba command or the ShutdownBA_CountdownMessage, so that it only tells people its going to restart if the timeup requirements have been satisfied?
Friday, May 31, 2024
User 830925
Sorry, slammed busy at work have not even had a chance to mess with it yet (worked 7am to 11pm yesterday and am on track for the same today sadly)
User 6ceaf4
I'm guessing it is all good
Thursday, May 30, 2024
User 830925
oh ok, will give it a try and pray for no loop haha
User 6ceaf4
It will read assignRole and issue a setRole. Thinking about it, I don't think the setRole will go into the logs, except during the w2l testing phase
User 830925
But won't that still cause the loop?
User 6ceaf4
search string
assignRole Steam_User 6ceaf4
anything would do, really
User 6ceaf4
w2l "assignRole Steam_76561198002857667 DiscordRole"User 830925
Any idea on what to have it say that won't screw up parsing the command out with the regex you wrote?
User 6ceaf4
You are right, make the w2l say something else
User 830925
Not sure how 7D works but in Rust if you issue a command in any form it gets spit back into the console. So in Rust that would definitely cause a loop.
User 830925
So I DID think of that. But I was concerned about causing a loop. If the esarch string is the same as the command. That seem ok anyways?
User 6ceaf4
Then juat take the INF out
Wednesday, May 29, 2024
User 830925
And I'm pretty sure hooks are being monitored, we use htat example one for animalKills and I have seen that go up as people play
User 830925
They can use the /vote command. We don't have any other slash commands we use (well at least players use)
User 6ceaf4
Any command, like /ping
User 830925
Hate to sound really dumb, but what do you mean players execute commands? Like, which command?

