custom-hooks-commands

textPage 10 of 152
50 messages on this page
Saturday, August 31, 2024
Friday, August 30, 2024
Avatar for 73fdc4dcdb44a9c974e03d2d1fb10a7837757f3d66911fea485f2b67e4075006
User 73fdc4
?
Avatar for 73fdc4dcdb44a9c974e03d2d1fb10a7837757f3d66911fea485f2b67e4075006
User 73fdc4
Heya! Can I create one notify claim which contain buff and pvp in. For example name it:
cpm_tooltip_XPandLootBoostPvPzone_enter
Thursday, August 29, 2024
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
Some abacadabra with w2l and lcp would probably work
Avatar for a506fee3140c1a9cb5f83c4671951bd488e90ca6dc0482bf1cbc5478a2f8fa6e
User a506fe
Cpm tracks playtime accurately
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
Player level is a much more reliable metric to use though.
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
That is a great idea though.
Avatar for 44dc9956fa8ccaebb4f731417c8184f9c2e41fcfb57cea3d7330e76051749608
User 44dc99
^^ It is only as accurate as what is tracked in CSMM, and I wouldn't even count that as a reliable reference.
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
I think time played is borked.
Avatar for 3ae430df95fb1150726a46c68a6fa556508749dde97914e1c4d76ae5563f72bf
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.
Avatar for 5f9690453b2982bc2a1d1f4fba47f4edff7b0263c59753c916433a6ab908395c
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?
Wednesday, August 28, 2024
Avatar for a00a502ece390ad414159411395467e374582f54455a990387c42e6be1dca6eb
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"
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
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
Avatar for 44dc9956fa8ccaebb4f731417c8184f9c2e41fcfb57cea3d7330e76051749608
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.
Avatar for 44dc9956fa8ccaebb4f731417c8184f9c2e41fcfb57cea3d7330e76051749608
User 44dc99
Yeah, if you don't have the announcement to pick up on, it will be harder.
Avatar for 602ca815dc7501e6a962147ab179d09dca96d576877ccc458c8656c35bc7361b
User 602ca8
Remove the color code and it will work every time
Avatar for a00a502ece390ad414159411395467e374582f54455a990387c42e6be1dca6eb
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
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
You can change the accessibility pre command so that doesn't help.
Avatar for 6ceaf41ff27d04ff247f59c1bc5a9f4cc4ace95acc526862d52cdbbb8702989b
User 6ceaf4
May I suggest a
/modhelp
that replies with a list of commands and description?
Avatar for a12f6e80e9d89b5470e3311f9d8388d6d4bc834b3825be85bf1f6a4e71dd314f
User a12f6e
I want the same accessibility as they are in CPM
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
Do you want these as admin commands or player commands?
Avatar for a12f6e80e9d89b5470e3311f9d8388d6d4bc834b3825be85bf1f6a4e71dd314f
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
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
User 23fa64
Which commands?
Avatar for 374c5d8a234dd3a84b2e7712113bccfc34abaf33083b895e688b9899a24261ca
User 374c5d
unfortunately you cant make custom cmds from chat cmds.
Avatar for a12f6e80e9d89b5470e3311f9d8388d6d4bc834b3825be85bf1f6a4e71dd314f
User a12f6e
Yeah, it's the "not all" ones I was hoping to find a simpler solution for 🙂
Avatar for 374c5d8a234dd3a84b2e7712113bccfc34abaf33083b895e688b9899a24261ca
User 374c5d
most but not all cpm cmds have a console version you can use csmm to create a custom cmd with
Avatar for a12f6e80e9d89b5470e3311f9d8388d6d4bc834b3825be85bf1f6a4e71dd314f
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.
Avatar for a12f6e80e9d89b5470e3311f9d8388d6d4bc834b3825be85bf1f6a4e71dd314f
User a12f6e
Bummer, thanks
Avatar for 374c5d8a234dd3a84b2e7712113bccfc34abaf33083b895e688b9899a24261ca
User 374c5d
only console commands
Avatar for 2fc02addfc2b08cf731c591ce3ec1458095131979eff88a05d79d32a80be0d20
User 2fc02a
What are you trying to accomplish?
Avatar for a12f6e80e9d89b5470e3311f9d8388d6d4bc834b3825be85bf1f6a4e71dd314f
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
Avatar for 374c5d8a234dd3a84b2e7712113bccfc34abaf33083b895e688b9899a24261ca
User 374c5d
no. lcb size is set im serverconfig.xml
Avatar for ee13268ee31cc839127f58e267a4dfebe013b97c204afba2bbba579791409af0
User ee1326
Would there be a way to change the LCB size when in a specific adv claim?
Avatar for 44dc9956fa8ccaebb4f731417c8184f9c2e41fcfb57cea3d7330e76051749608
User 44dc99
You wouldn't use a hook for that. Use server automation
Thursday, August 22, 2024
Avatar for 041e0acf3ce0775f2a8138ba5237661bdc9677ecb35f67146ba301eca81a1e80
User 041e0a
how do i create a hooke to dispay my discord periodically?
Avatar for 44dc9956fa8ccaebb4f731417c8184f9c2e41fcfb57cea3d7330e76051749608
User 44dc99
This is what we are using. Only seems to work sometimes though.
https://i.gyazo.com/6767385b86f5d2666c2793920a02b541.png
Avatar for 777603bcec3d03602478d89270ae6541123c40a3f440f11f86372770d9c44950
User 777603
Curious if someone can help me with 2 things.
  1. 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?
  2. 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
 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
