Full Version : Deleting playermobile using xmlfind?
xmlspawner >>Q&A >>Deleting playermobile using xmlfind?
<< Prev | Next >>
Sou- 07-28-2006
Is it possible to delete playermobile using xmlfind ? I want to delete some chars from my server GameTime>01:00:00
ArteGordon- 07-30-2006

QUOTE (Sou @ July 29, 2006 01:43 am)
Is it possible to delete playermobile using xmlfind ? I want to delete some chars from my server GameTime>01:00:00

you can search for the players that meet your gametime condition, but you wont be able to delete them. Xmlfind has built-in protection against doing that. You can do it manually by setting the Player flag to false on them and then bringing them to you with the Bring button and then manually deleting them.
First do the search that you want, and 'select all' with the checkbox in the lower right corner of the gump.
Then put into the Command text field this command string
set player false
and execute the command by pressing the button next to the Command field.
Then 'Bring' them to you and delete them by hand.
Sou- 07-30-2006
I must delete ~2000 chars x] This will be dificult but I will see what I can do using your method:)
Thx for help Arte!
ArteGordon- 07-30-2006

QUOTE (Sou @ July 30, 2006 02:12 pm)
I must delete ~2000 chars x] This will be dificult but I will see what I can do using your method:) Thx for help Arte!

well, I would just make this simple mod to xmlfind.cs around line 2540.

QUOTE
else // dont allow playermobile deletion if ((o is Mobile) && !(((Mobile)o).Player)) { try
{
((Mobile)o).Delete();
}
catch { }
}

That way, after you have set Player to false, you will be able to use the 'Delete' button to get rid of them.