Ok,I got the basic things done,now I need some help adding the following:
-When you select a hat to where and your already wearing it,it will go off.
-And the BIG one,instead of having them all,could you help me make it so you only get first 5 for free and the rest you buy?
this is the script so far:
NPC Code:
// NPC made by SeeD Captain /\/\ãxïmus Ðärkrïdër
if (playertouchsme) {
toweapons Hat NPC;
}
if (weaponfired) {
this.hb=1;
setani idle,;
setplayerdir down;
disabledefmovement;
timeout=.1;
}
if (timeout&&this.hb==1) {
if (keydown(1)) {
i--;
}
if (keydown(3)) {
i++;
}
if (keydown(5)) {
hideimg 200;
setstring client.hat,hat#v(i).png;
setplayerprop #P1,#s(client.hat);
setani haton,#s(client.hat);
enabledefmovement;
timeout =0.1;
this.hb=0;
}
showimg 200,hat#v(i).png,playerx-.06,playery-2;
changeimgpart 200,95,0,48,48;
timeout=.1;
if (i<0) {
i=0;
}
if (this.hb==0) {
hideimg 200;
}
}