View Single Post
  #5  
Old 08-22-2014, 03:50 AM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
Quote:
Originally Posted by Restraint View Post
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"1pl);
}
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;

Reply With Quote