Diss Posted November 5, 2013 Group: Members Topic Count: 67 Topics Per Day: 0.02 Content Count: 207 Reputation: 1 Joined: 05/01/13 Last Seen: July 23, 2016 Share 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 Link to comment Share on other sites More sharing options...
Capuche Posted November 5, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share Posted November 5, 2013 OnPCKillEvent: - if ( killedrid == getcharid(3) ) end; + if ( killedrid == getcharid(3) || strcharinfo(3) != "<map name>" ) end; Quote Link to comment Share on other sites More sharing options...
Diss Posted November 11, 2013 Group: Members Topic Count: 67 Topics Per Day: 0.02 Content Count: 207 Reputation: 1 Joined: 05/01/13 Last Seen: July 23, 2016 Author Share 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 Link to comment Share on other sites More sharing options...
Patskie Posted November 11, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 9 hours ago Share 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 Link to comment Share on other sites More sharing options...
Diss Posted November 14, 2013 Group: Members Topic Count: 67 Topics Per Day: 0.02 Content Count: 207 Reputation: 1 Joined: 05/01/13 Last Seen: July 23, 2016 Author Share 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 Link to comment Share on other sites More sharing options...
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
Link to comment
Share on other sites
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.