Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 03/13/18 in Posts

  1. 1 point
    bWolfie

    Question:Alchemist Creation

    Yes. The file is db/produce_db.txt. Just search 'AM_PHARMACY' and you will find the area you need. However, it is not enough to give ranking points. That would require source editing. To make your custom item give ranking points, first open src/map/itemdb.h and add a constant for your custom Item ID. enum item_itemid { ITEMID_MYCUSTOMITEM = 29001, } Then open src/map/skill.c and need to include your constant to not 'continue'. Find: if (rnd()%10000 < make_per || qty == 1) { //Success tmp_item.amount++; if(nameid < ITEMID_RED_SLIM_POTION || nameid > ITEMID_WHITE_SLIM_POTION) continue; Below it, change so it like this: if (rnd()%10000 < make_per || qty == 1) { //Success tmp_item.amount++; if((nameid < ITEMID_RED_SLIM_POTION || nameid > ITEMID_WHITE_SLIM_POTION) && nameid != ITEMID_MYCUSTOMITEM) continue;
  2. 1 point
    bWolfie

    How to filter getinventorylist

    How about this? It should store every non-bound item in a new array .@ID[] getinventorylist(); for (.@i = 0; .@i < @inventorylist_count; .@i++) { /* Filter only items that is not bound */ if (!@inventorylist_bound[.@i]){ .@itemname$ = callfunc( "getitemname2", @inventorylist_id[.@i], @inventorylist_identify[.@i], @inventorylist_refine[.@i], @inventorylist_attribute[.@i], @inventorylist_card1[.@i], @inventorylist_card2[.@i], @inventorylist_card3[.@i], @inventorylist_card4[.@i], @inventorylist_bound[.@i]); .@menu$ += sprintf("%s %s:", @itemname2_info$, .@itemname$); .@ID[.@j] = @inventorylist_id[.@i]; .@j++; } } .@menu$ += "Cancel"; .@s = select(.@menu$) -1; if (.@s == .@j) close; /* Now display ItemID of selected inventory */ mesf("You have selected %d", .@ID[.@s]); // this did not return correct info because it reads [.@s] index from getinventorylist but not the filtered menu.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.