It is currently Fri Dec 05, 2008 1:47 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Regarding deleted characters
PostPosted: Wed Nov 22, 2006 11:22 am 
Offline
Certified POL Expert
User avatar

Joined: Thu Feb 02, 2006 1:41 pm
Posts: 1223
Location: Southern Central USA
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.

_________________
Sincerely,
Yukiko

I know you think you understand what you thought I said but what you heard is not exactly what I meant.

Titus 2:13


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 22, 2006 2:07 pm 
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.


Top
  
 
 Post subject:
PostPosted: Wed Nov 22, 2006 3:23 pm 
Offline
POL Developer
User avatar

Joined: Sun Feb 12, 2006 9:50 pm
Posts: 843
Location: Bowling Green, KY
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. :)

_________________
POL Developer - The Penguin Scripter


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 22, 2006 4:34 pm 
Offline
Certified POL Expert
User avatar

Joined: Thu Feb 02, 2006 1:41 pm
Posts: 1223
Location: Southern Central USA
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*

_________________
Sincerely,
Yukiko

I know you think you understand what you thought I said but what you heard is not exactly what I meant.

Titus 2:13


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl