//This is what i use to remove the overlay from the player icon
usr.overlays-=icon(icon)
//This is is what I save
F["Player"] << src
F["Verbs"] << verbs
Problem description:
The problem has to do with my equip system. I have one system that does all the work and just list of weapons and stats for it and run it threw the equip system.
I can equip and unequipped everything fine until I save and log-out, if I leave something equipped and try to unequipped it all the stats do what they should do but the overlay won't be removed. I've even tried it with just a single sword and it does the same thing it works fine until i save and log out and then it won't remove the overlay.
Code:
obj/Equip
Blazing_Sword
icon = 'BlazingSword.dmi'
icon_state = "show"
verb
Get()
set src in oview(1)
usr.contents+=new/obj/Equip/Blazing_Sword
usr.UpdateInventory()
del src
Drop()
src.Move(usr.loc)
usr.overlays-=icon(icon)
usr.verbs -= /mob/Skill/verb/Blazing_Cannon
usr.UpdateInventory()
Equip()
usr<<"You equiped [src]."
usr.overlays+=icon(icon)
usr.verbs += /mob/Skill/verb/Blazing_Cannon
usr.UpdateInventory()
UnEquip()
usr<<"You unequiped [src]."
usr.overlays-=icon(icon)
usr.verbs -= /mob/Skill/verb/Blazing_Cannon
usr.UpdateInventory()
If any more info is needed let me know. Thanks