well anyway... heres what I got
mob
Weaponer
icon = 'mobs.dmi'
icon_state = "weaponist"
name = "Weapon Sellsman"
NPC = 1
Click()
switch(input("Hello! What do you want to do?", "Weapon Shop", text) in list (Buy", "Sell", "Nothing"))
if("Buy")
switch(input("Hello! What do you wish to buy?", "Weapon Shop",text) in list ("Short Sword", "Nothing"))
if("Short Sword")
if(usr.gold <= 79)
alert("You do not have enough gold!")
if(usr.gold >= 80)
alert("You bought a Short Sword!")
usr.contents += new /obj/weapons/shortsword
usr.gold -= 80
usr.invent += 1
if("Nothing")
usr << "Thank you come again."
if("Sell")
var/obj/S = input("What do you want to Sell?","Sell") as null|obj in usr.contents
if(!S)
return
else
switch(input("Do you want to sell [S] for [S.sellprice]?")in list("Yes","No"))
if("Yes")
usr.contents -= S
if("No")
return
obj/var/sellprice
obj/weapons/shortsword
sellprice = 40
mob/proc/Sell(mob/M)
thats it.... can anyone help me?