[Request/HELP] no pk points in pka

06/13/2009 04:01 editor05#1
Hi,

Anyone can help me out here for no pk points and no flashing in pk arena?

If someone can guide, then maybe i can make the rest of it like jail, Guild Area, or anywhere else i can specify on the code...

Thanks. thanks. thanks.
06/13/2009 04:12 Zeroxelli#2
Code:
if (CSocket.Client.Map == Struct.Maps.Arena)
    break;
06/13/2009 04:27 editor05#3
Thanks Zeroxelli...

What .cs should i mess with that?
06/13/2009 04:31 Zeroxelli#4
Calculations/doMonsterPlayer.cs I believe.
06/13/2009 15:36 editor05#5
Quote:
Originally Posted by Zeroxelli View Post
Calculations/doMonsterPlayer.cs I believe.
Honestly... im lost... don't know how and where to add.. maybe you can start me more then i take the rest of it... maybe a template... Pls?
06/13/2009 21:38 Zeroxelli#6
CTRL + F

Search for
Code:
CSocket.Client.PkPoints += 10;
06/14/2009 00:12 WHITELIONX#7
No enclosing loop out of which to break or continue o.0
06/14/2009 00:40 Zeroxelli#8
Replace 'break;' with 'return;' then, I haven't checked the code in some time now.
06/14/2009 01:09 mejo33#9
Quote:
Originally Posted by WHITELIONX View Post
No enclosing loop out of which to break or continue o.0
search:
Quote:
CSocket.Client.PkPoints += 10;
add under it:
Quote:
if (CSocket.Client.Map == Struct.Maps.Arena)
return true;
06/14/2009 05:11 editor05#10
thanks to you guys.. but i got a problem, once killed in pka, can't revive anymore, or the revive button is gone...

the code below i have.

if(AType != 21)
ConquerPacket.ToLocal(ConquerPacket.Attack(Attacke r.ID, AttackedChar.ID, Attacker.X, Attacker.Y, Damage, AType), Attacker.X, Attacker.Y, (int)Attacker.Map, 0, 0);
ConquerPacket.ToLocal(ConquerPacket.Attack(Attacke r.ID, AttackedChar.ID, AttackedChar.X, AttackedChar.Y, Damage, 14), Attacker.X, Attacker.Y, (int)Attacker.Map, 0, 0);
ConquerPacket.ToLocal(ConquerPacket.Status(ASocket , 2, AttackedChar.GhostModel, Struct.StatusTypes.Model), AttackedChar.X, AttackedChar.Y, (int)AttackedChar.Map, 0, 0);
CSocket.Client.PkPoints += 10;
if (CSocket.Client.Map == Struct.Maps.Arena)
return false;
if(ASocket.Client.Flashing)
ASocket.Client.Flashing = false;

am i missing somethin?

thanks again...
06/14/2009 05:58 velorian#11
Forgive me for being so noobish, but C isn't one of my native languages xD

How would you make multiple declarations in the same statement?
So say, I want to remove penalties in PKA, jail, and the Guild area - Is that coded as:
Code:
if (CSocket.Client.Map != Struct.Maps.Arena||CSocket.Client.Map != Struct.Maps.prison||CSocket.Client.Map != Struct.Maps.faction)
CSocket.Client.PkPoints += 10;
else.......
06/14/2009 06:05 Zeroxelli#12
Yeah, you got it right.
06/14/2009 06:58 editor05#13
Code:
if (CSocket.Client.Map != Struct.Maps.Arena||CSocket.Client.Map != Struct.Maps.prison||CSocket.Client.Map != Struct.Maps.faction)
CSocket.Client.PkPoints += 10;
Just a noob question.... I was wondering if there are any other .cs files to messed with except from the doMonsterPlayer.cs

Cause revive button is missing with above code and also no flash too and no pk points but when you log out and log back in... the pk points is posted...

any help... pls... thanks
06/17/2009 14:20 editor05#14
anyone help here?
06/18/2009 22:08 dextercsar#15
.