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
DestroyItem() on equipped item

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> Feature Suggestions
Display posts from previous:   

Author Message
ncrsn



Joined: 10 Feb 2006
Posts: 107

PostPosted: Thu Aug 16, 2007 6:02 am    Post subject: DestroyItem() on equipped item Reply with quote

Case is, I need to change various things in character every time he/she equips or unequips an item. Equiptest and unequiptest can do this well, but if equipped item is destroyed scripts cannot react on this because DestroyItem() does not activate unequipscripts.

There are some options to this problem. Doing scripts or adding destroyscript into itemdesc.cfg to every equipable item, OR, this could be handled changing DestroyItem to activate unequip and unequiptest if item is equipped and to be destroyed.

I would not like to step into the swamp of hardconfiguring by adding the DestroyScript-property to every equipable item. Some items already have different destroyscripts and playing around with those would probably destroy me.

Scripting around this is possible, making, say, DestroyObject()-function that makes the needed checks and then changing every instance of DestroyItem() to that. Or by making a script that keeps count of items equipped and reacts when something disappears 'out of nowhere', is destroyed. Still it is shame that this kind of solutions are needed.

So my wish is that DestroyItem would activate unequipscripts.

Realizing that the core development is going slow right now, I'm likely to do one-more-workaround. Glad POL allows them, things could be worse. Though, things could be better, too. I could have spend this time on scripting.

Author Message
MontuZ
Distro Developer


Joined: 10 Feb 2006
Posts: 286
Location: Myrtle Beach, South Carolina

PostPosted: Fri Aug 17, 2007 5:53 am    Post subject: Reply with quote

Better get used to relentless time consuming tasks.

Post new topic   Reply to topic    PenUltima Online Forum Index -> Feature Suggestions All times are GMT - 4 Hours
Page 1 of 1

 




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