Diss Posted November 5, 2013 Posted November 5, 2013 /* 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; } hi this anniruru script limiting skull drop anyone can help me i want this script on designated map only to avoid feeding by dueling thnks to anniruru for very nice script . thnks for helping in advance Quote
Capuche Posted November 5, 2013 Posted November 5, 2013 OnPCKillEvent: - if ( killedrid == getcharid(3) ) end; + if ( killedrid == getcharid(3) || strcharinfo(3) != "<map name>" ) end; Quote
Diss Posted November 11, 2013 Author Posted November 11, 2013 OnPCKillEvent: - if ( killedrid == getcharid(3) ) end; + if ( killedrid == getcharid(3) || strcharinfo(3) != "<map name>" ) end; thanks sir its works i've try to add some map like this if ( killedrid == getcharid(3) || strcharinfo(3) != "prontera,geffen" ) end; or if ( killedrid == getcharid(3) || strcharinfo(3) != "prontera","geffen" ) end; but its not works and the script if i killed the char x3 for today after 2 days its say "you have reach the max amount of skull for that player today" anyone can helpme in this script thanks Quote
Patskie Posted November 11, 2013 Posted November 11, 2013 Multiple maps : OnPCKillEvent: - if ( killedrid == getcharid(3) ) end; + // || strcharinfo(3) != "<map name>" + if ( killedrid == getcharid(3) || strcharinfo(3) != "<map name>" || strcharinfo(3) != "<map name>" ) end; Quote
Diss Posted November 14, 2013 Author Posted November 14, 2013 Multiple maps : OnPCKillEvent: - if ( killedrid == getcharid(3) ) end; + // || strcharinfo(3) != "<map name>" + if ( killedrid == getcharid(3) || strcharinfo(3) != "<map name>" || strcharinfo(3) != "<map name>" ) end; hi sir can you help me again the script if i killed the char x3 for today after 2 days its say "you have reach the max amount of skull for that player today" anyone can helpme in this script thanks sir patskie multiple map not working Quote
Question
Diss
hi this anniruru script limiting skull drop anyone can help me i want this script on designated map only to avoid feeding by dueling
thnks to anniruru for very nice script .
thnks for helping in advance
4 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.