a new technique has been found in this topic, by abusing SQL table to save the kills
so this will effectively break the limit of player data storage, rendering it unlimited
/*
create table last_pvp_kill (
id int(11) unsigned primary key auto_increment,
killercid int(11) unsigned not null,
killedcid int(11) unsigned not null,
count smallint(6) unsigned,
key (killercid),
key (killedcid)
) engine = innodb;
*/
- script jfhdksfjhsk -1,{
OnClock0000:
query_sql "truncate last_pvp_kill;";
end;
OnPCKillEvent:
if ( killedrid == getcharid(3) ) end;
if ( query_sql( "select count from last_pvp_kill where killercid = "+( .@killercid = getcharid(0) )+" and killedcid = "+( .@killedcid = getcharid( 0, rid2name( killedrid ) ) ), .@count ) ) { // check if the user is in the list
if ( .@count == .max_skull ) {
dispbottom "you have reach the max amount of skull for that player today";
end;
}
query_sql "update last_pvp_kill set count = count +1 where killercid = "+ .@killercid +" and killedcid = "+ .@killedcid;
}
else
query_sql "insert into last_pvp_kill values ( null, "+ .@killercid +", "+ .@killedcid +", 1 )"; // insert into table
getitem2 7420, 1,1,0,0, 254, 0, .@killedcid % ( 1 << 16 ), .@killedcid >> 16;
end;
OnInit:
.max_skull = 3;
end;
}