-
Posts
2407 -
Joined
-
Last visited
-
Days Won
52
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Everything posted by Capuche
-
It depends on how many query your server do at a time finally, isn't it ? prontera,159,180,5 script hjkl 456,{ .test++; while( .test%10 ) { donpcevent strnpcinfo(0)+"::OnTest"; .test++; } dispbottom "Loop count: "+ .test; end; OnTest: while (1) { query_sql( "SELECT `castle_id` FROM `guild_castle` WHERE `guild_id` = '25'", .@t ); query_sql( "UPDATE `guild_castle` SET `guild_id` = '0' WHERE `castle_id` = 17" ); query_sql( "UPDATE `guild_castle` SET `guild_id` = '25' WHERE `castle_id` = 17" ); sleep 1; } } My computer start lagging when I make 100 loops (so ~300 query - 300000 query/sec) at 700 I can't sit
-
guild_vs5,50,50,5 script Stage Game 437,{ // Monster ID / Amount Initiating ( Check db/Mob_db.txt || db/Mob_db2.txt ) setarray .Stage[0], 1001,10, // Stage 1 + Amount 1002,12, // Stage 2 + Amount 1004,14, // Stage 3 + Amount 1005,16, // Stage 4 + Amount 1007,18, // etc...... 1008,20, // 1058,30; // Final Stage ( Max. ~64 Rounds ) // Reward ID / Amount Initiating ( Check db/Item_db.txt || db/Item_db2.txt ) setarray .Reward[0], 607,10, // Reward 1 + Amount 608,5, // Reward 2 + Amount 501,3, // etc...... 512,1; // Last Reward 1 ( Max. ~64 Items ) // MapFlags Initiating ( Check db/Cont.txt ) setarray .MapFlags[0],0,1,2,3,4,5,11,13,14,15,22,29,30,31,32,33,34,35,38,41,43,44,47,49; for( set .@mf,0; .@mf < getarraysize( .MapFlags ); set .@mf,.@mf + 1 ){ setmapflag strcharinfo(3),.MapFlags[.@mf]; } if( getmapmobs( strcharinfo(3) ) > 0 || .Level > 0){ dispbottom "Just Kill All the Monster to Win the Game..."; end; } set .Level,0; announce "[Level "+( (.Level/2)+1 )+"] : [ "+.Stage[.Level+1]+" x "+getmonsterinfo( .Stage[.Level],0)+" ]",bc_all,0x37FDFC; monster strcharinfo(3),0,0,"[Slave] "+getmonsterinfo( .Stage[.Level],0)+"",.Stage[.Level],.Stage[.Level+1],strnpcinfo(0)+"::OnMobKill"; delwaitingroom; waitingroom "Left ["+mobcount( strcharinfo(3),strnpcinfo(0)+"::OnMobKill" )+"] Monster",0; end; OnMobKill: delwaitingroom; if( mobcount( strcharinfo(3),strnpcinfo(0)+"::OnMobKill" ) == 0 && .Level < ( getarraysize( .Stage ) - 5 ) ){ set .Level,.Level + 2; waitingroom "["+((( getarraysize( .Stage )/2 ) - .Level/2) - 1)+"] Rounds to Go.",0; for( set .@t,5; .@t > 0; set .@t,.@t - 1 ){ announce "[Level "+( (.Level/2)+1 )+"] in "+.@t+" Seconds",bc_map,0x4EEE94,0,35; sleep2 1000; } announce "[Level "+( (.Level/2)+1 )+"] : [ "+.Stage[.Level+1]+" x "+getmonsterinfo( .Stage[.Level],0)+" ]",bc_all,0x37FDFC; monster strcharinfo(3),0,0,"[Slave] "+getmonsterinfo( .Stage[.Level],0)+"",.Stage[.Level],.Stage[.Level+1],strnpcinfo(0)+"::OnMobKill"; }else if( mobcount( strcharinfo(3),strnpcinfo(0)+"::OnMobKill" ) == 0 && .Level >= ( getarraysize( .Stage ) - 5 ) ){ set .Level,.Level + 2; announce "BOSS Stage",bc_map,0xFF0000,0,90; specialeffect 563; sleep2 2000; for( set .@t,5; .@t > 0; set .@t,.@t - 1 ){ specialeffect 563; announce "BOSS STAGE in "+.@t+" Seconds",bc_map,0xFF0000,0,60; sleep2 1000; } announce "[Level "+( (.Level/2)+1 )+"] : [ "+.Stage[.Level+1]+" x "+getmonsterinfo( .Stage[.Level],0)+" ]",bc_all,0x37FDFC; monster strcharinfo(3),0,0,"[BOSS] "+getmonsterinfo( .Stage[.Level],0)+"",.Stage[.Level],.Stage[.Level+1],strnpcinfo(0)+"::OnBossKill"; } delwaitingroom; waitingroom "Left ["+mobcount( strcharinfo(3),strnpcinfo(0)+"::On"+( ( .Level-2 ) > ( getarraysize( .Stage ) - 5 ) ? "BossKill":"MobKill") )+"] Monster",0; end; OnBossKill: delwaitingroom; if( mobcount( strcharinfo(3),strnpcinfo(0)+"::OnBossKill" ) > 0 ){ waitingroom "Left ["+mobcount( strcharinfo(3),strnpcinfo(0)+"::OnBossKill")+"] Monster",0; end; }else{ delwaitingroom; waitingroom "REWARD TIME",0; specialeffect 709; announce "Congratulation to Team [ "+getpartyname( getcharid(1) )+" ] who had just finished the Stage Game. ",0; getpartymember getcharid(1),1; getpartymember getcharid(1),2; set @Location$,strcharinfo(3); for ( set .@i, 0; .@i < $@partymembercount; set .@i, .@i +1 ){ if ( isloggedin($@partymemberaid[.@i]) ){ attachrid $@partymemberaid[.@i]; if( strcharinfo(3) == @Location$ ){ unittalk getcharid(3),"Yeehaaa !! We Beat ALL the Monster !!!"; unitemote getcharid(3),e_heh; specialeffect2 709; for( set .@a,0; .@a < getarraysize( .Reward ); set .@a,.@a + 2 ){ getitem .Reward[.@a],.Reward[.@a+1], $@partymemberaid[.@i]; } dispbottom "Gained those items as Reward for Finishing Stage Game"; } } } sleep2 5000; mapwarp strcharinfo(3),"prontera",155,180; set .Level,0; delwaitingroom; } OnInit: waitingroom " Click Me",0; end; } prontera,146,188,5 script Stage Game#Register 794,{ while(1){ .@day = Game_delay % ( 1 << 3 ); .@bc = ( Game_delay >> 3 ) % ( 1 << 3 ); mes "Hello, i am ^FF0000Stage Game Manager^000000. How can i help you ?"; mes "^0000FFRegistration Status^000000 : "+( getmapusers(.Map$) > 0 ?"^FF0000OFF":"^00FF00ON")+"^000000"; mes "(^FF0000Only Leader can Register^000000)"; mes ""; mes "It is In ^FF0000BETA Test^000000."; next; switch(select("^00FF00Stage Game Information^000000", ( getmapusers(.Map$) > 0 || getcharid(0) != getpartyleader( getcharid(1),2 ) )?"":"^0000FFRegister for Stage Game^000000", ( getmapusers(.Map$) < 1 || getgmlevel() < 60 )?"":"^FF0000Reset Stage Game^000000")) { Case 1: mes "^FF0000Stage Game^000000 is a small game that have alot of monster to be kill from round to round."; mes "With every increase or round you manage to reach, the monster could be stronger than before."; next; mes "You could win up some ^0000FFUnique^000000 prize upon you finished the whole ^FF0000Stage Game^000000"; next; mes "In order to ^0000FFRegister^000000 for ^FF0000Stage Game^000000, all your party member must meet the ^0000FFRequirements^000000"; next; mes "[ ^00FF00Requirements^000000 ]"; mes "^0000FFBase Level^000000 : "+.Level+" Level"; mes "^0000FFZeny^000000 : "+.Zeny+" Zeny "; mes "^0000FFParty Members^000000 : "+.PartyMember+" Members"; mes "(^FF0000Level / Zeny only Applied on Leader ^000000 )"; next; break; Case 2: // if( getgmlevel() < 80 ){ // mes "Stage Game is under Debugging Development. Simple Game but Hard "; // close; // } if ( .@day == gettime(4) && .@bc == 5 ) { mes "I'm sorry but you have reached the limit for today."; mes "Come back again tomorrow!"; close; } else if ( .@day != gettime(4) ) Game_delay = gettime(4); getpartymember getcharid(1),1; getpartymember getcharid(1),2; set @Count,0; for ( set .@i, 0; .@i < $@partymembercount; set .@i, .@i +1 ){ if ( isloggedin($@partymemberaid[.@i]) ){ set @Count,@Count+1; } } if( @Count < .PartyMember || BaseLevel < .Level || Zeny < .Zeny ){ mes "[ ^00FF00Requirements^000000 ]"; mes "^0000FFBase Level^000000 : "+.Level+" Level"; mes "^0000FFZeny^000000 : "+.Zeny+" Zeny "; mes "^0000FFParty Members^000000 : "+.PartyMember+" Members"; mes "(^FF0000Level / Zeny only Applied on Leader ^000000 )"; close; }else{ set Zeny, Zeny - .Zeny; mes "Your party will now be warped into the Destination to start the Game."; dispbottom "Click on the NPC inside to start the game."; delwaitingroom "Stage Game"; close2; announce "Team [ "+getpartyname( getcharid(1) )+"] has joined STAGE GAME.",0; warpparty .Map$,0,0,getcharid(1); killmonster .Map$,"All"; set getvariableofnpc(.Level,"Stage Game"),0; if ( .@day != gettime(4) ) Game_delay = gettime(4) ; Game_delay = Game_delay + ( 1 << 3 ) ; end; } Case 3: mes "The Game has been Reset."; killmonster .Map$,"All"; mapwarp .Map$,"prontera",155,180; announce "A GM has RESET the Stage Game, Sorry for the Incovenience.",0; set getvariableofnpc(.Level,"Stage Game"),0; delwaitingroom "Stage Game"; next; break; } } close; OnInit: OnWhisperGlobal: set .Level,254; set .Zeny,2000000000; set .PartyMember,1; set .Map$,"guild_vs5"; while( 1 ){ delwaitingroom; waitingroom ( getmapusers(.Map$) > 0 ? " NOT":" " )+" Available",0; sleep 1000; } end; }
-
prontera,159,180,5 script hjkl 456,{ if( getcharid(2) ) { mes "sorry I can't do nothing for you"; close; } mes "make a guild ?"; if( select( "yes", "no" ) -1 ) close; if( countitem( .item_req ) < .item_num ) { mes "sorry you need "+ .item_num +" "+ getitemname( .item_req ); close; } input .@guild_name$; atcommand "@guild "+ .@guild_name$; delitem .item_req, .item_num; close; OnPCStatCalcEvent: if( getguildmasterid( getcharid(2) ) == getcharid(0) ) { .@eac = eaclass()&EAJ_BASEMASK ; if( .@eac == EAJ_THIEF || .@eac == EAJ_SWORDMAN || .@eac == EAJ_MERCHANT || Class == 4047 ) { bonus bStr, 30; //dispbottom "ok 1"; } else if( .@eac == EAJ_MAGE || .@eac == EAJ_NINJA || .@eac == EAJ_ACOLYTE || Class == 4049 ){ bonus bInt, 30; //dispbottom "ok 2"; } else if( .@eac == EAJ_ARCHER || .@eac == EAJ_GUNSLINGER ) { bonus bDex, 30; //dispbottom "ok 3"; } } end; OnInit: .item_req = 501; // Item ID req .item_num = 1 ; // item number end; } You need to patch OnPCStatCalcEvent http://rathena.org/board/index.php?app=core&module=attach§ion=attach&attach_id=5315
-
You don't need to touch the source with this NPC command (if you use rathena)
-
For flying side I don't know For other skills
-
mes "- Esse é o nome do npc. Ele automaticamente retornará uma lista de comandos para você."; next; continue; case 4: close; } } OnDay0101: OnDay0201: OnDay0301: OnDay0401: OnDay0501: OnDay0601: OnDay0701: OnDay0801: OnDay0901: OnDay1001: OnDay1101: OnDay1201: query_sql "SELECT `name` FROM `pvpm_data` WHERE `type`=0 ORDER BY `ratio` DESC LIMIT 3", .@name$; if( getarraysize( .@name$ ) ) set $top3_pvprank$, implode( .@name$, "?" ); end; }
-
prontera,155,181,5 script ROTD 436,{ while(1) { mes "^FF0000ROTD^000000 refer to ^0000FFRace of the Day^000000"; mes "In another word, it mean that the ^FF0000Monster's Race^000000 that you killed by day will grant you ^FF0000Extra Bonus EXP / Item / Zeny ^000000."; next; mes "[ ^FF0000Today's ROTD^000000 ] = ^0000FF"+.ROTD$[.Race]+"^000000 Race"; mes "^FF0000_____________________________^000000"; mes "Bonus Lists :"; mes "^FF0000@^000000 EXP = ^0000FF"+( ( !.BonusEXP )?"No":.BonusEXP+" %" )+"^000000 EXP Bonus"; mes "^FF0000@^000000 Zeny = ^0000FF"+( ( !.BonusZeny )?"No":.BonusZeny )+"^000000 Zeny"; mes "^FF0000@^000000 Item = ^0000FF"+( ( !.BonusItemAmount )?"No Items":.BonusItemAmount+" x "+getitemname( .BonusItem ) )+"^000000"; if( .BonusItemAmount ){ mes "^FF0000@^000000 Rate = ^0000FF"+.BonusRate+"^000000 %"; mes "^FF0000_____________________________^000000"; mes "The Amount of Bonus Reward is given ^FF0000Randomly^000000 at a fixed Rate."; } next; switch(select("^4EEE94ROTD Information^000000", ( getgmlevel() < .GMLevel )?"":"^FF0000[GM]^000000Set a New Monster's Race", ( getgmlevel() < .GMLevel )?"":"^FF0000[GM]^000000Set EXP Bonus", ( getgmlevel() < .GMLevel )?"":"^FF0000[GM]^000000Set Item / Zeny Bonus")){ Case 1: mes "Today's ROTD has choosen ^0000FF"+.ROTD$[.Race]+"^000000 Race , which will grant you some ^FF0000Extra Bonus EXP^000000."; mes "The amount of ^FF0000EXP Bonus^000000 are ^0000FF"+.BonusEXP+" %^000000."; next; mes "For ^0000FFParty Members^000000 , they will only receive ^FF0000Bonus EXP^000000 if they didnt killed any monster."; mes "Besides, they have to stay in the ^FF0000Same Map^000000 in order to get the ^FF0000EXP Bonus^000000."; next; break; Case 2: mes "Choose ^FF0000Randomly / Manually^000000 ?"; for( set .@i,0; .@i < getarraysize( .ROTD$ ); set .@i,.@i+1 ){ mes "[ ^FF0000"+.@i+"^000000. ] ^0000FF"+.ROTD$[.@i]+"^000000 Race"; } message strcharinfo(0),"Input the Number. Choose Random if you want it Randomise a Race for you."; input .Race,0,getarraysize( .ROTD$ )-1; next; if( .Race == getarraysize( .ROTD$ )-1 ){ set .Race,rand( getarraysize( .ROTD$ )-1 ); } mes "[ ^FF0000ROTD Update^000000 ]"; mes "[ ^FF0000Updated^000000 ] = ^0000FF"+.ROTD$[.Race]+"^000000 Race"; mes "[ ^FF0000Bonus EXP^000000 ] = Extra ^0000FF"+.BonusEXP+"^000000 %"; announce "[ ROTD ] : New Race : "+.ROTD$[.Race]+" with Bonus EXP of "+.BonusEXP+" % ",bc_blue; delwaitingroom; waitingroom "[ROTD]:"+.ROTD$[.Race]+" ",0; next; break; Case 3: mes "Set ^FF0000Random EXP / Manually^000000"; mes "Input 0 for ^0000FFRandom Bonus EXP Rate^000000"; mes "Input ^FF0000RATE^000000 for ^0000FFManual Bonus EXP Rate^000000"; mes "^FF0000EXP Range^000000 : 1% ~ 100%"; mes "Current Rate = [ ^0000FF"+.BonusEXP+"^000000 % ]"; input .BonusEXP,0,100; if( .BonusEXP == 0 ){ set .BonusEXP,rand( 1,100 ); } next; mes "The New EXP Rate is [ ^0000FF"+.BonusEXP+"^000000 % ]"; announce "[ ROTD ] : New Race : "+.ROTD$[.Race]+" with Bonus EXP of "+.BonusEXP+" % ",bc_blue; next; break; Case 4: mes "You may set a ^FF0000 Item / Zeny Bonus^000000 for the ^0000FFROTD^000000."; mes "This will work when you have killed a ^FF0000ROTD's Monster^000000, there will be a chances for Player to gain the ^FF0000Item / Zeny^000000."; next; mes "Input the ^FF0000Zeny Bonus^000000"; message strcharinfo(0),"You may input 0 to disable it. [ Use it Wisely ]"; input .BonusZeny;; mes "Input the ^FF0000Item ID^000000"; do{ input .BonusItem,0,32767; }while( getitemname( .BonusItem ) == "null" ); mes "Input the ^FF0000Item Bonus Amount^000000"; mes "Range of Amount = 0 ~ 30,000"; message strcharinfo(0),"You may input 0 to disable it. [ Use it Wisely ]"; input .BonusItemAmount,0,30000; next; mes "^FF0000Rate^000000 to get it ??"; mes "^FF0000100 = 100%^000000"; mes "^FF0000 10 = 10%^000000"; mes "^FF0000 1 = 1%^000000"; mes "^FF0000 0 = DISABLED^000000"; input .BonusRate,0,100; next; mes "[ ^FF0000ROTD Update^000000 ]"; mes "^0000FFZeny Bonus^000000 : "+.BonusZeny+" Zeny"; mes "^0000FFItem Bonus^000000 : "+.BonusItemAmount+" x "+getitemname( .BonusItem ); mes "^0000FFItem Rate^000000 : "+.BonusRate+" %"; next; break; } } close; OnInit: OnClock0000: set .GMLevel,80; set .max_zeny, 1000000000;// add this setarray .ROTD$[0], "Formless", "Undead", "Brute", "Plant", "Insect", "Fish", "Demon", "Demi-Human", "Angel", "Dragon", "Random"; set .Race,rand( 10 ); set .BonusEXP,rand( 1,100 ); set .ExpLvlRange,10; delwaitingroom; waitingroom "[ROTD]:"+.ROTD$[.Race]+" ",0; end; OnNPCKillEvent: if( getmonsterinfo( killedrid,19 ) != .Race ) end; if( getcharid(1) ){ set .@Location$,strcharinfo(3); set .BaseLvl,BaseLevel; getpartymember getcharid(1),1; getpartymember getcharid(1),2; for ( set .@a, 0; .@a < .partymembercount; set .@a, .@a +1 ) if ( isloggedin( .partymemberaid[.@a] ) ) attachrid( .partymemberaid[.@a] ); if( strcharinfo(3) == .@Location$ && ( .BaseLvl - BaseLevel ) <= .ExpLvlRange ) getexp ( getmonsterinfo( killedrid,3 ) * .BonusEXP / 100 ),( getmonsterinfo( killedrid,4 ) * .BonusEXP / 100 ); } else getexp ( getmonsterinfo( killedrid,3 ) * .BonusEXP / 100 ),( getmonsterinfo( killedrid,4 ) * .BonusEXP / 100 ); if( rand(100) <= .BonusRate && .BonusItemAmount ) getitem .BonusItem,rand( 1,.BonusItemAmount ); if( rand(100) <= .BonusRate && .BonusZeny ) { set .@r, rand( 1,.BonusZeny ); if( .@r + Zeny <= .max_zeny ) set Zeny,Zeny + .@r; } end; }
-
Remove the name of the map of custom bg in conf/mapflag/gvg.txt
-
7x8 in the release
-
endless_war,90,86,0 warp endlesswar01 2,2,endless_war,97,86 endless_war,165,86,0 warp endlesswar02 2,2,endless_war,158,86 - script hjkl -1,{ OnWhisperGlobal: if ( @whispervar0$ == "menu" ) { set .@s, select( .npcname$ ) -1; if( select( "Enable "+ .npcname$[ .@s ] , "Disable "+ .npcname$[ .@s ] ) -1 ) disablenpc .npcname$[ .@s ]; else enablenpc .npcname$[ .@s ]; } else dispbottom "Usage : npc:"+ strnpcinfo(0) +" + menu"; end; OnInit: setarray .@tmp$, "endlesswar01","endlesswar02";// NPC name in menu set .npcname$, implode( .@tmp$, "|" ); end; }
-
1/ OnNPCKillEvent: if( rand(1000) < 500 ) // Chance: 10 = 1%, 100 = 10%, etc. getitem callfunc( "F_RandMes", 5, 501,502,503,504,505 ), rand( 1,10 ); // http://rathena.org/board/topic/78263-scripting-faqtipstricks/ end; amount 1-10 : rand( 1,10 ); 2/ always != 1 OnNPCKillEvent: if( rand(1000) < 500 ) { // Chance: 10 = 1%, 100 = 10%, etc. getmapxy .@map$, .@x, .@y, 0; makeitem callfunc( "F_RandMes", 5, 501,502,503,504,505 ), rand( 1,10 ), .@map$, .@x, .@y; // <num item>, <item id1>,<item id2>,<item id3> } end;
-
Well it won't work with simple quest where the player can initialize the quest again and again, I forgot this possibility but I answered your request, so it's okay (lol)
-
There is already mount system on rAthena item_db.txt 12622,Reins_Of_Mount,Reins Of Mount,11,0,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ setmounting(); },{},{}
-
Do like kaiGAMING said and replace all bc_area by bc_npc
-
With glue. (or post your ROTD npc which make this warning Lol)
-
I don't answer to your question but item_rate_equip: 1000000 Mistakes ?
-
brasilis,241,87,5 script StalkerNpc 757,{ mes "Which skill you need me to cast on you ?"; set .@SkillID, select( implode( .SkillName$, ":" ) ) - 1; mes "Selected "+ .Skillname$[ .@SkillID ]; close2; npcskill .SkillID[ .@SkillID ], .SkillLv[ .@SkillID ], 50, 99; if( .SkillID[ .@SkillID ] == 421 ) { getmapxy .@map$, .@x, .@y, 0; movenpc strnpcinfo(0), .@x, .@y; sleep 3000; movenpc strnpcinfo(0),241,87; } end; OnInit: setarray .SkillID,14,19,20,421; setarray .SkillLv,3,5,10,5; setarray .SkillName$,"Cold Bolt","Fire Bolt","Lightning Bolt","Fly Kick"; end; } Use npcskill
-
Well .@j++ is equivalent to set .@j, .@j + 1;
-
For all quest initialized add set Quest_finish, Quest_finish + 1; and if( Quest_finish > 3 ) { mes "you can't take another quest"; close; } when the quest is finished set Quest_finish, Quest_finish - 1;
-
Please to help me about the MVP tombstone script and MVP Ranking score.
Capuche replied to chayjaja's question in Scripting Support
Replace in Ranking - script Auto Ranking System -1,{ OnNPCKillEvent: if ( $optionmvp == 1 && ( killedrid == 1086 || killedrid == 1112 || killedrid == 1115 || killedrid == 1150 || killedrid == 1159 || killedrid == 1252 || killedrid == 1583 || killedrid == 1038 || killedrid == 1046 || killedrid == 1087 || killedrid == 1147 || killedrid == 1251 || killedrid == 1492 || killedrid == 1157 || killedrid == 1312 || killedrid == 1389 || killedrid == 1418 || killedrid == 1658 || killedrid == 1885 || killedrid == 1039 || killedrid == 1190 || killedrid == 1373 || killedrid == 1272 || killedrid == 1623 || killedrid == 1630 || killedrid == 1685 || killedrid == 1719 || killedrid == 1785 || killedrid == 1734 || killedrid == 1059 || killedrid == 1511 || killedrid == 1688 || killedrid == 1708 || killedrid == 1646 || killedrid == 1648 || killedrid == 1647 || killedrid == 1649 || killedrid == 1751 || killedrid == 1779 || killedrid == 1650 || killedrid == 1871 || killedrid == 1768 || killedrid == 1651 || killedrid == 1832 || killedrid == 1874 ) ) { set MKPoint,MKPoint+1; dispbottom "You got the score [M]VP [K]illing More 1 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1086) {/*Golden Bug */set MKPoint,MKPoint+1; dispbottom "You got the score [M]VP [K]illing More 1 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1112) {/*Drake */set MKPoint,MKPoint+1; dispbottom "You got the score [M]VP [K]illing More 1 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1115) {/*Eddga */set MKPoint,MKPoint+1; dispbottom "You got the score [M]VP [K]illing More 1 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1150) {/*Moonlight */set MKPoint,MKPoint+1; dispbottom "You got the score [M]VP [K]illing More 1 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1159) {/*Phreeoni */set MKPoint,MKPoint+1; dispbottom "You got the score [M]VP [K]illing More 1 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1252) {/*Garm */set MKPoint,MKPoint+1; dispbottom "You got the score [M]VP [K]illing More 1 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1583) {/*Tao Gunka */set MKPoint,MKPoint+3; dispbottom "You got the score [M]VP [K]illing More 3 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1038) {/*Osiris */set MKPoint,MKPoint+3; dispbottom "You got the score [M]VP [K]illing More 3 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1046) {/*Doppelganger */set MKPoint,MKPoint+3; dispbottom "You got the score [M]VP [K]illing More 3 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1087) {/*Orc Hero */set MKPoint,MKPoint+3; dispbottom "You got the score [M]VP [K]illing More 3 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1147) {/*Maya */set MKPoint,MKPoint+3; dispbottom "You got the score [M]VP [K]illing More 3 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1251) {/*Stormy Knight */set MKPoint,MKPoint+3; dispbottom "You got the score [M]VP [K]illing More 3 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1492) {/*Samurai */set MKPoint,MKPoint+3; dispbottom "You got the score [M]VP [K]illing More 3 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1157) {/*Pharaoh */set MKPoint,MKPoint+5; dispbottom "You got the score [M]VP [K]illing More 5 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1312) {/*TurtleGeneral */set MKPoint,MKPoint+5; dispbottom "You got the score [M]VP [K]illing More 5 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1389) {/*Dracula */set MKPoint,MKPoint+5; dispbottom "You got the score [M]VP [K]illing More 5 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1418) {/*EvilSnakeLord */set MKPoint,MKPoint+5; dispbottom "You got the score [M]VP [K]illing More 5 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1658) {/*Egnigem Cenia */set MKPoint,MKPoint+5; dispbottom "You got the score [M]VP [K]illing More 5 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1885) {/*Zmey Gorynych */set MKPoint,MKPoint+5; dispbottom "You got the score [M]VP [K]illing More 5 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1039) {/*Baphomet */set MKPoint,MKPoint+7; dispbottom "You got the score [M]VP [K]illing More 7 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1190) {/*Orc Lord */set MKPoint,MKPoint+7; dispbottom "You got the score [M]VP [K]illing More 7 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1373) {/*LordOfTheDead */set MKPoint,MKPoint+7; dispbottom "You got the score [M]VP [K]illing More 7 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1272) {/*Dark Lord */set MKPoint,MKPoint+7; dispbottom "You got the score [M]VP [K]illing More 7 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1623) {/*RSX-0806 */set MKPoint,MKPoint+7; dispbottom "You got the score [M]VP [K]illing More 7 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1630) {/*White Lady */set MKPoint,MKPoint+7; dispbottom "You got the score [M]VP [K]illing More 7 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1685) {/*Vesper */set MKPoint,MKPoint+7; dispbottom "You got the score [M]VP [K]illing More 7 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1719) {/*Detardeurus */set MKPoint,MKPoint+7; dispbottom "You got the score [M]VP [K]illing More 7 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1785) {/*Atros */set MKPoint,MKPoint+9; dispbottom "You got the score [M]VP [K]illing More 9 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1734) {/*Kiel D-01 */set MKPoint,MKPoint+9; dispbottom "You got the score [M]VP [K]illing More 9 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1059) {/*Mistress */set MKPoint,MKPoint+13; dispbottom "You got the score [M]VP [K]illing More 13 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1511) {/*Amon Ra */set MKPoint,MKPoint+13; dispbottom "You got the score [M]VP [K]illing More 13 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1688) {/*Lady Tanee */set MKPoint,MKPoint+13; dispbottom "You got the score [M]VP [K]illing More 13 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1708) {/*Thanatos */set MKPoint,MKPoint+13; dispbottom "You got the score [M]VP [K]illing More 13 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1646) {/*Lord Knight */set MKPoint,MKPoint+19; dispbottom "You got the score [M]VP [K]illing More 19 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1648) {/*Whitesmith */set MKPoint,MKPoint+19; dispbottom "You got the score [M]VP [K]illing More 19 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1647) {/*AssassinCross */set MKPoint,MKPoint+19; dispbottom "You got the score [M]VP [K]illing More 19 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1649) {/*High Priest */set MKPoint,MKPoint+19; dispbottom "You got the score [M]VP [K]illing More 19 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1751) {/*Valkyrie */set MKPoint,MKPoint+25; dispbottom "You got the score [M]VP [K]illing More 25 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1779) {/*Ktullanux */set MKPoint,MKPoint+25; dispbottom "You got the score [M]VP [K]illing More 25 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1650) {/*Sniper */set MKPoint,MKPoint+25; dispbottom "You got the score [M]VP [K]illing More 25 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1871) {/*Fallen Bishop */set MKPoint,MKPoint+25; dispbottom "You got the score [M]VP [K]illing More 25 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1768) {/*GloomUnder */set MKPoint,MKPoint+30; dispbottom "You got the score [M]VP [K]illing More 30 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1651) {/*High Wizard */set MKPoint,MKPoint+30; dispbottom "You got the score [M]VP [K]illing More 30 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1832) {/*Ifrit */set MKPoint,MKPoint+50; dispbottom "You got the score [M]VP [K]illing More 50 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (killedrid == 1874) {/*Beelzebub */set MKPoint,MKPoint+50; dispbottom "You got the score [M]VP [K]illing More 50 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } close; by - script Auto Ranking System -1,{ OnNPCKillEvent: if( !playerattached() ) { attachrid( .player_killer ); set .@mob_id, .mob_id_kill; } else set .@mob_id, killedrid; if ( $optionmvp == 1 && ( .@mob_id == 1086 || .@mob_id == 1112 || .@mob_id == 1115 || .@mob_id == 1150 || .@mob_id == 1159 || .@mob_id == 1252 || .@mob_id == 1583 || .@mob_id == 1038 || .@mob_id == 1046 || .@mob_id == 1087 || .@mob_id == 1147 || .@mob_id == 1251 || .@mob_id == 1492 || .@mob_id == 1157 || .@mob_id == 1312 || .@mob_id == 1389 || .@mob_id == 1418 || .@mob_id == 1658 || .@mob_id == 1885 || .@mob_id == 1039 || .@mob_id == 1190 || .@mob_id == 1373 || .@mob_id == 1272 || .@mob_id == 1623 || .@mob_id == 1630 || .@mob_id == 1685 || .@mob_id == 1719 || .@mob_id == 1785 || .@mob_id == 1734 || .@mob_id == 1059 || .@mob_id == 1511 || .@mob_id == 1688 || .@mob_id == 1708 || .@mob_id == 1646 || .@mob_id == 1648 || .@mob_id == 1647 || .@mob_id == 1649 || .@mob_id == 1751 || .@mob_id == 1779 || .@mob_id == 1650 || .@mob_id == 1871 || .@mob_id == 1768 || .@mob_id == 1651 || .@mob_id == 1832 || .@mob_id == 1874 ) ) { set MKPoint,MKPoint+1; dispbottom "You got the score [M]VP [K]illing More 1 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1086) {/*Golden Bug */set MKPoint,MKPoint+1; dispbottom "You got the score [M]VP [K]illing More 1 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1112) {/*Drake */set MKPoint,MKPoint+1; dispbottom "You got the score [M]VP [K]illing More 1 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1115) {/*Eddga */set MKPoint,MKPoint+1; dispbottom "You got the score [M]VP [K]illing More 1 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1150) {/*Moonlight */set MKPoint,MKPoint+1; dispbottom "You got the score [M]VP [K]illing More 1 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1159) {/*Phreeoni */set MKPoint,MKPoint+1; dispbottom "You got the score [M]VP [K]illing More 1 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1252) {/*Garm */set MKPoint,MKPoint+1; dispbottom "You got the score [M]VP [K]illing More 1 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1583) {/*Tao Gunka */set MKPoint,MKPoint+3; dispbottom "You got the score [M]VP [K]illing More 3 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1038) {/*Osiris */set MKPoint,MKPoint+3; dispbottom "You got the score [M]VP [K]illing More 3 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1046) {/*Doppelganger */set MKPoint,MKPoint+3; dispbottom "You got the score [M]VP [K]illing More 3 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1087) {/*Orc Hero */set MKPoint,MKPoint+3; dispbottom "You got the score [M]VP [K]illing More 3 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1147) {/*Maya */set MKPoint,MKPoint+3; dispbottom "You got the score [M]VP [K]illing More 3 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1251) {/*Stormy Knight */set MKPoint,MKPoint+3; dispbottom "You got the score [M]VP [K]illing More 3 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1492) {/*Samurai */set MKPoint,MKPoint+3; dispbottom "You got the score [M]VP [K]illing More 3 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1157) {/*Pharaoh */set MKPoint,MKPoint+5; dispbottom "You got the score [M]VP [K]illing More 5 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1312) {/*TurtleGeneral */set MKPoint,MKPoint+5; dispbottom "You got the score [M]VP [K]illing More 5 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1389) {/*Dracula */set MKPoint,MKPoint+5; dispbottom "You got the score [M]VP [K]illing More 5 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1418) {/*EvilSnakeLord */set MKPoint,MKPoint+5; dispbottom "You got the score [M]VP [K]illing More 5 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1658) {/*Egnigem Cenia */set MKPoint,MKPoint+5; dispbottom "You got the score [M]VP [K]illing More 5 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1885) {/*Zmey Gorynych */set MKPoint,MKPoint+5; dispbottom "You got the score [M]VP [K]illing More 5 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1039) {/*Baphomet */set MKPoint,MKPoint+7; dispbottom "You got the score [M]VP [K]illing More 7 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1190) {/*Orc Lord */set MKPoint,MKPoint+7; dispbottom "You got the score [M]VP [K]illing More 7 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1373) {/*LordOfTheDead */set MKPoint,MKPoint+7; dispbottom "You got the score [M]VP [K]illing More 7 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1272) {/*Dark Lord */set MKPoint,MKPoint+7; dispbottom "You got the score [M]VP [K]illing More 7 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1623) {/*RSX-0806 */set MKPoint,MKPoint+7; dispbottom "You got the score [M]VP [K]illing More 7 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1630) {/*White Lady */set MKPoint,MKPoint+7; dispbottom "You got the score [M]VP [K]illing More 7 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1685) {/*Vesper */set MKPoint,MKPoint+7; dispbottom "You got the score [M]VP [K]illing More 7 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1719) {/*Detardeurus */set MKPoint,MKPoint+7; dispbottom "You got the score [M]VP [K]illing More 7 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1785) {/*Atros */set MKPoint,MKPoint+9; dispbottom "You got the score [M]VP [K]illing More 9 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1734) {/*Kiel D-01 */set MKPoint,MKPoint+9; dispbottom "You got the score [M]VP [K]illing More 9 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1059) {/*Mistress */set MKPoint,MKPoint+13; dispbottom "You got the score [M]VP [K]illing More 13 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1511) {/*Amon Ra */set MKPoint,MKPoint+13; dispbottom "You got the score [M]VP [K]illing More 13 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1688) {/*Lady Tanee */set MKPoint,MKPoint+13; dispbottom "You got the score [M]VP [K]illing More 13 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1708) {/*Thanatos */set MKPoint,MKPoint+13; dispbottom "You got the score [M]VP [K]illing More 13 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1646) {/*Lord Knight */set MKPoint,MKPoint+19; dispbottom "You got the score [M]VP [K]illing More 19 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1648) {/*Whitesmith */set MKPoint,MKPoint+19; dispbottom "You got the score [M]VP [K]illing More 19 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1647) {/*AssassinCross */set MKPoint,MKPoint+19; dispbottom "You got the score [M]VP [K]illing More 19 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1649) {/*High Priest */set MKPoint,MKPoint+19; dispbottom "You got the score [M]VP [K]illing More 19 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1751) {/*Valkyrie */set MKPoint,MKPoint+25; dispbottom "You got the score [M]VP [K]illing More 25 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1779) {/*Ktullanux */set MKPoint,MKPoint+25; dispbottom "You got the score [M]VP [K]illing More 25 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1650) {/*Sniper */set MKPoint,MKPoint+25; dispbottom "You got the score [M]VP [K]illing More 25 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1871) {/*Fallen Bishop */set MKPoint,MKPoint+25; dispbottom "You got the score [M]VP [K]illing More 25 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1768) {/*GloomUnder */set MKPoint,MKPoint+30; dispbottom "You got the score [M]VP [K]illing More 30 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1651) {/*High Wizard */set MKPoint,MKPoint+30; dispbottom "You got the score [M]VP [K]illing More 30 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1832) {/*Ifrit */set MKPoint,MKPoint+50; dispbottom "You got the score [M]VP [K]illing More 50 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } else if (.@mob_id == 1874) {/*Beelzebub */set MKPoint,MKPoint+50; dispbottom "You got the score [M]VP [K]illing More 50 Point Total "+MKpoint+" Point"; if ( MKPoint >= $minpoint[0] ) callfunc "F_rankpoint",0; } close; I don't think tombstone NPC worked .mvpid[ atoi( strnpcinfo(2) ) ] : strnpcinfo(2) is the hidden part of the NPC's name, 5_mvp is not a number so atoi( strnpcinfo(2) ) always == 0 movenpc strnpcinfo(0), $@tomb_x, $@tomb_y; : $@tomb_x isn't defined... // ~~~~~ show time left in days, hours, minutes and seconds ~~~~~ function script timeleft__ { set .@left, getarg(0); if ( .@left <= 0 ) return getarg(0); set .@day, .@left / 86400; set .@hour, .@left % 86400 / 3600; set .@min, .@left % 3600 / 60; set .@sec, .@left % 60; return ( ( .@day )?.@day +" day ":"" )+( ( .@day || .@hour )?.@hour +" hour ":"" )+( ( .@day == 0 && ( .@hour || .@min ) )?.@min +" min ":"" )+( ( .@day || .@hour )?"":.@sec +" sec" ); } - script tombstone_dup -1,{ getmapxy .@map$, .@x, .@y, 1; if ( .@x == 0 && .@y == 0 ) end; set .@id, atoi( strnpcinfo(2) ); mes "[ ^ff0000Tomb^000000 ]"; mes "^999999-:--:--:--:--:--:--:--:--:--:--:-^000000"; mes "^ff0000?????????^000000 "+ strmobinfo( 2, .mvpid[.@id] ); mes "^ff0000???????????^000000 "+ .name$[.@id]; mes "^999999-:--:--:--:--:--:--:--:--:--:--:-^000000"; close; Onmvpdead: // trigger MVP Ranking script set .@id, atoi( strnpcinfo(2) ); set getvariableofnpc( .player_killer, "Auto Ranking System" ), getcharid(3); set getvariableofnpc( .mob_id_kill, "Auto Ranking System" ), .mvpid[.@id]; sleep2 2; donpcevent "Auto Ranking System::OnNPCKillEvent"; // set .@id, atoi( strnpcinfo(2) ); getmapxy .@map$, .@tomb_x, .@tomb_y, 0; set .name$[.@id], strcharinfo(0); movenpc strnpcinfo(0), .@tomb_x, .@tomb_y; set .@loop, .respawn; while ( .@loop ) { delwaitingroom strnpcinfo(0); waitingroom callfunc("timeleft__", .@loop ), 0; set .@loop, .@loop -1; sleep 1000; } delwaitingroom strnpcinfo(0); monster .@map$, 0,0, "--ja--", .mvpid[.@id], 1, strnpcinfo(0) +"::Onmvpdead"; movenpc strnpcinfo(0), 0,0; end; OnInit: if ( strnpcinfo(2) == "" ) { set .respawn, 3650; // seconds to respawn setarray .mvpid[1], 1038; // mob array according to npc index } else { sleep 1; getmapxy .@map$, .@x, .@y, 1; monster .@map$, 0,0, "--ja--", .mvpid[ atoi( strnpcinfo(2) ) ], 1, strnpcinfo(0) +"::Onmvpdead"; } end; } pvp_n_1-5,0,0,0 duplicate(tombstone_dup) Tomb#1 565 //guild_vs2,0,0,0 duplicate(tombstone_dup) Tomb#2 565 //guild_vs3,0,0,0 duplicate(tombstone_dup) Tomb#3 565 //guild_vs4,0,0,0 duplicate(tombstone_dup) Tomb#4 565 //guild_vs5,0,0,0 duplicate(tombstone_dup) Tomb#5 565 -
prontera,159,180,5 script hjkl 456,{ query_sql "SELECT `account_id` FROM `char` WHERE `online` = 1 ORDER BY `name` DESC LIMIT 128", .@account_id; .@self = getcharid(3); mes "x. Name ( Base/Job ) - Class [Map]"; for( .@i = 0; .@i < getarraysize( .@account_id ); .@i++ ) if( attachrid( .@account_id[ .@i ] ) ) { .@name$ = rid2name( .@account_id ); .@base = BaseLevel; .@jobl = JobLevel; .@jname$ = jobname( Class ); .@map$ = strcharinfo(3); attachrid( .@self ); mes ( .@j++ ) + ". ^777777"+ .@name$ +" ^FF0000"+ .@base +"/"+ .@jobl +"^000000 - ^CC0066"+ .@jname$ +" ^6666FF[ "+ .@map$ +" ]^000000"; if( .@j%10 == 0 ) { next; if( select( "^777777~ Continue", "~ Leave^000000" ) -1 ) close; } } close; } I didn't test it This one works fine with me (lastest rAthena)
-
http://pastebin.com/raw.php?i=BnQ7c207
-
prontera,159,180,5 script hjkl 456,{ query_sql "SELECT `account_id` FROM `char` WHERE `online` = 1 ORDER BY `name` DESC LIMIT 128", .@account_id; .@self = getcharid(3); mes "x. Name ( Base/Job ) - Class [Map]"; for( .@i = 0; .@i < getarraysize( .@account_id ); .@i++ ) if( attachrid( .@account_id [ .@i ] ) ) { .@name$ = rid2name( .@account_id[ .@i ] ); .@base = BaseLevel; .@jobl = JobLevel; .@jname$ = jobname( Class ); .@map$ = strcharinfo(3); attachrid( .@self ); mes ( .@j++ ) + ". ^777777"+ .@name$ +" ^FF0000"+ .@base +"/"+ .@jobl +"^000000 - ^CC0066"+ .@jname$ +" ^6666FF[ "+ .@map$ +" ]^000000"; if( .@j%10 ) if( select( "^777777~ Continue", "~ Leave^000000" ) -1 ) close; } close; }
-
Quick question regarding || (or) in item scripts.
Capuche replied to Mumbles's question in Scripting Support
XD! Where are you my beloved brain ?! btw none of us find an answer bonus2 bAddMonsterDropItem,(rand(2)? 908:909),200; just add 1 bonus when player equip the item I think you need source modification -
Replace if (Class > 21) { mes "Switch to third class?"; next; Job_Menu(roclass(.@eac|EAJL_THIRD)); close; } to if (Class == 25) { mes "Switch to third class?"; next; Job_Menu(roclass(.@eac|EAJL_THIRD)); close; } else close; in trunk/npc/custom/jobmaster.txt