//===== rAthena Script ========================================\\
//= @alootid'ing Items at Login =\\
//===== By: ===================================================\\
//= by Terrijoo =\\
//===== Current Version: ======================================\\
//= 1.2 =\\
//===== Versions Info: ========================================\\
//= 1.0 First Version. Needs a few testings, but should work =\\
//= 1.1 Added Option to activate it immediately =\\
//= 1.2 Revamped the Toggle-OFF option =\\
//===== Description: ==========================================\\
//= NPC will create Sets (up to 5 different) for @alootid'ing =\\
//= Items at next Login. Each Set has a Name and up to 10 =\\
//= Items that can be stored. =\\
//=============================================================\\
prontera,179,173,4 script Howard#AlootSet1ID 600,{
mes .NPCName$;
mes "Heya. I can manage your @alootid for this Character on login.";
if (set_alootid == 0)
{
mes "Current status is: ^BE1C1COff^000000";
} else {
mes "Current status is: ^0DB40DOn^000000";
mes "Current name is: ^0DB40D"+set_alootid$+"^000000";
}
next;
switch(select("Toggle:Create Sets:Edit A Set:Delete a Set:Cancel"))
{
case 1:
if (set_alootid == 0)
{
L_Easyway:
mes .NPCName$;
mes "The @alootid has been toggled ^0DB40DON^000000";
mes "Please choose a Set.";
if (#LootSet1$ == "" && #LootSet2$ == "" && #LootSet3$ == "" && #LootSet4$ == "" && #LootSet5$ == "" && #LootSet6$ == "")
{
next;
mes .NPCName$;
mes "It seems like you don't have any Sets yet. Please make one first at the first menu ^0000FF\"Create Sets\"^000000";
mes "I toggled the @alootid back to ^BE1C1COFF^000000 again.";
close;
}
set set_alootid, 1;
if (#LootSet1$ == "") { set @menu$[1], "Nothing"; } else { set @menu$[1], #LootSet1$; }
if (#LootSet2$ == "") { set @menu$[2], "Nothing"; } else { set @menu$[2], #LootSet2$; }
if (#LootSet3$ == "") { set @menu$[3], "Nothing"; } else { set @menu$[3], #LootSet3$; }
if (#LootSet4$ == "") { set @menu$[4], "Nothing"; } else { set @menu$[4], #LootSet4$; }
if (#LootSet5$ == "") { set @menu$[5], "Nothing"; } else { set @menu$[5], #LootSet5$; }
if (#LootSet6$ == "") { set @menu$[6], "Nothing"; } else { set @menu$[6], #LootSet6$; }
next;
switch(select(@menu$[1],@menu$[2],@menu$[3],@menu$[4],@menu$[5],@menu$[6]))
{
case 1:
if (@menu$[1] == "Nothing")
{
mes .NPCName$;
mes "Sorry, but you don't have a set here. Please make one or choose another.";
close;
} else {
mes .NPCName$;
mes "You set your Alootid-Set to \""+#LootSet1$+"\".";
set set_alootid$, #LootSet1$;
set set_alootidnr, 1;
mes "Do you want to activate it now?";
next;
switch(select("Yes:No"))
{
case 1:
mes .NPCName$;
mes "Activated!";
atcommand "@alootid reset";
atcommand "@alootid +"+#AlootSet1ID1;
if (#AlootSet1ID2 != 0) { atcommand "@alootid +"+#AlootSet1ID2; }
if (#AlootSet1ID3 != 0) { atcommand "@alootid +"+#AlootSet1ID3; }
if (#AlootSet1ID4 != 0) { atcommand "@alootid +"+#AlootSet1ID4; }
if (#AlootSet1ID5 != 0) { atcommand "@alootid +"+#AlootSet1ID5; }
if (#AlootSet1ID6 != 0) { atcommand "@alootid +"+#AlootSet1ID6; }
if (#AlootSet1ID7 != 0) { atcommand "@alootid +"+#AlootSet1ID7; }
if (#AlootSet1ID8 != 0) { atcommand "@alootid +"+#AlootSet1ID8; }
if (#AlootSet1ID9 != 0) { atcommand "@alootid +"+#AlootSet1ID9; }
if (#AlootSet1ID10 != 0) { atcommand "@alootid +"+#AlootSet1ID10; }
if (#AlootSet1ID11 != 0) { atcommand "@alootid +"+#AlootSet1ID11; }
if (#AlootSet1ID12 != 0) { atcommand "@alootid +"+#AlootSet1ID12; }
if (#AlootSet1ID13 != 0) { atcommand "@alootid +"+#AlootSet1ID13; }
if (#AlootSet1ID14 != 0) { atcommand "@alootid +"+#AlootSet1ID14; }
if (#AlootSet1ID15 != 0) { atcommand "@alootid +"+#AlootSet1ID15; }
if (#AlootSet1ID16 != 0) { atcommand "@alootid +"+#AlootSet1ID16; }
if (#AlootSet1ID17 != 0) { atcommand "@alootid +"+#AlootSet1ID17; }
if (#AlootSet1ID18 != 0) { atcommand "@alootid +"+#AlootSet1ID18; }
if (#AlootSet1ID19 != 0) { atcommand "@alootid +"+#AlootSet1ID19; }
if (#AlootSet1ID20 != 0) { atcommand "@alootid +"+#AlootSet1ID20; }
if (#AlootSet1ID21 != 0) { atcommand "@alootid +"+#AlootSet1ID21; }
if (#AlootSet1ID22 != 0) { atcommand "@alootid +"+#AlootSet1ID22; }
if (#AlootSet1ID23 != 0) { atcommand "@alootid +"+#AlootSet1ID23; }
if (#AlootSet1ID24 != 0) { atcommand "@alootid +"+#AlootSet1ID24; }
if (#AlootSet1ID25 != 0) { atcommand "@alootid +"+#AlootSet1ID25; }
close;
case 2:
mes .NPCName$;
mes "As you wish. Not activated.";
close;
}
close;
}
case 2:
if (@menu$[2] == "Nothing")
{
mes .NPCName$;
mes "Sorry, but you don't have a set here. Please make one or choose another.";
close;
} else {
mes .NPCName$;
mes "You set your Alootid-Set to \""+#LootSet2$+"\".";
set set_alootid$, #LootSet2$;
set set_alootidnr, 2;
mes "Do you want to activate it now?";
next;
switch(select("Yes:No"))
{
case 1:
mes .NPCName$;
mes "Activated!";
atcommand "@alootid reset";
atcommand "@alootid +"+#AlootSet2ID1;
if (#AlootSet2ID2 != 0) { atcommand "@alootid +"+#AlootSet2ID2; }
if (#AlootSet2ID3 != 0) { atcommand "@alootid +"+#AlootSet2ID3; }
if (#AlootSet2ID4 != 0) { atcommand "@alootid +"+#AlootSet2ID4; }
if (#AlootSet2ID5 != 0) { atcommand "@alootid +"+#AlootSet2ID5; }
if (#AlootSet2ID6 != 0) { atcommand "@alootid +"+#AlootSet2ID6; }
if (#AlootSet2ID7 != 0) { atcommand "@alootid +"+#AlootSet2ID7; }
if (#AlootSet2ID8 != 0) { atcommand "@alootid +"+#AlootSet2ID8; }
if (#AlootSet2ID9 != 0) { atcommand "@alootid +"+#AlootSet2ID9; }
if (#AlootSet2ID10 != 0) { atcommand "@alootid +"+#AlootSet2ID10; }
if (#AlootSet2ID11 != 0) { atcommand "@alootid +"+#AlootSet2ID11; }
if (#AlootSet2ID12 != 0) { atcommand "@alootid +"+#AlootSet2ID12; }
if (#AlootSet2ID13 != 0) { atcommand "@alootid +"+#AlootSet2ID13; }
if (#AlootSet2ID14 != 0) { atcommand "@alootid +"+#AlootSet2ID14; }
if (#AlootSet2ID15 != 0) { atcommand "@alootid +"+#AlootSet2ID15; }
if (#AlootSet2ID16 != 0) { atcommand "@alootid +"+#AlootSet2ID16; }
if (#AlootSet2ID17 != 0) { atcommand "@alootid +"+#AlootSet2ID17; }
if (#AlootSet2ID18 != 0) { atcommand "@alootid +"+#AlootSet2ID18; }
if (#AlootSet2ID19 != 0) { atcommand "@alootid +"+#AlootSet2ID19; }
if (#AlootSet2ID20 != 0) { atcommand "@alootid +"+#AlootSet2ID20; }
if (#AlootSet2ID21 != 0) { atcommand "@alootid +"+#AlootSet2ID21; }
if (#AlootSet2ID22 != 0) { atcommand "@alootid +"+#AlootSet2ID22; }
if (#AlootSet2ID23 != 0) { atcommand "@alootid +"+#AlootSet2ID23; }
if (#AlootSet2ID24 != 0) { atcommand "@alootid +"+#AlootSet2ID24; }
if (#AlootSet2ID25 != 0) { atcommand "@alootid +"+#AlootSet2ID25; }
close;
case 2:
mes .NPCName$;
mes "As you wish. Not activated.";
close;
}
close;
}
case 3:
if (@menu$[3] == "Nothing")
{
mes .NPCName$;
mes "Sorry, but you don't have a set here. Please make one or choose another.";
close;
} else {
mes .NPCName$;
mes "You set your Alootid-Set to \""+#LootSet3$+"\".";
set set_alootid$, #LootSet3$;
set set_alootidnr, 3;
mes "Do you want to activate it now?";
next;
switch(select("Yes:No"))
{
case 1:
mes .NPCName$;
mes "Activated!";
atcommand "@alootid reset";
atcommand "@alootid +"+#AlootSet3ID1;
if (#AlootSet3ID2 != 0) { atcommand "@alootid +"+#AlootSet3ID2; }
if (#AlootSet3ID3 != 0) { atcommand "@alootid +"+#AlootSet3ID3; }
if (#AlootSet3ID4 != 0) { atcommand "@alootid +"+#AlootSet3ID4; }
if (#AlootSet3ID5 != 0) { atcommand "@alootid +"+#AlootSet3ID5; }
if (#AlootSet3ID6 != 0) { atcommand "@alootid +"+#AlootSet3ID6; }
if (#AlootSet3ID7 != 0) { atcommand "@alootid +"+#AlootSet3ID7; }
if (#AlootSet3ID8 != 0) { atcommand "@alootid +"+#AlootSet3ID8; }
if (#AlootSet3ID9 != 0) { atcommand "@alootid +"+#AlootSet3ID9; }
if (#AlootSet3ID10 != 0) { atcommand "@alootid +"+#AlootSet3ID10; }
if (#AlootSet3ID11 != 0) { atcommand "@alootid +"+#AlootSet3ID11; }
if (#AlootSet3ID12 != 0) { atcommand "@alootid +"+#AlootSet3ID12; }
if (#AlootSet3ID13 != 0) { atcommand "@alootid +"+#AlootSet3ID13; }
if (#AlootSet3ID14 != 0) { atcommand "@alootid +"+#AlootSet3ID14; }
if (#AlootSet3ID15 != 0) { atcommand "@alootid +"+#AlootSet3ID15; }
if (#AlootSet3ID16 != 0) { atcommand "@alootid +"+#AlootSet3ID16; }
if (#AlootSet3ID17 != 0) { atcommand "@alootid +"+#AlootSet3ID17; }
if (#AlootSet3ID18 != 0) { atcommand "@alootid +"+#AlootSet3ID18; }
if (#AlootSet3ID19 != 0) { atcommand "@alootid +"+#AlootSet3ID19; }
if (#AlootSet3ID20 != 0) { atcommand "@alootid +"+#AlootSet3ID20; }
if (#AlootSet3ID21 != 0) { atcommand "@alootid +"+#AlootSet3ID21; }
if (#AlootSet3ID22 != 0) { atcommand "@alootid +"+#AlootSet3ID22; }
if (#AlootSet3ID23 != 0) { atcommand "@alootid +"+#AlootSet3ID23; }
if (#AlootSet3ID24 != 0) { atcommand "@alootid +"+#AlootSet3ID24; }
if (#AlootSet3ID25 != 0) { atcommand "@alootid +"+#AlootSet3ID25; }
close;
case 2:
mes .NPCName$;
mes "As you wish. Not activated.";
close;
}
close;
}
case 4:
if (@menu$[4] == "Nothing")
{
mes .NPCName$;
mes "Sorry, but you don't have a set here. Please make one or choose another.";
close;
} else {
mes .NPCName$;
mes "You set your Alootid-Set to \""+#LootSet4$+"\".";
set set_alootid$, #LootSet4$;
set set_alootidnr, 4;
mes "Do you want to activate it now?";
next;
switch(select("Yes:No"))
{
case 1:
mes .NPCName$;
mes "Activated!";
atcommand "@alootid reset";
atcommand "@alootid +"+#AlootSet4ID1;
if (#AlootSet4ID2 != 0) { atcommand "@alootid +"+#AlootSet4ID2; }
if (#AlootSet4ID3 != 0) { atcommand "@alootid +"+#AlootSet4ID3; }
if (#AlootSet4ID4 != 0) { atcommand "@alootid +"+#AlootSet4ID4; }
if (#AlootSet4ID5 != 0) { atcommand "@alootid +"+#AlootSet4ID5; }
if (#AlootSet4ID6 != 0) { atcommand "@alootid +"+#AlootSet4ID6; }
if (#AlootSet4ID7 != 0) { atcommand "@alootid +"+#AlootSet4ID7; }
if (#AlootSet4ID8 != 0) { atcommand "@alootid +"+#AlootSet4ID8; }
if (#AlootSet4ID9 != 0) { atcommand "@alootid +"+#AlootSet4ID9; }
if (#AlootSet4ID10 != 0) { atcommand "@alootid +"+#AlootSet4ID10; }
if (#AlootSet4ID11 != 0) { atcommand "@alootid +"+#AlootSet4ID11; }
if (#AlootSet4ID12 != 0) { atcommand "@alootid +"+#AlootSet4ID12; }
if (#AlootSet4ID13 != 0) { atcommand "@alootid +"+#AlootSet4ID13; }
if (#AlootSet4ID14 != 0) { atcommand "@alootid +"+#AlootSet4ID14; }
if (#AlootSet4ID15 != 0) { atcommand "@alootid +"+#AlootSet4ID15; }
if (#AlootSet4ID16 != 0) { atcommand "@alootid +"+#AlootSet4ID16; }
if (#AlootSet4ID17 != 0) { atcommand "@alootid +"+#AlootSet4ID17; }
if (#AlootSet4ID18 != 0) { atcommand "@alootid +"+#AlootSet4ID18; }
if (#AlootSet4ID19 != 0) { atcommand "@alootid +"+#AlootSet4ID19; }
if (#AlootSet4ID20 != 0) { atcommand "@alootid +"+#AlootSet4ID20; }
if (#AlootSet4ID21 != 0) { atcommand "@alootid +"+#AlootSet4ID21; }
if (#AlootSet4ID22 != 0) { atcommand "@alootid +"+#AlootSet4ID22; }
if (#AlootSet4ID23 != 0) { atcommand "@alootid +"+#AlootSet4ID23; }
if (#AlootSet4ID24 != 0) { atcommand "@alootid +"+#AlootSet4ID24; }
if (#AlootSet4ID25 != 0) { atcommand "@alootid +"+#AlootSet4ID25; }
close;
case 2:
mes .NPCName$;
mes "As you wish. Not activated.";
close;
}
close;
}
case 5:
if (@menu$[5] == "Nothing")
{
mes .NPCName$;
mes "Sorry, but you don't have a set here. Please make one or choose another.";
close;
} else {
mes .NPCName$;
mes "You set your Alootid-Set to \""+#LootSet5$+"\".";
set set_alootid$, #LootSet5$;
set set_alootidnr, 5;
mes "Do you want to activate it now?";
next;
switch(select("Yes:No"))
{
case 1:
mes .NPCName$;
mes "Activated!";
atcommand "@alootid reset";
atcommand "@alootid +"+#AlootSet5ID1;
if (#AlootSet5ID2 != 0) { atcommand "@alootid +"+#AlootSet5ID2; }
if (#AlootSet5ID3 != 0) { atcommand "@alootid +"+#AlootSet5ID3; }
if (#AlootSet5ID4 != 0) { atcommand "@alootid +"+#AlootSet5ID4; }
if (#AlootSet5ID5 != 0) { atcommand "@alootid +"+#AlootSet5ID5; }
if (#AlootSet5ID6 != 0) { atcommand "@alootid +"+#AlootSet5ID6; }
if (#AlootSet5ID7 != 0) { atcommand "@alootid +"+#AlootSet5ID7; }
if (#AlootSet5ID8 != 0) { atcommand "@alootid +"+#AlootSet5ID8; }
if (#AlootSet5ID9 != 0) { atcommand "@alootid +"+#AlootSet5ID9; }
if (#AlootSet5ID10 != 0) { atcommand "@alootid +"+#AlootSet5ID10; }
if (#AlootSet5ID11 != 0) { atcommand "@alootid +"+#AlootSet5ID11; }
if (#AlootSet5ID12 != 0) { atcommand "@alootid +"+#AlootSet5ID12; }
if (#AlootSet5ID13 != 0) { atcommand "@alootid +"+#AlootSet5ID13; }
if (#AlootSet5ID14 != 0) { atcommand "@alootid +"+#AlootSet5ID14; }
if (#AlootSet5ID15 != 0) { atcommand "@alootid +"+#AlootSet5ID15; }
if (#AlootSet5ID16 != 0) { atcommand "@alootid +"+#AlootSet5ID16; }
if (#AlootSet5ID17 != 0) { atcommand "@alootid +"+#AlootSet5ID17; }
if (#AlootSet5ID18 != 0) { atcommand "@alootid +"+#AlootSet5ID18; }
if (#AlootSet5ID19 != 0) { atcommand "@alootid +"+#AlootSet5ID19; }
if (#AlootSet5ID20 != 0) { atcommand "@alootid +"+#AlootSet5ID20; }
if (#AlootSet5ID21 != 0) { atcommand "@alootid +"+#AlootSet5ID21; }
if (#AlootSet5ID22 != 0) { atcommand "@alootid +"+#AlootSet5ID22; }
if (#AlootSet5ID23 != 0) { atcommand "@alootid +"+#AlootSet5ID23; }
if (#AlootSet5ID24 != 0) { atcommand "@alootid +"+#AlootSet5ID24; }
if (#AlootSet5ID25 != 0) { atcommand "@alootid +"+#AlootSet5ID25; }
close;
case 2:
mes .NPCName$;
mes "As you wish. Not activated.";
close;
}
close;
}
case 6:
if (@menu$[6] == "Nothing")
{
mes .NPCName$;
mes "Sorry, but you don't have a set here. Please make one or choose another.";
close;
} else {
mes .NPCName$;
mes "You set your Alootid-Set to \""+#LootSet6$+"\".";
set set_alootid$, #LootSet6$;
set set_alootidnr, 6;
mes "Do you want to activate it now?";
next;
switch(select("Yes:No"))
{
case 1:
mes .NPCName$;
mes "Activated!";
atcommand "@alootid reset";
atcommand "@alootid +"+#AlootSet6ID1;
if (#AlootSet6ID2 != 0) { atcommand "@alootid +"+#AlootSet6ID2; }
if (#AlootSet6ID3 != 0) { atcommand "@alootid +"+#AlootSet6ID3; }
if (#AlootSet6ID4 != 0) { atcommand "@alootid +"+#AlootSet6ID4; }
if (#AlootSet6ID5 != 0) { atcommand "@alootid +"+#AlootSet6ID5; }
if (#AlootSet6ID6 != 0) { atcommand "@alootid +"+#AlootSet6ID6; }
if (#AlootSet6ID7 != 0) { atcommand "@alootid +"+#AlootSet6ID7; }
if (#AlootSet6ID8 != 0) { atcommand "@alootid +"+#AlootSet6ID8; }
if (#AlootSet6ID9 != 0) { atcommand "@alootid +"+#AlootSet6ID9; }
if (#AlootSet6ID10 != 0) { atcommand "@alootid +"+#AlootSet6ID10; }
if (#AlootSet6ID11 != 0) { atcommand "@alootid +"+#AlootSet6ID11; }
if (#AlootSet6ID12 != 0) { atcommand "@alootid +"+#AlootSet6ID12; }
if (#AlootSet6ID13 != 0) { atcommand "@alootid +"+#AlootSet6ID13; }
if (#AlootSet6ID14 != 0) { atcommand "@alootid +"+#AlootSet6ID14; }
if (#AlootSet6ID15 != 0) { atcommand "@alootid +"+#AlootSet6ID15; }
if (#AlootSet6ID16 != 0) { atcommand "@alootid +"+#AlootSet6ID16; }
if (#AlootSet6ID17 != 0) { atcommand "@alootid +"+#AlootSet6ID17; }
if (#AlootSet6ID18 != 0) { atcommand "@alootid +"+#AlootSet6ID18; }
if (#AlootSet6ID19 != 0) { atcommand "@alootid +"+#AlootSet6ID19; }
if (#AlootSet6ID20 != 0) { atcommand "@alootid +"+#AlootSet6ID20; }
if (#AlootSet6ID21 != 0) { atcommand "@alootid +"+#AlootSet6ID21; }
if (#AlootSet6ID22 != 0) { atcommand "@alootid +"+#AlootSet6ID22; }
if (#AlootSet6ID23 != 0) { atcommand "@alootid +"+#AlootSet6ID23; }
if (#AlootSet6ID24 != 0) { atcommand "@alootid +"+#AlootSet6ID24; }
if (#AlootSet6ID25 != 0) { atcommand "@alootid +"+#AlootSet6ID25; }
close;
case 2:
mes .NPCName$;
mes "As you wish. Not activated.";
close;
}
close;
}
}
} else {
mes .NPCName$;
mes "The @alootid has been toggled ^BE1C1COFF^000000";
set set_alootid, 0;
atcommand "@alootid reset";
mes "Do you want to toggle it on with a new Set?";
next;
switch(select("Yes:No"))
{
case 1:
goto L_Easyway;
break;
case 2:
mes .NPCName$;
mes "Okay~";
close;
}
close;
}
case 2:
mes .NPCName$;
mes "Here I can create your Alootid-Sets.";
mes "Please choose an empty Set.";
mes "Empty/Unused Sets are shown with \"Nothing\".";
if (#LootSet1$ == "") { set @menu$[1], "Nothing"; } else { set @menu$[1], #LootSet1$; }
if (#LootSet2$ == "") { set @menu$[2], "Nothing"; } else { set @menu$[2], #LootSet2$; }
if (#LootSet3$ == "") { set @menu$[3], "Nothing"; } else { set @menu$[3], #LootSet3$; }
if (#LootSet4$ == "") { set @menu$[4], "Nothing"; } else { set @menu$[4], #LootSet4$; }
if (#LootSet5$ == "") { set @menu$[5], "Nothing"; } else { set @menu$[5], #LootSet5$; }
if (#LootSet6$ == "") { set @menu$[6], "Nothing"; } else { set @menu$[6], #LootSet6$; }
next;
switch(select(@menu$[1],@menu$[2],@menu$[3],@menu$[4],@menu$[5],@menu$[6]))
{
case 1:
if(#LootSet1$ == "")
{
mes .NPCName$;
mes "This is an empty Set. Please choose a name for this Set first.";
next;
input @input$;
if (@input$ == "")
{
mes .NPCName$;
mes "Sorry, this is not a valid name.";
close;
}
set #LootSet1$, @input$;
mes .NPCName$;
mes "Your Set got called: \""+#LootSet1$+"\".";
mes "Now please input the Item ID for the first Item.";
mes "(If you want to finish, type in 0)";
set .@counter, 1;
next;
do
{
input @input;
if(@input == 0)
{
next;
} else {
if(getiteminfo(@input,0) == -1)
{
mes .NPCName$;
mes "Sorry, there is no such Item ID.";
mes "Please try again.";
next;
} else {
set .@IDsleft, 25 - .@counter;
if (.@IDsleft == 0)
{
mes .NPCName$;
mes "Sorry, but you already have 25 Items in your Set. Please enter a 0 to finish.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been added to the list.";
mes "You may add "+.@IDsleft+" Items.";
setd "#AlootSet1ID"+.@counter,@input;
set .@counter, .@counter + 1;
next;
}
}
}
} while(@input != 0);
if (#AlootSet1ID1 == 0)
{
mes .NPCName$;
mes "You canceled at the first Item. I'll reset this Set then.";
set #LootSet1$, "";
close;
}
mes .NPCName$;
mes "You have finished this Set.";
mes "Now you may ask me again to toggle the Alootid to ON and choose this set.";
mes "Or do you want to activate it right now? (That WON'T toggle the alootid on Login though. So you need to speak to me again, if you want that as well.)";
next;
switch(select("Yes, activate it now:No, don't activate this Set"))
{
case 1:
mes .NPCName$;
mes "Activated!";
atcommand "@alootid reset";
atcommand "@alootid +"+#AlootSet1ID1;
if (#AlootSet1ID2 != 0) { atcommand "@alootid +"+#AlootSet1ID2; }
if (#AlootSet1ID3 != 0) { atcommand "@alootid +"+#AlootSet1ID3; }
if (#AlootSet1ID4 != 0) { atcommand "@alootid +"+#AlootSet1ID4; }
if (#AlootSet1ID5 != 0) { atcommand "@alootid +"+#AlootSet1ID5; }
if (#AlootSet1ID6 != 0) { atcommand "@alootid +"+#AlootSet1ID6; }
if (#AlootSet1ID7 != 0) { atcommand "@alootid +"+#AlootSet1ID7; }
if (#AlootSet1ID8 != 0) { atcommand "@alootid +"+#AlootSet1ID8; }
if (#AlootSet1ID9 != 0) { atcommand "@alootid +"+#AlootSet1ID9; }
if (#AlootSet1ID10 != 0) { atcommand "@alootid +"+#AlootSet1ID10; }
if (#AlootSet1ID11 != 0) { atcommand "@alootid +"+#AlootSet1ID11; }
if (#AlootSet1ID12 != 0) { atcommand "@alootid +"+#AlootSet1ID12; }
if (#AlootSet1ID13 != 0) { atcommand "@alootid +"+#AlootSet1ID13; }
if (#AlootSet1ID14 != 0) { atcommand "@alootid +"+#AlootSet1ID14; }
if (#AlootSet1ID15 != 0) { atcommand "@alootid +"+#AlootSet1ID15; }
if (#AlootSet1ID16 != 0) { atcommand "@alootid +"+#AlootSet1ID16; }
if (#AlootSet1ID17 != 0) { atcommand "@alootid +"+#AlootSet1ID17; }
if (#AlootSet1ID18 != 0) { atcommand "@alootid +"+#AlootSet1ID18; }
if (#AlootSet1ID19 != 0) { atcommand "@alootid +"+#AlootSet1ID19; }
if (#AlootSet1ID20 != 0) { atcommand "@alootid +"+#AlootSet1ID20; }
if (#AlootSet1ID21 != 0) { atcommand "@alootid +"+#AlootSet1ID21; }
if (#AlootSet1ID22 != 0) { atcommand "@alootid +"+#AlootSet1ID22; }
if (#AlootSet1ID23 != 0) { atcommand "@alootid +"+#AlootSet1ID23; }
if (#AlootSet1ID24 != 0) { atcommand "@alootid +"+#AlootSet1ID24; }
if (#AlootSet1ID25 != 0) { atcommand "@alootid +"+#AlootSet1ID25; }
close;
case 2:
mes .NPCName$;
mes "Then come back, if you want to activate it.";
close;
}
close;
} else {
mes .NPCName$;
mes "Sorry, but this Set is already used. Please delete it first and then re-create it.";
mes "The Items you used in this set are:";
mes "Item 1: "+getitemname(#AlootSet1ID1);
if (#AlootSet1ID2 != 0) { mes "Item 2: "+getitemname(#AlootSet1ID2); }
if (#AlootSet1ID3 != 0) { mes "Item 3: "+getitemname(#AlootSet1ID3); }
if (#AlootSet1ID4 != 0) { mes "Item 4: "+getitemname(#AlootSet1ID4); }
if (#AlootSet1ID5 != 0) { mes "Item 5: "+getitemname(#AlootSet1ID5); }
if (#AlootSet1ID6 != 0) { mes "Item 6: "+getitemname(#AlootSet1ID6); }
if (#AlootSet1ID7 != 0) { mes "Item 7: "+getitemname(#AlootSet1ID7); }
if (#AlootSet1ID8 != 0) { mes "Item 8: "+getitemname(#AlootSet1ID8); }
if (#AlootSet1ID9 != 0) { mes "Item 9: "+getitemname(#AlootSet1ID9); }
if (#AlootSet1ID10 != 0) { mes "Item 10: "+getitemname(#AlootSet1ID10); }
if (#AlootSet1ID11 != 0) { mes "Item 11: "+getitemname(#AlootSet1ID11); }
if (#AlootSet1ID12 != 0) { mes "Item 12: "+getitemname(#AlootSet1ID12); }
if (#AlootSet1ID13 != 0) { mes "Item 13: "+getitemname(#AlootSet1ID13); }
if (#AlootSet1ID14 != 0) { mes "Item 14: "+getitemname(#AlootSet1ID14); }
if (#AlootSet1ID15 != 0) { mes "Item 15: "+getitemname(#AlootSet1ID15); }
if (#AlootSet1ID16 != 0) { mes "Item 16: "+getitemname(#AlootSet1ID16); }
if (#AlootSet1ID17 != 0) { mes "Item 17: "+getitemname(#AlootSet1ID17); }
if (#AlootSet1ID18 != 0) { mes "Item 18: "+getitemname(#AlootSet1ID18); }
if (#AlootSet1ID19 != 0) { mes "Item 19: "+getitemname(#AlootSet1ID19); }
if (#AlootSet1ID20 != 0) { mes "Item 20: "+getitemname(#AlootSet1ID20); }
if (#AlootSet1ID21 != 0) { mes "Item 21: "+getitemname(#AlootSet1ID21); }
if (#AlootSet1ID22 != 0) { mes "Item 22: "+getitemname(#AlootSet1ID22); }
if (#AlootSet1ID23 != 0) { mes "Item 23: "+getitemname(#AlootSet1ID23); }
if (#AlootSet1ID24 != 0) { mes "Item 24: "+getitemname(#AlootSet1ID24); }
if (#AlootSet1ID25 != 0) { mes "Item 25: "+getitemname(#AlootSet1ID25); }
close;
}
case 2:
if(#LootSet2$ == "")
{
mes .NPCName$;
mes "This is an empty Set. Please choose a name for this Set first.";
next;
input @input$;
if (@input$ == "")
{
mes .NPCName$;
mes "Sorry, this is not a valid name.";
close;
}
set #LootSet2$, @input$;
mes .NPCName$;
mes "Your Set got called: \""+#LootSet2$+"\".";
mes "Now please input the Item ID for the first Item.";
mes "(If you want to finish, type in 0)";
set .@counter, 1;
next;
do
{
input @input;
if(@input == 0)
{
next;
} else {
if(getiteminfo(@input,0) == -1)
{
mes .NPCName$;
mes "Sorry, there is no such Item ID.";
mes "Please try again.";
next;
} else {
set .@IDsleft, 25 - .@counter;
if (.@IDsleft == 0)
{
mes .NPCName$;
mes "Sorry, but you already have 25 Items in your Set. Please enter a 0 to finish.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been added to the list.";
mes "You may add "+.@IDsleft+" Items.";
setd "#AlootSet2ID"+.@counter,@input;
set .@counter, .@counter + 1;
next;
}
}
}
} while(@input != 0);
if (#AlootSet2ID1 == 0)
{
mes .NPCName$;
mes "You canceled at the first Item. I'll reset this Set then.";
set #LootSet2$, "";
close;
}
mes .NPCName$;
mes "You have finished this Set.";
mes "Now you may ask me again to toggle the Alootid to ON and choose this set.";
mes "Or do you want to activate it right now? (That WON'T toggle the alootid on Login though. So you need to speak to me again, if you want that as well.)";
next;
switch(select("Yes, activate it now:No, don't activate this Set"))
{
case 1:
mes .NPCName$;
mes "Activated!";
atcommand "@alootid reset";
atcommand "@alootid +"+#AlootSet2ID1;
if (#AlootSet2ID2 != 0) { atcommand "@alootid +"+#AlootSet2ID2; }
if (#AlootSet2ID3 != 0) { atcommand "@alootid +"+#AlootSet2ID3; }
if (#AlootSet2ID4 != 0) { atcommand "@alootid +"+#AlootSet2ID4; }
if (#AlootSet2ID5 != 0) { atcommand "@alootid +"+#AlootSet2ID5; }
if (#AlootSet2ID6 != 0) { atcommand "@alootid +"+#AlootSet2ID6; }
if (#AlootSet2ID7 != 0) { atcommand "@alootid +"+#AlootSet2ID7; }
if (#AlootSet2ID8 != 0) { atcommand "@alootid +"+#AlootSet2ID8; }
if (#AlootSet2ID9 != 0) { atcommand "@alootid +"+#AlootSet2ID9; }
if (#AlootSet2ID10 != 0) { atcommand "@alootid +"+#AlootSet2ID10; }
if (#AlootSet2ID11 != 0) { atcommand "@alootid +"+#AlootSet2ID11; }
if (#AlootSet2ID12 != 0) { atcommand "@alootid +"+#AlootSet2ID12; }
if (#AlootSet2ID13 != 0) { atcommand "@alootid +"+#AlootSet2ID13; }
if (#AlootSet2ID14 != 0) { atcommand "@alootid +"+#AlootSet2ID14; }
if (#AlootSet2ID15 != 0) { atcommand "@alootid +"+#AlootSet2ID15; }
if (#AlootSet2ID16 != 0) { atcommand "@alootid +"+#AlootSet2ID16; }
if (#AlootSet2ID17 != 0) { atcommand "@alootid +"+#AlootSet2ID17; }
if (#AlootSet2ID18 != 0) { atcommand "@alootid +"+#AlootSet2ID18; }
if (#AlootSet2ID19 != 0) { atcommand "@alootid +"+#AlootSet2ID19; }
if (#AlootSet2ID20 != 0) { atcommand "@alootid +"+#AlootSet2ID20; }
if (#AlootSet2ID21 != 0) { atcommand "@alootid +"+#AlootSet2ID21; }
if (#AlootSet2ID22 != 0) { atcommand "@alootid +"+#AlootSet2ID22; }
if (#AlootSet2ID23 != 0) { atcommand "@alootid +"+#AlootSet2ID23; }
if (#AlootSet2ID24 != 0) { atcommand "@alootid +"+#AlootSet2ID24; }
if (#AlootSet2ID25 != 0) { atcommand "@alootid +"+#AlootSet2ID25; }
close;
case 2:
mes .NPCName$;
mes "Then come back, if you want to activate it.";
close;
}
close;
} else {
mes .NPCName$;
mes "Sorry, but this Set is already used. Please delete it first and then re-create it.";
mes "The Items you used in this set are:";
mes "Item 1: "+getitemname(#AlootSet2ID1);
if (#AlootSet2ID2 != 0) { mes "Item 2: "+getitemname(#AlootSet2ID2); }
if (#AlootSet2ID3 != 0) { mes "Item 3: "+getitemname(#AlootSet2ID3); }
if (#AlootSet2ID4 != 0) { mes "Item 4: "+getitemname(#AlootSet2ID4); }
if (#AlootSet2ID5 != 0) { mes "Item 5: "+getitemname(#AlootSet2ID5); }
if (#AlootSet2ID6 != 0) { mes "Item 6: "+getitemname(#AlootSet2ID6); }
if (#AlootSet2ID7 != 0) { mes "Item 7: "+getitemname(#AlootSet2ID7); }
if (#AlootSet2ID8 != 0) { mes "Item 8: "+getitemname(#AlootSet2ID8); }
if (#AlootSet2ID9 != 0) { mes "Item 9: "+getitemname(#AlootSet2ID9); }
if (#AlootSet2ID10 != 0) { mes "Item 10: "+getitemname(#AlootSet2ID10); }
if (#AlootSet2ID11 != 0) { mes "Item 11: "+getitemname(#AlootSet2ID11); }
if (#AlootSet2ID12 != 0) { mes "Item 12: "+getitemname(#AlootSet2ID12); }
if (#AlootSet2ID13 != 0) { mes "Item 13: "+getitemname(#AlootSet2ID13); }
if (#AlootSet2ID14 != 0) { mes "Item 14: "+getitemname(#AlootSet2ID14); }
if (#AlootSet2ID15 != 0) { mes "Item 15: "+getitemname(#AlootSet2ID15); }
if (#AlootSet2ID16 != 0) { mes "Item 16: "+getitemname(#AlootSet2ID16); }
if (#AlootSet2ID17 != 0) { mes "Item 17: "+getitemname(#AlootSet2ID17); }
if (#AlootSet2ID18 != 0) { mes "Item 18: "+getitemname(#AlootSet2ID18); }
if (#AlootSet2ID19 != 0) { mes "Item 19: "+getitemname(#AlootSet2ID19); }
if (#AlootSet2ID20 != 0) { mes "Item 20: "+getitemname(#AlootSet2ID20); }
if (#AlootSet2ID21 != 0) { mes "Item 21: "+getitemname(#AlootSet2ID21); }
if (#AlootSet2ID22 != 0) { mes "Item 22: "+getitemname(#AlootSet2ID22); }
if (#AlootSet2ID23 != 0) { mes "Item 23: "+getitemname(#AlootSet2ID23); }
if (#AlootSet2ID24 != 0) { mes "Item 24: "+getitemname(#AlootSet2ID24); }
if (#AlootSet2ID25 != 0) { mes "Item 25: "+getitemname(#AlootSet2ID25); }
close;
}
case 3:
if(#LootSet3$ == "")
{
mes .NPCName$;
mes "This is an empty Set. Please choose a name for this Set first.";
next;
input @input$;
if (@input$ == "")
{
mes .NPCName$;
mes "Sorry, this is not a valid name.";
close;
}
set #LootSet3$, @input$;
mes .NPCName$;
mes "Your Set got called: \""+#LootSet3$+"\".";
mes "Now please input the Item ID for the first Item.";
mes "(If you want to finish, type in 0)";
set .@counter, 1;
next;
do
{
input @input;
if(@input == 0)
{
next;
} else {
if(getiteminfo(@input,0) == -1)
{
mes .NPCName$;
mes "Sorry, there is no such Item ID.";
mes "Please try again.";
next;
} else {
set .@IDsleft, 25 - .@counter;
if (.@IDsleft == 0)
{
mes .NPCName$;
mes "Sorry, but you already have 25 Items in your Set. Please enter a 0 to finish.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been added to the list.";
mes "You may add "+.@IDsleft+" Items.";
setd "#AlootSet3ID"+.@counter,@input;
set .@counter, .@counter + 1;
next;
}
}
}
} while(@input != 0);
if (#AlootSet3ID1 == 0)
{
mes .NPCName$;
mes "You canceled at the first Item. I'll reset this Set then.";
set #LootSet3$, "";
close;
}
mes .NPCName$;
mes "You have finished this Set.";
mes "Now you may ask me again to toggle the Alootid to ON and choose this set.";
mes "Or do you want to activate it right now? (That WON'T toggle the alootid on Login though. So you need to speak to me again, if you want that as well.)";
next;
switch(select("Yes, activate it now:No, don't activate this Set"))
{
case 1:
mes .NPCName$;
mes "Activated!";
atcommand "@alootid reset";
atcommand "@alootid +"+#AlootSet3ID1;
if (#AlootSet3ID2 != 0) { atcommand "@alootid +"+#AlootSet3ID2; }
if (#AlootSet3ID3 != 0) { atcommand "@alootid +"+#AlootSet3ID3; }
if (#AlootSet3ID4 != 0) { atcommand "@alootid +"+#AlootSet3ID4; }
if (#AlootSet3ID5 != 0) { atcommand "@alootid +"+#AlootSet3ID5; }
if (#AlootSet3ID6 != 0) { atcommand "@alootid +"+#AlootSet3ID6; }
if (#AlootSet3ID7 != 0) { atcommand "@alootid +"+#AlootSet3ID7; }
if (#AlootSet3ID8 != 0) { atcommand "@alootid +"+#AlootSet3ID8; }
if (#AlootSet3ID9 != 0) { atcommand "@alootid +"+#AlootSet3ID9; }
if (#AlootSet3ID10 != 0) { atcommand "@alootid +"+#AlootSet3ID10; }
if (#AlootSet3ID11 != 0) { atcommand "@alootid +"+#AlootSet3ID11; }
if (#AlootSet3ID12 != 0) { atcommand "@alootid +"+#AlootSet3ID12; }
if (#AlootSet3ID13 != 0) { atcommand "@alootid +"+#AlootSet3ID13; }
if (#AlootSet3ID14 != 0) { atcommand "@alootid +"+#AlootSet3ID14; }
if (#AlootSet3ID15 != 0) { atcommand "@alootid +"+#AlootSet3ID15; }
if (#AlootSet3ID16 != 0) { atcommand "@alootid +"+#AlootSet3ID16; }
if (#AlootSet3ID17 != 0) { atcommand "@alootid +"+#AlootSet3ID17; }
if (#AlootSet3ID18 != 0) { atcommand "@alootid +"+#AlootSet3ID18; }
if (#AlootSet3ID19 != 0) { atcommand "@alootid +"+#AlootSet3ID19; }
if (#AlootSet3ID20 != 0) { atcommand "@alootid +"+#AlootSet3ID20; }
if (#AlootSet3ID21 != 0) { atcommand "@alootid +"+#AlootSet3ID21; }
if (#AlootSet3ID22 != 0) { atcommand "@alootid +"+#AlootSet3ID22; }
if (#AlootSet3ID23 != 0) { atcommand "@alootid +"+#AlootSet3ID23; }
if (#AlootSet3ID24 != 0) { atcommand "@alootid +"+#AlootSet3ID24; }
if (#AlootSet3ID25 != 0) { atcommand "@alootid +"+#AlootSet3ID25; }
close;
case 2:
mes .NPCName$;
mes "Then come back, if you want to activate it.";
close;
}
close;
} else {
mes .NPCName$;
mes "Sorry, but this Set is already used. Please delete it first and then re-create it.";
mes "The Items you used in this set are:";
mes "Item 1: "+getitemname(#AlootSet3ID1);
if (#AlootSet3ID2 != 0) { mes "Item 2: "+getitemname(#AlootSet3ID2); }
if (#AlootSet3ID3 != 0) { mes "Item 3: "+getitemname(#AlootSet3ID3); }
if (#AlootSet3ID4 != 0) { mes "Item 4: "+getitemname(#AlootSet3ID4); }
if (#AlootSet3ID5 != 0) { mes "Item 5: "+getitemname(#AlootSet3ID5); }
if (#AlootSet3ID6 != 0) { mes "Item 6: "+getitemname(#AlootSet3ID6); }
if (#AlootSet3ID7 != 0) { mes "Item 7: "+getitemname(#AlootSet3ID7); }
if (#AlootSet3ID8 != 0) { mes "Item 8: "+getitemname(#AlootSet3ID8); }
if (#AlootSet3ID9 != 0) { mes "Item 9: "+getitemname(#AlootSet3ID9); }
if (#AlootSet3ID10 != 0) { mes "Item 10: "+getitemname(#AlootSet3ID10); }
if (#AlootSet3ID11 != 0) { mes "Item 11: "+getitemname(#AlootSet3ID11); }
if (#AlootSet3ID12 != 0) { mes "Item 12: "+getitemname(#AlootSet3ID12); }
if (#AlootSet3ID13 != 0) { mes "Item 13: "+getitemname(#AlootSet3ID13); }
if (#AlootSet3ID14 != 0) { mes "Item 14: "+getitemname(#AlootSet3ID14); }
if (#AlootSet3ID15 != 0) { mes "Item 15: "+getitemname(#AlootSet3ID15); }
if (#AlootSet3ID16 != 0) { mes "Item 16: "+getitemname(#AlootSet3ID16); }
if (#AlootSet3ID17 != 0) { mes "Item 17: "+getitemname(#AlootSet3ID17); }
if (#AlootSet3ID18 != 0) { mes "Item 18: "+getitemname(#AlootSet3ID18); }
if (#AlootSet3ID19 != 0) { mes "Item 19: "+getitemname(#AlootSet3ID19); }
if (#AlootSet3ID20 != 0) { mes "Item 20: "+getitemname(#AlootSet3ID20); }
if (#AlootSet3ID21 != 0) { mes "Item 21: "+getitemname(#AlootSet3ID21); }
if (#AlootSet3ID22 != 0) { mes "Item 22: "+getitemname(#AlootSet3ID22); }
if (#AlootSet3ID23 != 0) { mes "Item 23: "+getitemname(#AlootSet3ID23); }
if (#AlootSet3ID24 != 0) { mes "Item 24: "+getitemname(#AlootSet3ID24); }
if (#AlootSet3ID25 != 0) { mes "Item 25: "+getitemname(#AlootSet3ID25); }
close;
}
case 4:
if(#LootSet4$ == "")
{
mes .NPCName$;
mes "This is an empty Set. Please choose a name for this Set first.";
next;
input @input$;
if (@input$ == "")
{
mes .NPCName$;
mes "Sorry, this is not a valid name.";
close;
}
set #LootSet4$, @input$;
mes .NPCName$;
mes "Your Set got called: \""+#LootSet4$+"\".";
mes "Now please input the Item ID for the first Item.";
mes "(If you want to finish, type in 0)";
set .@counter, 1;
next;
do
{
input @input;
if(@input == 0)
{
next;
} else {
if(getiteminfo(@input,0) == -1)
{
mes .NPCName$;
mes "Sorry, there is no such Item ID.";
mes "Please try again.";
next;
} else {
set .@IDsleft, 25 - .@counter;
if (.@IDsleft == 0)
{
mes .NPCName$;
mes "Sorry, but you already have 25 Items in your Set. Please enter a 0 to finish.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been added to the list.";
mes "You may add "+.@IDsleft+" Items.";
setd "#AlootSet4ID"+.@counter,@input;
set .@counter, .@counter + 1;
next;
}
}
}
} while(@input != 0);
if (#AlootSet4ID1 == 0)
{
mes .NPCName$;
mes "You canceled at the first Item. I'll reset this Set then.";
set #LootSet4$, "";
close;
}
mes .NPCName$;
mes "You have finished this Set.";
mes "Now you may ask me again to toggle the Alootid to ON and choose this set.";
mes "Or do you want to activate it right now? (That WON'T toggle the alootid on Login though. So you need to speak to me again, if you want that as well.)";
next;
switch(select("Yes, activate it now:No, don't activate this Set"))
{
case 1:
mes .NPCName$;
mes "Activated!";
atcommand "@alootid reset";
atcommand "@alootid +"+#AlootSet4ID1;
if (#AlootSet4ID2 != 0) { atcommand "@alootid +"+#AlootSet4ID2; }
if (#AlootSet4ID3 != 0) { atcommand "@alootid +"+#AlootSet4ID3; }
if (#AlootSet4ID4 != 0) { atcommand "@alootid +"+#AlootSet4ID4; }
if (#AlootSet4ID5 != 0) { atcommand "@alootid +"+#AlootSet4ID5; }
if (#AlootSet4ID6 != 0) { atcommand "@alootid +"+#AlootSet4ID6; }
if (#AlootSet4ID7 != 0) { atcommand "@alootid +"+#AlootSet4ID7; }
if (#AlootSet4ID8 != 0) { atcommand "@alootid +"+#AlootSet4ID8; }
if (#AlootSet4ID9 != 0) { atcommand "@alootid +"+#AlootSet4ID9; }
if (#AlootSet4ID10 != 0) { atcommand "@alootid +"+#AlootSet4ID10; }
if (#AlootSet4ID11 != 0) { atcommand "@alootid +"+#AlootSet4ID11; }
if (#AlootSet4ID12 != 0) { atcommand "@alootid +"+#AlootSet4ID12; }
if (#AlootSet4ID13 != 0) { atcommand "@alootid +"+#AlootSet4ID13; }
if (#AlootSet4ID14 != 0) { atcommand "@alootid +"+#AlootSet4ID14; }
if (#AlootSet4ID15 != 0) { atcommand "@alootid +"+#AlootSet4ID15; }
if (#AlootSet4ID16 != 0) { atcommand "@alootid +"+#AlootSet4ID16; }
if (#AlootSet4ID17 != 0) { atcommand "@alootid +"+#AlootSet4ID17; }
if (#AlootSet4ID18 != 0) { atcommand "@alootid +"+#AlootSet4ID18; }
if (#AlootSet4ID19 != 0) { atcommand "@alootid +"+#AlootSet4ID19; }
if (#AlootSet4ID20 != 0) { atcommand "@alootid +"+#AlootSet4ID20; }
if (#AlootSet4ID21 != 0) { atcommand "@alootid +"+#AlootSet4ID21; }
if (#AlootSet4ID22 != 0) { atcommand "@alootid +"+#AlootSet4ID22; }
if (#AlootSet4ID23 != 0) { atcommand "@alootid +"+#AlootSet4ID23; }
if (#AlootSet4ID24 != 0) { atcommand "@alootid +"+#AlootSet4ID24; }
if (#AlootSet4ID25 != 0) { atcommand "@alootid +"+#AlootSet4ID25; }
close;
case 2:
mes .NPCName$;
mes "Then come back, if you want to activate it.";
close;
}
close;
} else {
mes .NPCName$;
mes "Sorry, but this Set is already used. Please delete it first and then re-create it.";
mes "The Items you used in this set are:";
mes "Item 1: "+getitemname(#AlootSet4ID1);
if (#AlootSet4ID2 != 0) { mes "Item 2: "+getitemname(#AlootSet4ID2); }
if (#AlootSet4ID3 != 0) { mes "Item 3: "+getitemname(#AlootSet4ID3); }
if (#AlootSet4ID4 != 0) { mes "Item 4: "+getitemname(#AlootSet4ID4); }
if (#AlootSet4ID5 != 0) { mes "Item 5: "+getitemname(#AlootSet4ID5); }
if (#AlootSet4ID6 != 0) { mes "Item 6: "+getitemname(#AlootSet4ID6); }
if (#AlootSet4ID7 != 0) { mes "Item 7: "+getitemname(#AlootSet4ID7); }
if (#AlootSet4ID8 != 0) { mes "Item 8: "+getitemname(#AlootSet4ID8); }
if (#AlootSet4ID9 != 0) { mes "Item 9: "+getitemname(#AlootSet4ID9); }
if (#AlootSet4ID10 != 0) { mes "Item 10: "+getitemname(#AlootSet4ID10); }
if (#AlootSet4ID11 != 0) { mes "Item 11: "+getitemname(#AlootSet4ID11); }
if (#AlootSet4ID12 != 0) { mes "Item 12: "+getitemname(#AlootSet4ID12); }
if (#AlootSet4ID13 != 0) { mes "Item 13: "+getitemname(#AlootSet4ID13); }
if (#AlootSet4ID14 != 0) { mes "Item 14: "+getitemname(#AlootSet4ID14); }
if (#AlootSet4ID15 != 0) { mes "Item 15: "+getitemname(#AlootSet4ID15); }
if (#AlootSet4ID16 != 0) { mes "Item 16: "+getitemname(#AlootSet4ID16); }
if (#AlootSet4ID17 != 0) { mes "Item 17: "+getitemname(#AlootSet4ID17); }
if (#AlootSet4ID18 != 0) { mes "Item 18: "+getitemname(#AlootSet4ID18); }
if (#AlootSet4ID19 != 0) { mes "Item 19: "+getitemname(#AlootSet4ID19); }
if (#AlootSet4ID20 != 0) { mes "Item 20: "+getitemname(#AlootSet4ID20); }
if (#AlootSet4ID21 != 0) { mes "Item 21: "+getitemname(#AlootSet4ID21); }
if (#AlootSet4ID22 != 0) { mes "Item 22: "+getitemname(#AlootSet4ID22); }
if (#AlootSet4ID23 != 0) { mes "Item 23: "+getitemname(#AlootSet4ID23); }
if (#AlootSet4ID24 != 0) { mes "Item 24: "+getitemname(#AlootSet4ID24); }
if (#AlootSet4ID25 != 0) { mes "Item 25: "+getitemname(#AlootSet4ID25); }
close;
}
case 5:
if(#LootSet5$ == "")
{
mes .NPCName$;
mes "This is an empty Set. Please choose a name for this Set first.";
next;
input @input$;
if (@input$ == "")
{
mes .NPCName$;
mes "Sorry, this is not a valid name.";
close;
}
set #LootSet5$, @input$;
mes .NPCName$;
mes "Your Set got called: \""+#LootSet5$+"\".";
mes "Now please input the Item ID for the first Item.";
mes "(If you want to finish, type in 0)";
set .@counter, 1;
next;
do
{
input @input;
if(@input == 0)
{
next;
} else {
if(getiteminfo(@input,0) == -1)
{
mes .NPCName$;
mes "Sorry, there is no such Item ID.";
mes "Please try again.";
next;
} else {
set .@IDsleft, 25 - .@counter;
if (.@IDsleft == 0)
{
mes .NPCName$;
mes "Sorry, but you already have 25 Items in your Set. Please enter a 0 to finish.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been added to the list.";
mes "You may add "+.@IDsleft+" Items.";
setd "#AlootSet5ID"+.@counter,@input;
set .@counter, .@counter + 1;
next;
}
}
}
} while(@input != 0);
if (#AlootSet5ID1 == 0)
{
mes .NPCName$;
mes "You canceled at the first Item. I'll reset this Set then.";
set #LootSet5$, "";
close;
}
mes .NPCName$;
mes "You have finished this Set.";
mes "Now you may ask me again to toggle the Alootid to ON and choose this set.";
mes "Or do you want to activate it right now? (That WON'T toggle the alootid on Login though. So you need to speak to me again, if you want that as well.)";
next;
switch(select("Yes, activate it now:No, don't activate this Set"))
{
case 1:
mes .NPCName$;
mes "Activated!";
atcommand "@alootid reset";
atcommand "@alootid +"+#AlootSet5ID1;
if (#AlootSet5ID2 != 0) { atcommand "@alootid +"+#AlootSet5ID2; }
if (#AlootSet5ID3 != 0) { atcommand "@alootid +"+#AlootSet5ID3; }
if (#AlootSet5ID4 != 0) { atcommand "@alootid +"+#AlootSet5ID4; }
if (#AlootSet5ID5 != 0) { atcommand "@alootid +"+#AlootSet5ID5; }
if (#AlootSet5ID6 != 0) { atcommand "@alootid +"+#AlootSet5ID6; }
if (#AlootSet5ID7 != 0) { atcommand "@alootid +"+#AlootSet5ID7; }
if (#AlootSet5ID8 != 0) { atcommand "@alootid +"+#AlootSet5ID8; }
if (#AlootSet5ID9 != 0) { atcommand "@alootid +"+#AlootSet5ID9; }
if (#AlootSet5ID10 != 0) { atcommand "@alootid +"+#AlootSet5ID10; }
if (#AlootSet5ID11 != 0) { atcommand "@alootid +"+#AlootSet5ID11; }
if (#AlootSet5ID12 != 0) { atcommand "@alootid +"+#AlootSet5ID12; }
if (#AlootSet5ID13 != 0) { atcommand "@alootid +"+#AlootSet5ID13; }
if (#AlootSet5ID14 != 0) { atcommand "@alootid +"+#AlootSet5ID14; }
if (#AlootSet5ID15 != 0) { atcommand "@alootid +"+#AlootSet5ID15; }
if (#AlootSet5ID16 != 0) { atcommand "@alootid +"+#AlootSet5ID16; }
if (#AlootSet5ID17 != 0) { atcommand "@alootid +"+#AlootSet5ID17; }
if (#AlootSet5ID18 != 0) { atcommand "@alootid +"+#AlootSet5ID18; }
if (#AlootSet5ID19 != 0) { atcommand "@alootid +"+#AlootSet5ID19; }
if (#AlootSet5ID20 != 0) { atcommand "@alootid +"+#AlootSet5ID20; }
if (#AlootSet5ID21 != 0) { atcommand "@alootid +"+#AlootSet5ID21; }
if (#AlootSet5ID22 != 0) { atcommand "@alootid +"+#AlootSet5ID22; }
if (#AlootSet5ID23 != 0) { atcommand "@alootid +"+#AlootSet5ID23; }
if (#AlootSet5ID24 != 0) { atcommand "@alootid +"+#AlootSet5ID24; }
if (#AlootSet5ID25 != 0) { atcommand "@alootid +"+#AlootSet5ID25; }
close;
case 2:
mes .NPCName$;
mes "Then come back, if you want to activate it.";
close;
}
close;
} else {
mes .NPCName$;
mes "Sorry, but this Set is already used. Please delete it first and then re-create it.";
mes "The Items you used in this set are:";
mes "Item 1: "+getitemname(#AlootSet5ID1);
if (#AlootSet5ID2 != 0) { mes "Item 2: "+getitemname(#AlootSet5ID2); }
if (#AlootSet5ID3 != 0) { mes "Item 3: "+getitemname(#AlootSet5ID3); }
if (#AlootSet5ID4 != 0) { mes "Item 4: "+getitemname(#AlootSet5ID4); }
if (#AlootSet5ID5 != 0) { mes "Item 5: "+getitemname(#AlootSet5ID5); }
if (#AlootSet5ID6 != 0) { mes "Item 6: "+getitemname(#AlootSet5ID6); }
if (#AlootSet5ID7 != 0) { mes "Item 7: "+getitemname(#AlootSet5ID7); }
if (#AlootSet5ID8 != 0) { mes "Item 8: "+getitemname(#AlootSet5ID8); }
if (#AlootSet5ID9 != 0) { mes "Item 9: "+getitemname(#AlootSet5ID9); }
if (#AlootSet5ID10 != 0) { mes "Item 10: "+getitemname(#AlootSet5ID10); }
if (#AlootSet5ID11 != 0) { mes "Item 11: "+getitemname(#AlootSet5ID11); }
if (#AlootSet5ID12 != 0) { mes "Item 12: "+getitemname(#AlootSet5ID12); }
if (#AlootSet5ID13 != 0) { mes "Item 13: "+getitemname(#AlootSet5ID13); }
if (#AlootSet5ID14 != 0) { mes "Item 14: "+getitemname(#AlootSet5ID14); }
if (#AlootSet5ID15 != 0) { mes "Item 15: "+getitemname(#AlootSet5ID15); }
if (#AlootSet5ID16 != 0) { mes "Item 16: "+getitemname(#AlootSet5ID16); }
if (#AlootSet5ID17 != 0) { mes "Item 17: "+getitemname(#AlootSet5ID17); }
if (#AlootSet5ID18 != 0) { mes "Item 18: "+getitemname(#AlootSet5ID18); }
if (#AlootSet5ID19 != 0) { mes "Item 19: "+getitemname(#AlootSet5ID19); }
if (#AlootSet5ID20 != 0) { mes "Item 20: "+getitemname(#AlootSet5ID20); }
if (#AlootSet5ID21 != 0) { mes "Item 21: "+getitemname(#AlootSet5ID21); }
if (#AlootSet5ID22 != 0) { mes "Item 22: "+getitemname(#AlootSet5ID22); }
if (#AlootSet5ID23 != 0) { mes "Item 23: "+getitemname(#AlootSet5ID23); }
if (#AlootSet5ID24 != 0) { mes "Item 24: "+getitemname(#AlootSet5ID24); }
if (#AlootSet5ID25 != 0) { mes "Item 25: "+getitemname(#AlootSet5ID25); }
close;
}
case 6:
if(#LootSet6$ == "")
{
mes .NPCName$;
mes "This is an empty Set. Please choose a name for this Set first.";
next;
input @input$;
if (@input$ == "")
{
mes .NPCName$;
mes "Sorry, this is not a valid name.";
close;
}
set #LootSet6$, @input$;
mes .NPCName$;
mes "Your Set got called: \""+#LootSet6$+"\".";
mes "Now please input the Item ID for the first Item.";
mes "(If you want to finish, type in 0)";
set .@counter, 1;
next;
do
{
input @input;
if(@input == 0)
{
next;
} else {
if(getiteminfo(@input,0) == -1)
{
mes .NPCName$;
mes "Sorry, there is no such Item ID.";
mes "Please try again.";
next;
} else {
set .@IDsleft, 25 - .@counter;
if (.@IDsleft == 0)
{
mes .NPCName$;
mes "Sorry, but you already have 25 Items in your Set. Please enter a 0 to finish.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been added to the list.";
mes "You may add "+.@IDsleft+" Items.";
setd "#AlootSet6ID"+.@counter,@input;
set .@counter, .@counter + 1;
next;
}
}
}
} while(@input != 0);
if (#AlootSet6ID1 == 0)
{
mes .NPCName$;
mes "You canceled at the first Item. I'll reset this Set then.";
set #LootSet6$, "";
close;
}
mes .NPCName$;
mes "You have finished this Set.";
mes "Now you may ask me again to toggle the Alootid to ON and choose this set.";
mes "Or do you want to activate it right now? (That WON'T toggle the alootid on Login though. So you need to speak to me again, if you want that as well.)";
next;
switch(select("Yes, activate it now:No, don't activate this Set"))
{
case 1:
mes .NPCName$;
mes "Activated!";
atcommand "@alootid reset";
atcommand "@alootid +"+#AlootSet6ID1;
if (#AlootSet6ID2 != 0) { atcommand "@alootid +"+#AlootSet6ID2; }
if (#AlootSet6ID3 != 0) { atcommand "@alootid +"+#AlootSet6ID3; }
if (#AlootSet6ID4 != 0) { atcommand "@alootid +"+#AlootSet6ID4; }
if (#AlootSet6ID5 != 0) { atcommand "@alootid +"+#AlootSet6ID5; }
if (#AlootSet6ID6 != 0) { atcommand "@alootid +"+#AlootSet6ID6; }
if (#AlootSet6ID7 != 0) { atcommand "@alootid +"+#AlootSet6ID7; }
if (#AlootSet6ID8 != 0) { atcommand "@alootid +"+#AlootSet6ID8; }
if (#AlootSet6ID9 != 0) { atcommand "@alootid +"+#AlootSet6ID9; }
if (#AlootSet6ID10 != 0) { atcommand "@alootid +"+#AlootSet6ID10; }
if (#AlootSet6ID11 != 0) { atcommand "@alootid +"+#AlootSet6ID11; }
if (#AlootSet6ID12 != 0) { atcommand "@alootid +"+#AlootSet6ID12; }
if (#AlootSet6ID13 != 0) { atcommand "@alootid +"+#AlootSet6ID13; }
if (#AlootSet6ID14 != 0) { atcommand "@alootid +"+#AlootSet6ID14; }
if (#AlootSet6ID15 != 0) { atcommand "@alootid +"+#AlootSet6ID15; }
if (#AlootSet6ID16 != 0) { atcommand "@alootid +"+#AlootSet6ID16; }
if (#AlootSet6ID17 != 0) { atcommand "@alootid +"+#AlootSet6ID17; }
if (#AlootSet6ID18 != 0) { atcommand "@alootid +"+#AlootSet6ID18; }
if (#AlootSet6ID19 != 0) { atcommand "@alootid +"+#AlootSet6ID19; }
if (#AlootSet6ID20 != 0) { atcommand "@alootid +"+#AlootSet6ID20; }
if (#AlootSet6ID21 != 0) { atcommand "@alootid +"+#AlootSet6ID21; }
if (#AlootSet6ID22 != 0) { atcommand "@alootid +"+#AlootSet6ID22; }
if (#AlootSet6ID23 != 0) { atcommand "@alootid +"+#AlootSet6ID23; }
if (#AlootSet6ID24 != 0) { atcommand "@alootid +"+#AlootSet6ID24; }
if (#AlootSet6ID25 != 0) { atcommand "@alootid +"+#AlootSet6ID25; }
close;
case 2:
mes .NPCName$;
mes "Then come back, if you want to activate it.";
close;
}
close;
} else {
mes .NPCName$;
mes "Sorry, but this Set is already used. Please delete it first and then re-create it.";
mes "The Items you used in this set are:";
mes "Item 1: "+getitemname(#AlootSet6ID1);
if (#AlootSet6ID2 != 0) { mes "Item 2: "+getitemname(#AlootSet6ID2); }
if (#AlootSet6ID3 != 0) { mes "Item 3: "+getitemname(#AlootSet6ID3); }
if (#AlootSet6ID4 != 0) { mes "Item 4: "+getitemname(#AlootSet6ID4); }
if (#AlootSet6ID5 != 0) { mes "Item 5: "+getitemname(#AlootSet6ID5); }
if (#AlootSet6ID6 != 0) { mes "Item 6: "+getitemname(#AlootSet6ID6); }
if (#AlootSet6ID7 != 0) { mes "Item 7: "+getitemname(#AlootSet6ID7); }
if (#AlootSet6ID8 != 0) { mes "Item 8: "+getitemname(#AlootSet6ID8); }
if (#AlootSet6ID9 != 0) { mes "Item 9: "+getitemname(#AlootSet6ID9); }
if (#AlootSet6ID10 != 0) { mes "Item 10: "+getitemname(#AlootSet6ID10); }
if (#AlootSet6ID11 != 0) { mes "Item 11: "+getitemname(#AlootSet6ID11); }
if (#AlootSet6ID12 != 0) { mes "Item 12: "+getitemname(#AlootSet6ID12); }
if (#AlootSet6ID13 != 0) { mes "Item 13: "+getitemname(#AlootSet6ID13); }
if (#AlootSet6ID14 != 0) { mes "Item 14: "+getitemname(#AlootSet6ID14); }
if (#AlootSet6ID15 != 0) { mes "Item 15: "+getitemname(#AlootSet6ID15); }
if (#AlootSet6ID16 != 0) { mes "Item 16: "+getitemname(#AlootSet6ID16); }
if (#AlootSet6ID17 != 0) { mes "Item 17: "+getitemname(#AlootSet6ID17); }
if (#AlootSet6ID18 != 0) { mes "Item 18: "+getitemname(#AlootSet6ID18); }
if (#AlootSet6ID19 != 0) { mes "Item 19: "+getitemname(#AlootSet6ID19); }
if (#AlootSet6ID20 != 0) { mes "Item 20: "+getitemname(#AlootSet6ID20); }
if (#AlootSet6ID21 != 0) { mes "Item 21: "+getitemname(#AlootSet6ID21); }
if (#AlootSet6ID22 != 0) { mes "Item 22: "+getitemname(#AlootSet6ID22); }
if (#AlootSet6ID23 != 0) { mes "Item 23: "+getitemname(#AlootSet6ID23); }
if (#AlootSet6ID24 != 0) { mes "Item 24: "+getitemname(#AlootSet6ID24); }
if (#AlootSet6ID25 != 0) { mes "Item 25: "+getitemname(#AlootSet6ID25); }
close;
}
}
case 3:
mes .NPCName$;
mes "Alright, let's edit an existing set!";
mes "What set do you want to edit?";
mes "Empty/Unused Sets are shown with \"Nothing\" and can't be edited.";
if (#LootSet1$ == "") { set @menu$[1], "Nothing"; } else { set @menu$[1], #LootSet1$; }
if (#LootSet2$ == "") { set @menu$[2], "Nothing"; } else { set @menu$[2], #LootSet2$; }
if (#LootSet3$ == "") { set @menu$[3], "Nothing"; } else { set @menu$[3], #LootSet3$; }
if (#LootSet4$ == "") { set @menu$[4], "Nothing"; } else { set @menu$[4], #LootSet4$; }
if (#LootSet5$ == "") { set @menu$[5], "Nothing"; } else { set @menu$[5], #LootSet5$; }
if (#LootSet6$ == "") { set @menu$[6], "Nothing"; } else { set @menu$[6], #LootSet6$; }
next;
switch(select(@menu$[1],@menu$[2],@menu$[3],@menu$[4],@menu$[5],@menu$[6]))
{
case 1:
if (@menu$[1] != "Nothing")
{
mes .NPCName$;
mes "Perfect! Let's edit what's listed in this set.";
mes "You can Delete any item by entering 0.";
mes "Or edit the item ID by entering it in place of an existing one.";
if (#AlootSet1ID1 != 0) { set @menu$[1], "Add Item"; } else { set @menu$[1], "Item ID "+#AlootSet1ID1+" - ("+getitemname(#AlootSet1ID1)"+)"; }
if (#AlootSet1ID2 != 0) { set @menu$[2], "Add Item"; } else { set @menu$[2], "Item ID "+#AlootSet1ID2+" - ("+getitemname(#AlootSet1ID2)"+)"; }
if (#AlootSet1ID3 != 0) { set @menu$[3], "Add Item"; } else { set @menu$[3], "Item ID "+#AlootSet1ID3+" - ("+getitemname(#AlootSet1ID3)"+)"; }
if (#AlootSet1ID4 != 0) { set @menu$[4], "Add Item"; } else { set @menu$[4], "Item ID "+#AlootSet1ID4+" - ("+getitemname(#AlootSet1ID4)"+)"; }
if (#AlootSet1ID5 != 0) { set @menu$[5], "Add Item"; } else { set @menu$[5], "Item ID "+#AlootSet1ID5+" - ("+getitemname(#AlootSet1ID5)"+)"; }
if (#AlootSet1ID6 != 0) { set @menu$[6], "Add Item"; } else { set @menu$[6], "Item ID "+#AlootSet1ID6+" - ("+getitemname(#AlootSet1ID6)"+)"; }
if (#AlootSet1ID7 != 0) { set @menu$[7], "Add Item"; } else { set @menu$[7], "Item ID "+#AlootSet1ID7+" - ("+getitemname(#AlootSet1ID7)"+)"; }
if (#AlootSet1ID8 != 0) { set @menu$[8], "Add Item"; } else { set @menu$[8], "Item ID "+#AlootSet1ID8+" - ("+getitemname(#AlootSet1ID8)"+)"; }
if (#AlootSet1ID9 != 0) { set @menu$[9], "Add Item"; } else { set @menu$[9], "Item ID "+#AlootSet1ID9+" - ("+getitemname(#AlootSet1ID9)"+)"; }
if (#AlootSet1ID10 != 0) { set @menu$[10], "Add Item"; } else { set @menu$[10], "Item ID "+#AlootSet1ID10+" - ("+getitemname(#AlootSet1ID10)"+)"; }
if (#AlootSet1ID11 != 0) { set @menu$[11], "Add Item"; } else { set @menu$[11], "Item ID "+#AlootSet1ID11+" - ("+getitemname(#AlootSet1ID11)"+)"; }
if (#AlootSet1ID12 != 0) { set @menu$[12], "Add Item"; } else { set @menu$[12], "Item ID "+#AlootSet1ID12+" - ("+getitemname(#AlootSet1ID12)"+)"; }
if (#AlootSet1ID13 != 0) { set @menu$[13], "Add Item"; } else { set @menu$[13], "Item ID "+#AlootSet1ID13+" - ("+getitemname(#AlootSet1ID13)"+)"; }
if (#AlootSet1ID14 != 0) { set @menu$[14], "Add Item"; } else { set @menu$[14], "Item ID "+#AlootSet1ID14+" - ("+getitemname(#AlootSet1ID14)"+)"; }
if (#AlootSet1ID15 != 0) { set @menu$[15], "Add Item"; } else { set @menu$[15], "Item ID "+#AlootSet1ID15+" - ("+getitemname(#AlootSet1ID15)"+)"; }
if (#AlootSet1ID16 != 0) { set @menu$[16], "Add Item"; } else { set @menu$[16], "Item ID "+#AlootSet1ID16+" - ("+getitemname(#AlootSet1ID16)"+)"; }
if (#AlootSet1ID17 != 0) { set @menu$[17], "Add Item"; } else { set @menu$[17], "Item ID "+#AlootSet1ID17+" - ("+getitemname(#AlootSet1ID17)"+)"; }
if (#AlootSet1ID18 != 0) { set @menu$[18], "Add Item"; } else { set @menu$[18], "Item ID "+#AlootSet1ID18+" - ("+getitemname(#AlootSet1ID18)"+)"; }
if (#AlootSet1ID19 != 0) { set @menu$[19], "Add Item"; } else { set @menu$[19], "Item ID "+#AlootSet1ID19+" - ("+getitemname(#AlootSet1ID19)"+)"; }
if (#AlootSet1ID20 != 0) { set @menu$[20], "Add Item"; } else { set @menu$[20], "Item ID "+#AlootSet1ID20+" - ("+getitemname(#AlootSet1ID20)"+)"; }
if (#AlootSet1ID21 != 0) { set @menu$[21], "Add Item"; } else { set @menu$[21], "Item ID "+#AlootSet1ID21+" - ("+getitemname(#AlootSet1ID21)"+)"; }
if (#AlootSet1ID22 != 0) { set @menu$[22], "Add Item"; } else { set @menu$[22], "Item ID "+#AlootSet1ID22+" - ("+getitemname(#AlootSet1ID22)"+)"; }
if (#AlootSet1ID23 != 0) { set @menu$[23], "Add Item"; } else { set @menu$[23], "Item ID "+#AlootSet1ID23+" - ("+getitemname(#AlootSet1ID23)"+)"; }
if (#AlootSet1ID24 != 0) { set @menu$[24], "Add Item"; } else { set @menu$[24], "Item ID "+#AlootSet1ID24+" - ("+getitemname(#AlootSet1ID24)"+)"; }
if (#AlootSet1ID25 != 0) { set @menu$[25], "Add Item"; } else { set @menu$[25], "Item ID "+#AlootSet1ID25+" - ("+getitemname(#AlootSet1ID25)"+)"; }
next;
switch(select(@menu$[1],@menu$[2],@menu$[3],@menu$[4],@menu$[5],@menu$[6],@menu$[7],@menu$[8],@menu$[9],@menu$[10],@menu$[11],@menu$[12],@menu$[13],@menu$[14],@menu$[15],@menu$[16],@menu$[17],@menu$[18],@menu$[19],@menu$[20],@menu$[21],@menu$[22],@menu$[23],@menu$[24],@menu$[25]))
{
case 1:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet1ID1,@input;
next;
}
}
case 2:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet1ID2,@input;
next;
}
}
case 3:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet1ID3,@input;
next;
}
}
case 4:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet1ID4,@input;
next;
}
}
case 5:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet1ID5,@input;
next;
}
}
case 6:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet1ID6,@input;
next;
}
}
case 7:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet1ID7,@input;
next;
}
}
case 8:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet1ID8,@input;
next;
}
}
case 9:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet1ID9,@input;
next;
}
}
case 10:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet1ID10,@input;
next;
}
}
case 11:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet1ID11,@input;
next;
}
}
case 12:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet1ID12,@input;
next;
}
}
case 13:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet1ID13,@input;
next;
}
}
case 14:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet1ID14,@input;
next;
}
}
case 15:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet1ID15,@input;
next;
}
}
case 16:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet1ID16,@input;
next;
}
}
case 17:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet1ID17,@input;
next;
}
}
case 18:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet1ID18,@input;
next;
}
}
case 19:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet1ID19,@input;
next;
}
}
case 20:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet1ID20,@input;
next;
}
}
case 21:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet1ID21,@input;
next;
}
}
case 22:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet1ID22,@input;
next;
}
}
case 23:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet1ID23,@input;
next;
}
}
case 24:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet1ID24,@input;
next;
}
}
case 25:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet1ID25,@input;
next;
}
}
}
} else {
mes .NPCName$;
mes "You have nothing created in this set!";
mes "Please create a set before editing it.";
close;
}
case 2:
if (@menu$[2] != "Nothing")
{
mes .NPCName$;
mes "Perfect! Let's edit what's listed in this set.";
mes "You can Delete any item by entering 0.";
mes "Or edit the item ID by entering it in place of an existing one.";
if (#AlootSet2ID1 != 0) { set @menu$[1], "Add Item"; } else { set @menu$[1], "Item ID "+#AlootSet2ID1+" - ("+getitemname(#AlootSet2ID1)"+)"; }
if (#AlootSet2ID2 != 0) { set @menu$[2], "Add Item"; } else { set @menu$[2], "Item ID "+#AlootSet2ID2+" - ("+getitemname(#AlootSet2ID2)"+)"; }
if (#AlootSet2ID3 != 0) { set @menu$[3], "Add Item"; } else { set @menu$[3], "Item ID "+#AlootSet2ID3+" - ("+getitemname(#AlootSet2ID3)"+)"; }
if (#AlootSet2ID4 != 0) { set @menu$[4], "Add Item"; } else { set @menu$[4], "Item ID "+#AlootSet2ID4+" - ("+getitemname(#AlootSet2ID4)"+)"; }
if (#AlootSet2ID5 != 0) { set @menu$[5], "Add Item"; } else { set @menu$[5], "Item ID "+#AlootSet2ID5+" - ("+getitemname(#AlootSet2ID5)"+)"; }
if (#AlootSet2ID6 != 0) { set @menu$[6], "Add Item"; } else { set @menu$[6], "Item ID "+#AlootSet2ID6+" - ("+getitemname(#AlootSet2ID6)"+)"; }
if (#AlootSet2ID7 != 0) { set @menu$[7], "Add Item"; } else { set @menu$[7], "Item ID "+#AlootSet2ID7+" - ("+getitemname(#AlootSet2ID7)"+)"; }
if (#AlootSet2ID8 != 0) { set @menu$[8], "Add Item"; } else { set @menu$[8], "Item ID "+#AlootSet2ID8+" - ("+getitemname(#AlootSet2ID8)"+)"; }
if (#AlootSet2ID9 != 0) { set @menu$[9], "Add Item"; } else { set @menu$[9], "Item ID "+#AlootSet2ID9+" - ("+getitemname(#AlootSet2ID9)"+)"; }
if (#AlootSet2ID10 != 0) { set @menu$[10], "Add Item"; } else { set @menu$[10], "Item ID "+#AlootSet2ID10+" - ("+getitemname(#AlootSet2ID10)"+)"; }
if (#AlootSet2ID11 != 0) { set @menu$[11], "Add Item"; } else { set @menu$[11], "Item ID "+#AlootSet2ID11+" - ("+getitemname(#AlootSet2ID11)"+)"; }
if (#AlootSet2ID12 != 0) { set @menu$[12], "Add Item"; } else { set @menu$[12], "Item ID "+#AlootSet2ID12+" - ("+getitemname(#AlootSet2ID12)"+)"; }
if (#AlootSet2ID13 != 0) { set @menu$[13], "Add Item"; } else { set @menu$[13], "Item ID "+#AlootSet2ID13+" - ("+getitemname(#AlootSet2ID13)"+)"; }
if (#AlootSet2ID14 != 0) { set @menu$[14], "Add Item"; } else { set @menu$[14], "Item ID "+#AlootSet2ID14+" - ("+getitemname(#AlootSet2ID14)"+)"; }
if (#AlootSet2ID15 != 0) { set @menu$[15], "Add Item"; } else { set @menu$[15], "Item ID "+#AlootSet2ID15+" - ("+getitemname(#AlootSet2ID15)"+)"; }
if (#AlootSet2ID16 != 0) { set @menu$[16], "Add Item"; } else { set @menu$[16], "Item ID "+#AlootSet2ID16+" - ("+getitemname(#AlootSet2ID16)"+)"; }
if (#AlootSet2ID17 != 0) { set @menu$[17], "Add Item"; } else { set @menu$[17], "Item ID "+#AlootSet2ID17+" - ("+getitemname(#AlootSet2ID17)"+)"; }
if (#AlootSet2ID18 != 0) { set @menu$[18], "Add Item"; } else { set @menu$[18], "Item ID "+#AlootSet2ID18+" - ("+getitemname(#AlootSet2ID18)"+)"; }
if (#AlootSet2ID19 != 0) { set @menu$[19], "Add Item"; } else { set @menu$[19], "Item ID "+#AlootSet2ID19+" - ("+getitemname(#AlootSet2ID19)"+)"; }
if (#AlootSet2ID20 != 0) { set @menu$[20], "Add Item"; } else { set @menu$[20], "Item ID "+#AlootSet2ID20+" - ("+getitemname(#AlootSet2ID20)"+)"; }
if (#AlootSet2ID21 != 0) { set @menu$[21], "Add Item"; } else { set @menu$[21], "Item ID "+#AlootSet2ID21+" - ("+getitemname(#AlootSet2ID21)"+)"; }
if (#AlootSet2ID22 != 0) { set @menu$[22], "Add Item"; } else { set @menu$[22], "Item ID "+#AlootSet2ID22+" - ("+getitemname(#AlootSet2ID22)"+)"; }
if (#AlootSet2ID23 != 0) { set @menu$[23], "Add Item"; } else { set @menu$[23], "Item ID "+#AlootSet2ID23+" - ("+getitemname(#AlootSet2ID23)"+)"; }
if (#AlootSet2ID24 != 0) { set @menu$[24], "Add Item"; } else { set @menu$[24], "Item ID "+#AlootSet2ID24+" - ("+getitemname(#AlootSet2ID24)"+)"; }
if (#AlootSet2ID25 != 0) { set @menu$[25], "Add Item"; } else { set @menu$[25], "Item ID "+#AlootSet2ID25+" - ("+getitemname(#AlootSet2ID25)"+)"; }
next;
switch(select(@menu$[1],@menu$[2],@menu$[3],@menu$[4],@menu$[5],@menu$[6],@menu$[7],@menu$[8],@menu$[9],@menu$[10],@menu$[11],@menu$[12],@menu$[13],@menu$[14],@menu$[15],@menu$[16],@menu$[17],@menu$[18],@menu$[19],@menu$[20],@menu$[21],@menu$[22],@menu$[23],@menu$[24],@menu$[25]))
{
case 1:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet2ID1,@input;
next;
}
}
case 2:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet2ID2,@input;
next;
}
}
case 3:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet2ID3,@input;
next;
}
}
case 4:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet2ID4,@input;
next;
}
}
case 5:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet2ID5,@input;
next;
}
}
case 6:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet2ID6,@input;
next;
}
}
case 7:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet2ID7,@input;
next;
}
}
case 8:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet2ID8,@input;
next;
}
}
case 9:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet2ID9,@input;
next;
}
}
case 10:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet2ID10,@input;
next;
}
}
case 11:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet2ID11,@input;
next;
}
}
case 12:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet2ID12,@input;
next;
}
}
case 13:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet2ID13,@input;
next;
}
}
case 14:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet2ID14,@input;
next;
}
}
case 15:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet2ID15,@input;
next;
}
}
case 16:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet2ID16,@input;
next;
}
}
case 17:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet2ID17,@input;
next;
}
}
case 18:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet2ID18,@input;
next;
}
}
case 19:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet2ID19,@input;
next;
}
}
case 20:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet2ID20,@input;
next;
}
}
case 21:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet2ID21,@input;
next;
}
}
case 22:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet2ID22,@input;
next;
}
}
case 23:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet2ID23,@input;
next;
}
}
case 24:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet2ID24,@input;
next;
}
}
case 25:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet2ID25,@input;
next;
}
}
}
} else {
mes .NPCName$;
mes "You have nothing created in this set!";
mes "Please create a set before editing it.";
close;
}
case 3:
if (@menu$[3] != "Nothing")
{
mes .NPCName$;
mes "Perfect! Let's edit what's listed in this set.";
mes "You can Delete any item by entering 0.";
mes "Or edit the item ID by entering it in place of an existing one.";
if (#AlootSet3ID1 != 0) { set @menu$[1], "Add Item"; } else { set @menu$[1], "Item ID "+#AlootSet3ID1+" - ("+getitemname(#AlootSet3ID1)"+)"; }
if (#AlootSet3ID2 != 0) { set @menu$[2], "Add Item"; } else { set @menu$[2], "Item ID "+#AlootSet3ID2+" - ("+getitemname(#AlootSet3ID2)"+)"; }
if (#AlootSet3ID3 != 0) { set @menu$[3], "Add Item"; } else { set @menu$[3], "Item ID "+#AlootSet3ID3+" - ("+getitemname(#AlootSet3ID3)"+)"; }
if (#AlootSet3ID4 != 0) { set @menu$[4], "Add Item"; } else { set @menu$[4], "Item ID "+#AlootSet3ID4+" - ("+getitemname(#AlootSet3ID4)"+)"; }
if (#AlootSet3ID5 != 0) { set @menu$[5], "Add Item"; } else { set @menu$[5], "Item ID "+#AlootSet3ID5+" - ("+getitemname(#AlootSet3ID5)"+)"; }
if (#AlootSet3ID6 != 0) { set @menu$[6], "Add Item"; } else { set @menu$[6], "Item ID "+#AlootSet3ID6+" - ("+getitemname(#AlootSet3ID6)"+)"; }
if (#AlootSet3ID7 != 0) { set @menu$[7], "Add Item"; } else { set @menu$[7], "Item ID "+#AlootSet3ID7+" - ("+getitemname(#AlootSet3ID7)"+)"; }
if (#AlootSet3ID8 != 0) { set @menu$[8], "Add Item"; } else { set @menu$[8], "Item ID "+#AlootSet3ID8+" - ("+getitemname(#AlootSet3ID8)"+)"; }
if (#AlootSet3ID9 != 0) { set @menu$[9], "Add Item"; } else { set @menu$[9], "Item ID "+#AlootSet3ID9+" - ("+getitemname(#AlootSet3ID9)"+)"; }
if (#AlootSet3ID10 != 0) { set @menu$[10], "Add Item"; } else { set @menu$[10], "Item ID "+#AlootSet3ID10+" - ("+getitemname(#AlootSet3ID10)"+)"; }
if (#AlootSet3ID11 != 0) { set @menu$[11], "Add Item"; } else { set @menu$[11], "Item ID "+#AlootSet3ID11+" - ("+getitemname(#AlootSet3ID11)"+)"; }
if (#AlootSet3ID12 != 0) { set @menu$[12], "Add Item"; } else { set @menu$[12], "Item ID "+#AlootSet3ID12+" - ("+getitemname(#AlootSet3ID12)"+)"; }
if (#AlootSet3ID13 != 0) { set @menu$[13], "Add Item"; } else { set @menu$[13], "Item ID "+#AlootSet3ID13+" - ("+getitemname(#AlootSet3ID13)"+)"; }
if (#AlootSet3ID14 != 0) { set @menu$[14], "Add Item"; } else { set @menu$[14], "Item ID "+#AlootSet3ID14+" - ("+getitemname(#AlootSet3ID14)"+)"; }
if (#AlootSet3ID15 != 0) { set @menu$[15], "Add Item"; } else { set @menu$[15], "Item ID "+#AlootSet3ID15+" - ("+getitemname(#AlootSet3ID15)"+)"; }
if (#AlootSet3ID16 != 0) { set @menu$[16], "Add Item"; } else { set @menu$[16], "Item ID "+#AlootSet3ID16+" - ("+getitemname(#AlootSet3ID16)"+)"; }
if (#AlootSet3ID17 != 0) { set @menu$[17], "Add Item"; } else { set @menu$[17], "Item ID "+#AlootSet3ID17+" - ("+getitemname(#AlootSet3ID17)"+)"; }
if (#AlootSet3ID18 != 0) { set @menu$[18], "Add Item"; } else { set @menu$[18], "Item ID "+#AlootSet3ID18+" - ("+getitemname(#AlootSet3ID18)"+)"; }
if (#AlootSet3ID19 != 0) { set @menu$[19], "Add Item"; } else { set @menu$[19], "Item ID "+#AlootSet3ID19+" - ("+getitemname(#AlootSet3ID19)"+)"; }
if (#AlootSet3ID20 != 0) { set @menu$[20], "Add Item"; } else { set @menu$[20], "Item ID "+#AlootSet3ID20+" - ("+getitemname(#AlootSet3ID20)"+)"; }
if (#AlootSet3ID21 != 0) { set @menu$[21], "Add Item"; } else { set @menu$[21], "Item ID "+#AlootSet3ID21+" - ("+getitemname(#AlootSet3ID21)"+)"; }
if (#AlootSet3ID22 != 0) { set @menu$[22], "Add Item"; } else { set @menu$[22], "Item ID "+#AlootSet3ID22+" - ("+getitemname(#AlootSet3ID22)"+)"; }
if (#AlootSet3ID23 != 0) { set @menu$[23], "Add Item"; } else { set @menu$[23], "Item ID "+#AlootSet3ID23+" - ("+getitemname(#AlootSet3ID23)"+)"; }
if (#AlootSet3ID24 != 0) { set @menu$[24], "Add Item"; } else { set @menu$[24], "Item ID "+#AlootSet3ID24+" - ("+getitemname(#AlootSet3ID24)"+)"; }
if (#AlootSet3ID25 != 0) { set @menu$[25], "Add Item"; } else { set @menu$[25], "Item ID "+#AlootSet3ID25+" - ("+getitemname(#AlootSet3ID25)"+)"; }
next;
switch(select(@menu$[1],@menu$[2],@menu$[3],@menu$[4],@menu$[5],@menu$[6],@menu$[7],@menu$[8],@menu$[9],@menu$[10],@menu$[11],@menu$[12],@menu$[13],@menu$[14],@menu$[15],@menu$[16],@menu$[17],@menu$[18],@menu$[19],@menu$[20],@menu$[21],@menu$[22],@menu$[23],@menu$[24],@menu$[25]))
{
case 1:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet3ID1,@input;
next;
}
}
case 2:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet3ID2,@input;
next;
}
}
case 3:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet3ID3,@input;
next;
}
}
case 4:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet3ID4,@input;
next;
}
}
case 5:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet3ID5,@input;
next;
}
}
case 6:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet3ID6,@input;
next;
}
}
case 7:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet3ID7,@input;
next;
}
}
case 8:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet3ID8,@input;
next;
}
}
case 9:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet3ID9,@input;
next;
}
}
case 10:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet3ID10,@input;
next;
}
}
case 11:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet3ID11,@input;
next;
}
}
case 12:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet3ID12,@input;
next;
}
}
case 13:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet3ID13,@input;
next;
}
}
case 14:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet3ID14,@input;
next;
}
}
case 15:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet3ID15,@input;
next;
}
}
case 16:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet3ID16,@input;
next;
}
}
case 17:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet3ID17,@input;
next;
}
}
case 18:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet3ID18,@input;
next;
}
}
case 19:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet3ID19,@input;
next;
}
}
case 20:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet3ID20,@input;
next;
}
}
case 21:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet3ID21,@input;
next;
}
}
case 22:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet3ID22,@input;
next;
}
}
case 23:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet3ID23,@input;
next;
}
}
case 24:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet3ID24,@input;
next;
}
}
case 25:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet3ID25,@input;
next;
}
}
}
} else {
mes .NPCName$;
mes "You have nothing created in this set!";
mes "Please create a set before editing it.";
close;
}
case 4:
if (@menu$[4] != "Nothing")
{
mes .NPCName$;
mes "Perfect! Let's edit what's listed in this set.";
mes "You can Delete any item by entering 0.";
mes "Or edit the item ID by entering it in place of an existing one.";
if (#AlootSet4ID1 != 0) { set @menu$[1], "Add Item"; } else { set @menu$[1], "Item ID "+#AlootSet4ID1+" - ("+getitemname(#AlootSet4ID1)"+)"; }
if (#AlootSet4ID2 != 0) { set @menu$[2], "Add Item"; } else { set @menu$[2], "Item ID "+#AlootSet4ID2+" - ("+getitemname(#AlootSet4ID2)"+)"; }
if (#AlootSet4ID3 != 0) { set @menu$[3], "Add Item"; } else { set @menu$[3], "Item ID "+#AlootSet4ID3+" - ("+getitemname(#AlootSet4ID3)"+)"; }
if (#AlootSet4ID4 != 0) { set @menu$[4], "Add Item"; } else { set @menu$[4], "Item ID "+#AlootSet4ID4+" - ("+getitemname(#AlootSet4ID4)"+)"; }
if (#AlootSet4ID5 != 0) { set @menu$[5], "Add Item"; } else { set @menu$[5], "Item ID "+#AlootSet4ID5+" - ("+getitemname(#AlootSet4ID5)"+)"; }
if (#AlootSet4ID6 != 0) { set @menu$[6], "Add Item"; } else { set @menu$[6], "Item ID "+#AlootSet4ID6+" - ("+getitemname(#AlootSet4ID6)"+)"; }
if (#AlootSet4ID7 != 0) { set @menu$[7], "Add Item"; } else { set @menu$[7], "Item ID "+#AlootSet4ID7+" - ("+getitemname(#AlootSet4ID7)"+)"; }
if (#AlootSet4ID8 != 0) { set @menu$[8], "Add Item"; } else { set @menu$[8], "Item ID "+#AlootSet4ID8+" - ("+getitemname(#AlootSet4ID8)"+)"; }
if (#AlootSet4ID9 != 0) { set @menu$[9], "Add Item"; } else { set @menu$[9], "Item ID "+#AlootSet4ID9+" - ("+getitemname(#AlootSet4ID9)"+)"; }
if (#AlootSet4ID10 != 0) { set @menu$[10], "Add Item"; } else { set @menu$[10], "Item ID "+#AlootSet4ID10+" - ("+getitemname(#AlootSet4ID10)"+)"; }
if (#AlootSet4ID11 != 0) { set @menu$[11], "Add Item"; } else { set @menu$[11], "Item ID "+#AlootSet4ID11+" - ("+getitemname(#AlootSet4ID11)"+)"; }
if (#AlootSet4ID12 != 0) { set @menu$[12], "Add Item"; } else { set @menu$[12], "Item ID "+#AlootSet4ID12+" - ("+getitemname(#AlootSet4ID12)"+)"; }
if (#AlootSet4ID13 != 0) { set @menu$[13], "Add Item"; } else { set @menu$[13], "Item ID "+#AlootSet4ID13+" - ("+getitemname(#AlootSet4ID13)"+)"; }
if (#AlootSet4ID14 != 0) { set @menu$[14], "Add Item"; } else { set @menu$[14], "Item ID "+#AlootSet4ID14+" - ("+getitemname(#AlootSet4ID14)"+)"; }
if (#AlootSet4ID15 != 0) { set @menu$[15], "Add Item"; } else { set @menu$[15], "Item ID "+#AlootSet4ID15+" - ("+getitemname(#AlootSet4ID15)"+)"; }
if (#AlootSet4ID16 != 0) { set @menu$[16], "Add Item"; } else { set @menu$[16], "Item ID "+#AlootSet4ID16+" - ("+getitemname(#AlootSet4ID16)"+)"; }
if (#AlootSet4ID17 != 0) { set @menu$[17], "Add Item"; } else { set @menu$[17], "Item ID "+#AlootSet4ID17+" - ("+getitemname(#AlootSet4ID17)"+)"; }
if (#AlootSet4ID18 != 0) { set @menu$[18], "Add Item"; } else { set @menu$[18], "Item ID "+#AlootSet4ID18+" - ("+getitemname(#AlootSet4ID18)"+)"; }
if (#AlootSet4ID19 != 0) { set @menu$[19], "Add Item"; } else { set @menu$[19], "Item ID "+#AlootSet4ID19+" - ("+getitemname(#AlootSet4ID19)"+)"; }
if (#AlootSet4ID20 != 0) { set @menu$[20], "Add Item"; } else { set @menu$[20], "Item ID "+#AlootSet4ID20+" - ("+getitemname(#AlootSet4ID20)"+)"; }
if (#AlootSet4ID21 != 0) { set @menu$[21], "Add Item"; } else { set @menu$[21], "Item ID "+#AlootSet4ID21+" - ("+getitemname(#AlootSet4ID21)"+)"; }
if (#AlootSet4ID22 != 0) { set @menu$[22], "Add Item"; } else { set @menu$[22], "Item ID "+#AlootSet4ID22+" - ("+getitemname(#AlootSet4ID22)"+)"; }
if (#AlootSet4ID23 != 0) { set @menu$[23], "Add Item"; } else { set @menu$[23], "Item ID "+#AlootSet4ID23+" - ("+getitemname(#AlootSet4ID23)"+)"; }
if (#AlootSet4ID24 != 0) { set @menu$[24], "Add Item"; } else { set @menu$[24], "Item ID "+#AlootSet4ID24+" - ("+getitemname(#AlootSet4ID24)"+)"; }
if (#AlootSet4ID25 != 0) { set @menu$[25], "Add Item"; } else { set @menu$[25], "Item ID "+#AlootSet4ID25+" - ("+getitemname(#AlootSet4ID25)"+)"; }
next;
switch(select(@menu$[1],@menu$[2],@menu$[3],@menu$[4],@menu$[5],@menu$[6],@menu$[7],@menu$[8],@menu$[9],@menu$[10],@menu$[11],@menu$[12],@menu$[13],@menu$[14],@menu$[15],@menu$[16],@menu$[17],@menu$[18],@menu$[19],@menu$[20],@menu$[21],@menu$[22],@menu$[23],@menu$[24],@menu$[25]))
{
case 1:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet4ID1,@input;
next;
}
}
case 2:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet4ID2,@input;
next;
}
}
case 3:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet4ID3,@input;
next;
}
}
case 4:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet4ID4,@input;
next;
}
}
case 5:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet4ID5,@input;
next;
}
}
case 6:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet4ID6,@input;
next;
}
}
case 7:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet4ID7,@input;
next;
}
}
case 8:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet4ID8,@input;
next;
}
}
case 9:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet4ID9,@input;
next;
}
}
case 10:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet4ID10,@input;
next;
}
}
case 11:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet4ID11,@input;
next;
}
}
case 12:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet4ID12,@input;
next;
}
}
case 13:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet4ID13,@input;
next;
}
}
case 14:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet4ID14,@input;
next;
}
}
case 15:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet4ID15,@input;
next;
}
}
case 16:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet4ID16,@input;
next;
}
}
case 17:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet4ID17,@input;
next;
}
}
case 18:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet4ID18,@input;
next;
}
}
case 19:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet4ID19,@input;
next;
}
}
case 20:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet4ID20,@input;
next;
}
}
case 21:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet4ID21,@input;
next;
}
}
case 22:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet4ID22,@input;
next;
}
}
case 23:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet4ID23,@input;
next;
}
}
case 24:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet4ID24,@input;
next;
}
}
case 25:
mes .NPCName$;
mes "Please input the item ID for what you want to autoloot.";
mes "Enter 0 if you wish to leave this option blank.";
input @input;
if (@input == 0)
{
mes ".NPCName$;
mes "There's nothing there, dimwit!";
close;
} else {
if(getiteminfo(@input,0) == -1)
{
mes ".NPCName$;
mes "Sorry, this is not a valid Item ID";
mes "Please try again.";
next;
} else {
mes .NPCName$;
mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
set #AlootSet4ID25,@input;
next;
}
}
}
} else {
mes .NPCName$;
mes "You have nothing created in this set!";
mes "Please create a set before editing it.";
close;
}
case 5:
if (@menu$[5] != "Nothing")
{
mes .NPCName$;
mes "Perfect! Let's edit what's listed in this set.";
mes "You can Delete any item by entering 0.";
mes "Or edit the item ID by entering it in place of an existing one.";
if (#AlootSet5ID1 != 0) { set @menu$[1], "Add Item"; } else { set @menu$[1], "Item ID "+#AlootSet5ID1+" - ("+getitemname(#AlootSet5ID1)"+)"; }
if (#AlootSet5ID2 != 0) { set @menu$[2], "Add Item"; } else { set @menu$[2], "Item ID "+#AlootSet5ID2+" - ("+getitemname(#AlootSet5ID2)"+)"; }
if (#AlootSet5ID3 != 0) { set @menu$[3], "Add Item"; } else { set @menu$[3], "Item ID "+#AlootSet5ID3+" - ("+getitemname(#AlootSet5ID3)"+)"; }
if (#AlootSet5ID4 != 0) { set @menu$[4], "Add Item"; } else { set @menu$[4], "Item ID "+#AlootSet5ID4+" - ("+getitemname(#AlootSet5ID4)"+)"; }
if (#AlootSet5ID5 != 0) { set @menu$[5], "Add Item"; } else { set @menu$[5], "Item ID "+#AlootSet5ID5+" - ("+getitemname(#AlootSet5ID5)"+)"; }
if (#AlootSet5ID6 != 0) { set @menu$[6], "Add Item"; } else { set @menu$[6], "Item ID "+#AlootSet5ID6+" - ("+getitemname(#AlootSet5ID6)"+)"; }
if (#AlootSet5ID7 != 0) { set @menu$[7], "Add Item"; } else { set @menu$[7], "Item ID "+#AlootSet5ID7+" - ("+getitemname(#AlootSet5ID7)"+)"; }
if (#AlootSet5ID8 != 0) { set @menu$[8], "Add Item"; } else { set @menu$[8], "Item ID "+#AlootSet5ID8+" - ("+getitemname(#AlootSet5ID8)"+)"; }
if (#AlootSet5ID9 != 0) { set @menu$[9], "Add Item"; } else { set @menu$[9], "Item ID "+#AlootSet5ID9+" - ("+getitemname(#AlootSet5ID9)"+)"; }
if (#AlootSet5ID10 != 0) { set @menu$[10], "Add Item"; } else { set @menu$[10], "Item ID "+#AlootSet5ID10+" - ("+getitemname(#AlootSet5ID10)"+)"; }
if (#AlootSet5ID11 != 0) { set @menu$[11], "Add Item"; } else { set @menu$[11], "Item ID "+#AlootSet5ID11+" - ("+getitemname(#AlootSet5ID11)"+)"; }
if (#AlootSet5ID12 != 0) { set @menu$[12], "Add Item"; } else { set @menu$[12], "Item ID "+#AlootSet5ID12+" - ("+getitemname(#AlootSet5ID12)"+)"; }
if (#AlootSet5ID13 != 0) { set @menu$[13], "Add Item"; } else { set @menu$[13], "Item ID "+#AlootSet5ID13+" - ("+getitemname(#AlootSet5ID13)"+)"; }
if (#AlootSet5ID14 != 0) { set @menu$[14], "Add Item"; } else { set @menu$[14], "Item ID "+#AlootSet5ID14+" - ("+getitemname(#AlootSet5ID14)"+)"; }
if (#AlootSet5ID15 != 0) { set @menu$[15], "Add Item"; } else { set @menu$[15], "Item ID "+#AlootSet5ID15+" - ("+getitemname(#AlootSet5ID15)"+)"; }
if (#AlootSet5ID16 != 0) { set @menu$[16], "Add Item"; } else { set @menu$[16], "Item ID "+#AlootSet5ID16+" - ("+getitemname(#AlootSet5ID16)"+)"; }
if (#AlootSet5ID17 != 0) { set @menu$[17], "Add Item"; } else { set @menu$[17], "Item ID "+#AlootSet5ID17+" - ("+getitemname(#AlootSet5ID17)"+)"; }
if (#AlootSet5ID18 != 0) { set @menu$[18], "Add Item"; } else { set @menu$[18], "Item ID "+#AlootSet5ID18+" - ("+getitemname(#AlootSet5ID18)"+)"; }
if (#AlootSet5ID19 != 0) { set @menu$[19], "Add Item"; } else { set @menu$[19], "Item ID "+#AlootSet5ID19+" - ("+getitemname(#AlootSet5ID19)"+)"; }
if (#AlootSet5ID20 != 0) { set @menu$[20], "Add Item"; } else { set @menu$[20], "Item ID "+#AlootSet5ID20+" - ("+getitemname(#AlootSet5ID20)"+)"; }
if (#AlootSet5ID21 != 0) { set @menu$[21], "Add Item"; } else { set @menu$[21], "Item ID "+#AlootSet5ID21+" - ("+getitemname(#AlootSet5ID21)"+)"; }
if (#AlootSet5ID22 != 0) { set @menu$[22], "Add Item"; } else { set @menu$[22], "Item ID "+#AlootSet5ID22+" - ("+getitemname(#AlootSet5ID22)"+)"; }
if (#AlootSet5ID23 != 0) { set @menu$[23], "Add Item"; } else { set @menu$[23], "Item ID "+#AlootSet5ID23+" - ("+getitemname(#AlootSet5ID23)"+)"; }