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.