Code
obj/shopkeeper //the shopkeeper
icon = 'NPC.dmi'
icon_state = "BunnyBunnie"
density = 1 //so you can't walk on the shopkeeper
verb/Buy() //the verb
set src in oview(2) //pops up if shop keeper is 1 block away
var/Buying = input("[src]: Hello, what would you like?")in list("Healing_Herb (5GP)","Cancel") //alert pops up with the option of the orbs and cancel, one oyu pick is stored in the var Buying
if(Buying == "Healing_Herb (5GP)") //if you chose Green Orb (10GP)
if(usr.gold >= 5) //if usr's gold is greater than or equal to 10
usr.gold -= 5 //takes 10 away from usr's gold
new/obj/Healing_Herb(usr) //creates a new green orb, and places it in usr
verb/Sell(var/obj/O in usr)//the Sell verb, it lets you pick an object from your inv
set src in oview(2) //if src is atleast 1 block away
switch(alert("[src]: Are you sure you want to sell [O] for [O.price] gold?","Selling","Yes","No")) //pop up with the buttons Yes and No
if("Yes") //if you pressed Yes
usr.gold += O.price //usr's gold is plus by O's Priccce
del(O) //deletes the object
obj
var
price = 0 //items worth
icon = 'Items.dmi'
Healing_Herb //the green orb
icon_state = "Herb"
price = 3 //the green orb's worth
can help me out?