kill player without ApplyDamage / RawDamage

Here you can post threads requesting help on the official POL Ultima Online Emulator Core 095. Note: Core 095 is no longer officially supported.
Post Reply
User avatar
hunt3r
New User
Posts: 11
Joined: Tue Mar 25, 2008 11:17 am

kill player without ApplyDamage / RawDamage

Post 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
User avatar
ncrsn
Grandmaster Poster
Posts: 255
Joined: Fri Feb 10, 2006 12:15 am

Post 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.
User avatar
hunt3r
New User
Posts: 11
Joined: Tue Mar 25, 2008 11:17 am

Post by hunt3r »

roger that!

thanks for helping :)
User avatar
hunt3r
New User
Posts: 11
Joined: Tue Mar 25, 2008 11:17 am

Post by hunt3r »

Just to post results.

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

thanks
Post Reply