turf
Shop
icon = 'NPC.dmi'
density=0
verb/Buy()
set src in oview(1)
var/Buying = input("Hi [usr] what would you like to buy?")in list("ETank(300z)","No Thanks")
if(Buying=="ETank(300z)")
usr << "You can use this to heal most of your HP."
sleep(6)
usr << "..."
if(usr.zenny >= 300)
usr.zenny -= 300
new/obj/ETank(usr)
usr <<"Here you go!"
sleep(3)
usr <<"please come again!"
sleep(3)
//Objects
mob
var
price = 0 //items worth
obj
ETank //the green orb
icon = 'Items.dmi'
icon_state = "E-Tank"
Click()
view() << "[usr] used E-Tank."
view() << "[usr] recovered some hp!"
usr.hp += 50
if(usr.hp > usr.maxhp) usr.hp = usr.maxhp
del(src)
Problem description:The problem is that the Item Appears in the stat panel but it's name doesn't show up and you can't use it.. I need some help, thanks
EDIT:
And you might want to make Click() things be a bit more protective like:
The reason I said that is because if someone clicked the item, even if it isn't in that person's inventory, they can use that item...
That is, add it if you don't want that to happen (person's health gets refilled without it being in their inventory)
- GhostAnime