Avatar for 2fc02addfc2b08cf731c591ce3ec1458095131979eff88a05d79d32a80be0d20
User 2fc02a
When they go to the shop, they set up their connections to steam and discord here
Screenshot_20240822-163216.png

Screenshot_20240822-163216.png

PNG501.6 KB

Avatar for c66f411827d0d81315c4c713bc24db8830ee32fad441841b7030d011e3cc6051
User c66f41
is there a way a 3rd party app could comunicate with csmm directly?
Avatar for c66f411827d0d81315c4c713bc24db8830ee32fad441841b7030d011e3cc6051
User c66f41
what is the easiet way for players to do this?
Avatar for 44dc9956fa8ccaebb4f731417c8184f9c2e41fcfb57cea3d7330e76051749608
User 44dc99
Unfortunately, this only works if they interact with CSMM.
Avatar for c66f411827d0d81315c4c713bc24db8830ee32fad441841b7030d011e3cc6051
User c66f41
Ideally a user would just use discord and not have to interact with CSMM themselves
Avatar for c66f411827d0d81315c4c713bc24db8830ee32fad441841b7030d011e3cc6051
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?
Avatar for 44dc9956fa8ccaebb4f731417c8184f9c2e41fcfb57cea3d7330e76051749608
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.
Avatar for c66f411827d0d81315c4c713bc24db8830ee32fad441841b7030d011e3cc6051
User c66f41
Good moring everyone. Is there a way to have Discord user assigned roles set permission levels within CSMM?
Tuesday, August 20, 2024
Avatar for 44dc9956fa8ccaebb4f731417c8184f9c2e41fcfb57cea3d7330e76051749608
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
Avatar for aa941046d0c84c258825a8945dbe42b650a770e0a7527e126110f42be7e2f0c9
User aa9410
And how do I make this buff?
Avatar for 44dc9956fa8ccaebb4f731417c8184f9c2e41fcfb57cea3d7330e76051749608
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.
Avatar for 23fa6481638002a74556b9cac6e9e906cdf12551a21ddd6d0b0134fc009c8f88
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
Avatar for aa941046d0c84c258825a8945dbe42b650a770e0a7527e126110f42be7e2f0c9
User aa9410
Is there any way I can give an XP buff just for donors, for example, 20% more XP?