BenedictionOil NPC Script Plz.

Borisi

LOMCN n00bie
Aug 27, 2005
8
0
12
Hi, can anyone do me a BeneOil Script plz. I've been writing down what i think it should be but it looks complete jibberish. Basically i want to charge them 200k for it. Thx in advance.

[@main]
#SAY
Hello <$USERNAME>\
Do you want a BenedictionOil?
<yes>
<No/@exit>
#IF
checkgold 200000
#SAY
Gratz, you have 200k here is your BenedictionOil!
#ELSESAY
You don't have enough gold, come back when you do.
<@exit>
 

GilgaMesh

Golden Oldie
Golden Oldie
Mar 12, 2004
698
1
155
St Helens
This should do it.


[@main]
#SAY
Hello <$USERNAME>\
Do you want a BenedictionOil?\ \ \ \ \ \
<yes/@yes> : <No/@exit>\

[@yes]
#IF
checkgold 200000
#ACT
Give BenedictionOil 1
take gold 200000
#SAY
Gratz, you have 200k here is your BenedictionOil!\ \ \ \ \ \ \
<Cheers/@exit>\
#ELSESAY
You don't have enough gold, come back when you do.\ \ \ \ \ \ \
<@exit>
 

Pebble

Golden Oldie
Golden Oldie
Jul 25, 2005
570
2
104
Essex, England
[@main]
#SAY
Hello <$USERNAME>\
Do you want a BenedictionOil?\ \
<Yes/@yesscript>\
<No/@exit>

[@yesscript]
#IF
checkgold 200000
#ACT
takegold 200000
give BenedictionOil 1
#SAY
Gratz, you have 200k here is your BenedictionOil!\ \
<Thanks /@exit>
#ELSESAY
You don't have enough gold, come back when you do.\ \
<OK/@exit>




Not sure if that's right, haven't done NPCs in ages.


EDIT: Don't matter Gilga's is right.
 
Last edited:

GilgaMesh

Golden Oldie
Golden Oldie
Mar 12, 2004
698
1
155
St Helens
Pebble you missed the 1 off the end of BenedictionOil, this means they won't get anything only loose out on money.