Jump to content
  • 0

iRO Bounty Board Debug and Warning


sprdosat

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  75
  • Reputation:   5
  • Joined:  08/28/13
  • Last Seen:  

Hi, after I updated rAthena, these messages started appearing. Can someone help me? Thx

Note: script: iRO Bounty Board

Spoiler

//===== EinherjarRO Scripts ================================== 
//= Bounty Board
//===== By: ================================================== 
//= Stolao
//===== Current Version: ===================================== 
//= 1.0
//===== Compatible With: ===================================== 
//= rAthena SVN
//===== Description: ========================================= 
//= iRO Bounty Board
//===== Comments: ============================================
//= [Stolao]
//= http://irowiki.org/wiki/Bounty_Board_Quests
//= Uses custom text, provide official if you want
//===== Additional Comments: =================================
//= 1.0 First Released
//===== Contact Ifo: =========================================
//= [Stolao] 
//= Email: [email protected]
//============================================================

function    script    F_BBQ    {
    explode(.@M$,getarg(2),",");    explode(.@B$,getarg(3),",");    explode(.@J$,getarg(4),",");
    for(.@i = 0; .@i < getarraysize(.@M$); .@i++){
        .@MobIds[.@i] = atoi(.@M$[.@i]);
        .@BaseExp[.@i] = atoi(.@B$[.@i]);
        .@JobExp[.@i] = atoi(.@J$[.@i]);
    }
    mes "[ Missões de Caça ]";
    mes "O que você gostaria de caçar?";
    .@Menu$ = "";
    for(.@i = 0; .@i < getarraysize(.@MobIds); .@i++){
        .@Menu$ = .@Menu$ + ((!Target[.@MobIds[.@i] - 1000])?""+strmobinfo(1,.@MobIds[.@i])+":":":");
        if(Target[.@MobIds[.@i] - 1000] > 100) .@c++;
    }
    if(.@c)    .@Menu$ = .@Menu$ + "^00AA00Quest Completa^000000";
    .@s = select(.@Menu$) - 1;
    if(.@s >= getarraysize(.@MobIds)){
        for(.@i = 0; .@i < getarraysize(.@MobIds); .@i++){
            if(Target[.@MobIds[.@i] - 1000] > 100){
                .@Jexp += .@JobExp[.@i];
                .@Bexp += .@BaseExp[.@i];
                .@c++;
                Target[.@MobIds[.@i] - 1000] = 0;
            }
        }
        if(vip_status(1))
            switch(prompt("Both "+.@Bexp+"/"+.@Jexp+":Only Base "+(.@Bexp+.@Jexp)+":Only Job"+(.@Bexp+.@Jexp)+"")){
                case 3:
                    .@Jexp += .@Bexp;
                    .@Bexp = 0;
                    break;
                case 2:
                    .@Bexp += .@Jexp;
                    .@Jexp = 0;
                default:
                    break;
            }
        getexp .@Bexp,.@Jexp;
        if(.@c >= getarraysize(.@MobIds)) getitem (checkre(0)?6495:501),1;
    } else {
        if(BaseLevel < getarg(0))
            mes "Seu nível é muito baixo, voltar quando for mais forte o suficiente.";
        else    if(BaseLevel > getarg(1))
                mes "Seu nível está muito acima para essa missão .";
        else {
            mes "Mate 100 "+strmobinfo(1,.@MobIds[.@s]);
            Target[.@MobIds[.@s] - 1000] = 1;
        }
    }
    close;
}

prontera,146,156,5    script    Missões de Caça 1-20#prt1    837,{
    callfunc "F_BBQ",.Levels[0], .Levels[1], .MobIds$, .BaseExp$, .JobExp$;
OnInit:
    setarray .Levels, 1,20;
    .MobIds$ =  "1010,1014,1025";
    .BaseExp$ = "50678,67678,67678";
    .JobExp$ =  "5175,9675,9675";
end;
OnNPCKillEvent:
    .@kid = killedrid;
    if(Target[.@kid - 1000])
    if(!getcharid(1) && Target[.@kid - 1000]){
        Target[.@kid - 1000] += 1;
        dispbottom "[ Quest Boards ]: "+(Target[.@kid - 1000] - 1)+"/100 "+strmobinfo(1,.@kid)+" slain.",0xCC00CC;
    } else {
        getmapxy(.@map1$,.@x1,.@y1,0);
        getpartymember getcharid(1),1;
        getpartymember getcharid(1),2;
        for(set .@j, 0; .@j < $@partymembercount; .@j++){
            if(isloggedin($@partymemberaid[.@j], $@partymembercid[.@j])){
                if(attachrid($@partymemberaid[.@j])){
                    if(Target[.@kid - 1000] && HP > 0){
                        getmapxy(.@map2$,.@x2,.@y2,0);
                        if(.@map1$ == .@map2$ && distance(.@x1,.@y1,.@x2,.@y2) < 20){
                            Target[.@kid - 1000] += 1;
                            dispbottom "[ Quest Boards ]: "+(Target[.@kid - 1000] - 1)+"/100 "+strmobinfo(1,.@kid)+" slain.",0xCC00CC;    
                        }
                    }
                }
            }
        }
    }
    end;
}

