Quote:
Originally Posted by Restraint
Did you try something like...
PHP Code:
function onPlayerLogout(pl) { pl.clientr.lastGuild = pl.guild; }
combined with:
PHP Code:
function onPlayerLogin(pl) { pl.guild = pl.clientr.lastGuild; }
If that doesn't work, try a simple delay on the onPlayerLogin, such as:
PHP Code:
function onPlayerLogin(pl) { scheduleEvent("fixGuild", 1, pl); } function onFixGuild(pl) { pl.guild = pl.clientr.lastGuild; }
|
That would force a guild tag change when player logs on even if they want to use another tag. Which is a bad idea. This kinda worked. (Sorry didn't copy from my server tried typing it from memory)
Control-NPC
PHP Code:
function onActionPlayerOnline(){
player.clientr.lastguild = player.guild;
}
WNPC
PHP Code:
function onPlayerNickChanges(obj){
obj.guild = obj.clientr.lastguild;
}