Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > NPC Server
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-24-2001, 03:11 AM
Bravo_LAT-Admin Bravo_LAT-Admin is offline
Registered User
Join Date: Jun 2001
Location: banana
Posts: 165
Bravo_LAT-Admin will become famous soon enough
script question.

// NPC made by Pikaz (RC)

if (playerenters) {
this.berrycount=4;
drawunderplayer
}
if (playertouchsme) {
}

timeout=2;
if (timeout&&this.berrycount<4)
{
this.berrycount=this.berrycount+1;
if (this.berrycount=4)
{setimg bushred4.gif}
if (this.berrycount=3)
{setimg bushred3.gif}
if (this.berrycount=2)
{setimg bushred2.gif}
if (this.berrycount=1)
{setimg bushred1.gif}
if (this.berrycount=0)
{setimg bushred0.gif}
timeout=2;
}
if (actionberry&&this.berrycount>0) {
this.berrycount=this.berrycount-1;
if (this.berrycount=4)
{setimg bushred4.gif}
if (this.berrycount=3)
{setimg bushred3.gif}
if (this.berrycount=2)
{setimg bushred2.gif}
if (this.berrycount=1)
{setimg bushred1.gif}
if (this.berrycount=0)
{setimg bushred0.gif}
if (playerdir==0) { putleaps 0,playerx+0.5,playery-1; };
if (playerdir==1) { putleaps 0,playerx-2,playery+1; };
if (playerdir==2) { putleaps 0,playerx+0.5,playery+2.5; };
if (playerdir==3) { putleaps 0,playerx+3,playery+1; };
setstring client.berrycount,#v(strtofloat(#s(client.berrycou nt))+1);
}
//#CLIENTSIDE
if (created)
{
setgif bushred4.gif
}

i am having trouble getting this to work online. Any one have any tips. it doesn't seem to be performing the actionberry.
__________________

 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 07:35 AM.


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