
11-14-2001, 04:57 AM
|
|
Registered User
|
Join Date: Nov 2001
Posts: 6
|
|
Medal Maker
|
I am making an NPC that lays Gold, Silver and Bronze NPC medals.
The medals are just for show in the players inventory it's mainly for my guild but i'm having some problems with certain areas.
It's just a simple script, I can get the NPC to lay all the medals
but only once and then never again! I am also trying to make it so that I can only operate the NPC and no one else.
It would be great if someone could help me out.
-Lay the medals more than once!
-Only I can operate the NPC!
Medal layer -
if (playerenters && !strequals(#a,this.owner))
setlevel2 houseoutside.graal,35.5,14;
if (playerenters) {show;
}
if (playerchats&&strequals(#c,Gold Medal) {
show();
}
if (playerenters&&!strequals(#a,this.owner))
setlevel2 houseoutside.graal,35.5,14;
if (playerenters) {show;
}
if (playerchats&&strequals(#c,Silver Medal) {
show();
}
if (playerenters&&!strequals(#a,this.owner))
setlevel2 houseoutside.graal,35.5,14;
if (playerenters) {show;
}
if (playerchats && strequals(#c,Bronze Medal) {
show();
Medals -
if (playerenters) {
}
if (playertouchsme) {
}
if (playerenters) hide;
if (strcontains(#c,Gold Medal)) show;
if (playerenters) {
}
if (playertouchsme) {
dontblock;
toweapons Gold Medal;
toinventory flag;
hide;
}
if (weaponfired) {
say2 This is a Gold Medal!;
i = strtofloat(#s(Ammo)) - 1;
play goal.wav;
if (i == 0) {
setstring Ammo,;
}
setstring Ammo,#v(i);
}
if (weaponfired)
damage = 1.damage;
damagegetype = 1;
this.active = 1;
The silver and bronze medals are just the same as above. |
__________________
"Life is like an ashtray, full of little doubts!"
-mØØnÇãLƒ
|
|
|
|