ID:268410
 
how do I make it so that the icon is beside the option to buy it in the list?
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)
I'm afraid you can't do that with an input. Or to my knowledge at least. One thing you could do though is make it appear beside the shopkeeper for a second or something after you select it. I know that's not really what you'd like, but you can't really do that with an input.

(someone correct me if I'm wrong)