viewing paste OnPCKillEvent-Yoh Asakura | Athena

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
PointsPvP:
getitem 7420,1;
if (playerattached() == killedrid) end;
getmapxy(@map$,@x,@y,0);
set @CID,getcharid(0);
set @points,0;
set @name$,"";
query_sql "SELECT `pointss_pvp` FROM `rank_pvp` WHERE `char_id`="+@CID+"",@points;
query_sql "SELECT `char_name` FROM `rank_pvp` WHERE `char_id`="+@CID+"",@name$;
if (@nome$ == ""){
query_sql "INSERT INTO `rank_pvp` (`char_id`,`char_name`,`points_pvp`) VALUES ("+@CID+",'"+strcharinfo(0)+"',1)",@esc$;
dispbottom "Pontos PvP Master: 1";
}
query_sql "UPDATE `rank_pvp` SET `points_pvp` = `points_pvp` +1 WHERE `char_id`="+@CID+"",@esc$;
dispbottom "Total PvP Points: "+(@points+1);
}
Viewed 372 times, submitted by unknown.