icegrave01 0 Posted November 24, 2015 It's working fine but when i click the npc it's say [Debug] Souce <NPC> : custom_enchantment.txt Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted November 24, 2015 that script needs a lot of optimization, and while I test that script, sometimes I got infinite loop error https://rathena.org/board/topic/77031-armor-enchanter-npc/ its better to try mine, and request what issit you want Quote Share this post Link to post Share on other sites
0 icegrave01 0 Posted November 25, 2015 Thanks @@AnnieRuru! but i want that script badly Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted November 25, 2015 that script uses custom items if (.@class_type == 1) { set .@class_type$, "Swordman"; set .@rand_bonus, rand(25000,25017); } else if (.@class_type == 2) { set .@class_type$, "Mage"; set .@rand_bonus, rand(25018,25037); } else if (.@class_type == 3) { set .@class_type$, "Thief"; set .@rand_bonus, rand(25038,25058); } else if (.@class_type == 4) { set .@class_type$, "Archer"; set .@rand_bonus, rand(25059,25080); } else if (.@class_type == 5) { set .@class_type$, "Merchant"; set .@rand_bonus, rand(25081,25102); } else if (.@class_type == 6) { set .@class_type$, "Acolyte"; set .@rand_bonus, rand(25103,25126); }.... delitem 30000,1;all these item ID are not available in our current SVNwe only have those in the ID range 4700~4899 like I said, use mine, then request what you want that script are too customized and unoptimized, I'm unable to improve that script Quote Share this post Link to post Share on other sites
0 icegrave01 0 Posted November 25, 2015 (edited) Ok i will try use your script. i want to add 2nd,3rd and 4 slot, it will ask the player what bonuses he/she want to add. 2nd slot = 50% chance , 3rd slot = 30% chance 4th slot = 10% chance. the item will not broke. it may fail to add bonuses. within id range only thanks @@AnnieRuru for helping me Edited November 25, 2015 by icegrave01 Quote Share this post Link to post Share on other sites
It's working fine but when i click the npc it's say [Debug] Souce <NPC> :
custom_enchantment.txt
Share this post
Link to post
Share on other sites