Thread: Help please :[
View Single Post
  #2  
Old 07-10-2009, 08:49 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
wouldn't it be easier to just do a showText using findimg by the player rather than an NPC if your just doing text?

Example:

PHP Code:
function onActionServerside()
{

  switch ( 
params0])
  {

    case 
"stampOn":

      
temp.pl findPlayerparams1]);

      
pl.clientr.stamp params2];
      
pl.triggerClient"gui"nameparams0]);

    break;

    case 
"stampOff":

      
findPlayerparams1]).clientr.stamp NULL;

    break;


  }
}

//#CLIENTSIDE

function onPlayerChats()
{

  
temp.tokens player.chat.tokenize();

  if ( 
tokens0] == "/stamp")
    
triggerServer"gui"name"stampOn"tokens1], tokens2]);

  else if ( 
tokens0] == "/removestamp")
    
triggerServer"gui"name"stampOff"tokens1]);

}

function 
onActionClientside()
{

  if ( 
params0] == "stampOn")
    
onTimeout();

}

function 
onTimeout()
{

  if ( 
clientr.stamp != NULL)
  {

    
with findImgthis.index))  // Adjust attributes to your liking
    
{

      
player.x;
      
player.y;

      
zoom 0.45;

      
text clientr.stamp;

    }

    
setTimer0.05);

  }

  else
    
setTimer0);  


Here's a Link for those Attributes.

TShowImg
__________________
Deep into the Darkness peering...

Last edited by Angel_Light; 07-10-2009 at 09:15 AM..
Reply With Quote