[cbox]- script pvpbet -1,{
OnPCKillEvent:
if (strcharinfo(3) != "guild_vs2-2") end;
if (killedrid==getcharid(0)) end;
if (lastkilled==killedrid){
set lkcount,lkcount+1;
if (lkcount>=5){
dispbottom "You have Lose";
end;
}
else{
getitem 7179,1;
dispbottom "You have gained 1 money";
end;
}
}
else{
set lastkilled,killedrid;
set lkcount,1;
getitem 7179,1;
dispbottom "You have gained 1 money";
end;
}
OnPCDieEvent:
if (strcharinfo(3) != "guild_vs2-2") end;
dispbottom "You have Lose";
warp "Invek",146,164;
end;
}[/cbox]
the crash happens when...
scenario:
3 players consist of 1 shadow chaser, 1 killer, 1 victim
when shadow chaser uses shadow formation to victim and the killer kill them both by using AoE skills the server crash
maybe because the script dont knows who to give the prize whether the SC or the killer.
and please help add announcement
OnPCKillEvent:
if (strcharinfo(3) != "guild_vs2-2") end;
if (killedrid==getcharid(0)) end;
if (lastkilled==killedrid){
set lkcount,lkcount+1;
if (lkcount>=5){
dispbottom "You have Lose";
end;
}
else{
getitem 7179,1;
dispbottom "You have gained 1 money";
end;
}
}
else{
set lastkilled,killedrid;
set lkcount,1;
getitem 7179,1;
dispbottom "You have gained 1 money";
end;
}
OnPCDieEvent:
if (strcharinfo(3) != "guild_vs2-2") end;
dispbottom "You have Lose";
warp "Invek",146,164;
end;
}[/cbox]
the crash happens when...
scenario:
3 players consist of 1 shadow chaser, 1 killer, 1 victim
when shadow chaser uses shadow formation to victim and the killer kill them both by using AoE skills the server crash
maybe because the script dont knows who to give the prize whether the SC or the killer.
and please help add announcement
Last edited by a moderator: