Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:29 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.