custom-hooks-commands

textPage 8 of 152
50 messages on this page
Saturday, September 28, 2024
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
2024-09-28T10:32:48 9150.229 INF Executing command 'cpm-multipleentityspawn 171 60 @ 54 54 54 44 43 43 32 32 33 27 54 54 54 44 43 43 32 32 33 27 54 54 54 44 43 43 32 32 33 27' by WebCommandResult_for_cpm-multipleentityspawn
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
All seems to work here
image.png

image.png

PNG60.8 KB

image.png

image.png

PNG120.5 KB

image.png

image.png

PNG90.1 KB

Avatar for 6edfda720fe670048bac85b0d6c1ed12b90ba8d2f10ae17cc6e37b827bc4fb8e
User 6edfda
It was all green
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
Was that red?
Avatar for 6edfda720fe670048bac85b0d6c1ed12b90ba8d2f10ae17cc6e37b827bc4fb8e
User 6edfda
No content

message.txt

TXT45.6 KB

Avatar for 6edfda720fe670048bac85b0d6c1ed12b90ba8d2f10ae17cc6e37b827bc4fb8e
User 6edfda
@User 59898394 Would I be looking for something specific?
Friday, September 27, 2024
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
anyways, can you take a look at experiments -> playground -> executions?
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
looks like 27 is zombieTomClarkRadiated
which is in your first line: cpm-multipleentityspawn ${entityId} 60 @ 54 54 54 44 43 43 32 32 33 27;
but I don't see you killing one, which is odd...
Avatar for 6edfda720fe670048bac85b0d6c1ed12b90ba8d2f10ae17cc6e37b827bc4fb8e
User 6edfda
It spawns them fine
Avatar for 6edfda720fe670048bac85b0d6c1ed12b90ba8d2f10ae17cc6e37b827bc4fb8e
User 6edfda
No content
image.png

image.png

PNG1.0 MB

Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
what happens if you manually do in console
cpm-multipleentityspawn 171 60 @ 54 54 54 44 43 43 32 32 33 27 54 54 54 44 43 43 32 32 33 27;
?
Avatar for 6edfda720fe670048bac85b0d6c1ed12b90ba8d2f10ae17cc6e37b827bc4fb8e
User 6edfda
Video of the event
Thursday, September 26, 2024
Avatar for 963f555b96e0b42febfe9c8744aacd2b11893c566055bfc6419084c10409fa2f
User 963f55
what do the actual server logs show doing this time/attempt??
Avatar for 6edfda720fe670048bac85b0d6c1ed12b90ba8d2f10ae17cc6e37b827bc4fb8e
User 6edfda
No content
image.png

image.png

PNG376.8 KB

