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)){
x = player.x + 1.5;
y = player.y + 3;
attachtoowner = true;
temp.c = 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;
}
}