obj
items
tools
verb/Equip()
set src in usr
set category = null
if(!usr.weaponequiped)
src.verbs+=/obj/items/tools/verb/Unequip
src.verbs-=/obj/items/tools/verb/Equip
src.suffix+="Equiped"
usr.overlays += src
usr.weaponequiped = 1
else
usr << "You already have something equipped!"
verb/Unequip()
if(!usr.weaponequiped)
usr << "You don't have anything equipped!"
else
src.verbs-=/obj/items/tools/verb/Unequip
src.verbs+=/obj/items/tools/verb/Equip
src.suffix = ""
usr.overlays -= src
usr.weaponequiped = 0
Axe
icon = 'Tools.dmi'
icon_state = "Axe"
layer = MOB_LAYER + 1
Type = "Tool"
SellingPrice = 20
ID:174892
Jul 9 2003, 6:38 pm
|
|
Gah for some reason the overlay wont disapear when I unequip but the prefix "Equipped" disapears from the item...Here's my coding:
|
Jul 9 2003, 10:09 pm
|
|
if you have no other overlays besides that type you could try usr.overlays-= overlays. that would get rid of all the overlays a player has. if this doesnt help i apologize.
|
In response to Siefer
|
|
usr.overlays = null I usually use
|
In response to Da_Rushyo
|
|
I cant do that because the players arms and legs are overlays..
|