Regarding deleted characters

Here you can post threads requesting help on the official POL Ultima Online Emulator Core 095. Note: Core 095 is no longer officially supported.
Post Reply
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Regarding deleted characters

Post by Yukiko »

I have been trying to find where a deleted characters "stuff" is removed from the world data files when a player deletes her character. I looked at ondelete.src in ..\scripts\misc and all it does is verify the existence and "deletability" of the character and returns a true or false to the caller. So if anyone can tell me where the equipped items, banlbox etc are removed upon deletion of a char I would appreciate it.

Thanks.
Marilla

Post by Marilla »

I have sometimes found in scripts that I have seen that bank boxes actually are not ever deleted when a character is deleted, in some script sets. Obviously, this is a very bad thing. You should definitely make sure to add in ondelete.src to search for and delete bank boxes.

Equipped items/inventory, on the other hand, are not deleted via script, nor do they need to be; They are deleted automatically because their 'container' is deleted: the PC itself is a 'container' of all the items equipped on it.
MuadDib
Former Developer
Posts: 1091
Joined: Sun Feb 12, 2006 9:50 pm

Post by MuadDib »

Check the latest distro sets for examples. Nothing is really done, in major, for this in the core. Reason being, so much can be done in scripts for adding storage and so forth for characters, we felt it was best to let the scripts of ondelete handle this. Remember, ondelete CAN be packaged. So if you got a package that links to characters for stuff, have an ondelete there to handle removing that stuff when the character is deleted. Like Bankboxes, houses, serials from global props or datafiles, etc. If you check distro, we even check with OnDelete for gump caches to remove those. :)
Yukiko
Distro Developer
Posts: 2826
Joined: Thu Feb 02, 2006 1:41 pm

Post by Yukiko »

Yes Marilla. I am currently working with POL 95 Distro that has been converted to POL 96 compatibility and there seems to be no removal of storage relating to deleted characters. I will remedy that however. But I do have a question for you. You said that items "in" a character get deleted when that character is deleted because a character is seen as a container. That is obviously a core function then right? I mean it's handled by the same part of the core that deletes items when we destroy a crate or box I would guess.

Thanks Maud for giving us the control there. I cannot tell you how happy I am that we now have total control over spell casting. I have atleast one spell that I can now implement (if I ever get to it that is) because you gave us that.

It's too bad that there isn't some way to give us absolute control over everything, in POL that is.

*grins*
Post Reply