Self-Sparring... fixed?

Here you can post threads requesting help on the official POL Ultima Online Emulator Core 096.
Note: Core 096 is no longer officially supported.
Locked
User avatar
MontuZ
Forum Regular
Posts: 338
Joined: Fri Feb 10, 2006 8:08 am

Self-Sparring... fixed?

Post by MontuZ »

I checked out the changelog to see if anything on it was said about it. I've tried to self-spar in 096 and it didn't seem to work, but I just want to be 100% sure about it.
Beaud
Novice Poster
Posts: 41
Joined: Tue Feb 14, 2006 2:06 pm

Post by Beaud »

You can still, but you can denie it if you use if(attacker == defender) ;)
User avatar
MontuZ
Forum Regular
Posts: 338
Joined: Fri Feb 10, 2006 8:08 am

Post by MontuZ »

What's the macro again? Target Next, Attack Last?
Beaud
Novice Poster
Posts: 41
Joined: Tue Feb 14, 2006 2:06 pm

Post by Beaud »

Something like that yeah.
User avatar
MontuZ
Forum Regular
Posts: 338
Joined: Fri Feb 10, 2006 8:08 am

Post by MontuZ »

Wasn't working when I tried it...
Rince
New User
Posts: 12
Joined: Fri Feb 17, 2006 2:26 am

Post by Rince »

Add something like this to your hitscript's or combat hook

Code: Select all

if(attacker.serial==defender.serial)
 ApplyRawDamage(attacker,GetHp(attacker)+3);
 Sendsysmessage(attacker, "Cheaters must Die");
 return;
endif


User avatar
MontuZ
Forum Regular
Posts: 338
Joined: Fri Feb 10, 2006 8:08 am

Post by MontuZ »

Rince wrote:Add something like this to your hitscript's or combat hook

Code: Select all

if(attacker.serial==defender.serial)
 ApplyRawDamage(attacker,GetHp(attacker)+3);
 Sendsysmessage(attacker, "Cheaters must Die");
 return;
endif



http://forums.polserver.com/viewtopic.p ... highlight=
MuadDib
Former Developer
Posts: 1091
Joined: Sun Feb 12, 2006 9:50 pm

Post by MuadDib »

Hrm.............

Even though this IS a simple fix, I do not understand why ANY shard would want to allow self sparring (personally). I will speak with MadMan and see if we can throw in a line of code to block this in the core itself (no clue why it was never done).
XtehseA
New User
Posts: 22
Joined: Thu Feb 23, 2006 8:33 pm

Post by XtehseA »

i know this is in the pol96 forums but can this work in pol95?

bit of a stupid question but im new to escript
User avatar
MontuZ
Forum Regular
Posts: 338
Joined: Fri Feb 10, 2006 8:08 am

Post by MontuZ »

I agree with Maud. Don't know how you posted before me =/
Last edited by MontuZ on Thu Mar 16, 2006 6:53 pm, edited 1 time in total.
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Post by CWO »

XtehseA wrote:i know this is in the pol96 forums but can this work in pol95?

bit of a stupid question but im new to escript
Use that code a few posts above inside your hitscripts. That code will kill the person if the attacker is also the defender (person attacking himself)
XtehseA
New User
Posts: 22
Joined: Thu Feb 23, 2006 8:33 pm

Post by XtehseA »

ok thanks alot for that.
MuadDib
Former Developer
Posts: 1091
Joined: Sun Feb 12, 2006 9:50 pm

Post by MuadDib »

Next beta release, this is fixed in the Attack Request Packet check.
MuadDib
Former Developer
Posts: 1091
Joined: Sun Feb 12, 2006 9:50 pm

Post by MuadDib »

Fixed in 3-17 core release.
Locked