Vazant 0 Report post Posted December 19, 2017 Hi i'm still fairly new to the dev phase. My coder is currently on vacation for a long time and i would like some help from you guys. I currently need to know how to make the Refining Gem Vouchers "clickable" in order to obtain a Refining gem without heading over to the npc. ty Quote Share this post Link to post Share on other sites
Maximilian 25 Report post Posted December 19, 2017 You need to add an item use function to the item and have it output a refining gem. I would suggest you to dig into the server files for items with a similar behavior and try to implement it yourself, it's mostly copy and paste 1 Quote Share this post Link to post Share on other sites
blazi10 37 Report post Posted December 19, 2017 (edited) iteminfo.txt: Spoiler XXX Refining Gem Voucher n1176 10130005 0 0 0 0 0 0 31 0 0 0 0 0 0 0 0 1 99 0 10 -1,-2,-2,-2 0 -1,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2,-2 0 0 -1,-2,-2,-2,-2,-2,-2,-2,-2,-2 -1,-2,-2,-2,-2,-2,-2,-2,-2,-2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0 0,0 0,0 0 0 0 0 0 0 0 0 0 ItemUse_refgem 0 0 0 0,0 0 0 Refining Gem Voucher 0 XXX- ur ID from iteminfo itemeffect.lua: Spoiler function ItemUse_refgem ( role , Item ) local Item_CanGet = GetChaFreeBagGridNum ( role ) if Item_CanGet < 1 then SystemNotice(role ,"you need at least 1 free slot to open Refining gem voucher") UseItemFailed ( role ) return end GiveItem( role, 0 , 885, 1, 4 ) ----adds 1x refining gem end Edited December 19, 2017 by blazi10 1 Quote Share this post Link to post Share on other sites
Brothers 24 Report post Posted December 19, 2017 Im glad im here, because of @blazi10 i know i can make a bag droping the items i want! @Vazant, i make mazes drop refining vouchers, and in argent ive made an exchanger, vouchers for x lv Refining gem. If you want i can share you that npc 1 Quote Share this post Link to post Share on other sites
Vazant 0 Report post Posted December 21, 2017 thx every1 i appreciate the help @blazi10 That is was i was looking for ty do much @Brothers Sounds neat but i would rather have them fal than get 100% from a npc bcause im evil like that hahaha @Maximilian thx for the tip will do that in the future Quote Share this post Link to post Share on other sites