obj/Equip/Weapon/Click()
if(src in usr.contents) return
if(usr, "Equipment", "is-visible=true") return
if(alert("Would you like to buy this [src] for [price] money!","Buy","Yes","No")=="No")return
if(src in usr.contents)
return
if(usr.Gold>=price)
var/obj/s=new src.type
usr.contents+=s
usr.Gold-=price
s.suffix=null
usr.client.statpanel="Inventory"
else
alert(usr,"You don't have enough Gold.")
return
Problem description:
ok basically, how its set up is, you equip it. and it shows up into a winset. the problem is. its trying to buy the weapon, that you have equipped.
so instead of DblClick() to unequip. i get a message asking if i wanna buy it....how do i make it so that if i Click() inside the winset it doesnt give me that message