And it STILL DON'T WORK DAMN IT!
Do I have to post my whole damn game?
verb/EquipUnequip()
if (src.Equiped == 0)
if (src.weapon == 1)
if (usr.weapon == "Melee Ability")
src.Equiped = 1
src.layer = 8
usr.Overlays+=src
usr.update()
usr.weapon = "[src]"
usr.attack += src.attack
usr << "You equip the [src]."
src.suffix="Equiped" // It's called suffix
else
usr << "You have a weapon equiped! Unequip your [usr.weapon]."
else
if (src.shield == 1)
if (usr.shield == "")
src.Equiped = 1
src.layer = 7
usr.Overlays+=src
usr.update()
usr.shield = "[src]"
usr.defence += src.defence
usr << "You equip the [src]."
src.suffix="Equiped" // It's called suffix
else
usr << "You have a shield equiped! Unequip your [usr.shield]."
else
if (Equipable == 1)
src.Equiped = 1
src.layer = 6
usr.Overlays+=src
usr.update()
usr << "You equip the [src]."
src.suffix="Equiped" // It's called suffix
else
usr << "You can't equip this."
else
if (src.weapon == 1)
if (usr.weapon == "[src]")
src.Equiped = 0
src.suffix="" // It's called suffix)
usr.overlays-=src
usr.update()
usr.attack -= src.attack
usr.weapon = "Melee Ability"
usr << "You unequip the [src]."
else
if (src.shield == 1)
if (usr.shield == "[src]")
src.Equiped = 0
src.suffix="" // It's called suffix
usr.overlays-=src
usr.update()
usr.defence -= src.defence
usr.shield = ""
usr << "You unequip the [src]."
else
src.Equiped = 0
src.suffix="" // It's called suffix
usr.overlays-=src
usr.update()
usr << "You unequip the [src]."
Replace
usr.overlays+=src
to
usr.Overlays+=src
usr.update()
------------------
Replace
usr.overlays-=src
to
usr.Overlays-=src
usr.update()
Remove the thing at logout(), and voila. I seriously can not understand how the heck you're still having troubles, and let me tell you, PLENTY of them cover overlays.