prontera,146,153,5    script    Missões de Caça 1-20#prt    837,{
    callfunc "F_BBQ",.Levels[0], .Levels[1], .MobIds$, .BaseExp$, .JobExp$;
OnInit:
    setarray .Levels, 1,20;
    .MobIds$ =  "1063,1002,1012,1052,1167,1048,1094,1004";
    .BaseExp$ = "50678,55678,55678,65678,65678,68678,61678,67678";
    .JobExp$ =  "3900,6750,7650,8325,7650,15975,9675,9675";
}

prontera,165,172,5    script    Missões de Caça 21-50#prt    837,{
    callfunc "F_BBQ",.Levels[0], .Levels[1], .MobIds$, .BaseExp$, .JobExp$;
OnInit:
    setarray .Levels, 21,50;
    .MobIds$ =  "1051,1175,1174,1019,1104,1105,1053,1054,1031,1033,1055";
    .BaseExp$ = "80678,90678,90678,120678,150678,320678,220678,220678,250678,280678,110678";
    .JobExp$ =  "15975,17100,15975,20475,34200,34200,22725,25200,25200,29475,27337";
}

prontera,165,169,5    script    Missões de Caça 41-70#prt    837,{
    callfunc "F_BBQ",.Levels[0], .Levels[1], .MobIds$, .BaseExp$, .JobExp$;
OnInit:
    setarray .Levels, 41,70;
    .MobIds$ =  "1138,1100,1494,1166";
    .BaseExp$ = "449500,440500,550625,664350";
    .JobExp$ =  "55575,45450,56925,72450";
}

prontera,165,166,5    script    Missões de Caça 61-100#prt    837,{
    callfunc "F_BBQ",.Levels[0], .Levels[1], .MobIds$, .BaseExp$, .JobExp$;
OnInit:
    setarray .Levels, 61,100;
    .MobIds$ =  "1380,1035,1139,1037,1099";
    .BaseExp$ = "866825,2066825,3066825,5162000,9291125";
    .JobExp$ =  "75150,76500,75263,182250,102600";
}

aretnorp,229,132,3    script    Missões de Caça 81-100#nib    837,{
    callfunc "F_BBQ",.Levels[0], .Levels[1], .MobIds$, .BaseExp$, .JobExp$;
OnInit:
    setarray .Levels, 81,100;
    .MobIds$ =  "1613,1162,1215,1692,1627,"; //In Official is set to '??' so i just add '1' as dummy just create your own custom BaseEXP and JobEXP.
    .BaseExp$ = "43291125,36291125,36291125,42291125,30291125";
    .JobExp$ =  "148050,148050,136575,136575,213975";
}

aretnorp,229,129,3    script    Missões de Caça 90-120#nib    837,{
    callfunc "F_BBQ",.Levels[0], .Levels[1], .MobIds$, .BaseExp$, .JobExp$;
OnInit:
    setarray .Levels, 90,120;
    .MobIds$ =  "1109,1143,1192,1198,1253,1156,1155,1117,1263";
    .BaseExp$ = "69291125,48291125,48291125,75291125,49291125,48291125,60291125,62291125,40291125";
    .JobExp$ =  "243675,225900,133875,187425,160275,133850,148050,144000,150075";
}

aretnorp,229,126,3    script    Missões de Caça 110-150#nib    837,{
    callfunc "F_BBQ",.Levels[0], .Levels[1], .MobIds$, .BaseExp$, .JobExp$;
OnInit:
    setarray .Levels,110,150;
    .MobIds$ =  "1267,1310,1208,1207,1194,1163,1132,1206,1371,1390,1292";
    .BaseExp$ = "90000000,90000000,92211280,90000000,90000000,93100320,95000000,90000000,90000000,94110000,90000000";
    .JobExp$ =  "250000,250000,277425,250000,250000,233550,241425,250000,250000,241425,250000";
}

aretnorp,229,123,3    script    Missões de Caça 121-160#nib    837,{
    callfunc "F_BBQ",.Levels[0], .Levels[1], .MobIds$, .BaseExp$, .JobExp$;
