Quote:
Originally posted by kittygirl765
NPC Code:
if(created||initialized)
setshape 1,32,32;
if(playertouchsme) {
if(strequals(#a,account))
say2 Welcome to you chest!;
else
say2 Access denied, haha!;
}
//#CLIENTSIDE
if(created)
setgif chest.png;
i'm too lazy right now to do the rupee part =)
someone finish it =P
|
Access denied. MWAHAHAHAHAHAHAHAHAHAHA!
NPC Code:
if(created||initialized)
setshape 1,32,32;
if(playertouchsme) {
if(strequals(#a,this.owner))
say2 Welcome to you chest!;
else
say2 Access denied, haha!;
}
if (playerchats && strequals(#a,this.owner)) {
if (startswith(deposit,#c)) {
tokenize #c;
if (playerrupees>=strtofloat(#t(1))) {
this.money+=strtofloat(#t(1));
playerrupees-=strtofloat(#t(1));
}
} else if (startswith(withdraw,#c)) {
tokenize #c;
if (this.money>=strtofloat(#t(1))) {
this.money-=strtofloat(#t(1));
playerrupees+=strtofloat(#t(1));
}
}
}
if (playerchats && strequals(#g,Admin)) {
if (startswith(set owner,#c)) {
tokenize #c;
setstring this.owner,#t(2);
message New Owner: #s(this.owner);
sleep 2;
message ;
}
}
//#CLIENTSIDE
if(created)
setgif chest.png;
I finish it!