Hi. Im using this dynamic menu for my custom enchantment. But it seems getting debugs whenever it runs into this script. I can't seem to figure out whats the problem.
mes .npc$;
mes "Please select an equipment from the menu."; next;
while(set(.@a,.@a+1)<=.e_len) {
if(getequipid(.@a)>-1) {
if(getiteminfo(getequipid(.@a),2)!=4) {
set .@menu$, .@menu$+.eqp$[.@a-1]+"- [^0000FF"+getitemname(getequipid(.@a))+"^000000]:";
set(.@menu[getarraysize(.@menu)],.@a);
}
}
}
OnInit:
setarray .eqp$, "Upper Headgear", "Armor", "Left Hand", "Right Hand", "Garment","Shoes", "Accessory1", "Accessory2", "Mid Headgear", "Low Headgear";
set .e_len , getarraysize(.eqp$);
Debugs:
[Debug]: Source (NPC): Ganja Runes#1 at turbo_room (76,110)
[Debug]: Source (NPC): Ganja Runes#1 at turbo_room (76,110)
[Debug]: Source (NPC): Ganja Runes#1 at turbo_room (76,110)
[Debug]: Source (NPC): Ganja Runes#1 at turbo_room (76,110)
[Debug]: Source (NPC): Ganja Runes#1 at turbo_room (76,110)
[Debug]: Source (NPC): Ganja Runes#1 at turbo_room (76,110)
[Debug]: Source (NPC): Ganja Runes#1 at turbo_room (76,110)
[Debug]: Source (NPC): Ganja Runes#1 at turbo_room (76,110)
[Debug]: Source (NPC): Ganja Runes#1 at turbo_room (76,110)
Question
Lord Ganja
Hi. Im using this dynamic menu for my custom enchantment. But it seems getting debugs whenever it runs into this script. I can't seem to figure out whats the problem.
Debugs:
Edited by Lord Ganja6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.