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
kill player without ApplyDamage / RawDamage

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

Author Message
hunt3r



Joined: 25 Mar 2008
Posts: 11

PostPosted: Wed Apr 02, 2008 11:30 pm    Post subject: kill player without ApplyDamage / RawDamage Reply with quote

Any ideas on how to kill a player without using ApplyDamage / ApplyRawDamage...

The most of the scripts I saw uses that, the problem is, if I use it, it applies the "Reputation System" as well... that isn't interesting to me...

any sugestions?

thanks

Author Message
ncrsn



Joined: 10 Feb 2006
Posts: 173

PostPosted: Thu Apr 03, 2008 9:27 am    Post subject: Reply with quote

There is no other way to kill the mobile, as far as I know. But have no fear, you can script around this. POL 097 introducted repsys hook: you can eg set a cprop onto character before attacking, and in hook, decide it does not affect its reputation. Example of this exists in 097 distro, take a look.

Another way is to use SetScriptController (http://docs.polserver.com/pol097/singlefunc.php?funcname=SetScriptController&xmlfile=uoem.xml): unset it's value before applying damage, and reset its value after.

Author Message
hunt3r



Joined: 25 Mar 2008
Posts: 11

PostPosted: Thu Apr 03, 2008 10:02 am    Post subject: Reply with quote

roger that!

thanks for helping Smile

Author Message
hunt3r



Joined: 25 Mar 2008
Posts: 11

PostPosted: Thu Apr 03, 2008 10:09 am    Post subject: Reply with quote

Just to post results.

pol095 also implements the SetScriptController() function
and the method (2nd) you suggested works PERFECTLY!

thanks

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