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 01-18-2009, 06:42 AM
[email protected] jamerson61894@yahoo.com is offline
Banned
Join Date: Jul 2008
Posts: 83
jamerson61894@yahoo.com is an unknown quantity at this point
script help!

Hello there =]

I have a script for my spar event on my server and I scripted it to where it shows "block.png" and they dont disappear until the script says "start", and I tried making a thing where the events team can say "/reset" and the blocks would show up again. It works cliensided, which is of course bad, since I want everyone to see it, and I tried making it serversided but it just isnt a nice script =]

Here it is:



function onPlayerchats() {
if (player.guild == "Events Team") {
if (player.chat.starts("/start")) {
setcharprop #c,5;
sleep(1);
setcharprop #c,4;
sleep(1);
setcharprop #c,3;
sleep(1);
setcharprop #c,2;
sleep(1);
setcharprop #c,1;
sleep(1)
setcharprop #c,Begin Sparring!;
hide;
sleep(1);
setcharprop #c,;
}
}
}
function onActionServerSide() {
if (player.guild == "Events Team") {
if (player.chat.starts("/reset")) {
sleep(0.1);
show;
}
}
}





The end is the problem, It just doesnt even work serversided. Someone help me fix it please. I would be most generous.

<3

-jamerson
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 11:03 PM.


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