View Single Post
  #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.
__________________