OnInit:
    setarray .Levels, 121,160;
    .MobIds$ =  "1714,1717,1752,1753,1716,1713";
    .BaseExp$ = "394424350,397424350,398424350,390424350,390824350,390824350";
    .JobExp$ =  "336262,336262,386775,402412,381262,381262";
}

aretnorp,210,129,3    script    Missões de Caça 131-175#nib    837,{
    callfunc "F_BBQ",.Levels[0], .Levels[1], .MobIds$, .BaseExp$, .JobExp$;
OnInit:
    setarray .Levels, 131,175;
    .MobIds$ =  "2083,2084,2085,2086";
    .BaseExp$ = "494424350,555506250,665546750,668546750";
    .JobExp$ =  "3451237,511762,591187,674437";
}

aretnorp,210,132,3    script    Missões de Caça 121-175#nib    837,{
    callfunc "F_BBQ",.Levels[0], .Levels[1], .MobIds$, .BaseExp$, .JobExp$;
OnInit:
    setarray .Levels, 121,175;
    .MobIds$ =  "1682,1657,1655,1654,1653,1656,1652";
    .BaseExp$ = "444424350,442506250,551546750,551550575,552573075,552573975,553588510";
    .JobExp$ =  "318150,503550,511200,552150,531000,481050,501750";
}

aretnorp,210,126,3    script    Missões de Caça 140-175#nib    837,{
    callfunc "F_BBQ",.Levels[0], .Levels[1], .MobIds$, .BaseExp$, .JobExp$;
OnInit:
    setarray .Levels, 140,175;
    .MobIds$ =  "2479,2478,2917,2616,2919";
    .BaseExp$ = "666622800,441181250,441690425,441675575,331321650";
    .JobExp$ =  "529650,1782000,1902825,1576125,1489050";
}

aretnorp,210,123,3    script    Missões de Caça 141-175#nib    837,{
    callfunc "F_BBQ",.Levels[0], .Levels[1], .MobIds$, .BaseExp$, .JobExp$;
OnInit:
    setarray .Levels, 141,175;
    .MobIds$ =  "2137,2136,2365,2363,2364,2133,2366,2368,2367,2369,2370";
    .BaseExp$ = "441516950,448437500,448006620,224668750,224565250,448763750,448128120,337954870,448085370,448101120,448115750";
    .JobExp$ =  "708750,731250,848137,461812,378,112,789750,871650,862762,846562,892800,811575";

}

aretnorp,187,222,3    script    Missões de Caça 180-210#nib    837,{
    callfunc "F_BBQ",.Levels[0], .Levels[1], .MobIds$, .BaseExp$, .JobExp$;
OnInit:
    setarray .Levels, 180,220;
    .MobIds$ =  "1639,1637,1638,1635,1634,1636,2227,2223,2226,2225,2224,2222,2221";
    .BaseExp$ = "3111516950,3111736100,3111863225,3111880325,3111996987,3111918687,6011799325,6012486925,6012496600,6012729925,6012889450,6012969550,6013641175";
    .JobExp$ =  "1997550,1738912,1861312,1993162,2010825,2022525,1490400,2139300,2286225,2276100,2228625,2596500,2706075";
}

aretnorp,190,218,3    script    Missões de Caça 220-240#nib    837,{
    callfunc "F_BBQ",.Levels[0], .Levels[1], .MobIds$, .BaseExp$, .JobExp$;
OnInit:
    setarray .Levels, 220,240;
    .MobIds$ =  "1870,1777,1833,1918",
    .BaseExp$ = "82011799325,82011799325,82011799325,82011799325",
    .JobExp$ =  "2738912,2861312,2993162,3010825",
}

aretnorp,194,215,3    script    Missões de Caça 230-255#nib    837,{
    callfunc "F_BBQ",.Levels[0], .Levels[1], .MobIds$, .BaseExp$, .JobExp$;
OnInit:
    setarray .Levels, 230,255;
    .MobIds$ =  "3727,3728,3729,3730,3731,3732,3733,3734,3735,3736,3737,3738,3739";
    .BaseExp$ = "842011799325,842011799325,842011799325,842011799325,842011799325,842011799325,12442011799325,12442011799325,12442011799325,12442011799325,12442011799325,12442011799325,12442011799325";
    .JobExp$ =  "4997550,4738912,4861312,4993162,6010825,6022525,4490400,6139300,6286225,6276100,6228625,6596500,6706075";
}


 

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

15 minutes ago, sprdosat said:

these messages

Which messages?

Use the code <> to encapsulate the npc script please

Edited by Capuche
Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

killedrid isn't saved.. weird ?

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

Don't use mine anyway someone else released a better one using the quest db.

 

Edit found it.

https://rathena.org/board/topic/106447-iro-bounty-board-quest/#elTopicActions_menu

Edited by Stolao
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...