devcloud Posted November 2, 2016 Share Posted November 2, 2016 Please Guide How To Create Custom Box i.e. " OBB / Bag = Acid Bottle / Fire Bottle / Slim Potion "i.e.WOE Supply BoxAcid Bottle Box Fire Bottle Box Poison Bottle Box I would like to generate custom box.How To add rental script to item.i.e. I Love China 5423,Lovecap_China,I Love China,4,20,,250,,5,,0,0xFFFFFFFF,7,2,256,,0,0,424,{ bonus bDex,3; bonus2 bSubRace,RC_DemiHuman,10; bonus2 bSubRace,RC_Player,10; },{},{} ( Keep This Alive )Add another as rental item like 7 DaysPlease help.Thanks in Advance Quote Link to comment Share on other sites More sharing options...
0 Cydh Posted November 3, 2016 Share Posted November 3, 2016 u just need more effort to learn from doc/item_group.txt db/import/item_db.txt 32000,WOE_Super_Box,Woe Super Box,18,20,,10,,,,,0xFFFFFFFF,63,2,,,,,,{ getgroupitem(IG_WOE_Super_Box); },{},{} db/const.txt (make sure no duplicate name) IG_WOE_Super_Box 1000 db/import/item_package.txt // GroupID,ItemID,Rate{,Amount,Random,isAnnounced,Duration,GUID,isBound,isNamed} // Always obtained IG_WOE_Super_Box,7135,1,50,0 // 50x Fire_Bottle IG_WOE_Super_Box,7136,1,50,0 // 50x Acid_Bottle // Random group 1 IG_WOE_Super_Box,11500,400,10,1 // 10x Light_Yellow_Pot IG_WOE_Super_Box,11501,300,10,1 // 10x Light_White_Pot IG_WOE_Super_Box,11502,200,10,1 // 10x Light_Blue_Pot IG_WOE_Super_Box,11503,150,5,1 // 5x Siege_White_Potion IG_WOE_Super_Box,11504,150,5,1 // 5x Siege_Blue_Potion // Random group 2 with rental IG_WOE_Super_Box,658,80,1,2 // 10x Union_Of_Tribe IG_WOE_Super_Box,1293,10,1,2,120 // 10x Velum_Jamadhar IG_WOE_Super_Box,1294,10,1,2,120 // 10x Velum_Scare 2 Quote Link to comment Share on other sites More sharing options...
0 Quazy Posted November 3, 2016 Share Posted November 3, 2016 bump for this! i want to know too how can i add custom box with custom item inside Quote Link to comment Share on other sites More sharing options...
0 Start_ Posted November 3, 2016 Share Posted November 3, 2016 (edited) Just make a function like this ( This is simply code not good enough ) function script L_GIFTBOX { set @randOBB,rand(4); if(@randOBB==0){ getitem 501,10; } if(@randOBB==1){ getitem 501,1; } if(@randOBB==2){ getitem 501,1; } if(@randOBB==3){ atcommand "@zeny -10000"; } end; } Then use callfunc "L_GIFTBOX"; on item scripts. // Rental item, You can do it easy from reading documentation. *rentitem <item id>,<time>{,<account_id>}; *rentitem "<item name>",<time>{,<account_id>}; Creates a rental item in the attached character's inventory. The item will expire in <time> seconds and be automatically deleted. When receiving a rental item, the character will receive a message in their chat window. The character will also receive warning messages in their chat window before the item disappears. When rentals expire it will call the OnUnequip Script of the item. This can be used for special cases such as removing a status change or resetting a variable or state of the player. This command can not be used to rent stackable items. Rental items cannot be dropped, traded, sold to NPCs, or placed in guild storage. (i.e. trade mask 75) Note: 'delitem' in an NPC script can still remove rental items. Edited November 3, 2016 by TARTs Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted November 3, 2016 Share Posted November 3, 2016 Item_Group and rentitem Quote Link to comment Share on other sites More sharing options...
0 Stolao Posted November 6, 2016 Share Posted November 6, 2016 If you don't feel like using IG_ https://github.com/Stolao/Npc_Release/blob/master/Custom_Functions/F_ItemWeight.txt Quote Link to comment Share on other sites More sharing options...
0 AinsLord Posted January 11, 2017 Share Posted January 11, 2017 Const.txt doesnt have IG_* unlike the oldest rathena Quote Link to comment Share on other sites More sharing options...
0 NightJar Posted January 23, 2018 Share Posted January 23, 2018 yes. same on me. it doest have IG_ Quote Link to comment Share on other sites More sharing options...
Please Guide How To Create Custom Box i.e. " OBB / Bag = Acid Bottle / Fire Bottle / Slim Potion "
i.e.
WOE Supply Box
Acid Bottle Box
Fire Bottle Box
Poison Bottle Box
I would like to generate custom box.
How To add rental script to item.
i.e. I Love China
Add another as rental item like 7 Days
Please help.
Thanks in Advance
Link to comment
Share on other sites