rans 7 Posted February 24, 2016 Hi there can i request a custom enchanter?i mean only work if i have the item to be compounded on my equipExample: npc will only work if i have the +3stats orb(id 9999) and i want it to compund on 3rd slot of my mink coat. i found other script but their script works without the orb in my inventory. i want to make a requirement. Thanks Quote Share this post Link to post Share on other sites
0 Lamex 8 Posted February 24, 2016 Hi there can i request a custom enchanter? i mean only work if i have the item to be compounded on my equip Example: npc will only work if i have the +3stats orb(id 9999) and i want it to compund on 3rd slot of my mink coat. i found other script but their script works without the orb in my inventory. i want to make a requirement. Thanks If you want to make a requirement go http://herc.ws/wiki/Basic_Scripting read it all, analyze and then use if (countitem(9999) >= 1) Where you need this. Quote Share this post Link to post Share on other sites
0 rans 7 Posted February 24, 2016 Well yeah thnx but i was expecting for someone who could make it an array i mean easy configure each time i add an item. if that is possible since my coding skills are not that good and messy script result into a server lag. Quote Share this post Link to post Share on other sites
0 Kubix 83 Posted February 24, 2016 setarray .equipid[0], 1599; <= items that can be enchanted setarray .enchant[0], 9999; <= enchant item id setarray .itemsid[0], 909; <= items that need for enchant setarray .amounts[0], 1; .@menu$ = ""; for( .i = 0; .i < getarraysize( .equipid ); .i ++ ) { .@menu$ += ( .i + 1 ) + ". " + getitemname(.equipid[.i]; .@menu$ += ":"; } @select = select(.@menu$) - 1; if( !isequipped( .equipid[@select] ) ) { mes "equip the item first."; close; } @error = 0; for( .a = 0; .a < getarraysize( .itemsid ); .a ++ ) { if( countitem( .itemsid[.a] ) < .amounts[.a] ) close; // no items delitem .itemsid[.a], .amounts[.a]; } delitem .equipid[@select], 1; getitem2 .equipid[@select], 1, 1, 0, 1, 0, 0, 0, .enchant[0]; close; this is sample. need a menu for select the enchant orbs. But you can use this code for create your script (not tested) 1 Lamex reacted to this Quote Share this post Link to post Share on other sites
0 rans 7 Posted February 25, 2016 Thanks Kubix i will try it Quote Share this post Link to post Share on other sites
Hi there can i request a custom enchanter?
i mean only work if i have the item to be compounded on my equip
Example: npc will only work if i have the +3stats orb(id 9999) and i want it to compund on 3rd slot of my mink coat.
i found other script but their script works without the orb in my inventory. i want to make a requirement.
Thanks
Share this post
Link to post
Share on other sites