Page 1 of 1

kill player without ApplyDamage / RawDamage

Posted: Wed Apr 02, 2008 7:30 pm
by hunt3r
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

Posted: Thu Apr 03, 2008 5:27 am
by ncrsn
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/single ... e=uoem.xml): unset it's value before applying damage, and reset its value after.

Posted: Thu Apr 03, 2008 6:02 am
by hunt3r
roger that!

thanks for helping :)

Posted: Thu Apr 03, 2008 6:09 am
by hunt3r
Just to post results.

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

thanks