custom-hooks-commands
textPage 3 of 152
50 messages on this page
Saturday, December 7, 2024
User c66f41
Thank you
User c66f41
So I’m assuming this Regex can basically read any logline and output it in plain language
User a506fe
like Prisma501 killed BrockSamson with AK47
User a506fe
then use that vars to spit something in chat
User a506fe
3 vars
User a506fe
then you can use the cpm kill logline to extract killer, victim and weapon
User a506fe
make a hook with string search on [CSMM_Patrons]playerKilledByPlayer:
User c66f41
Thank you
User a506fe
yes
User c66f41
Do I define this as a variable ?
User a506fe
use (?<= with )(.*) when you have weapons that have spaces in name (non vanilla)
User c66f41
So maybe I’m over complicating it but my issue is I’m trying to short hand something that may require multiple hooks.The issue is that their are so many weapons. I am able to filter kill feeds easily enough but to specify the weapon is harder than I thought.
I would filter the kill feed and then trigger the hook for weapon “weapon name”
The log line typically says x was killed by y with weapon “weapon name” to I was hoping to make a refer variable that will take any random text or string and convert it into output. I tried defining “weapon name” as a variable in csmm
User a506fe
[CSMM_Patrons]playerKilledByPlayer:
User a506fe
searchstring for the hook could be:
User a506fe
regexr.com/89p2k
User 6ceaf4
Have you tried chatgpt? It is really helpful with regex. Just notice for csmm you should narrow down to one capture group
Friday, December 6, 2024
User c66f41
Does anyone happen to have a regex set up for specifying weapon kills within csmm.
Example for in game chat: Player bob killed Player suzy with Crossbow.
I tried making a regex for "Weapon" and any characters after. This was so that the chat could read any words after the log line for kills and see "Weapon. ....." Not sure if I am making sense here.
Tuesday, December 3, 2024
User 374c5d
idr if it logs the time tho
User 374c5d
csmm has location tracking
User fae77a
Hi friends! Is there any way to validate if a player leaves the game in a blood moon after 7pm? And when he comes back, leave some scouts near him?
User 2fc02a
Well the log line is never seen, so no.
Tuesday, November 26, 2024
User 146753
any way to fire the command when back online?
User 146753
if cssm is down, custom hooks wont fire, right ?
Monday, November 25, 2024
User a002b5
The bigger it is, the less it is visible
User a002b5
Sorry ^^'
User a002b5
hooo xD
User 23fa64
You need a
" at the end.User a002b5
Is that right? ^^
User 23fa64
Add the missing quote.
User a002b5
How to resolve this error?
User 23fa64
That's your answer.
User 23fa64
There you go.
User 23fa64
Check your logs to see if there is an error message.
User a002b5
Did I do something wrong? the message is not displayed in the game chat when someone takes a level
Friday, November 22, 2024
User 146753
but made lvl 1 can work as well
User 146753
i probably change rank to 25 and problem fixed
User 6ceaf4
For such low level, chance is they can also jump from 9 to 11.
Safer bet will be trigger at "made level 1" and have a regex catch the "was" number and check if it is lower than 10
Safer bet will be trigger at "made level 1" and have a regex catch the "was" number and check if it is lower than 10
User 23fa64
I updated it so it wouldn't fire for levels after 100.
User 146753
dont remember why i made it this way , honestly ^^ was long time ago, but i will try
User 23fa64
Why not just search for
made level 10 (was instead of made level 10 (was 9)?








