Graal Forums  

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

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 10-24-2001, 07:07 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
// NPC made by Pikaz (RC)
if (created)
{
this.berrycount=4;
}
if (playerenters) {
this.berrycount=4;
drawunderplayer;
}
timeout=2;
if (timeout&&this.berrycount<4)
{
this.berrycount=this.berrycount+1;
timeout=2;
}
if (actionberry&&this.berrycount>0) {
this.berrycount=this.berrycount-1;
setstring client.berrycount,#v(strtofloat(#s(client.berrycou nt))+1);
}
//#CLIENTSIDE
if (actionberry&&this.berrycount>0)
{
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; };
}
timeout=2;
if (timeout)
{
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 (created)
{
setgif bushred4.gif
}

ok here i switched it to this. now the image bushred0.gif keeps showing up even though i have it set as this.berrycount=4 at the begining. Also if hnage it to if (this.berrycount>-1) i get the leaps but this.berrycount doesn't subtract any or does the string add to it self.(of course as stated above this all does work offline)
__________________

 


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:21 AM.


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