PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
Regarding deleted characters

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> General Help (095)
Display posts from previous:   

Author Message
Yukiko



Joined: 02 Feb 2006
Posts: 1094
Location: Southern Central USA

PostPosted: Wed Nov 22, 2006 3:22 pm    Post subject: Regarding deleted characters Reply with quote

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.

Author Message
Marilla



Joined: 02 Feb 2006
Posts: 329

PostPosted: Wed Nov 22, 2006 6:07 pm    Post subject: Reply with quote

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.

Author Message
MuadDib
POL Developer


Joined: 13 Feb 2006
Posts: 830
Location: Indiana, USA

PostPosted: Wed Nov 22, 2006 7:23 pm    Post subject: Reply with quote

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. Smile

Author Message
Yukiko



Joined: 02 Feb 2006
Posts: 1094
Location: Southern Central USA

PostPosted: Wed Nov 22, 2006 8:34 pm    Post subject: Reply with quote

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 new topic   Reply to topic    PenUltima Online Forum Index -> General Help (095) All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty