I have the right code for a merchant or salesperson but how do you make the saleperson have it???
the code is:
turf/WeaponGuy
verb
Talk()
set src in oview(1)
input("What would you like to buy?")in list("Stick $10", "Nothing")
usr << "That is 10 gold, are you sure?"
if(usr.gold<=9)
usr << "Im sorry, you don't seem to have enough for that item"
if("Nothing")
usr << "Ok"
else
if(usr.gold-=10
usr << "Thank You"
usr.overlays += 'Stick.dmi'
usr.sight = 0
ID:149765
![]() Feb 20 2002, 2:22 pm
|
|