mob/NPC/Shopkeeper
icon = 'Shops.dmi'
icon_state = "Vegeta"
Click()
set src in oview(1)
switch(input("What would you like to buy today?","Stuff",text) in list ("ZSword","Nimbus","Cancel"))
if("ZSword")
if(src.Zenni < 10000)
src << "<b>You dont have enough!"
if(src.Zenni >= 10000)
src << "<b>You bought a ZSword!"
src.contents += new/obj/ZSword(src)
src.Zenni -= 10000
if("Nimbus")
if(src.Zenni < 1000)
src << "<b>You dont have enough!"
if(src.Zenni >= 1000)
src << "You bought a Nimbus!"
src.contents += new/obj/Nimbus(src)
src.Zenni -= 1000
obj
var
price = 0
icon = 'Shops.dmi'
ZSword
icon_state = "ZSword"
Nimbus
icon_state = "Nimbus"
density = 0
Problem description: