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 07-15-2008, 04:29 PM
foxpawsd foxpawsd is offline
Registered User
foxpawsd's Avatar
Join Date: Dec 2006
Posts: 14
foxpawsd is on a distinguished road
Exclamation staff block droper not working

.... it's not working can some one help?

Quote:
// Twinny's sign dropper
function onActionServerSide()
{
if (params[0] == "layblock")
{
temp.npc = putnpc2(params[1], params[2], "join(\"staffsign\");");
temp.npc.owner = player.account;
}
}

//#CLIENTSIDE
function onCreated()
setTimer(0.05);

function onKeyPressed(num1, code, num2)
{
if (code == "b")
this.block = !this.block; //Toggles on and off
}

function onTimeout()
{
if (this.block)
showimg(1, "staffblock.png", mousex, mousey);
else
hideimg(1);
setTimer(0.05);
}

function onMouseDown(mode)
{
if (mode == "left")
{
if (this.block)
triggerserver("gui", this.name, "layblock", mousex, mousey);
}
else if (mode == "double")
triggeraction(mousex, mousey, "SetMsg", player.chat);
else if (mode == "right")
triggeraction(mousex, mousey, "KillSign", "");
}
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 10:54 AM.


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