Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-14-2001, 04:57 AM
Blaikie Blaikie is offline
Registered User
Join Date: Nov 2001
Posts: 6
Blaikie is on a distinguished road
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ƒ
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:37 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.