Jump to content

Capuche

Developer
  • Posts

    2407
  • Joined

  • Last visited

  • Days Won

    51

Community Answers

  1. Capuche's post in script edit please was marked as the answer   
    Replace
    getequippercentrefinery(.@part) > rand(100) by
    getequippercentrefinery(.@part) >= 0 case 1: callsub S_RefineValidate,1,7620,50,.@part; break; case 2: callsub S_RefineValidate,2,7620,200,.@part; break; case 3: callsub S_RefineValidate,3,7620,5000,.@part; break; case 4: callsub S_RefineValidate,4,7620,20000,.@part; break; default: callsub S_RefineValidate,0,7619,2000,.@part; break; The column before .@part is the cost in zeny (ie 50 in the 1st line, 200 in the second..)
  2. Capuche's post in A few Questions was marked as the answer   
    Change your setting in conf/inter_athena.conf
     
    // Level range for sharing within a party party_share_level: 15
  3. Capuche's post in Item script (bonus per refine rate) was marked as the answer   
    bonus bFixedCastrate,2*getrefine(), bonus bVariableCastrate,2*getrefine(), bonus bMatk,4*getrefine(); should be
    bonus bFixedCastrate,2*getrefine(); bonus bVariableCastrate,2*getrefine(); bonus bMatk,4*getrefine();
  4. Capuche's post in PK Cash Points was marked as the answer   
    prontera,157,181,5 script Soul L -1,{ OnPCKillEvent: .@lvl_killer = BaseLevel; .@self_rid = getcharid(3); attachrid( killedrid ); .@down = BaseLevel; // a readparam with an gid argument would be useful attachrid( .@self_rid ); if( #CASHPOINTS + .cash_num <= ( .@lvl_killer - .@down ) ) .@bonus = 0; else .@bonus = .cash_num - ( .@lvl_killer - .@down ); dispbottom "You get "+ .@bonus +" Cash Points. Total: "+ #CASHPOINTS +"."; #CASHPOINTS = #CASHPOINTS + .@bonus; end; OnInit: .cash_num = 20; end; } I don't find any idea to check if a player is dueling... except source modification
  5. Capuche's post in Autobuffer (Soullink) was marked as the answer   
    prontera,157,181,5 script Soul L 992,9,9,{ deltimer strnpcinfo(0) +"::OnTwenty"; addtimer 20000, strnpcinfo(0) +"::OnTwenty"; end; OnTwenty: getmapxy .@map$, .@x, .@y, 0; if( distance( .@x, .@y, .x_npc, .y_npc ) > 9 ) end; addtimer 20000, strnpcinfo(0) +"::OnTwenty"; switch ( basejob ) { case Job_Alchemist: set .@spirit, 445; break; case Job_Monk: set .@spirit, 447; break; case Job_Star_Gladiator: set .@spirit, 448; break; case Job_Sage: set .@spirit, 449; break; case Job_Crusader: set .@spirit, 450; break; case Job_SuperNovice: set .@spirit, 451; break; case Job_Knight: set .@spirit, 452; break; case Job_Wizard: set .@spirit, 453; break; case Job_Priest: set .@spirit, 454; break; case Job_Bard: case Job_Dancer: set .@spirit, 455; break; case Job_Rogue: set .@spirit, 456; break; case Job_Assassin: set .@spirit, 457; break; case Job_Blacksmith: set .@spirit, 458; break; case Job_Hunter: set .@spirit, 460; break; case Job_Soul_Linker: set .@spirit, 461; break; default: if ( upper == 1 && baselevel < 70 ) set .@spirit, 494; } if ( .@spirit ) { sc_start4 sc_spirit, 360000, 5, .@spirit,0,0; skilleffect .@spirit, 5; } end; OnInit: getmapxy .map_npc$, .x_npc, .y_npc, 1; end; } Credit to Emistry for the Soul link
  6. Capuche's post in Spawn monsters on castle when WoE start was marked as the answer   
    Try this one
    - script spawn_woe -1,{ OnAgitStart:// when woe start sleep 2; for( .@i = 0; .@i < .size_mob; .@i++ ) { for( .@j = 0; .@j < .size_map; .@j++ ) monster .map_woe$[.@j],0,0,"--ja--", .mob_ID[.@i], .mob_count[.@i],""; } end; OnAgitEnd:// when woe end sleep 2; for( .@i = 0; .@i < .size_map; .@i++ ) { sleep2 1; killmonsterall .map_woe$[.@i]; } end; OnNPCKillEvent: sleep2 1; if( agitcheck() && compare( .mob_id_c$, killedrid +"" ) && compare( .map_woe_c$, strcharinfo(3) ) )// check is woe on + if mob in .mob_ID list + map in .map_woe$ list monster strcharinfo(3),0,0,"--ja--", killedrid,1,""; end; OnInit: // ------- setting setarray .mob_ID, 1638, 1639; // add more mob id setarray .mob_count, 40, 40;// number of mobs summoned / .mob_ID array column setarray .map_woe$, "aldeg_cas01", "aldeg_cas02"; // yours woe map //-------- end of setting .size_mob = getarraysize( .mob_ID ); .size_map = getarraysize( .map_woe$ ); for( .@i = 0; .@i < .size_mob; .@i++ ) .@tmp$[.@i] = .mob_ID[.@i]; .mob_id_c$ = implode( .@tmp$, "|" ); .map_woe_c$ = implode( .map_woe$, "|" ); end; } and add in npc/guild/agit_main.txt
    donpcevent "spawn_woe::OnAgitStart"; after
    announce "The [" + getcastlename(strnpcinfo(2)) + "] castle has been conquered by the [" + getguildName(.@GID) + "] guild.",bc_all|bc_woe;
  7. Capuche's post in sc_start SC_CONCENTRATION,240000,10; NOT WORKING was marked as the answer   
    Then it's
    SC_CONCENTRATE not
    SC_CONCENTRATION  
     
     
    sc_start SC_CONCENTRATE,240000,10;
  8. Capuche's post in Reaction Event? Anybody still has it? was marked as the answer   
    Maybe this ?
    http://lmgtfy.com/?q=Reaction+Event+eathena
     
    First link
    First post
  9. Capuche's post in breaker ladder reset npc was marked as the answer   
    prontera,148,188,5 script Breaker Ladder 790,{ query_sql "SELECT `char`.char_id,`char`.`name`,global_reg_value.`value` "+ "FROM global_reg_value LEFT JOIN `char` ON global_reg_value.char_id=`char`.char_id WHERE global_reg_value.str='brokeemp' "+ "ORDER BY CAST(`global_reg_value`.`value` AS UNSIGNED) DESC LIMIT 10", .@char_id, .@name$, .@count; mes "[ ^00FF00 Kaspersky ^000000 ]"; mes "Hello there "+strcharinfo(0)+", what do you want to do?"; menu "Check Emperium Break Points",-,"View Breaker Ladder",Llad,"Exchange Points",Lex, ( getgmlevel() > 98 ? "Reset Breaker" : "" ), L_reset, "Nothing",Lno; next; mes "[ ^00FF00 Kaspersky ^000000 ]"; mes "Hmm, wait a second, i'll go check my records.."; next; mes strcharinfo(0)+"'s Emperium Break Points is ^FF0000"+brokeemp+"^000000 Point(s)"; close; L_reset: next; mes "you really want to reset the breaker ?"; next; if ( select( "yes","no" ) -1 ) close; query_sql "DELETE FROM global_reg_value WHERE global_reg_value.`str` = 'brokeemp'"; mes "it's done ! you must log out/log in to see the change"; close; Lno: next; mes "[ ^00FF00 Kaspersky ^000000 ]"; mes "Suit yourself.."; close; Lex: next; mes "[ ^00FF00 Kaspersky ^000000 ]"; mes "What points would you like to exchange?"; mes "^FF0000Note: Check your inventory and weight before exchanging with me!"; menu "Emperium Break Points",-,"Nothing",Lno; next; mes "[ ^00FF00 Kaspersky ^000000 ]"; mes "What do you want to exchange with?"; menu "Billow",-,"Emblem of Solar God",Lesg,"Ripple",Lrip,"Silver Ornament",Lsil,"Wrath of Valkyrie",Lval; next; mes "[ ^00FF00 Kaspersky ^000000 ]"; mes "You need 75 Breaker Points for this.."; mes "Do you still want Billow?"; menu "Yes",-,"No",Lno; if(brokeemp < 75) goto Lnep; if(brokeemp >= 75) next; mes "Here you go!"; getitem 7091,1; set brokeemp,brokeemp-75; close; Lnep: next; mes "[ ^00FF00 Kaspersky ^000000 ]"; mes "Not enough points!"; close; Lesg: next; mes "[ ^00FF00 Kaspersky ^000000 ]"; mes "You need 75 Breaker Points for this.."; mes "Do you still want Emblem of Solar God?"; menu "Yes",-,"No",Lno; next; if(brokeemp < 75) goto Lnep; if(brokeemp >= 75) mes "[ ^00FF00 Kaspersky ^000000 ]"; mes "Here you go!"; getitem 7086,1; set brokeemp,brokeemp-75; close; Lrip: mes "[ ^00FF00 Kaspersky ^000000 ]"; mes "You need 75 Breaker Points for this.."; mes "Do you still want Ripple?"; menu "Yes",-,"No",Lno; if(brokeemp < 75) goto Lnep; if(brokeemp >= 75) next; mes "Here you go!"; getitem 7090,1; set brokeemp,brokeemp-75; close; Lval: mes "[ ^00FF00 Kaspersky ^000000 ]"; mes "You need 75 Breaker Points for this.."; mes "Do you still want Wrath of Valkyrie?"; menu "Yes",-,"No",Lno; if(brokeemp < 75) goto Lnep; if(brokeemp >= 75) next; mes "Here you go!"; getitem 7078,1; set brokeemp,brokeemp-75; close; Lsil: mes "[ ^00FF00 Kaspersky ^000000 ]"; mes "You need 75 Breaker Points for this.."; mes "Do you still want Silver Ornament?"; menu "Yes",-,"No",Lno; if(brokeemp < 75) goto Lnep; if(brokeemp >= 75) next; mes "Here you go!"; getitem 7077,1; set brokeemp,brokeemp-75; close; Llad: next; for( set .@x,0; .@x<=9; set .@x,.@x+1 ) mes "^0000FF"+(.@x+1)+".^000000 "+.@name$[.@x]+" - ^FF0000"+.@count[.@x]+"^000000 Point(s)"; // .@x starts at 0, but you want to start with '1st', so use (.@x+1) close; }
  10. Capuche's post in PvP with Limited Time was marked as the answer   
    Little optimized
    map,146,139,5 script Arena Master 808,{ if( select("PVP Room [ "+getmapusers("arena02")+"/50 ]:Cancel") == 1 ) { if( getmapusers("arena02") >= 50 ) { mes "[Arena Master]", "I'm sorry but the PVP Room is already full!"; close; } addtimer 300000,"Arena Master::OnTimeout"; warp "arena02",0,0; percentheal 100,100; } close; OnPCDieEvent: getmapxy .@map$, .@x, .@y, 0; if( .@map$ != "arena02" ) end; sleep2 2; warp .@map$, .@x, .@y; percentheal 100,100; end; OnTimeout: dispbottom "5 minutes has been elapsed."; warp "SavePoint",0,0; end; }
  11. Capuche's post in 1 second delay after click? was marked as the answer   
    Little optimized
    lunar01,219,180,4 script Dreamworks Coins 807,5,5,{ OnTouch:     if ( @HD > gettimetick(2) ) end;     makeitem 1022, 10, "lunar01", rand(214, 217),rand(177,184);     set .@Delay,1;    // In Seconds     if ( .@Delay ) set @HD, gettimetick(2)+.@Delay;     end; }  
     
    or
    lunar01,219,180,4 script Dreamworks Coins 807,5,5,{ OnTouch: if ( @delay_item ) end; @delay_item = 1; makeitem 1022, 10, "lunar01", rand(214, 217),rand(177,184); sleep2 1000; // 1000 = 1 sec of delay @delay_item = 0; // automatically reset the variable end; }
  12. Capuche's post in Adding more features as they pay more was marked as the answer   
    If you make a duplicate of the npc (the npc for up the healer or the healer), they wouldn't have to re-up the skill... you wanted the guildmaster have to re-up the skill if you had another duplicate npc in another place ?
     
     
    New sql part
    alter table guild add column buff varchar(255) NOT NULL default '' after emblem_data, add index (buff);  
     
     
    NPC for up :
    - script flop -1,{ if( !getcharid(2) ) { mes "you are not in a guild !"; close; } else if( getguildmaster( getcharid(2) ) != strcharinfo(0) ) { mes "I only talk to your guildmaster, go away !"; close; } query_sql "SELECT buff FROM guild WHERE guild_id = "+ getcharid(2), .@buff_type$; if( getstrlen( .@buff_type$ ) ) explode( .@b$, .@buff_type$, "|" ); else { for( .@i = 0; .@i < .size_buff; .@i++ ) .@b$[.@i] = "0"; } mes "hello "+ strcharinfo(0) +", what do you want to up the skill in the guild healer today ?"; next; .@s = select( .menu$ ) -1; if( atoi(.@b$[.@s]) + .min_Levels == .max_Levels ) { mes "Your current "+ .skills_$[.@s] +" skill's guild healer has already reached the max level."; close; } mes "Your current "+ .skills_$[.@s] +" skill's healer is level ^0000ff("+ ( .min_Levels + atoi( .@b$[.@s] ) ) +")^000000."; mes "It will cost ^0000ff"+ ( .cost_[atoi(.@b$[.@s]) +1] * .rate_buff_zeny[.@s] ) +"^000000 zeny to up this skill for your guild."; next; if( select( "Paid to up "+ .skills_$[.@s], "Leave" ) -1 ) close; else if( Zeny < .cost_[atoi(.@b$[.@s]) +1] * .rate_buff_zeny[.@s] ) { mes "You're kidding me? you don't have enough zeny."; close; } Zeny = Zeny - .cost_[atoi(.@b$[.@s]) +1] * .rate_buff_zeny[.@s]; .@b$[.@s] = atoi( .@b$[.@s] ) +1; .@a$ = implode( .@b$, "|" ); query_sql "update guild set buff = '"+ .@a$ +"' where guild_id = "+ getcharid(2); mes "Your "+ .skills_$[.@s] +" skill's healer is now level ^0000ff("+ ( .min_Levels + atoi( .@b$[.@s] ) ) +")^000000. Congratulation !"; close; OnInit: deletearray .cost_; deletearray .skills_$; deletearray .skill_$; deletearray .min_Levels; deletearray .max_Levels; deletearray .rate_buff_zeny; setarray .skills_$, "agi", "bless", "Kyrie Eleison"; // add more skill here - think to add them also in the healer setarray .min_Levels, 5, 5, 0; // min level of the skill boost in the healer setarray .max_Levels, 10, 10, 10; // max level of the skill you can up setarray .rate_buff_zeny, 1, 1, 1; // rate for zeny - ex: 2 to kyrie -> cost *2 ; 2/5 -> cost *2/5 setarray .cost_[1], 10000, 20000, 30000, 40000, 50000, 60000, 70000, 80000, 90000, 100000; // cost zeny to up the healer .size_buff = getarraysize( .skills_$ ); .menu$ = implode( .skills_$, ":" ); end; } prontera,160,185,6 duplicate(flop) flop#1 909  
     
     
    Healer
    - script Healer -1,{ if( getcharid(2) ) { query_sql "SELECT buff FROM guild WHERE guild_id = "+ getcharid(2), .@buff_type$; if( getstrlen( .@buff_type$ ) ) explode( .@b$, .@buff_type$, "|" ); } set .@Price,0; // Zeny required for heal set .@Buffs,1; // Also buff players? (1: yes / 0: no) set .@Delay,0; // Heal delay, in seconds callfunc "F_ClearGarbage",0; if (@HD > gettimetick(2)) end; if (.@Price) { message strcharinfo(0),"Healing costs "+.@Price+" Zeny."; if (Zeny < .@Price) end; if(select("^0055FFHeal^000000:^777777Cancel^000000") == 2) close; set Zeny, Zeny-.@Price; } specialeffect2 EF_HEAL2; percentheal 100,100; if (.@Buffs) { for( .@i = 0; .@i < .size_buff; .@i++ ) { .@sum = atoi(.@b$[.@i]) + .min_Levels[.@i]; .@j = .Buffs$[.@i]; if( .@sum ) sc_start .@j,240000,.@sum; } } if (.@Delay) set @HD, gettimetick(2)+.@Delay; close; OnInit: deletearray .Buffs$; deletearray .min_Levels; setarray .Buffs$, SC_INCREASEAGI, SC_BLESSING, SC_KYRIE; // in the same order than .skills_$ in guild up healer setarray .min_Levels, 5, 5, 0;// min level of the skill boost - default: agi (5), bless (5), kyrie (0) .size_buff = getarraysize( .Buffs$ ); end; } prontera,163,185,6 duplicate(Healer) Healer#alb 909
  13. Capuche's post in Premium System was marked as the answer   
    Try this
    http://pastebin.com/raw.php?i=yw8s8cMp
     
     
    // 12703,Holy_Egg_2,Holy Egg,11,0,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc( "VIP_upgrade", 7, 12703, 0 ); /* 7 days, item ID to delete */ },{},{} // 0 = up to bronze // 12703,Holy_Egg_2,Holy Egg,11,0,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc( "VIP_upgrade", 7, 12703, 1 ); /* 7 days, item ID to delete */ },{},{} //1 = up to silver // 12703,Holy_Egg_2,Holy Egg,11,0,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc( "VIP_upgrade", 7, 12703, 2 ); /* 7 days, item ID to delete */ },{},{} // 2 = up to gold
  14. Capuche's post in little change in Stylist script was marked as the answer   
    //===== rAthena Script ======================================= //= Stylist
    //===== By: ==================================================
    //= Euphy
    //===== Current Version: =====================================
    //= 1.1
    //===== Compatible With: =====================================
    //= rAthena SVN
    //===== Description: =========================================
    //= Changes your hair style, hair color, and cloth color.
    //===== Additional Comments: =================================
    //= 1.1 Switched to 'getbattleflag', credits to Saithis. [Euphy]
    //============================================================
    prontera,170,180,1 script Stylist#custom_stylist 122,{
    setarray .@Styles[1],getbattleflag("max_cloth_color"),getbattleflag("max_hair_style"),getbattleflag("max_hair_color");
    setarray .@Look[1],7,1,6;
    set .@s, select(" ~ Cloth color: ~ Hairstyle: ~ Hair color");
    set .@Revert, getlook(.@Look[.@s]);
    set .@Style,1;
    while(1) {
    setlook .@Look[.@s], .@Style;
    message strcharinfo(0),"This is style #"+.@Style+".";
    if( .@s_menu == 2 ) {
    set .@menu$, " ~ Previous (^0055FF"+((.@Style!=1)?.@Style-1:.@Styles[.@s])+"^000000): ~ Next (^0055FF"+((.@Style!=.@Styles[.@s])?.@Style+1:1)+"^000000): ~ Jump to...: ~ Revert to original (^0055FF"+.@Revert+"^000000)";
    set .@s_menu, select(.@menu$);
    if( .@s_menu == 2 )
    set .@s_menu, 1;
    else if( .@s_menu == 1 )
    set .@s_menu, 2;
    }
    else {
    set .@menu$, " ~ Next (^0055FF"+((.@Style!=.@Styles[.@s])?.@Style+1:1)+"^000000): ~ Previous (^0055FF"+((.@Style!=1)?.@Style-1:.@Styles[.@s])+"^000000): ~ Jump to...: ~ Revert to original (^0055FF"+.@Revert+"^000000)";
    set .@s_menu, select(.@menu$);
    }
    switch(.@s_menu) {
    case 1: set .@Style, ((.@Style!=.@Styles[.@s])?.@Style+1:1); break;
    case 2: set .@Style, ((.@Style!=1)?.@Style-1:.@Styles[.@s]); break;
    case 3: message strcharinfo(0),"Choose a style between 1 - "+.@Styles[.@s]+".";
    input .@Style,0,.@Styles[.@s];
    if (!.@Style) set .@Style, rand(1,.@Styles[.@s]);
    break;
    case 4: set .@Style, .@Revert; setlook .@Look[.@s], .@Revert; break;
    }
    }
    }

  15. Capuche's post in Jobchanger was marked as the answer   
    This setting is at the end of the script
    OnInit: setarray .Rebirth[0],99,50; // Minimum base level, job level to rebirth OR change to third class setarray .JobReq[0],10,40; // Minimum job level to turn into 1st class, 2nd class set .ThirdClass,1; // Enable third classes? (1: yes / 0: no)
  16. Capuche's post in Is it possible to add specialeffect2 inside equip effect? was marked as the answer   
    I think it's possible - why don't you test ? --, but the effect will be display only once when you equip the item with just this command.
  17. Capuche's post in lhz_dun04 map issue was marked as the answer   
    I think your mapcache.dat have a wrong map in cache.
    Re-up your mapcache.dat (delete the map and re-upload it)
  18. Capuche's post in Stop the Clock was marked as the answer   
    announce ":: "+.i+" ::",bc_blue|bc_area; Player must be attached for bc_area announce
     
     
     
    Use bc_npc instead of bc_area (for example)
  19. Capuche's post in Permanent Monster Spawning (MvP) was marked as the answer   
    - script Summonizer -1,{ OnInit: monster "pvp_n_1-1",0,0,"--ja--",-3,25,strnpcinfo(0) +"::OnMobKill"; end; OnMobKill: monster "pvp_n_1-1",0,0,"--ja--",-3,1,strnpcinfo(0) +"::OnMobKill"; end; } pvp_n_1-1 mapflag pvp off mapflag nopvp doesn't exist
  20. Capuche's post in System for recommending friends was marked as the answer   
    Maybe this
    http://www.eathena.ws/board/index.php?showtopic=270783
  21. Capuche's post in request Poring Race Script was marked as the answer   
    http://pastebin.com/raw.php?i=s3JKaycq
    Works on rA only
  22. Capuche's post in [Disguise] Class ViewID was marked as the answer   
    Another solution should be diff your client adding "ignore missing file" option and to use changebase.
  23. Capuche's post in Script Request was marked as the answer   
    There was an error
     
    http://pastebin.com/raw.php?i=83UpTvTf
  24. Capuche's post in Adding a limit was marked as the answer   
    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;
  25. Capuche's post in Please to help me about the MVP tombstone script and MVP Ranking score. was marked as the answer   
    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
×
×
  • Create New...