zxmatzx
Advanced OT User
Hello,
Im needing a function to change the monster name when summoned, i found this: SetCreatureName, but it need some changes, which i don't know how to do, then i asking for help.
In the post, in comments some people said that have a bug, when we change the monster name with players in area, the client don't update the name, a guy posted a solution for this using same function that Convince Creature uses, i think we can solve this with Lua too, doing: teleport monster to specific position with no players, change name and teleport back to original position with altered name.
The real problem is, if i summon a rat with nickname "Mickey" and kill it, i think that onKill and others functions that use creature name, will recive "Mickey" name and not "Rat", then i need a Nickname field not changing the Name field, the client will show the nickname and the server will handle the name normally.
If someone can help, I would be grateful. Even if you don't do the code, giving ideas on how to get around it would help.
Thanks.
--Using TFS 1.2
Im needing a function to change the monster name when summoned, i found this: SetCreatureName, but it need some changes, which i don't know how to do, then i asking for help.
In the post, in comments some people said that have a bug, when we change the monster name with players in area, the client don't update the name, a guy posted a solution for this using same function that Convince Creature uses, i think we can solve this with Lua too, doing: teleport monster to specific position with no players, change name and teleport back to original position with altered name.
The real problem is, if i summon a rat with nickname "Mickey" and kill it, i think that onKill and others functions that use creature name, will recive "Mickey" name and not "Rat", then i need a Nickname field not changing the Name field, the client will show the nickname and the server will handle the name normally.
If someone can help, I would be grateful. Even if you don't do the code, giving ideas on how to get around it would help.
Thanks.
--Using TFS 1.2
Last edited: