RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Regex or what

_Epila_

Sorceror
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
 
Top