View Single Post
  #1  
Old 04-20-2011, 11:37 AM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
Events that work in ganiscript?

working on a custom nickname system, it appears that neither onPlayerNickChanges
or
onNickChanges

are invoked in the gani.


PHP Code:
function onPlayerEnters(){
  
with(findimg(200)){
    
player.1.5;
    
player.3;
    
attachtoowner true;
    
temp.shared.getAlignmentColor(player.ap);
    
/*red = c[0]/255;
    green = c[1]/255;
    blue = c[2]/255;*/
    
red 83;
    
green 46;
    
blue 86;
    
textshadow true;
    
//temp.c = shared.getAlignmentShadowColor()
    //shadowcolor = {c[0]/255, c[1]/255, c[2]/255};
    
text player.nick;
    
font $pref::graal::defaultfontname;
    
style "bc";
    
zoom $pref::graal::defaultfontsize 24;
    
layer 0;
  }
}

function 
onPlayerNickChanges(){
  
with(findimg(200)){
    
text player.nick;
  }

Reply With Quote