Jump to content

Kyo

Members
  • Posts

    90
  • Joined

  • Last visited

Community Answers

  1. Kyo's post in Bugged @whereis was marked as the answer   
    Of course it does.
     
    1751,RANDGRIS,Valkyrie Randgris,Valkyrie Randgris,141,2205000,1,2000000,2200000,3,2895,9307,588,506,196,131,125,276,267,156,10,12,2,8,86,0x37B5,100,576,576,480,1000000,617,5500,603,5000,616,2000,7510,5000,2357,1600,2524,3000,2421,3000,2229,5000,7024,2500,0,0,0,0,0,0,4407,1
  2. Kyo's post in Custom Branch was marked as the answer   
    Open up src/map/mob.c and find the following code:

    const char* mobfile[] = { DBPATH"mob_branch.txt", DBPATH"mob_poring.txt", DBPATH"mob_boss.txt", "mob_pouch.txt", "mob_classchange.txt"};
    Edit it to this:

    const char* mobfile[] = { DBPATH"mob_branch.txt", DBPATH"mob_poring.txt", DBPATH"mob_boss.txt", DBPATH"mob_superboss.txt", "mob_pouch.txt", "mob_classchange.txt"};
    Now you go into your db/pre-re OR db/re depending on your settings and create a new text file with the name

    mob_superboss.txt
    The db uses the following structure

    MobID,DummyName,Rate
    Example:

    1708,Thanatos Phantom,1000000 1734,Kiel D-01,1000000 2022,Nidhoggur's Shadow,1000000
    Now you open src/map/mob.h and change the following to 6

    #define MAX_RANDOMMONSTER 5
    Looks like you changed the item code already so you're ready to go.
  3. Kyo's post in guide on adding @afk commands was marked as the answer   
    I did not test if the command works but here you go, open src/map/atcommand.c and find

    ACMD_FUNC(cart) { #define MC_CART_MDFY(x) \ sd->status.skill[MC_PUSHCART].id = x?MC_PUSHCART:0; \ sd->status.skill[MC_PUSHCART].lv = x?1:0; \ sd->status.skill[MC_PUSHCART].flag = x?1:0; int val = atoi(message); bool need_skill = pc_checkskill(sd, MC_PUSHCART) ? false : true; if( !message || !*message || val < 0 || val > MAX_CARTS ) { sprintf(atcmd_output, msg_txt(1390),command,MAX_CARTS); // Unknown Cart (usage: %s <0-%d>). clif_displaymessage(fd, atcmd_output); return -1; } if( val == 0 && !pc_iscarton(sd) ) { clif_displaymessage(fd, msg_txt(1391)); // You do not possess a cart to be removed return -1; } if( need_skill ) { MC_CART_MDFY(1); } if( pc_setcart(sd, val) ) { if( need_skill ) { MC_CART_MDFY(0); } return -1;/* @cart failed */ } if( need_skill ) { MC_CART_MDFY(0); } clif_displaymessage(fd, msg_txt(1392)); // Cart Added return 0; #undef MC_CART_MDFY }
    Then you place this code below it:

    /*========================================== * @afk by [cr0wmaster] * Features: 1z required to use. Venders are forbidden to use this command. *------------------------------------------*/ ACMD_FUNC(afk) { nullpo_retr(-1, sd); if (sd->vender_id) //check if that player's vending [cr0wmaster] { clif_displaymessage(fd, "You can't use this command while you're vending."); } else if(sd->status.zeny >= 1) { sd->status.zeny += -1; clif_updatestatus(sd, SP_ZENY); sd->state.logout = 1; clif_authfail_fd(fd, 15); } else { clif_displaymessage(fd, "You do not have enough money to use this command."); clif_displaymessage(fd, "@afk failed."); } return 0; }
    Then you find

    ACMD_DEF(mount2)
    replace it with the following

    ACMD_DEF(mount2),
    and add the following below

    ACMD_DEF(afk)
    Compile your server and you're done.
×
×
  • Create New...