CODE
ScriptName 00GreyCowlscript
Short 00pccrimegold
Short 00pcfame
Short 00pcinfamy
Short 00playerinfamy
Short 00playerfame
Short 00playergold
Short 00tempcrimegold
Short 00tempfame
Short 00tempinfamy
Begin OnAdd
Set 00playergold to 0
Set 00playerfame to 0
Set 00playerinfamy to 0
End
Begin OnEquip Player
Set 00tempcrimegold to player.getcrimegold
Set 00tempfame to player.getpcfame
Set 00tempinfamy to player.getpcinfamy
player.setcrimegold 00playergold
player.setpcfame 00playerfame
player.setpcinfamy 00playerinfamy
End
Begin OnUnequip Player
set 00playergold to player.getcrimegold
set 00playerfame to player.getpcfame
set 00playerinfamy to player.getpcinfamy
player.setcrimegold 00tempcrimegold
player.setpcfame 00tempfame
player.setpcinfamy 00tempinfamy
End
Short 00pccrimegold
Short 00pcfame
Short 00pcinfamy
Short 00playerinfamy
Short 00playerfame
Short 00playergold
Short 00tempcrimegold
Short 00tempfame
Short 00tempinfamy
Begin OnAdd
Set 00playergold to 0
Set 00playerfame to 0
Set 00playerinfamy to 0
End
Begin OnEquip Player
Set 00tempcrimegold to player.getcrimegold
Set 00tempfame to player.getpcfame
Set 00tempinfamy to player.getpcinfamy
player.setcrimegold 00playergold
player.setpcfame 00playerfame
player.setpcinfamy 00playerinfamy
End
Begin OnUnequip Player
set 00playergold to player.getcrimegold
set 00playerfame to player.getpcfame
set 00playerinfamy to player.getpcinfamy
player.setcrimegold 00tempcrimegold
player.setpcfame 00tempfame
player.setpcinfamy 00tempinfamy
End
When i tested it, it seems to work, until i went back into the editor and found out that the current esp i made somehow lost the script for the cowl... Gonna retest it again with the script on and hoped for it to work.
UPDATE: Yes it does work, although this script only saves the bounty, fame, and infamy, I still need to work on adding more functions to it. Maybe a more balanced stat boost too?