Regex or what
I'm trying to send the messages to the client without using the localized messages, but changing in every script would be a lot of work, what i' trying to to is "translate" the cliloc number to text
i know how to get the cliloc text but i dont know how to replace some fields
ex: i have he cliloc 040000 with the text You have died ~1_times~ times
the part between ~~ is the variable as we know, but i dont know how to replace them with some value in server side, i know i can use regex but i cant figure out how to replace the ~~ variables parts with some value
I'm trying to send the messages to the client without using the localized messages, but changing in every script would be a lot of work, what i' trying to to is "translate" the cliloc number to text
i know how to get the cliloc text but i dont know how to replace some fields
ex: i have he cliloc 040000 with the text You have died ~1_times~ times
the part between ~~ is the variable as we know, but i dont know how to replace them with some value in server side, i know i can use regex but i cant figure out how to replace the ~~ variables parts with some value