custom-hooks-commands

textPage 16 of 152
50 messages on this page
Wednesday, June 5, 2024
Avatar for 7fd701b1a0deec6e66cf33cfedaeec60a9fbce2f681804879bd80bdbfc0e3ec0
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)
Avatar for 7fd701b1a0deec6e66cf33cfedaeec60a9fbce2f681804879bd80bdbfc0e3ec0
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...")
Avatar for 7fd701b1a0deec6e66cf33cfedaeec60a9fbce2f681804879bd80bdbfc0e3ec0
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
Avatar for 9035b67b57d44e49c04446515aa009f075099148629fce6b992405d1f5dafeb9
User 9035b6
IT WORKS!! thanks guys. You've helped me add insult to injury.
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
The machine has spoken 😛
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
My turn:
say "[FFFF00]Oh no, [FF7F00]${player.name} [FFFF00]has died. This gift should help";giveplus ${entityId} DFturd 1
Avatar for 9035b67b57d44e49c04446515aa009f075099148629fce6b992405d1f5dafeb9
User 9035b6
Thank you!
Avatar for 9035b67b57d44e49c04446515aa009f075099148629fce6b992405d1f5dafeb9
User 9035b6
Thank you. I see the obvious mistakes now.
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
True dat
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
This works even better
say "[FFFF00]Oh no, ${player.name} has died. This gift should help";giveplus ${entityId} DFturd 1
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
Quite a bit.
Try something like this.
say "[FFFF00]Oh no, ${player.name} has died. This gift should help";giveplus ${player.steamId} DFturd 1
Avatar for 9035b67b57d44e49c04446515aa009f075099148629fce6b992405d1f5dafeb9
User 9035b6
say "[FF7F00]${player.name} [FFFF00]oh no has died, this gift should help" ; giveplus ${player.steamId} {DFturd }
Avatar for 9035b67b57d44e49c04446515aa009f075099148629fce6b992405d1f5dafeb9
User 9035b6
ok, what am I doing wrong. trying to give my players a turd when they die,
Avatar for 9035b67b57d44e49c04446515aa009f075099148629fce6b992405d1f5dafeb9
User 9035b6
mind sharing the commands you used? maybe a screen shot? gonna mess with it now
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
No, each logline is an event of its own
Avatar for 7fd701b1a0deec6e66cf33cfedaeec60a9fbce2f681804879bd80bdbfc0e3ec0
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?
Avatar for 7fd701b1a0deec6e66cf33cfedaeec60a9fbce2f681804879bd80bdbfc0e3ec0
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
Avatar for 7fd701b1a0deec6e66cf33cfedaeec60a9fbce2f681804879bd80bdbfc0e3ec0
User 7fd701
I was curious to see if it works... I'm going to test it right now
Avatar for 9035b67b57d44e49c04446515aa009f075099148629fce6b992405d1f5dafeb9
User 9035b6
Cool. Thanks for your help. lol, what if I mess it up and anytime anyone levels that players gets zombies .
Avatar for 7fd701b1a0deec6e66cf33cfedaeec60a9fbce2f681804879bd80bdbfc0e3ec0
User 7fd701
it should work
Avatar for 9035b67b57d44e49c04446515aa009f075099148629fce6b992405d1f5dafeb9
User 9035b6
Might. I’ll give it a try tomorrow. I can just target myself to test.
Avatar for 7fd701b1a0deec6e66cf33cfedaeec60a9fbce2f681804879bd80bdbfc0e3ec0
User 7fd701
If you put the player's name in the Search string, this might work, right?
Avatar for 9035b67b57d44e49c04446515aa009f075099148629fce6b992405d1f5dafeb9
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
Avatar for 7fd701b1a0deec6e66cf33cfedaeec60a9fbce2f681804879bd80bdbfc0e3ec0
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
Avatar for 7fd701b1a0deec6e66cf33cfedaeec60a9fbce2f681804879bd80bdbfc0e3ec0
User 7fd701
maybe with Event - PlayerLevel?
Avatar for 9035b67b57d44e49c04446515aa009f075099148629fce6b992405d1f5dafeb9
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
Avatar for 5791fcfcef7b2841fa029a4a736164d279a277be56bff02124771f514a648413
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.
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
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.
Avatar for 5791fcfcef7b2841fa029a4a736164d279a277be56bff02124771f514a648413
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
Avatar for 830925fddc20725216a31b46b7203ec5cac4754e6a8055ee7b69a99c816aa3d0
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)
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
I'm guessing it is all good
Thursday, May 30, 2024
Avatar for 830925fddc20725216a31b46b7203ec5cac4754e6a8055ee7b69a99c816aa3d0
User 830925
oh ok, will give it a try and pray for no loop haha
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
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
Avatar for 830925fddc20725216a31b46b7203ec5cac4754e6a8055ee7b69a99c816aa3d0
User 830925
But won't that still cause the loop?
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
search string
assignRole Steam_
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
anything would do, really
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
w2l "assignRole Steam_76561198002857667 DiscordRole"
Avatar for 830925fddc20725216a31b46b7203ec5cac4754e6a8055ee7b69a99c816aa3d0
User 830925
Any idea on what to have it say that won't screw up parsing the command out with the regex you wrote?
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
You are right, make the w2l say something else
Avatar for 830925fddc20725216a31b46b7203ec5cac4754e6a8055ee7b69a99c816aa3d0
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.
Avatar for 830925fddc20725216a31b46b7203ec5cac4754e6a8055ee7b69a99c816aa3d0
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?
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
Then juat take the INF out
Wednesday, May 29, 2024
Avatar for 830925fddc20725216a31b46b7203ec5cac4754e6a8055ee7b69a99c816aa3d0
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
Avatar for 830925fddc20725216a31b46b7203ec5cac4754e6a8055ee7b69a99c816aa3d0
User 830925
They can use the /vote command. We don't have any other slash commands we use (well at least players use)
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
Any command, like /ping
Avatar for 830925fddc20725216a31b46b7203ec5cac4754e6a8055ee7b69a99c816aa3d0
User 830925
Hate to sound really dumb, but what do you mean players execute commands? Like, which command?
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
No content
image.png

image.png

PNG3.9 KB

Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
No content
image.png

image.png

PNG11.8 KB