}
announce "[ BattleRoyale ] "+strcharinfo(0)+" has entered in "+((.MapMode[.@m]&1)?"GvG":"PvP")+" Room",0,((.MapMode[.@m]&1)?0x00CC99:0xEE0000);
warp .@Maps$[.@i],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[.@m]&1)?"GvG":"PvP")+" Room",0,((.MapMode[.@m]&1)?0x00CC99:0xEE0000);
warp .@Maps$[.@i],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;
Question
squall91x
hello there, i have a problem with my pvp script:
} announce "[ BattleRoyale ] "+strcharinfo(0)+" has entered in "+((.MapMode[.@m]&1)?"GvG":"PvP")+" Room",0,((.MapMode[.@m]&1)?0x00CC99:0xEE0000); warp .@Maps$[.@i],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[.@m]&1)?"GvG":"PvP")+" Room",0,((.MapMode[.@m]&1)?0x00CC99:0xEE0000); warp .@Maps$[.@i],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
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.