but the announce below, when i Kill player in the PVP room is not working!
}
if(.Options&4)
announce "[PVP]: "+strcharinfo(0)+" has slain "+ rid2name(LastPK) + ((RepeatKill)?" for the "+callfunc("F_GetNumSuffix",RepeatKill)+" time in a row":"") +".",bc_all;
}
end;
hello there, i have a problem with my pvp script:
} announce "[ BattleRoyale ] "+strcharinfo(0)+" has entered in "+((.MapMode[[email protected]]&1)?"GvG":"PvP")+" Room",0,((.MapMode[[email protected]]&1)?0x00CC99:0xEE0000); warp [email protected]$[[email protected]],0,0; end; //================================== OnPCKillEvent: //-- Adding Stats //================================== if(!getgmlevel() || .Options&512){ if(LastPK == killedrid) RepeatKill++; else { LastPK = killedrid; RepeatKill = 0; } if(.Options&4) announce "[PVP]: "+strcharinfo(0)+" has slain "+ rid2name(LastPK) + ((RepeatKill)?" for the "+callfunc("F_GetNumSuffix",RepeatKill)+" time in a row":"") +".",bc_all; } end; //================================== OnInit: //-- Config //================================== // Gets NPC Name // Lets you change NPC name without breaking anything .NPC$ = strnpcinfo(0); // At_Commands bindatcmd("BattleRoyale" ,.NPC$+"::OnBattleRoyale",0,99); bindatcmd("BattleRoyale" ,.NPC$+"::OnBattleRoyale",0,99); bindatcmd("BattleRoyale" ,.NPC$+"::OnBattleRoyale",0,99); bindatcmd("BattleRoyale" ,.NPC$+"::OnBattleRoyale",0,99); // Bitwise Variable // 1: Record PvP // 2: Record GvG (agit on and gvg map) // 4: Announce When Someone gets a kill // 8: Record Total Guild Stats // 16: Gain PvP Points on Kills (#PvpPoints) // 32: Repeat Kill Protection // 64: Warp to Save on abuse // 128: Monthly Stats // 256: Order by KDA instead of most kills // 512: Allow GMs to Join PvP // 1024: Request a GM on Abuse // 2048: Enable Waiting Room // 4096: Dynamic Waiting Room .Options = 1|2|4|8|16|32|128|256|1024;//|2048|4096;The First announce i put below, is working.
} announce "[ BattleRoyale ] "+strcharinfo(0)+" has entered in "+((.MapMode[[email protected]]&1)?"GvG":"PvP")+" Room",0,((.MapMode[[email protected]]&1)?0x00CC99:0xEE0000); warp [email protected]$[[email protected]],0,0; end;but the announce below, when i Kill player in the PVP room is not working!
} if(.Options&4) announce "[PVP]: "+strcharinfo(0)+" has slain "+ rid2name(LastPK) + ((RepeatKill)?" for the "+callfunc("F_GetNumSuffix",RepeatKill)+" time in a row":"") +".",bc_all; } end;Can someone help me to set up?
thanks.
Link to comment
Share on other sites