custom-hooks-commands
textPage 10 of 152
50 messages on this page
Saturday, August 31, 2024
Friday, August 30, 2024
User 73fdc4
?
User 73fdc4
Heya! Can I create one notify claim which contain buff and pvp in. For example name it:
cpm_tooltip_XPandLootBoostPvPzone_enterThursday, August 29, 2024
User a506fe
Some abacadabra with w2l and lcp would probably work
User a506fe
Cpm tracks playtime accurately
User 23fa64
Player level is a much more reliable metric to use though.
User 23fa64
That is a great idea though.
User 44dc99
^^ It is only as accurate as what is tracked in CSMM, and I wouldn't even count that as a reliable reference.
User 23fa64
I think time played is borked.
User 3ae430
Hellu, does anyone know if its possible to make a hook for players who have reached a certain milestone based on time played on the server? would like to have a reward system for whenever someone reached a timeplayed milestone.
User 5f9690
Why dont you make a guide for them so they can check it? or link them to the commands. A staff FAQ of sorts
If they cant remember the commands, would they remember aliases?
If they cant remember the commands, would they remember aliases?
Wednesday, August 28, 2024
User a00a50
Yeah there is no LogLine for the Blood Moon warning unfortunately, only at the exact time when the blood moon starts there is "BloodMoon starting for day 130"
User 602ca8
Well than you have to use a c# script and set a custom sequence time or use the game api and create a php script.
If you want to keep using csmm you can change it to hook on the console messages when the horde night ticks but it would be without warning
User 44dc99
I just realized that the server it isn't working on is the one we set horde nights to every 10 days on. Can't use the announcement on that one.
User 44dc99
Yeah, if you don't have the announcement to pick up on, it will be harder.
User 602ca8
Remove the color code and it will work every time
User a00a50
I tried this without success. Maybe because my settings are BloodMoonWarning = -1 in the serverconfig? Is it possible to make a script, which would run every day in-game at 18 hours, make a check if this day is bloodmoon day, if true, trigger command sendDiscord(xxx...), if false, do nothing? I'm running "random" bloodmoons with BloodMoonFrequency = 5 and BloodMoonRange = 3, therefor the examples I've seen using the 7 days check won't cut it.
Monday, August 26, 2024
User 23fa64
You can change the accessibility pre command so that doesn't help.
User 6ceaf4
May I suggest a
/modhelp that replies with a list of commands and description?User a12f6e
I want the same accessibility as they are in CPM
User 23fa64
Do you want these as admin commands or player commands?
User a12f6e
tb, ftw, get (is called summon in other tools), tb (especially because the teleport commands are called mv?), rt, acf, lcf, rcf, aaf, and raf
User 23fa64
Which commands?
User 374c5d
unfortunately you cant make custom cmds from chat cmds.
User a12f6e
Yeah, it's the "not all" ones I was hoping to find a simpler solution for 🙂
User 374c5d
most but not all cpm cmds have a console version you can use csmm to create a custom cmd with
User a12f6e
The CPM chat commands all have names that my admins and players can never remember. I'd like to make aliases for them. You can't set the names in CPM itself, so I was hoping I could make a CSMM custom command to sort of pass-through invoke the corresponding CPM command. I can probably recreate some of the commands using other tools, it's just going to be more work.
User a12f6e
Bummer, thanks
User 374c5d
only console commands
User 2fc02a
What are you trying to accomplish?
User a12f6e
Is there a way to trigger a chat command from inside a CSMM custom command as though the command user used the slash command themselves?
Friday, August 23, 2024
User 374c5d
no. lcb size is set im serverconfig.xml
User ee1326
Would there be a way to change the LCB size when in a specific adv claim?
User 44dc99
You wouldn't use a hook for that. Use server automation
Thursday, August 22, 2024
User 041e0a
how do i create a hooke to dispay my discord periodically?
User 44dc99
This is what we are using. Only seems to work sometimes though.
https://i.gyazo.com/6767385b86f5d2666c2793920a02b541.png
https://i.gyazo.com/6767385b86f5d2666c2793920a02b541.png
User 777603
Curious if someone can help me with 2 things.
-
Does anyone know how to set blood moon notifications to be sent to discord 2 hours prior to the blood moon and an additional message once blood moon officially begins and ends?
-
How can I schedule force server restarts using csmm or would it need to be done via my host console?
Currently i tried to use
to announce the blood moon but it didnt seem to work. It is set as a custom hook with LogLine as i had seen someone else using this command i thought this would work
sendDiscord(1273925999494434868,"**[SERVER]** Come join the team: {{#each server.onlinePlayers}}{{this.name}}, {{/each}}as the blood moon on **Diamond** is about to start in **two game hours**! - _5 actual minutes_")to announce the blood moon but it didnt seem to work. It is set as a custom hook with LogLine as i had seen someone else using this command i thought this would work
User 2fc02a
When they go to the shop, they set up their connections to steam and discord here

Screenshot_20240822-163216.png
PNG • 501.6 KB
User c66f41
is there a way a 3rd party app could comunicate with csmm directly?
User c66f41
what is the easiet way for players to do this?
User 44dc99
Unfortunately, this only works if they interact with CSMM.
User c66f41
Ideally a user would just use discord and not have to interact with CSMM themselves
User c66f41
Im gonna sound a bit repetitve here so bare with me. So lets say I have an end user who is lowest level in my Discord. Then I elevate their profile to a defined value that is greater. How could I get that value to corelate to a role I have set up in CSMM, but have this happen automatically when the discord profile in the server changes?
User 44dc99
Sure. Configure it in CSMM, and then the users will need to link their Discord to CSMM. Easy to do if you run a shop in CSMM.
User c66f41
Good moring everyone. Is there a way to have Discord user assigned roles set permission levels within CSMM?
Tuesday, August 20, 2024
User 44dc99
You would need to write a modlet for it. Kind of like the buffs CPM uses for a PvP/Pve Server. Could probably copy code from one of the in-game items
User aa9410
And how do I make this buff?
User 44dc99
Thinking through the steps, you would need to create a buff. Then apply the buff to the players with that role that are logged in.
I'm not sure how persistent it would be though. Maybe give the buff a 10-minute timer and have the hook re-applying it ever 10 minutes.
I'm not sure how persistent it would be though. Maybe give the buff a 10-minute timer and have the hook re-applying it ever 10 minutes.
User 23fa64
That's pretty hard to do, but I think it is possible.
Someone smarter than me will have to figure it out though.
Monday, August 19, 2024
User aa9410
Is there any way I can give an XP buff just for donors, for example, 20% more XP?