
04-06-2002, 11:46 AM
|
|
Registered User
|
Join Date: Jun 2001
Posts: 244
|
|
Re: Alright!
Quote:
Originally posted by Saga2001
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?
|
Why not just use:
NPC Code:
setimg haticons.png;
setcharani hatnpc,#v(#s(this.item));
instead of setgifpart? |
__________________
Graal2001 NPC Maker
Frolic Owner
Aim: C Y B N E X T
|
|
|
|