Page 1 of 1
Self-Sparring... fixed?
Posted: Thu Mar 09, 2006 6:29 pm
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.
Posted: Thu Mar 09, 2006 10:14 pm
by Beaud
You can still, but you can denie it if you use if(attacker == defender)

Posted: Fri Mar 10, 2006 5:33 am
by MontuZ
What's the macro again? Target Next, Attack Last?
Posted: Fri Mar 10, 2006 11:06 am
by Beaud
Something like that yeah.
Posted: Fri Mar 10, 2006 11:54 am
by MontuZ
Wasn't working when I tried it...
Posted: Wed Mar 15, 2006 4:42 am
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
Posted: Wed Mar 15, 2006 8:30 am
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=
Posted: Wed Mar 15, 2006 4:31 pm
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).
Posted: Wed Mar 15, 2006 6:42 pm
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
Posted: Wed Mar 15, 2006 6:49 pm
by MontuZ
I agree with Maud. Don't know how you posted before me =/
Posted: Thu Mar 16, 2006 7:19 am
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)
Posted: Thu Mar 16, 2006 6:14 pm
by XtehseA
ok thanks alot for that.
Posted: Thu Mar 16, 2006 6:59 pm
by MuadDib
Next beta release, this is fixed in the Attack Request Packet check.
Posted: Sat Mar 18, 2006 10:07 am
by MuadDib
Fixed in 3-17 core release.