Jump to content

brianj070707

Members
  • Posts

    48
  • Joined

  • Last visited

Posts posted by brianj070707

  1. Auto Vend:

    
    /*==========================================
    * @autotrade by durf [Lupus] [Paradox924X]
    * Turns on/off Autotrade for a specific player
    *------------------------------------------*/
    ACMD_FUNC(autotrade)
    {
    nullpo_retr(-1, sd);
    
    if( map[sd->bl.m].flag.autotrade != battle_config.autotrade_mapflag ) {
    clif_displaymessage(fd, "Autotrade is not allowed on this map.");
    return -1;
    }
    
    if( pc_isdead(sd) ) {
    clif_displaymessage(fd, "Cannot Autotrade if you are dead.");
    return -1;
    }
    
    if( !sd->state.vending && !sd->state.buyingstore ) { //check if player is vending or buying
    clif_displaymessage(fd, msg_txt(549)); // "You should have a shop open to use @autotrade."
    return -1;
    }
    
    sd->state.autotrade = 1;
    if( battle_config.at_timeout )
    {
    int timeout = atoi(message);
    status_change_start(&sd->bl, SC_AUTOTRADE, 10000, 0, 0, 0, 0, ((timeout > 0) ? min(timeout,battle_config.at_timeout) : battle_config.at_timeout) * 60000, 0);
    }
    clif_authfail_fd(fd, 15);
    
    return 0;
    }
    
    

    { "autotrade",         10,10,     atcommand_autotrade },
    

    GStorage

    
    /*==========================================
    *
    *------------------------------------------*/
    ACMD_FUNC(guildstorage)
    {
    nullpo_retr(-1, sd);
    
    if (!sd->status.guild_id) {
    clif_displaymessage(fd, msg_txt(252));
    return -1;
    }
    
    if (sd->npc_id || sd->state.vending || sd->state.buyingstore || sd->state.trading)
    return -1;
    
    if (sd->state.storage_flag == 1) {
    clif_displaymessage(fd, msg_txt(250));
    return -1;
    }
    
    if (sd->state.storage_flag == 2) {
    clif_displaymessage(fd, msg_txt(251));
    return -1;
    }
    
    storage_guild_storageopen(sd);
    clif_displaymessage(fd, "Guild storage opened.");
    return 0;
    }
    

    { "gstorage",          50,50,     atcommand_guildstorage },
    

  2. So we will just add this at command function right? cause I have already added the get_item_map sources before.

    BTW. Thank you so much for this.

    EDIT:

    I added only the atcommand.c and got this

    atcommand.c: In function ‘atcommand_itemmap’:
    atcommand.c:9337: error: ‘LOG_TYPE_COMMAND’ undeclared (first use in this function)
    atcommand.c:9337: error: (Each undeclared identifier is reported only once
    atcommand.c:9337: error: for each function it appears in.)
    atcommand.c:9337: error: too many arguments to function ‘pc_getitem_map’
    atcommand.c:9347: error: too many arguments to function ‘pc_getitem_map’
    atcommand.c:9354: error: too many arguments to function ‘pc_getitem_map’
    make[1]: *** [obj_sql/atcommand.o] Error 1
    make[1]: Leaving directory `/opt/test1/src/map'
    
    

    using 3ceam661

  3. So I just wanna ask if this is correct.

    - I disabled my mail system on my server since It's number 1 source of item duplication. Can you check if I got this correct?

    FROM:

    for(set .@i,0;.@i<getarraysize(.@gmcid);set .@i,.@i+1)
    {
     if(isloggedin(.@gmaid[.@i]))
      message rid2name(.@gmaid[.@i]),getarg(9);
     if(!isloggedin(.@gmaid[.@i])&&!getarg(1))
      continue;
     query_sql "insert into mail ( send_name, dest_id, title, message, nameid, amount, identify, zeny, time ) values ( '"+escape_sql(getarg(2))+"',"+.@gmcid[.@i]+", '"+escape_sql(getarg(3))+"', '"+escape_sql(getarg(4))+"', "+getarg(5)+", "+getarg(6)+", "+getarg(7)+", "+getarg(8)+", unix_timestamp( now() ) )";
    }
    

    TO:

    for(set .@i,0;.@i<getarraysize(.@gmcid);set .@i,.@i+1)
    {
     if(isloggedin(.@gmaid[.@i]))
      message rid2name(.@gmaid[.@i]),getarg(9);
     if(!isloggedin(.@gmaid[.@i])&&!getarg(1))
      continue;
     getitem 501,1,1,0;
    }
    

  4. src/map/Makefile.in

    Add achievement.o in MAP_OBJ

    Add achievement.h in MAP_H

    I did this but still it gives me this error

    
    obj_sql/map.o: In function `do_final':
    /opt/3ceamV1/src/map/map.c:3665: undefined reference to `do_final_achievement'
    obj_sql/map.o: In function `do_init':
    /opt/3ceamV1/src/map/map.c:3904: undefined reference to `do_init_achievement'
    obj_sql/clif.o: In function `clif_parse_LoadEndAck':
    /opt/3ceamV1/src/map/clif.c:9087: undefined reference to `achievement_update_explore'
    obj_sql/pc.o: In function `pc_authok':
    /opt/3ceamV1/src/map/pc.c:1197: undefined reference to `achievement_loadTracker'
    obj_sql/pc.o: In function `pc_useitem':
    /opt/3ceamV1/src/map/pc.c:4162: undefined reference to `achievement_update_itemuse'
    obj_sql/pc.o: In function `pc_additem':
    /opt/3ceamV1/src/map/pc.c:3720: undefined reference to `achievement_update_itemfind'
    obj_sql/mob.o: In function `mob_dead':
    /opt/3ceamV1/src/map/mob.c:2050: undefined reference to `achievement_update_mob'
    obj_sql/script.o: In function `buildin_getachievementcutin':
    /opt/3ceamV1/src/map/script.c:15154: undefined reference to `achievement_exists'
    obj_sql/script.o: In function `buildin_achieve':
    /opt/3ceamV1/src/map/script.c:15131: undefined reference to `achievement_exists'
    /opt/3ceamV1/src/map/script.c:15143: undefined reference to `achievement_achieve'
    obj_sql/script.o: In function `buildin_getachievementname':
    /opt/3ceamV1/src/map/script.c:15099: undefined reference to `achievement_exists'
    obj_sql/script.o: In function `buildin_getachievementinfo':
    /opt/3ceamV1/src/map/script.c:15047: undefined reference to `achievement_exists'
    /opt/3ceamV1/src/map/script.c:15081: undefined reference to `achievement_searchTrackerIndex'
    obj_sql/atcommand.o: In function `atcommand_achieve':
    /opt/3ceamV1/src/map/atcommand.c:9285: undefined reference to `achievement_exists'
    /opt/3ceamV1/src/map/atcommand.c:9298: undefined reference to `achievement_achieve'
    obj_sql/atcommand.o: In function `atcommand_reloadachievement':
    /opt/3ceamV1/src/map/atcommand.c:9259: undefined reference to `reload_achievementDB'
    obj_sql/quest.o: In function `quest_update_status':
    /opt/3ceamV1/src/map/quest.c:254: undefined reference to `achievement_update_quest'
    collect2: ld returned 1 exit status
    make[1]: *** [map-server_sql] Error 1
    
    

  5. Good Day rAthena,

    Attached below is a screenshot of the error I had encountered when I applied a patch.([Mount Patch])

    And to add my search in storage doesn't work. Example I stored jellopy in my storage, when I try to use search and key in jellopy it doesn't show anything

    post-1699-0-25123300-1329283049_thumb.png

  6. Good Day,

    I need help about this, well basically most of players uses @iteminfo / @ii / ratemyserver.net / other ragnarok item database just to view the item id. I just wanna ask if this is possible? "When the user right clicks the item the item name together with the item id shows up"

    Example:

    Yggdrassil Berry (607)

    If this is possible can I request for the source code.

    Thanks in Advance.

  7. Good Day,

    Well my problem is I compiled my data folder and switched it into .grf file. I added my grf file on my data.ini file like this

    0 = mydata.grf
    1 = data.grf
    2 = sdata.grf
    

    Well the problem is seems like it can't read my grf file and give me lua errors.

    So any help can be appreciated to make this thing work. THANKS in advance

×
×
  • Create New...