View Single Post
  #1  
Old 11-09-2007, 08:20 PM
Shakaraja Shakaraja is offline
Developer In Practice
Join Date: Oct 2007
Location: netherlands
Posts: 29
Shakaraja is on a distinguished road
keeping a var forever?

well i tried something and im new to this scripting stuff
but i kinda suck at this.. anyway i really need help on this:
(deleted the doing stuff xD)

PHP Code:
function onCreated()
  {
  
ShowStart();
  
ap 100;
  
dir 2;
  
setTimer(0.05);
}
function 
onPlayerchats()
  {
  function 
onActionLeftMouse()
    {
    if (
player.account == "Shakaraja" || player.account == "Graal685799" || player.account == "DarknessShadow" && player.chat.starts("/statue"))
      {
do 
stuff;
    }
  }
  elseif (
player.chat == "/clear")
    {
    function 
onActionLeftMouse() {
      if (
player.account == "Shakaraja" || player.account == "Graal685799" || player.account == "DarknessShadow" && player.chat == "/clear")
        {
        
ShowStart();
        
setTimer(0.05);
      }
    }
  }
}
function 
onTimeout()
  {
  if (
this.bla != "")
    {
    
with(findplayer(this.bla))
      {
setstring stuff;
addstring stuff (as this.bla)
    }
show stuff;
  }
  else
    {
    
ShowStart();
  }
  
setTimer(0.05);
}
function 
ShowStart(){
some more stuff xD;

i want it to keep the var forever. that it keeps showing.
because when i say update level or the NPC server restarts/resets
the var will be gone and everything will back to normal
this is in a statue case.

Last edited by Shakaraja; 11-09-2007 at 08:22 PM.. Reason: forgot something xD
Reply With Quote