custom-hooks-commands
textPage 4 of 152
50 messages on this page
Friday, November 22, 2024
User 146753
and didnt get the rank
User 146753
so i supose he was 8 and made 10 skiping 9 somehow
User 146753
but is a 300% xp and 1 player didnt get rank
User 146753
i have a rank at lvl 10 with was 9
User 23fa64
Wouldn't adding one more level be the 150?
User 146753
add 148 as well for example?
User 146753
is there any way to make this condition a bit different ? add one more level to "was"?

image.png
PNG • 2.1 KB
Saturday, November 9, 2024
User 2eb44a
/friend isn’t able to be ran through console, is there a way for csmm to handle it without running it as a console command?
User 2eb44a
I was unable to get the /friend command to work
User 2eb44a
/ bank and then will work I got those
User 2eb44a
Interesting, imma attempt to custom command my way to most of them to csmm
User 23fa64
You have to separate them out.
CPM can have
/ and servertools can have !User 2eb44a
when i use cpm to hide / commands it stops all server tools commands from working
Friday, November 8, 2024
User 146753
hmm, let me find it
User 23fa64
That already gives a countdown in game.
Hook off that to show in Discord.
User 146753
yes
User 23fa64
Are you using the
shutdownba command?User 146753
hmm in game or in discord any of them would be handy
User 23fa64
In Discord?
User 146753
is there any way to make a hook that shows how much time remaining till next server restart?(cron job)
Wednesday, November 6, 2024
User 2fc02a
Just to help you out a bit. I would uninstall their instance and use the downloads page and install CSMM and CPM as mods. Works way better that way
Monday, November 4, 2024
User 23fa64
Are you using the 7D2D.net instance?
Sunday, November 3, 2024
User b6c97b
But do I need to log in to us.csmm.app in order to make a custom command is the question. I thought I read somewhere in the discord that you can do it another way?
User aee541
No content
User aee541
No content
User b6c97b
I have no access to the us.csmm.app. can I still make a custom command? I followed the docs and am still confused on where to input my commands.
Thursday, October 31, 2024
User 23fa64
Not sure how that stuff works.
User 2bff06
@User 45622657 oh we switched to EU. I probably need to redo my connect? I know it's due again, but according to cata, it shouldn't immediately delete my stuff .
User 6ceaf4
you seemed very close... 😦
User 23fa64
And it looks like you lost your supporter role here.
User 23fa64
I don't think you can change it.
User 2bff06
does anyone know what the command is for gimme so I can alias it in the custom command area as ToT (trick or treat)
User 2bff06
i give up
User 2bff06
At this point, I think I need to just change /gimme to /ToT temporarily and put everything in there.
User 6ceaf4
so...
{{#if (eq (randNum:1:2) 1)}} looks like a start...User 6ceaf4
your if is off
here is an example:
here is an example:
{{#if (gte player.level 100)}} pm {{player.steamId}} "That worked" {{else}} pm {{player.steamId}} "Sorry, you must be at least level 100 for this command" {{/if}}
User 2bff06
Doesn't spawn the wandering hordes. hmm this is usch a puzzle
User 2bff06
Actually it does all of the negative buffs at once instead of randomly picking one.
User 2bff06
So, I'm a step closer. now I get all of the says showing up and shocked when using this: sayplayer ${entityId} "[f59e42] Trick or Treat!"; if {randNum:1:2} ==1) {giveplus ${entityId} {{RndList:foodPumpkinPie 1,drugEyeKandy 1,drugHackers 1,drugSugarButts 1,drugAtomJunkies 1,drugFortBites 1,drugSkullCrushers 1,foodPumpkinCheesecake 1,drinkCanMegaCrush 1,foodCropPumpkin 1,foodCropGraceCorn 1,UnlAmmoSmoothiePew 1,Fishbites 1}}} 1; sayplayer ${entityId} "[00ff00]You received a treat!"} else {{{RndList:th ${entityId} 5;playsound ${entityId} twitch_jumpscare;buffplayer ${entityId} buffLegSprained;buffplayer ${entityId} buffshocked;giveplus ${entityId} resourceBrokenGlass 1;th all 10}}}; sayplayer ${entityId} "[ff0000]Trick!" }
Wednesday, October 30, 2024
User 23fa64
I think it is possible though.
User 23fa64
That is only giving a random number of precious metal to someone.
Way different than what you are trying to do.
User 2bff06
I see from about a year ago someone kind of did something similar, have to figure out how to apply that to this.. giveplus ${player.entityId} ${randList:resourceGoldNugget,resourceSilverNugget,resourceRawDiamond} ${randNum:1:2}
User 2bff06
Oh, should I put randNum in there instead for the 0-1 range?
User 2bff06
i need to give it a way to determine which option to go with and then choose from the list associated with the trick or the treat option.
User 23fa64
If needs to be wrapped, for sure.
Not sure about the 0, 1 thing.
User 2bff06
Basically, I'm trying to create a conditional Gimme?
User 2bff06
Question about creating a custom command that randomizes a Trick or a Treat. I'm not sure if I'm using the random list functionality correctly. It's also saying both Trick and Treat but nothing else is happening. Any insight?
here's the code:
sayplayer ${entityId} "[f59e42] Trick or Treat!"; if (rand(0, 1) == 0) { giveplus ${entityId} {{RndList:foodPumpkinPie 1,drugEyeKandy 1,drugHackers 1,drugSugarButts 1,drugAtomJunkies 1,drugFortBites 1,drugSkullCrushers 1,foodPumpkinCheesecake 1,drinkCanMegaCrush 1,foodCropPumpkin 1,foodCropGraceCorn 1,UnlAmmoSmoothiePew 1,Fishbites 1}} 1; sayplayer ${entityId} "[00ff00]You received a treat!" } else { {{RndList:th ${entityId} 5,playsound ${entityId} twitch_jumpscare,buffplayer ${entityId} buffLegSprained,buffplayer ${entityId} buffshocked;giveplus ${entityId} resourceBrokenGlass 1,th all 10}}; sayplayer ${entityId} "[ff0000]Trick!" }
Tuesday, October 29, 2024
User 146753
checking all hooks i have now... see if all works:)
User 146753
yeah, thanks you
User 23fa64
Granted, I fixed it a few times so you may not have had the most current fix.