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 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
 


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 06:43 AM.


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