Help PlayerMobile.cs, Death, auto-requip

Ziru

Citizen
Hello..

i need help, i want to make insured item, and blessed items to be auto
re-equipped upon resurrection.. and i can't find how to apply that.

Note: I found that the Script Runuo's PlayerMobile.cs is different from Servuo's PlayerMobile.cs
 
Last edited:

Vorspire

Vita-Nex: Core
Administrator
ServUO Developer
I think in PlayerMobile.OnDeath, it sets up a list of all equipment but doesn't actually retain it, so you need to mess with that.

Code:
_EquipSnapshot = null;

Try this instead;
Code:
_EquipSnapshot = new List<Item>( Items );
 

Ziru

Citizen
----------------------------------------------------------------------------
ServUO - [http://www.servuo.com] Version 0.5, Build 5052.2132
Publish 54
Core: Optimizing for 2 64-bit processors
RandomImpl: CSPRandom (Software)
OpenUO Error: Client files not found.
Scripts: Compiling C# scripts...Failed with: 1 errors, 0 warnings
Errors:

+ Mobiles/PlayerMobile.cs:
CS0103: Line 2786: The name '_EquipSnapshot' does not exist in the current context

Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
if i put m_EquipSnapshot = new List<Item>( Items );
i get no errors but equipped items (insured or blessed) go to backpack.
and for insurred if you're a young, you loss money.