Thread: Alright!
View Single Post
  #1  
Old 04-06-2002, 07:01 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Alright!

I have been working on this hat trading npc ever since Bhala decided to mess with it...and now...setgif isn't working...
So I post this qustion here to those of you who are leeter than I. Also its not that setgif needs to be cs because if i setgif door.png; it works fine, i think its not evaluating correctly and the .png is getting chopped or something.

NPC Code:

putnpc2 aimx,aimy,{
if (created) {
setshape 1,48,48;
setgifpart hat#v(this.item).png,96,0,48,48;
}
if (playertouchsme) {
hatc = strtofloat(#s(hatc#v(this.item)))+1;
setstring client.hatc#v(this.item),#v(hatc);
savelog2 hat-log.txt, +hat: #v(this.item) at (#v(x),#v(y)) in #L from #s(this.layer);
destroy;
}
};



I know its in the setgif cause it works fine with showimg and also another thing, setimg doesn't work and those places on the image with the setgifpart are correct...everything is setting right cept the setgif...any suggestions?
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it