Jump to content

boypol

Members
  • Posts

    20
  • Joined

  • Last visited

Posts posted by boypol

  1. 3 hours ago, Emistry said:
    
    // ...{ callfunc("F_CraftItem", <receipt_itemid>, <reward_itemid>, <required_item>, <required_amount>...); }
    // ...{ callfunc("F_CraftItem", 501, 5022, 5001, 1, 5002, 1); }

    make a usable with the item script above.

    and load the following function script

    
    function	script	F_CraftItem	{
    	.@craft_receipt_itemid = getarg(0); 
    	.@craft_reward_itemid = getarg(1); 
    	.@getargcount = getargcount();
    	
    	for (.@i = 2; .@i < .@getargcount - 1; .@i += 2) {
    		if (countitem(getarg(.@i)) < getarg(.@i + 1, 0))
    			return;
    	}
    	
    	delitem getarg(0), 1;
    	for (.@i = 2; .@i < .@getargcount - 1; .@i += 2)
    		delitem getarg(.@i), getarg(.@i + 1, 0);
    	getitem getarg(1), 1;
    	return;
    }

     

    Thanks you much much @Emistry i haven't tried coz i want to reply first! and i know it will work coz coming from you!  ? ? ? i have been spending 1 week looking for this script!  

     

    @Emistry i have tried but not working. maybe my rathena version is old? doesnt have this function ?  

    image.png.d69fb1b97b7df1f035436138b1df8b4c.png

     

    @Emistry Hi Emistry. possible if  you click the item it will show the requirements? then if not complete mes item requirement complete then if complete mes you want to craft this item and make a headgear?

    Thank yuo for the script its very helpful! ?

     

    @Emistry 

     Hi Emistry. possible if  you click the item it will show the requirements? then if not complete mes item requirement complete then if complete mes you want to craft this item and make a headgear?

    then i also noticed if you dont have the requirements it will be deleted item once you click

    Thank yuo for the script its very helpful! ?

     

  2. 1 hour ago, G-RO said:

    helllo,


    just save it and @reloaditemdb. just make sure you follow the correct format when changing inside

    Sir. i converted to yaml. but still unable to read after reload item db? it it correct i have to put on the folder location db/pre-re/item_db_equip.yaml?

    below is the format i put.

     - Id: 29489
        AegisName: chubbymeow
        Name: Chubby Meow
        Type: Armor
        Weight: 20
        Locations:
          Costume_Head_Top: true
        EquipLevelMin: 1
        View: 1882

  3. On 9/26/2020 at 2:33 AM, Kristabyte said:

    Just in case anyone else has this issue... I'm an idiot and it took me a minute to figure out. 
     

    Step by Step guide: 
    1.  Build the csv2yaml.bat file located in the "tools" folder. 

    2.  Once the build is complete, the build will have generated a csv2yaml.exe file located in your ROOT folder. 

    3.  Double click the csv2yaml.exe file and it will generate your txt files -> YML (If applicable). 

    Be sure to put your files to be converted in the import folder, the exe will ask if you want to overwrite the existing file. ?  

    Hi Thanks for the info. may i know how to build? im using centos7. want to convert itemdb to yaml.

×
×
  • Create New...