mob/salesman
icon = 'Player6.dmi'
NPC = 1
verb
Talk()
set src in oview(1)
switch(input("What would you like to buy")in list("Pickaxe"))
if("Pickaxe")
if(usr.gold<=32)
usr<<"You need more gold! You only have [usr.gold]!"
return
else
usr<<"You buy a pickaxe."
usr.contents+=new/obj/pickaxe
sleep(5)
usr<<"Come again!"
return
returnobj
pickaxe
icon = 'Pickaxe.dmi'
verb/Get()
set src in oview(0)
usr.contents+=new/obj/pickaxe//This adds a mace to usr.contents
del(src)
ID:268410
Jul 15 2004, 2:02 am (Edited on Jul 15 2004, 2:08 am)
|
|
how do I make it so that the icon is beside the option to buy it in the list?
|
(someone correct me if I'm wrong)