![]() |
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: 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? |
Re: Alright!
Quote:
NPC Code: instead of setgifpart? |
try making the setgif clientsided
|
Quote:
|
What exactly is not working, you don't see it?
If the image (hatxxx.png) is on the server then it should work |
Quote:
|
Quote:
|
Quote:
I do believe that all the hats meet those requirements... |
Have you checked to see if it's properly passing the this.item string?
That's relatively easily done by just checking the local info on the level the NPC was just placed on. If that isn't it, I don't know. Though of course replacing setgifpart with setimgpart looks fancier :P |
I still purpose that there should be a simulation so people want to test out serverside npcs CAN test them out.
|
Quote:
|
Quote:
|
I agree with the gani stuff, it seems more.. sophisticated to me it seems
|
Quote:
Then it should be #s(this.item). |
if you do
item = blabla; putnpc x,y,blabla; with (npcs[npcscount-1]) { this.item = item; } it should work, you can also use the local npc attributes log (there is a button on the RC) to see if this.item is set correctly |
Why not set the image in the with operator?
with(npcs[npcscount-1]) { this.item = blahblahblah; setgif hat#v(this.item).png; } ???? I never tried it but im pretty sure it works. |
Quote:
|
| All times are GMT +2. The time now is 09:12 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.