Hello,
Can someone help me to fix this script.
this should give the party 2 points per kill and will lose 1 point if one of them die.
How ever I have no idea what to use in OnPCDieEvent and when i use this same format it just adds two points on the killer party not deducting on the party which has killed member.
OnPCKillEvent:
if (strcharinfo(3) == "guild_vs1") {
announce "The party: "+ strcharinfo(1) +" gained 2 points",bc_map;
if( getcharid(1) == .Teamr ){
set .rpoints,.rpoints + 2;
announce "The party: "+ strcharinfo(1) +" now has ("+ .rpoints +") points",0;
}
if( getcharid(1) == .Teamb ){
set .bpoints,.bpoints + 2;
announce "The party: "+ strcharinfo(1) +" now has ("+ .bpoints +") points",0;
}
if( getcharid(1) == .Teamg ){
set .gpoints,.gpoints + 2;
announce "The party: "+ strcharinfo(1) +" now has ("+ .gpoints +") points",0;
}
if( getcharid(1) == .Teamy ){
set .ypoints,.ypoints + 2;
announce "The party: "+ strcharinfo(1) +" now has ("+ .ypoints +") points",0;
}
}
end;
OnPCDieEvent: <<<<<------------ dunno what to do here.