Avatar for 6edfda720fe670048bac85b0d6c1ed12b90ba8d2f10ae17cc6e37b827bc4fb8e
User 6edfda
I just fixed the only instance of double spacing, but that didn't resolve the issue. I'm not dead throughout the whole thing
Avatar for 963f555b96e0b42febfe9c8744aacd2b11893c566055bfc6419084c10409fa2f
User 963f55
any chance the person is dead at the time of mes attempt? extra space in the command?
Avatar for 6edfda720fe670048bac85b0d6c1ed12b90ba8d2f10ae17cc6e37b827bc4fb8e
User 6edfda
I don't see why that issue would come up though?
Avatar for 6edfda720fe670048bac85b0d6c1ed12b90ba8d2f10ae17cc6e37b827bc4fb8e
User 6edfda
On wave 3:
Error in SpawnMultipleEntity: System.ArgumentNullException: Value cannot be null. Parameter name: Name cannot be null
Avatar for 6edfda720fe670048bac85b0d6c1ed12b90ba8d2f10ae17cc6e37b827bc4fb8e
User 6edfda
I'll check logs
Avatar for 963f555b96e0b42febfe9c8744aacd2b11893c566055bfc6419084c10409fa2f
User 963f55
https://discord.com/channels/336821518250147850/427106880255426560/1288912937884323942
what does your logs say? any issues would prob be solved by looking there....
side note if you are using this as a specific place i would suggest moving the mes to use location vs the entityid, what if that player dies and is now at their base as they spawned in via bed, not the mes is being spawned there vs a horde base..
Avatar for 6edfda720fe670048bac85b0d6c1ed12b90ba8d2f10ae17cc6e37b827bc4fb8e
User 6edfda
Hey guys, I'm using this custom command
say "[db1304]Fight for your Life begins NOW!"; wait(10); cpm-multipleentityspawn ${entityId} 60 @ 54 54 54 44 43 43 32 32 33 27; wait(30); say "[db1304]How did wave 1 go? Ready for more?"; wait(3); say "[db1304]I really hope so. Here they come!"; wait(2); cpm-multipleentityspawn ${entityId} 60 @ 54 54 54 44 43 43 32 32 33 27 54 54 54 44 43 43 32 32 33 27; wait(60); say "[db1304]Dang! That was crazy, huh?"; wait(3); say "[db1304]Well, you ain't done, yet, punks! Here comes round 3!"; wait(2); cpm-multipleentityspawn ${entityId} 60 @ 54 54 54 44 43 43 32 32 33 27 54 54 54 44 43 43 32 32 33 27 54 54 54 44 43 43 32 32 33 27; wait(120); say "[db1304]Okay. It's over."; wait(5); say "[db1304]No, really, it is. You can go grab the loot, now."; wait(10); say "[db1304]SUCKER!! Final Wave INCOMING!"; wait(5); cpm-multipleentityspawn ${entityId} 60 @ 54 54 54 44 43 43 32 32 33 27 54 54 54 44 43 43 32 32 33 27 54 54 54 44 43 43 32 32 33 27 54 54 54 44 43 43 32 32 33 27; wait(180); say "[db1304]Alright, alright, alright. It's over. Here comes the reward!"; wait(2); cpm-multipleentityspawn ${entityId} 20 @ sc_General sc_General sc_General sc_General; wait(1); say "[db1304]Now, grab your shit and get out!";
But it's not spawning the zombies after wave 2 and the loot crates? Any advice? I have bumped up the max zombies on the server to 180 and it didn't help
Wednesday, September 25, 2024
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
sorry, it's not clear to me... what are you trying to achieve?
Sunday, September 22, 2024
Avatar for d6c4fef2a42ed75b6f8882f759ee127c92de1949b211b85be859b6d09e49ba0a
User d6c4fe
Maybe I could use a mod and change it for what I would like I will look into this too thank you guys
Avatar for d6c4fef2a42ed75b6f8882f759ee127c92de1949b211b85be859b6d09e49ba0a
User d6c4fe
Ahhh ok so from this post it would it be possible to create my own pack then that would work I may have posted this in the wrong place all a learning curve lol
Avatar for 963f555b96e0b42febfe9c8744aacd2b11893c566055bfc6419084c10409fa2f
User 963f55
theres def mods out there for starter kits or can dev your own, but that is outside the scope of this discord
Avatar for 963f555b96e0b42febfe9c8744aacd2b11893c566055bfc6419084c10409fa2f
User 963f55
yes, but they asked in the CSMM forum in custom hooks, so i went with that basis for my response.....
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
I think the best approach is to use a mod
Avatar for 963f555b96e0b42febfe9c8744aacd2b11893c566055bfc6419084c10409fa2f
User 963f55
quickest way would be to set up a custom hook, and base it off of first login.... issue commands to tp them to your lobby, and can have give commands to give them items you would like them to start with....
with that direction, look into that and let us know how far you get and we can help guild you further...
Avatar for d6c4fef2a42ed75b6f8882f759ee127c92de1949b211b85be859b6d09e49ba0a
User d6c4fe
Hey guys anyone able to help with setting up starter kits for all new players and also when new players join they spawn into a lobby please eg the comands i would use for it please thanks
Friday, September 20, 2024
Avatar for f4e6b2b60f2f33788661840399ed7a8da3d0bbbe806d38f03080f43439aff566
User f4e6b2
oh geez, I've been super busy and forgot to answer back.thank you for the response and helping out. We did give it a try but I think the command was badly formulated so it didn't catch it. I'll give it another try with them soon.
Monday, September 16, 2024
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
  1. Yep they're global, you can reuse them
  2. No, there's no builtin var for that
Sunday, September 15, 2024
Avatar for f4e6b2b60f2f33788661840399ed7a8da3d0bbbe806d38f03080f43439aff566
User f4e6b2
Hi, I am going to be helping a server admin in csmm. I tried to write some custom commands and events, also tried to read the docs but they aren't too clear to me. I have just 2 questions to start out with.
  1. Are variables made global or only in the command made. Like if I make an line log check for the blood moon text and setvar let's say bloodmoonstatus to true, can a custom command check that var whenever run?
  2. is there a built-in var for blood moon event. I am still wondering about the first question and used that as an example.
Thursday, September 12, 2024
Avatar for f7ec307c8f1e046d385a1bf1dccc23c91ed912516ec4a207eda6e351ec8ea78e
User f7ec30
Ah I see, thank you guys.
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
If talking bout the cpm command
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
That command was scratched with 1.0
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
And where is the
removeitem
command coming from?
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
Where are you trying to remove it from?
Avatar for f7ec307c8f1e046d385a1bf1dccc23c91ed912516ec4a207eda6e351ec8ea78e
User f7ec30
I tried using ${player.entityId} and I get the same error about an API. (sorry newb)
Avatar for f7ec307c8f1e046d385a1bf1dccc23c91ed912516ec4a207eda6e351ec8ea78e
User f7ec30
I am testing a remove item hook, can someone tell me why it isn't working? If you are busy I understand. say "Thank you ${player.name} , you are a sweet person, I hope you die last !!" ;removeitem ${player.name} resourceCropChrysanthemumPlant 1
Wednesday, September 11, 2024
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
Yes
Avatar for 2fc02addfc2b08cf731c591ce3ec1458095131979eff88a05d79d32a80be0d20
User 2fc02a
I'm trying to get a players CSMM role, so I can automatically add them to admin
Is this what I need?
{{#if (eq player.role.level 500)}}```
Would that pull their CSMM role? 
So I could execute
```admin add <name / entity id / platform + platform user id> <level> [displayname]```
Saturday, September 7, 2024
Avatar for 2fc02addfc2b08cf731c591ce3ec1458095131979eff88a05d79d32a80be0d20
User 2fc02a
This all was a huge help thank you guys!
Friday, September 6, 2024
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
I created a whole server manager with this 😛
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
Then works with a space too.
image.png

image.png

PNG17.9 KB

Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
Then it shows what will be output too.
image.png

image.png

PNG15.0 KB

Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
Player (\w+)
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
No content
image.png

image.png

PNG28.9 KB

Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8