Im Kinda a newb at this o.o
Shopkeeper
icon = 'Mobs.dmi'
icon_state = "shop1"
Click()
set src in oview(2)
switch(input("What would you like to buy?") in list ("Health Potion","Dagger","Sword","Shield","None"))
if("Health Potion")
src.contents.Add(new/obj/Health_potion)
if("Dagger")
if (usr.gold <= 50)
usr << "You do not have enough gold!"
if (usr.gold > 50)
usr.gold -= 50
src.contents.Add(new/obj/dagger)
if("Sword")
if (usr.gold <= 100)
usr << "You do not have enough gold!"
if (usr.gold > 100)
usr.gold -= 100
src.contents.Add(new/obj/sword)
if("Shield")
if (usr.gold <= 150)
usr << "You do not have enough gold!"
if (usr.gold > 150)
usr.gold -= 150
src.contents.Add(new/obj/shield)
if("None")
return
Problem description: The item isnt apearing in the inventory, just wondering why?