viewing paste Unknown #13344 | Lua

Posted on the
  1. //===== rAthena Script ========================================\\
  2. //= @alootid'ing Items at Login                               =\\
  3. //===== By: ===================================================\\
  4. //= by Terrijoo                                               =\\
  5. //===== Current Version: ======================================\\
  6. //= 1.2                                                       =\\
  7. //===== Versions Info: ========================================\\
  8. //= 1.0 First Version. Needs a few testings, but should work  =\\
  9. //= 1.1 Added Option to activate it immediately               =\\
  10. //= 1.2 Revamped the Toggle-OFF option                        =\\
  11. //===== Description: ==========================================\\
  12. //= NPC will create Sets (up to 5 different) for @alootid'ing =\\
  13. //= Items at next Login. Each Set has a Name and up to 10     =\\
  14. //= Items that can be stored.                                 =\\
  15. //=============================================================\\
  16. prontera,179,173,4	script	Howard#AlootSet1ID	600,{
  17. 	mes .NPCName$;
  18. 	mes "Heya. I can manage your @alootid for this Character on login.";
  19. 	if (set_alootid == 0)
  20. 	{
  21. 		mes "Current status is: ^BE1C1COff^000000";
  22. 	} else {
  23. 		mes "Current status is: ^0DB40DOn^000000";
  24. 		mes "Current name is: ^0DB40D"+set_alootid$+"^000000";
  25. 	}
  26. 	next;
  27. 	switch(select("Toggle:Create Sets:Edit A Set:Delete a Set:Cancel"))
  28. 	{
  29. 		case 1:
  30. 			if (set_alootid == 0)
  31. 			{
  32. L_Easyway:
  33. 				mes .NPCName$;
  34. 				mes "The @alootid has been toggled ^0DB40DON^000000";
  35. 				mes "Please choose a Set.";
  36. 				if (#LootSet1$ == "" && #LootSet2$ == "" && #LootSet3$ == "" && #LootSet4$ == "" && #LootSet5$ == "" && #LootSet6$ == "")
  37. 				{
  38. 					next;
  39. 					mes .NPCName$;
  40. 					mes "It seems like you don't have any Sets yet. Please make one first at the first menu ^0000FF\"Create Sets\"^000000";
  41. 					mes "I toggled the @alootid back to ^BE1C1COFF^000000 again.";
  42. 					close;
  43. 				}
  44. 				set set_alootid, 1;
  45. 				if (#LootSet1$ == "") { set @menu$[1], "Nothing"; } else { set @menu$[1], #LootSet1$; }
  46. 				if (#LootSet2$ == "") { set @menu$[2], "Nothing"; } else { set @menu$[2], #LootSet2$; }
  47. 				if (#LootSet3$ == "") { set @menu$[3], "Nothing"; } else { set @menu$[3], #LootSet3$; }
  48. 				if (#LootSet4$ == "") { set @menu$[4], "Nothing"; } else { set @menu$[4], #LootSet4$; }
  49. 				if (#LootSet5$ == "") { set @menu$[5], "Nothing"; } else { set @menu$[5], #LootSet5$; }
  50. 				if (#LootSet6$ == "") { set @menu$[6], "Nothing"; } else { set @menu$[6], #LootSet6$; }
  51. 				next;
  52. 				switch(select(@menu$[1],@menu$[2],@menu$[3],@menu$[4],@menu$[5],@menu$[6]))
  53. 				{
  54. 					case 1:
  55. 						if (@menu$[1] == "Nothing")
  56. 						{
  57. 							mes .NPCName$;
  58. 							mes "Sorry, but you don't have a set here. Please make one or choose another.";
  59. 							close;
  60. 						} else {
  61. 							mes .NPCName$;
  62. 							mes "You set your Alootid-Set to \""+#LootSet1$+"\".";
  63. 							set set_alootid$, #LootSet1$;
  64. 							set set_alootidnr, 1;
  65. 							mes "Do you want to activate it now?";
  66. 							next;
  67. 							switch(select("Yes:No"))
  68. 							{
  69. 								case 1:
  70. 									mes .NPCName$;
  71. 									mes "Activated!";
  72. 									atcommand "@alootid reset";
  73. 									atcommand "@alootid +"+#AlootSet1ID1;
  74. 									if (#AlootSet1ID2 != 0) { atcommand "@alootid +"+#AlootSet1ID2; }
  75. 									if (#AlootSet1ID3 != 0) { atcommand "@alootid +"+#AlootSet1ID3; }
  76. 									if (#AlootSet1ID4 != 0) { atcommand "@alootid +"+#AlootSet1ID4; }
  77. 									if (#AlootSet1ID5 != 0) { atcommand "@alootid +"+#AlootSet1ID5; }
  78. 									if (#AlootSet1ID6 != 0) { atcommand "@alootid +"+#AlootSet1ID6; }
  79. 									if (#AlootSet1ID7 != 0) { atcommand "@alootid +"+#AlootSet1ID7; }
  80. 									if (#AlootSet1ID8 != 0) { atcommand "@alootid +"+#AlootSet1ID8; }
  81. 									if (#AlootSet1ID9 != 0) { atcommand "@alootid +"+#AlootSet1ID9; }
  82. 									if (#AlootSet1ID10 != 0) { atcommand "@alootid +"+#AlootSet1ID10; }
  83. 									if (#AlootSet1ID11 != 0) { atcommand "@alootid +"+#AlootSet1ID11; }
  84. 									if (#AlootSet1ID12 != 0) { atcommand "@alootid +"+#AlootSet1ID12; }
  85. 									if (#AlootSet1ID13 != 0) { atcommand "@alootid +"+#AlootSet1ID13; }
  86. 									if (#AlootSet1ID14 != 0) { atcommand "@alootid +"+#AlootSet1ID14; }
  87. 									if (#AlootSet1ID15 != 0) { atcommand "@alootid +"+#AlootSet1ID15; }
  88. 									if (#AlootSet1ID16 != 0) { atcommand "@alootid +"+#AlootSet1ID16; }
  89. 									if (#AlootSet1ID17 != 0) { atcommand "@alootid +"+#AlootSet1ID17; }
  90. 									if (#AlootSet1ID18 != 0) { atcommand "@alootid +"+#AlootSet1ID18; }
  91. 									if (#AlootSet1ID19 != 0) { atcommand "@alootid +"+#AlootSet1ID19; }
  92. 									if (#AlootSet1ID20 != 0) { atcommand "@alootid +"+#AlootSet1ID20; }
  93. 									if (#AlootSet1ID21 != 0) { atcommand "@alootid +"+#AlootSet1ID21; }
  94. 									if (#AlootSet1ID22 != 0) { atcommand "@alootid +"+#AlootSet1ID22; }
  95. 									if (#AlootSet1ID23 != 0) { atcommand "@alootid +"+#AlootSet1ID23; }
  96. 									if (#AlootSet1ID24 != 0) { atcommand "@alootid +"+#AlootSet1ID24; }
  97. 									if (#AlootSet1ID25 != 0) { atcommand "@alootid +"+#AlootSet1ID25; }
  98.  
  99.  
  100. 									close;
  101.  
  102. 								case 2:
  103. 									mes .NPCName$;
  104. 									mes "As you wish. Not activated.";
  105. 									close;
  106. 							}
  107. 							close;
  108. 						}
  109.  
  110. 					case 2:
  111. 						if (@menu$[2] == "Nothing")
  112. 						{
  113. 							mes .NPCName$;
  114. 							mes "Sorry, but you don't have a set here. Please make one or choose another.";
  115. 							close;
  116. 						} else {
  117. 							mes .NPCName$;
  118. 							mes "You set your Alootid-Set to \""+#LootSet2$+"\".";
  119. 							set set_alootid$, #LootSet2$;
  120. 							set set_alootidnr, 2;
  121. 							mes "Do you want to activate it now?";
  122. 							next;
  123. 							switch(select("Yes:No"))
  124. 							{
  125. 								case 1:
  126. 									mes .NPCName$;
  127. 									mes "Activated!";
  128. 									atcommand "@alootid reset";
  129. 									atcommand "@alootid +"+#AlootSet2ID1;
  130. 									if (#AlootSet2ID2 != 0) { atcommand "@alootid +"+#AlootSet2ID2; }
  131. 									if (#AlootSet2ID3 != 0) { atcommand "@alootid +"+#AlootSet2ID3; }
  132. 									if (#AlootSet2ID4 != 0) { atcommand "@alootid +"+#AlootSet2ID4; }
  133. 									if (#AlootSet2ID5 != 0) { atcommand "@alootid +"+#AlootSet2ID5; }
  134. 									if (#AlootSet2ID6 != 0) { atcommand "@alootid +"+#AlootSet2ID6; }
  135. 									if (#AlootSet2ID7 != 0) { atcommand "@alootid +"+#AlootSet2ID7; }
  136. 									if (#AlootSet2ID8 != 0) { atcommand "@alootid +"+#AlootSet2ID8; }
  137. 									if (#AlootSet2ID9 != 0) { atcommand "@alootid +"+#AlootSet2ID9; }
  138. 									if (#AlootSet2ID10 != 0) { atcommand "@alootid +"+#AlootSet2ID10; }
  139. 									if (#AlootSet2ID11 != 0) { atcommand "@alootid +"+#AlootSet2ID11; }
  140. 									if (#AlootSet2ID12 != 0) { atcommand "@alootid +"+#AlootSet2ID12; }
  141. 									if (#AlootSet2ID13 != 0) { atcommand "@alootid +"+#AlootSet2ID13; }
  142. 									if (#AlootSet2ID14 != 0) { atcommand "@alootid +"+#AlootSet2ID14; }
  143. 									if (#AlootSet2ID15 != 0) { atcommand "@alootid +"+#AlootSet2ID15; }
  144. 									if (#AlootSet2ID16 != 0) { atcommand "@alootid +"+#AlootSet2ID16; }
  145. 									if (#AlootSet2ID17 != 0) { atcommand "@alootid +"+#AlootSet2ID17; }
  146. 									if (#AlootSet2ID18 != 0) { atcommand "@alootid +"+#AlootSet2ID18; }
  147. 									if (#AlootSet2ID19 != 0) { atcommand "@alootid +"+#AlootSet2ID19; }
  148. 									if (#AlootSet2ID20 != 0) { atcommand "@alootid +"+#AlootSet2ID20; }
  149. 									if (#AlootSet2ID21 != 0) { atcommand "@alootid +"+#AlootSet2ID21; }
  150. 									if (#AlootSet2ID22 != 0) { atcommand "@alootid +"+#AlootSet2ID22; }
  151. 									if (#AlootSet2ID23 != 0) { atcommand "@alootid +"+#AlootSet2ID23; }
  152. 									if (#AlootSet2ID24 != 0) { atcommand "@alootid +"+#AlootSet2ID24; }
  153. 									if (#AlootSet2ID25 != 0) { atcommand "@alootid +"+#AlootSet2ID25; }
  154.  
  155. 									close;
  156.  
  157. 								case 2:
  158. 									mes .NPCName$;
  159. 									mes "As you wish. Not activated.";
  160. 									close;
  161. 							}
  162. 							close;
  163. 						}
  164.  
  165. 					case 3:
  166. 						if (@menu$[3] == "Nothing")
  167. 						{
  168. 							mes .NPCName$;
  169. 							mes "Sorry, but you don't have a set here. Please make one or choose another.";
  170. 							close;
  171. 						} else {
  172. 							mes .NPCName$;
  173. 							mes "You set your Alootid-Set to \""+#LootSet3$+"\".";
  174. 							set set_alootid$, #LootSet3$;
  175. 							set set_alootidnr, 3;
  176. 							mes "Do you want to activate it now?";
  177. 							next;
  178. 							switch(select("Yes:No"))
  179. 							{
  180. 								case 1:
  181. 									mes .NPCName$;
  182. 									mes "Activated!";
  183. 									atcommand "@alootid reset";
  184. 									atcommand "@alootid +"+#AlootSet3ID1;
  185. 									if (#AlootSet3ID2 != 0) { atcommand "@alootid +"+#AlootSet3ID2; }
  186. 									if (#AlootSet3ID3 != 0) { atcommand "@alootid +"+#AlootSet3ID3; }
  187. 									if (#AlootSet3ID4 != 0) { atcommand "@alootid +"+#AlootSet3ID4; }
  188. 									if (#AlootSet3ID5 != 0) { atcommand "@alootid +"+#AlootSet3ID5; }
  189. 									if (#AlootSet3ID6 != 0) { atcommand "@alootid +"+#AlootSet3ID6; }
  190. 									if (#AlootSet3ID7 != 0) { atcommand "@alootid +"+#AlootSet3ID7; }
  191. 									if (#AlootSet3ID8 != 0) { atcommand "@alootid +"+#AlootSet3ID8; }
  192. 									if (#AlootSet3ID9 != 0) { atcommand "@alootid +"+#AlootSet3ID9; }
  193. 									if (#AlootSet3ID10 != 0) { atcommand "@alootid +"+#AlootSet3ID10; }
  194. 									if (#AlootSet3ID11 != 0) { atcommand "@alootid +"+#AlootSet3ID11; }
  195. 									if (#AlootSet3ID12 != 0) { atcommand "@alootid +"+#AlootSet3ID12; }
  196. 									if (#AlootSet3ID13 != 0) { atcommand "@alootid +"+#AlootSet3ID13; }
  197. 									if (#AlootSet3ID14 != 0) { atcommand "@alootid +"+#AlootSet3ID14; }
  198. 									if (#AlootSet3ID15 != 0) { atcommand "@alootid +"+#AlootSet3ID15; }
  199. 									if (#AlootSet3ID16 != 0) { atcommand "@alootid +"+#AlootSet3ID16; }
  200. 									if (#AlootSet3ID17 != 0) { atcommand "@alootid +"+#AlootSet3ID17; }
  201. 									if (#AlootSet3ID18 != 0) { atcommand "@alootid +"+#AlootSet3ID18; }
  202. 									if (#AlootSet3ID19 != 0) { atcommand "@alootid +"+#AlootSet3ID19; }
  203. 									if (#AlootSet3ID20 != 0) { atcommand "@alootid +"+#AlootSet3ID20; }
  204. 									if (#AlootSet3ID21 != 0) { atcommand "@alootid +"+#AlootSet3ID21; }
  205. 									if (#AlootSet3ID22 != 0) { atcommand "@alootid +"+#AlootSet3ID22; }
  206. 									if (#AlootSet3ID23 != 0) { atcommand "@alootid +"+#AlootSet3ID23; }
  207. 									if (#AlootSet3ID24 != 0) { atcommand "@alootid +"+#AlootSet3ID24; }
  208. 									if (#AlootSet3ID25 != 0) { atcommand "@alootid +"+#AlootSet3ID25; }
  209. 									close;
  210.  
  211. 								case 2:
  212. 									mes .NPCName$;
  213. 									mes "As you wish. Not activated.";
  214. 									close;
  215. 							}
  216. 							close;
  217. 						}
  218.  
  219. 					case 4:
  220. 						if (@menu$[4] == "Nothing")
  221. 						{
  222. 							mes .NPCName$;
  223. 							mes "Sorry, but you don't have a set here. Please make one or choose another.";
  224. 							close;
  225. 						} else {
  226. 							mes .NPCName$;
  227. 							mes "You set your Alootid-Set to \""+#LootSet4$+"\".";
  228. 							set set_alootid$, #LootSet4$;
  229. 							set set_alootidnr, 4;
  230. 							mes "Do you want to activate it now?";
  231. 							next;
  232. 							switch(select("Yes:No"))
  233. 							{
  234. 								case 1:
  235. 									mes .NPCName$;
  236. 									mes "Activated!";
  237. 									atcommand "@alootid reset";
  238. 									atcommand "@alootid +"+#AlootSet4ID1;
  239. 									if (#AlootSet4ID2 != 0) { atcommand "@alootid +"+#AlootSet4ID2; }
  240. 									if (#AlootSet4ID3 != 0) { atcommand "@alootid +"+#AlootSet4ID3; }
  241. 									if (#AlootSet4ID4 != 0) { atcommand "@alootid +"+#AlootSet4ID4; }
  242. 									if (#AlootSet4ID5 != 0) { atcommand "@alootid +"+#AlootSet4ID5; }
  243. 									if (#AlootSet4ID6 != 0) { atcommand "@alootid +"+#AlootSet4ID6; }
  244. 									if (#AlootSet4ID7 != 0) { atcommand "@alootid +"+#AlootSet4ID7; }
  245. 									if (#AlootSet4ID8 != 0) { atcommand "@alootid +"+#AlootSet4ID8; }
  246. 									if (#AlootSet4ID9 != 0) { atcommand "@alootid +"+#AlootSet4ID9; }
  247. 									if (#AlootSet4ID10 != 0) { atcommand "@alootid +"+#AlootSet4ID10; }
  248. 									if (#AlootSet4ID11 != 0) { atcommand "@alootid +"+#AlootSet4ID11; }
  249. 									if (#AlootSet4ID12 != 0) { atcommand "@alootid +"+#AlootSet4ID12; }
  250. 									if (#AlootSet4ID13 != 0) { atcommand "@alootid +"+#AlootSet4ID13; }
  251. 									if (#AlootSet4ID14 != 0) { atcommand "@alootid +"+#AlootSet4ID14; }
  252. 									if (#AlootSet4ID15 != 0) { atcommand "@alootid +"+#AlootSet4ID15; }
  253. 									if (#AlootSet4ID16 != 0) { atcommand "@alootid +"+#AlootSet4ID16; }
  254. 									if (#AlootSet4ID17 != 0) { atcommand "@alootid +"+#AlootSet4ID17; }
  255. 									if (#AlootSet4ID18 != 0) { atcommand "@alootid +"+#AlootSet4ID18; }
  256. 									if (#AlootSet4ID19 != 0) { atcommand "@alootid +"+#AlootSet4ID19; }
  257. 									if (#AlootSet4ID20 != 0) { atcommand "@alootid +"+#AlootSet4ID20; }
  258. 									if (#AlootSet4ID21 != 0) { atcommand "@alootid +"+#AlootSet4ID21; }
  259. 									if (#AlootSet4ID22 != 0) { atcommand "@alootid +"+#AlootSet4ID22; }
  260. 									if (#AlootSet4ID23 != 0) { atcommand "@alootid +"+#AlootSet4ID23; }
  261. 									if (#AlootSet4ID24 != 0) { atcommand "@alootid +"+#AlootSet4ID24; }
  262. 									if (#AlootSet4ID25 != 0) { atcommand "@alootid +"+#AlootSet4ID25; }
  263. 									close;
  264.  
  265. 								case 2:
  266. 									mes .NPCName$;
  267. 									mes "As you wish. Not activated.";
  268. 									close;
  269. 							}
  270. 							close;
  271. 						}
  272.  
  273. 					case 5:
  274. 						if (@menu$[5] == "Nothing")
  275. 						{
  276. 							mes .NPCName$;
  277. 							mes "Sorry, but you don't have a set here. Please make one or choose another.";
  278. 							close;
  279. 						} else {
  280. 							mes .NPCName$;
  281. 							mes "You set your Alootid-Set to \""+#LootSet5$+"\".";
  282. 							set set_alootid$, #LootSet5$;
  283. 							set set_alootidnr, 5;
  284. 							mes "Do you want to activate it now?";
  285. 							next;
  286. 							switch(select("Yes:No"))
  287. 							{
  288. 								case 1:
  289. 									mes .NPCName$;
  290. 									mes "Activated!";
  291. 									atcommand "@alootid reset";
  292. 									atcommand "@alootid +"+#AlootSet5ID1;
  293. 									if (#AlootSet5ID2 != 0) { atcommand "@alootid +"+#AlootSet5ID2; }
  294. 									if (#AlootSet5ID3 != 0) { atcommand "@alootid +"+#AlootSet5ID3; }
  295. 									if (#AlootSet5ID4 != 0) { atcommand "@alootid +"+#AlootSet5ID4; }
  296. 									if (#AlootSet5ID5 != 0) { atcommand "@alootid +"+#AlootSet5ID5; }
  297. 									if (#AlootSet5ID6 != 0) { atcommand "@alootid +"+#AlootSet5ID6; }
  298. 									if (#AlootSet5ID7 != 0) { atcommand "@alootid +"+#AlootSet5ID7; }
  299. 									if (#AlootSet5ID8 != 0) { atcommand "@alootid +"+#AlootSet5ID8; }
  300. 									if (#AlootSet5ID9 != 0) { atcommand "@alootid +"+#AlootSet5ID9; }
  301. 									if (#AlootSet5ID10 != 0) { atcommand "@alootid +"+#AlootSet5ID10; }
  302. 									if (#AlootSet5ID11 != 0) { atcommand "@alootid +"+#AlootSet5ID11; }
  303. 									if (#AlootSet5ID12 != 0) { atcommand "@alootid +"+#AlootSet5ID12; }
  304. 									if (#AlootSet5ID13 != 0) { atcommand "@alootid +"+#AlootSet5ID13; }
  305. 									if (#AlootSet5ID14 != 0) { atcommand "@alootid +"+#AlootSet5ID14; }
  306. 									if (#AlootSet5ID15 != 0) { atcommand "@alootid +"+#AlootSet5ID15; }
  307. 									if (#AlootSet5ID16 != 0) { atcommand "@alootid +"+#AlootSet5ID16; }
  308. 									if (#AlootSet5ID17 != 0) { atcommand "@alootid +"+#AlootSet5ID17; }
  309. 									if (#AlootSet5ID18 != 0) { atcommand "@alootid +"+#AlootSet5ID18; }
  310. 									if (#AlootSet5ID19 != 0) { atcommand "@alootid +"+#AlootSet5ID19; }
  311. 									if (#AlootSet5ID20 != 0) { atcommand "@alootid +"+#AlootSet5ID20; }
  312. 									if (#AlootSet5ID21 != 0) { atcommand "@alootid +"+#AlootSet5ID21; }
  313. 									if (#AlootSet5ID22 != 0) { atcommand "@alootid +"+#AlootSet5ID22; }
  314. 									if (#AlootSet5ID23 != 0) { atcommand "@alootid +"+#AlootSet5ID23; }
  315. 									if (#AlootSet5ID24 != 0) { atcommand "@alootid +"+#AlootSet5ID24; }
  316. 									if (#AlootSet5ID25 != 0) { atcommand "@alootid +"+#AlootSet5ID25; }
  317. 									close;
  318.  
  319. 								case 2:
  320. 									mes .NPCName$;
  321. 									mes "As you wish. Not activated.";
  322. 									close;
  323. 							}
  324. 							close;
  325. 						}
  326.  
  327. 						case 6:
  328. 						if (@menu$[6] == "Nothing")
  329. 						{
  330. 							mes .NPCName$;
  331. 							mes "Sorry, but you don't have a set here. Please make one or choose another.";
  332. 							close;
  333. 						} else {
  334. 							mes .NPCName$;
  335. 							mes "You set your Alootid-Set to \""+#LootSet6$+"\".";
  336. 							set set_alootid$, #LootSet6$;
  337. 							set set_alootidnr, 6;
  338. 							mes "Do you want to activate it now?";
  339. 							next;
  340. 							switch(select("Yes:No"))
  341. 							{
  342. 								case 1:
  343. 									mes .NPCName$;
  344. 									mes "Activated!";
  345. 									atcommand "@alootid reset";
  346. 									atcommand "@alootid +"+#AlootSet6ID1;
  347. 									if (#AlootSet6ID2 != 0) { atcommand "@alootid +"+#AlootSet6ID2; }
  348. 									if (#AlootSet6ID3 != 0) { atcommand "@alootid +"+#AlootSet6ID3; }
  349. 									if (#AlootSet6ID4 != 0) { atcommand "@alootid +"+#AlootSet6ID4; }
  350. 									if (#AlootSet6ID5 != 0) { atcommand "@alootid +"+#AlootSet6ID5; }
  351. 									if (#AlootSet6ID6 != 0) { atcommand "@alootid +"+#AlootSet6ID6; }
  352. 									if (#AlootSet6ID7 != 0) { atcommand "@alootid +"+#AlootSet6ID7; }
  353. 									if (#AlootSet6ID8 != 0) { atcommand "@alootid +"+#AlootSet6ID8; }
  354. 									if (#AlootSet6ID9 != 0) { atcommand "@alootid +"+#AlootSet6ID9; }
  355. 									if (#AlootSet6ID10 != 0) { atcommand "@alootid +"+#AlootSet6ID10; }
  356. 									if (#AlootSet6ID11 != 0) { atcommand "@alootid +"+#AlootSet6ID11; }
  357. 									if (#AlootSet6ID12 != 0) { atcommand "@alootid +"+#AlootSet6ID12; }
  358. 									if (#AlootSet6ID13 != 0) { atcommand "@alootid +"+#AlootSet6ID13; }
  359. 									if (#AlootSet6ID14 != 0) { atcommand "@alootid +"+#AlootSet6ID14; }
  360. 									if (#AlootSet6ID15 != 0) { atcommand "@alootid +"+#AlootSet6ID15; }
  361. 									if (#AlootSet6ID16 != 0) { atcommand "@alootid +"+#AlootSet6ID16; }
  362. 									if (#AlootSet6ID17 != 0) { atcommand "@alootid +"+#AlootSet6ID17; }
  363. 									if (#AlootSet6ID18 != 0) { atcommand "@alootid +"+#AlootSet6ID18; }
  364. 									if (#AlootSet6ID19 != 0) { atcommand "@alootid +"+#AlootSet6ID19; }
  365. 									if (#AlootSet6ID20 != 0) { atcommand "@alootid +"+#AlootSet6ID20; }
  366. 									if (#AlootSet6ID21 != 0) { atcommand "@alootid +"+#AlootSet6ID21; }
  367. 									if (#AlootSet6ID22 != 0) { atcommand "@alootid +"+#AlootSet6ID22; }
  368. 									if (#AlootSet6ID23 != 0) { atcommand "@alootid +"+#AlootSet6ID23; }
  369. 									if (#AlootSet6ID24 != 0) { atcommand "@alootid +"+#AlootSet6ID24; }
  370. 									if (#AlootSet6ID25 != 0) { atcommand "@alootid +"+#AlootSet6ID25; }
  371. 									close;
  372.  
  373. 								case 2:
  374. 									mes .NPCName$;
  375. 									mes "As you wish. Not activated.";
  376. 									close;
  377. 							}
  378. 							close;
  379. 						}
  380. 				}
  381. 			} else {
  382. 				mes .NPCName$;
  383. 				mes "The @alootid has been toggled ^BE1C1COFF^000000";
  384. 				set set_alootid, 0;
  385. 				atcommand "@alootid reset";
  386. 				mes "Do you want to toggle it on with a new Set?";
  387. 				next;
  388. 				switch(select("Yes:No"))
  389. 				{
  390. 					case 1:
  391. 						goto L_Easyway;
  392. 						break;
  393.  
  394. 					case 2:
  395. 						mes .NPCName$;
  396. 						mes "Okay~";
  397. 						close;
  398. 				}
  399. 				close;
  400. 			}
  401.  
  402. 		case 2:
  403. 			mes .NPCName$;
  404. 			mes "Here I can create your Alootid-Sets.";
  405. 			mes "Please choose an empty Set.";
  406. 			mes "Empty/Unused Sets are shown with \"Nothing\".";
  407. 			if (#LootSet1$ == "") { set @menu$[1], "Nothing"; } else { set @menu$[1], #LootSet1$; }
  408. 			if (#LootSet2$ == "") { set @menu$[2], "Nothing"; } else { set @menu$[2], #LootSet2$; }
  409. 			if (#LootSet3$ == "") { set @menu$[3], "Nothing"; } else { set @menu$[3], #LootSet3$; }
  410. 			if (#LootSet4$ == "") { set @menu$[4], "Nothing"; } else { set @menu$[4], #LootSet4$; }
  411. 			if (#LootSet5$ == "") { set @menu$[5], "Nothing"; } else { set @menu$[5], #LootSet5$; }
  412. 			if (#LootSet6$ == "") { set @menu$[6], "Nothing"; } else { set @menu$[6], #LootSet6$; }
  413. 			next;
  414. 			switch(select(@menu$[1],@menu$[2],@menu$[3],@menu$[4],@menu$[5],@menu$[6]))
  415. 			{
  416. 				case 1:
  417. 					if(#LootSet1$ == "")
  418. 					{
  419. 						mes .NPCName$;
  420. 						mes "This is an empty Set. Please choose a name for this Set first.";
  421. 						next;
  422. 						input @input$;
  423. 						if (@input$ == "")
  424. 						{
  425. 							mes .NPCName$;
  426. 							mes "Sorry, this is not a valid name.";
  427. 							close;
  428. 						}
  429. 						set #LootSet1$, @input$;
  430. 						mes .NPCName$;
  431. 						mes "Your Set got called: \""+#LootSet1$+"\".";
  432. 						mes "Now please input the Item ID for the first Item.";
  433. 						mes "(If you want to finish, type in 0)";
  434. 						set .@counter, 1;
  435. 						next;
  436. 						do
  437. 						{
  438. 							input @input;
  439. 							if(@input == 0)
  440. 							{
  441. 								next;
  442. 							} else {
  443. 								if(getiteminfo(@input,0) == -1)
  444. 								{
  445. 									mes .NPCName$;
  446. 									mes "Sorry, there is no such Item ID.";
  447. 									mes "Please try again.";
  448. 									next;
  449. 								} else {
  450. 									set .@IDsleft, 25 - .@counter;
  451. 									if (.@IDsleft == 0)
  452. 									{
  453. 										mes .NPCName$;
  454. 										mes "Sorry, but you already have 25 Items in your Set. Please enter a 0 to finish.";
  455. 										next;
  456. 									} else {
  457. 										mes .NPCName$;
  458. 										mes "Item ID "+@input+" ("+getitemname(@input)+") has been added to the list.";
  459. 										mes "You may add "+.@IDsleft+" Items.";
  460. 										setd "#AlootSet1ID"+.@counter,@input;
  461. 										set .@counter, .@counter + 1;
  462. 										next;
  463. 									}
  464. 								}
  465. 							}
  466. 						} while(@input != 0);
  467. 						if (#AlootSet1ID1 == 0)
  468. 						{
  469. 							mes .NPCName$;
  470. 							mes "You canceled at the first Item. I'll reset this Set then.";
  471. 							set #LootSet1$, "";
  472. 							close;
  473. 						}
  474. 						mes .NPCName$;
  475. 						mes "You have finished this Set.";
  476. 						mes "Now you may ask me again to toggle the Alootid to ON and choose this set.";
  477. 						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.)";
  478. 						next;
  479. 						switch(select("Yes, activate it now:No, don't activate this Set"))
  480. 						{
  481. 							case 1:
  482. 								mes .NPCName$;
  483. 								mes "Activated!";
  484. 								atcommand "@alootid reset";
  485. 									atcommand "@alootid +"+#AlootSet1ID1;
  486. 									if (#AlootSet1ID2 != 0) { atcommand "@alootid +"+#AlootSet1ID2; }
  487. 									if (#AlootSet1ID3 != 0) { atcommand "@alootid +"+#AlootSet1ID3; }
  488. 									if (#AlootSet1ID4 != 0) { atcommand "@alootid +"+#AlootSet1ID4; }
  489. 									if (#AlootSet1ID5 != 0) { atcommand "@alootid +"+#AlootSet1ID5; }
  490. 									if (#AlootSet1ID6 != 0) { atcommand "@alootid +"+#AlootSet1ID6; }
  491. 									if (#AlootSet1ID7 != 0) { atcommand "@alootid +"+#AlootSet1ID7; }
  492. 									if (#AlootSet1ID8 != 0) { atcommand "@alootid +"+#AlootSet1ID8; }
  493. 									if (#AlootSet1ID9 != 0) { atcommand "@alootid +"+#AlootSet1ID9; }
  494. 									if (#AlootSet1ID10 != 0) { atcommand "@alootid +"+#AlootSet1ID10; }
  495. 									if (#AlootSet1ID11 != 0) { atcommand "@alootid +"+#AlootSet1ID11; }
  496. 									if (#AlootSet1ID12 != 0) { atcommand "@alootid +"+#AlootSet1ID12; }
  497. 									if (#AlootSet1ID13 != 0) { atcommand "@alootid +"+#AlootSet1ID13; }
  498. 									if (#AlootSet1ID14 != 0) { atcommand "@alootid +"+#AlootSet1ID14; }
  499. 									if (#AlootSet1ID15 != 0) { atcommand "@alootid +"+#AlootSet1ID15; }
  500. 									if (#AlootSet1ID16 != 0) { atcommand "@alootid +"+#AlootSet1ID16; }
  501. 									if (#AlootSet1ID17 != 0) { atcommand "@alootid +"+#AlootSet1ID17; }
  502. 									if (#AlootSet1ID18 != 0) { atcommand "@alootid +"+#AlootSet1ID18; }
  503. 									if (#AlootSet1ID19 != 0) { atcommand "@alootid +"+#AlootSet1ID19; }
  504. 									if (#AlootSet1ID20 != 0) { atcommand "@alootid +"+#AlootSet1ID20; }
  505. 									if (#AlootSet1ID21 != 0) { atcommand "@alootid +"+#AlootSet1ID21; }
  506. 									if (#AlootSet1ID22 != 0) { atcommand "@alootid +"+#AlootSet1ID22; }
  507. 									if (#AlootSet1ID23 != 0) { atcommand "@alootid +"+#AlootSet1ID23; }
  508. 									if (#AlootSet1ID24 != 0) { atcommand "@alootid +"+#AlootSet1ID24; }
  509. 									if (#AlootSet1ID25 != 0) { atcommand "@alootid +"+#AlootSet1ID25; }
  510. 								close;
  511.  
  512. 							case 2:
  513. 								mes .NPCName$;
  514. 								mes "Then come back, if you want to activate it.";
  515. 								close;
  516. 						}
  517. 						close;
  518. 					} else {
  519. 						mes .NPCName$;
  520. 						mes "Sorry, but this Set is already used. Please delete it first and then re-create it.";
  521. 						mes "The Items you used in this set are:";
  522. 						mes "Item 1: "+getitemname(#AlootSet1ID1);
  523. 						if (#AlootSet1ID2 != 0) { mes "Item 2: "+getitemname(#AlootSet1ID2); }
  524. 						if (#AlootSet1ID3 != 0) { mes "Item 3: "+getitemname(#AlootSet1ID3); }
  525. 						if (#AlootSet1ID4 != 0) { mes "Item 4: "+getitemname(#AlootSet1ID4); }
  526. 						if (#AlootSet1ID5 != 0) { mes "Item 5: "+getitemname(#AlootSet1ID5); }
  527. 						if (#AlootSet1ID6 != 0) { mes "Item 6: "+getitemname(#AlootSet1ID6); }
  528. 						if (#AlootSet1ID7 != 0) { mes "Item 7: "+getitemname(#AlootSet1ID7); }
  529. 						if (#AlootSet1ID8 != 0) { mes "Item 8: "+getitemname(#AlootSet1ID8); }
  530. 						if (#AlootSet1ID9 != 0) { mes "Item 9: "+getitemname(#AlootSet1ID9); }
  531. 						if (#AlootSet1ID10 != 0) { mes "Item 10: "+getitemname(#AlootSet1ID10); }
  532. 						if (#AlootSet1ID11 != 0) { mes "Item 11: "+getitemname(#AlootSet1ID11); }
  533. 						if (#AlootSet1ID12 != 0) { mes "Item 12: "+getitemname(#AlootSet1ID12); }
  534. 						if (#AlootSet1ID13 != 0) { mes "Item 13: "+getitemname(#AlootSet1ID13); }
  535. 						if (#AlootSet1ID14 != 0) { mes "Item 14: "+getitemname(#AlootSet1ID14); }
  536. 						if (#AlootSet1ID15 != 0) { mes "Item 15: "+getitemname(#AlootSet1ID15); }
  537. 						if (#AlootSet1ID16 != 0) { mes "Item 16: "+getitemname(#AlootSet1ID16); }
  538. 						if (#AlootSet1ID17 != 0) { mes "Item 17: "+getitemname(#AlootSet1ID17); }
  539. 						if (#AlootSet1ID18 != 0) { mes "Item 18: "+getitemname(#AlootSet1ID18); }
  540. 						if (#AlootSet1ID19 != 0) { mes "Item 19: "+getitemname(#AlootSet1ID19); }
  541. 						if (#AlootSet1ID20 != 0) { mes "Item 20: "+getitemname(#AlootSet1ID20); }
  542. 						if (#AlootSet1ID21 != 0) { mes "Item 21: "+getitemname(#AlootSet1ID21); }
  543. 						if (#AlootSet1ID22 != 0) { mes "Item 22: "+getitemname(#AlootSet1ID22); }
  544. 						if (#AlootSet1ID23 != 0) { mes "Item 23: "+getitemname(#AlootSet1ID23); }
  545. 						if (#AlootSet1ID24 != 0) { mes "Item 24: "+getitemname(#AlootSet1ID24); }
  546. 						if (#AlootSet1ID25 != 0) { mes "Item 25: "+getitemname(#AlootSet1ID25); }
  547.  
  548. 						close;
  549. 					}
  550.  
  551. 				case 2:
  552. 					if(#LootSet2$ == "")
  553. 					{
  554. 						mes .NPCName$;
  555. 						mes "This is an empty Set. Please choose a name for this Set first.";
  556. 						next;
  557. 						input @input$;
  558. 						if (@input$ == "")
  559. 						{
  560. 							mes .NPCName$;
  561. 							mes "Sorry, this is not a valid name.";
  562. 							close;
  563. 						}
  564. 						set #LootSet2$, @input$;
  565. 						mes .NPCName$;
  566. 						mes "Your Set got called: \""+#LootSet2$+"\".";
  567. 						mes "Now please input the Item ID for the first Item.";
  568. 						mes "(If you want to finish, type in 0)";
  569. 						set .@counter, 1;
  570. 						next;
  571. 						do
  572. 						{
  573. 							input @input;
  574. 							if(@input == 0)
  575. 							{
  576. 								next;
  577. 							} else {
  578. 								if(getiteminfo(@input,0) == -1)
  579. 								{
  580. 									mes .NPCName$;
  581. 									mes "Sorry, there is no such Item ID.";
  582. 									mes "Please try again.";
  583. 									next;
  584. 								} else {
  585. 									set .@IDsleft, 25 - .@counter;
  586. 									if (.@IDsleft == 0)
  587. 									{
  588. 										mes .NPCName$;
  589. 										mes "Sorry, but you already have 25 Items in your Set. Please enter a 0 to finish.";
  590. 										next;
  591. 									} else {
  592. 										mes .NPCName$;
  593. 										mes "Item ID "+@input+" ("+getitemname(@input)+") has been added to the list.";
  594. 										mes "You may add "+.@IDsleft+" Items.";
  595. 										setd "#AlootSet2ID"+.@counter,@input;
  596. 										set .@counter, .@counter + 1;
  597. 										next;
  598. 									}
  599. 								}
  600. 							}
  601. 						} while(@input != 0);
  602. 						if (#AlootSet2ID1 == 0)
  603. 						{
  604. 							mes .NPCName$;
  605. 							mes "You canceled at the first Item. I'll reset this Set then.";
  606. 							set #LootSet2$, "";
  607. 							close;
  608. 						}
  609. 						mes .NPCName$;
  610. 						mes "You have finished this Set.";
  611. 						mes "Now you may ask me again to toggle the Alootid to ON and choose this set.";
  612. 						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.)";
  613. 						next;
  614. 						switch(select("Yes, activate it now:No, don't activate this Set"))
  615. 						{
  616. 							case 1:
  617. 								mes .NPCName$;
  618. 								mes "Activated!";
  619. 								atcommand "@alootid reset";
  620. 									atcommand "@alootid +"+#AlootSet2ID1;
  621. 									if (#AlootSet2ID2 != 0) { atcommand "@alootid +"+#AlootSet2ID2; }
  622. 									if (#AlootSet2ID3 != 0) { atcommand "@alootid +"+#AlootSet2ID3; }
  623. 									if (#AlootSet2ID4 != 0) { atcommand "@alootid +"+#AlootSet2ID4; }
  624. 									if (#AlootSet2ID5 != 0) { atcommand "@alootid +"+#AlootSet2ID5; }
  625. 									if (#AlootSet2ID6 != 0) { atcommand "@alootid +"+#AlootSet2ID6; }
  626. 									if (#AlootSet2ID7 != 0) { atcommand "@alootid +"+#AlootSet2ID7; }
  627. 									if (#AlootSet2ID8 != 0) { atcommand "@alootid +"+#AlootSet2ID8; }
  628. 									if (#AlootSet2ID9 != 0) { atcommand "@alootid +"+#AlootSet2ID9; }
  629. 									if (#AlootSet2ID10 != 0) { atcommand "@alootid +"+#AlootSet2ID10; }
  630. 									if (#AlootSet2ID11 != 0) { atcommand "@alootid +"+#AlootSet2ID11; }
  631. 									if (#AlootSet2ID12 != 0) { atcommand "@alootid +"+#AlootSet2ID12; }
  632. 									if (#AlootSet2ID13 != 0) { atcommand "@alootid +"+#AlootSet2ID13; }
  633. 									if (#AlootSet2ID14 != 0) { atcommand "@alootid +"+#AlootSet2ID14; }
  634. 									if (#AlootSet2ID15 != 0) { atcommand "@alootid +"+#AlootSet2ID15; }
  635. 									if (#AlootSet2ID16 != 0) { atcommand "@alootid +"+#AlootSet2ID16; }
  636. 									if (#AlootSet2ID17 != 0) { atcommand "@alootid +"+#AlootSet2ID17; }
  637. 									if (#AlootSet2ID18 != 0) { atcommand "@alootid +"+#AlootSet2ID18; }
  638. 									if (#AlootSet2ID19 != 0) { atcommand "@alootid +"+#AlootSet2ID19; }
  639. 									if (#AlootSet2ID20 != 0) { atcommand "@alootid +"+#AlootSet2ID20; }
  640. 									if (#AlootSet2ID21 != 0) { atcommand "@alootid +"+#AlootSet2ID21; }
  641. 									if (#AlootSet2ID22 != 0) { atcommand "@alootid +"+#AlootSet2ID22; }
  642. 									if (#AlootSet2ID23 != 0) { atcommand "@alootid +"+#AlootSet2ID23; }
  643. 									if (#AlootSet2ID24 != 0) { atcommand "@alootid +"+#AlootSet2ID24; }
  644. 									if (#AlootSet2ID25 != 0) { atcommand "@alootid +"+#AlootSet2ID25; }
  645. 								close;
  646.  
  647. 							case 2:
  648. 								mes .NPCName$;
  649. 								mes "Then come back, if you want to activate it.";
  650. 								close;
  651. 						}
  652. 						close;
  653. 					} else {
  654. 						mes .NPCName$;
  655. 						mes "Sorry, but this Set is already used. Please delete it first and then re-create it.";
  656. 						mes "The Items you used in this set are:";
  657. 						mes "Item 1: "+getitemname(#AlootSet2ID1);
  658. 						if (#AlootSet2ID2 != 0) { mes "Item 2: "+getitemname(#AlootSet2ID2); }
  659. 						if (#AlootSet2ID3 != 0) { mes "Item 3: "+getitemname(#AlootSet2ID3); }
  660. 						if (#AlootSet2ID4 != 0) { mes "Item 4: "+getitemname(#AlootSet2ID4); }
  661. 						if (#AlootSet2ID5 != 0) { mes "Item 5: "+getitemname(#AlootSet2ID5); }
  662. 						if (#AlootSet2ID6 != 0) { mes "Item 6: "+getitemname(#AlootSet2ID6); }
  663. 						if (#AlootSet2ID7 != 0) { mes "Item 7: "+getitemname(#AlootSet2ID7); }
  664. 						if (#AlootSet2ID8 != 0) { mes "Item 8: "+getitemname(#AlootSet2ID8); }
  665. 						if (#AlootSet2ID9 != 0) { mes "Item 9: "+getitemname(#AlootSet2ID9); }
  666. 						if (#AlootSet2ID10 != 0) { mes "Item 10: "+getitemname(#AlootSet2ID10); }
  667. 						if (#AlootSet2ID11 != 0) { mes "Item 11: "+getitemname(#AlootSet2ID11); }
  668. 						if (#AlootSet2ID12 != 0) { mes "Item 12: "+getitemname(#AlootSet2ID12); }
  669. 						if (#AlootSet2ID13 != 0) { mes "Item 13: "+getitemname(#AlootSet2ID13); }
  670. 						if (#AlootSet2ID14 != 0) { mes "Item 14: "+getitemname(#AlootSet2ID14); }
  671. 						if (#AlootSet2ID15 != 0) { mes "Item 15: "+getitemname(#AlootSet2ID15); }
  672. 						if (#AlootSet2ID16 != 0) { mes "Item 16: "+getitemname(#AlootSet2ID16); }
  673. 						if (#AlootSet2ID17 != 0) { mes "Item 17: "+getitemname(#AlootSet2ID17); }
  674. 						if (#AlootSet2ID18 != 0) { mes "Item 18: "+getitemname(#AlootSet2ID18); }
  675. 						if (#AlootSet2ID19 != 0) { mes "Item 19: "+getitemname(#AlootSet2ID19); }
  676. 						if (#AlootSet2ID20 != 0) { mes "Item 20: "+getitemname(#AlootSet2ID20); }
  677. 						if (#AlootSet2ID21 != 0) { mes "Item 21: "+getitemname(#AlootSet2ID21); }
  678. 						if (#AlootSet2ID22 != 0) { mes "Item 22: "+getitemname(#AlootSet2ID22); }
  679. 						if (#AlootSet2ID23 != 0) { mes "Item 23: "+getitemname(#AlootSet2ID23); }
  680. 						if (#AlootSet2ID24 != 0) { mes "Item 24: "+getitemname(#AlootSet2ID24); }
  681. 						if (#AlootSet2ID25 != 0) { mes "Item 25: "+getitemname(#AlootSet2ID25); }
  682. 						close;
  683. 					}
  684.  
  685. 				case 3:
  686. 					if(#LootSet3$ == "")
  687. 					{
  688. 						mes .NPCName$;
  689. 						mes "This is an empty Set. Please choose a name for this Set first.";
  690. 						next;
  691. 						input @input$;
  692. 						if (@input$ == "")
  693. 						{
  694. 							mes .NPCName$;
  695. 							mes "Sorry, this is not a valid name.";
  696. 							close;
  697. 						}
  698. 						set #LootSet3$, @input$;
  699. 						mes .NPCName$;
  700. 						mes "Your Set got called: \""+#LootSet3$+"\".";
  701. 						mes "Now please input the Item ID for the first Item.";
  702. 						mes "(If you want to finish, type in 0)";
  703. 						set .@counter, 1;
  704. 						next;
  705. 						do
  706. 						{
  707. 							input @input;
  708. 							if(@input == 0)
  709. 							{
  710. 								next;
  711. 							} else {
  712. 								if(getiteminfo(@input,0) == -1)
  713. 								{
  714. 									mes .NPCName$;
  715. 									mes "Sorry, there is no such Item ID.";
  716. 									mes "Please try again.";
  717. 									next;
  718. 								} else {
  719. 									set .@IDsleft, 25 - .@counter;
  720. 									if (.@IDsleft == 0)
  721. 									{
  722. 										mes .NPCName$;
  723. 										mes "Sorry, but you already have 25 Items in your Set. Please enter a 0 to finish.";
  724. 										next;
  725. 									} else {
  726. 										mes .NPCName$;
  727. 										mes "Item ID "+@input+" ("+getitemname(@input)+") has been added to the list.";
  728. 										mes "You may add "+.@IDsleft+" Items.";
  729. 										setd "#AlootSet3ID"+.@counter,@input;
  730. 										set .@counter, .@counter + 1;
  731. 										next;
  732. 									}
  733. 								}
  734. 							}
  735. 						} while(@input != 0);
  736. 						if (#AlootSet3ID1 == 0)
  737. 						{
  738. 							mes .NPCName$;
  739. 							mes "You canceled at the first Item. I'll reset this Set then.";
  740. 							set #LootSet3$, "";
  741. 							close;
  742. 						}
  743. 						mes .NPCName$;
  744. 						mes "You have finished this Set.";
  745. 						mes "Now you may ask me again to toggle the Alootid to ON and choose this set.";
  746. 						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.)";
  747. 						next;
  748. 						switch(select("Yes, activate it now:No, don't activate this Set"))
  749. 						{
  750. 							case 1:
  751. 								mes .NPCName$;
  752. 								mes "Activated!";
  753. 								atcommand "@alootid reset";
  754. 									atcommand "@alootid +"+#AlootSet3ID1;
  755. 									if (#AlootSet3ID2 != 0) { atcommand "@alootid +"+#AlootSet3ID2; }
  756. 									if (#AlootSet3ID3 != 0) { atcommand "@alootid +"+#AlootSet3ID3; }
  757. 									if (#AlootSet3ID4 != 0) { atcommand "@alootid +"+#AlootSet3ID4; }
  758. 									if (#AlootSet3ID5 != 0) { atcommand "@alootid +"+#AlootSet3ID5; }
  759. 									if (#AlootSet3ID6 != 0) { atcommand "@alootid +"+#AlootSet3ID6; }
  760. 									if (#AlootSet3ID7 != 0) { atcommand "@alootid +"+#AlootSet3ID7; }
  761. 									if (#AlootSet3ID8 != 0) { atcommand "@alootid +"+#AlootSet3ID8; }
  762. 									if (#AlootSet3ID9 != 0) { atcommand "@alootid +"+#AlootSet3ID9; }
  763. 									if (#AlootSet3ID10 != 0) { atcommand "@alootid +"+#AlootSet3ID10; }
  764. 									if (#AlootSet3ID11 != 0) { atcommand "@alootid +"+#AlootSet3ID11; }
  765. 									if (#AlootSet3ID12 != 0) { atcommand "@alootid +"+#AlootSet3ID12; }
  766. 									if (#AlootSet3ID13 != 0) { atcommand "@alootid +"+#AlootSet3ID13; }
  767. 									if (#AlootSet3ID14 != 0) { atcommand "@alootid +"+#AlootSet3ID14; }
  768. 									if (#AlootSet3ID15 != 0) { atcommand "@alootid +"+#AlootSet3ID15; }
  769. 									if (#AlootSet3ID16 != 0) { atcommand "@alootid +"+#AlootSet3ID16; }
  770. 									if (#AlootSet3ID17 != 0) { atcommand "@alootid +"+#AlootSet3ID17; }
  771. 									if (#AlootSet3ID18 != 0) { atcommand "@alootid +"+#AlootSet3ID18; }
  772. 									if (#AlootSet3ID19 != 0) { atcommand "@alootid +"+#AlootSet3ID19; }
  773. 									if (#AlootSet3ID20 != 0) { atcommand "@alootid +"+#AlootSet3ID20; }
  774. 									if (#AlootSet3ID21 != 0) { atcommand "@alootid +"+#AlootSet3ID21; }
  775. 									if (#AlootSet3ID22 != 0) { atcommand "@alootid +"+#AlootSet3ID22; }
  776. 									if (#AlootSet3ID23 != 0) { atcommand "@alootid +"+#AlootSet3ID23; }
  777. 									if (#AlootSet3ID24 != 0) { atcommand "@alootid +"+#AlootSet3ID24; }
  778. 									if (#AlootSet3ID25 != 0) { atcommand "@alootid +"+#AlootSet3ID25; }
  779. 								close;
  780.  
  781. 							case 2:
  782. 								mes .NPCName$;
  783. 								mes "Then come back, if you want to activate it.";
  784. 								close;
  785. 						}
  786. 						close;
  787. 					} else {
  788. 						mes .NPCName$;
  789. 						mes "Sorry, but this Set is already used. Please delete it first and then re-create it.";
  790. 						mes "The Items you used in this set are:";
  791. 						mes "Item 1: "+getitemname(#AlootSet3ID1);
  792. 						if (#AlootSet3ID2 != 0) { mes "Item 2: "+getitemname(#AlootSet3ID2); }
  793. 						if (#AlootSet3ID3 != 0) { mes "Item 3: "+getitemname(#AlootSet3ID3); }
  794. 						if (#AlootSet3ID4 != 0) { mes "Item 4: "+getitemname(#AlootSet3ID4); }
  795. 						if (#AlootSet3ID5 != 0) { mes "Item 5: "+getitemname(#AlootSet3ID5); }
  796. 						if (#AlootSet3ID6 != 0) { mes "Item 6: "+getitemname(#AlootSet3ID6); }
  797. 						if (#AlootSet3ID7 != 0) { mes "Item 7: "+getitemname(#AlootSet3ID7); }
  798. 						if (#AlootSet3ID8 != 0) { mes "Item 8: "+getitemname(#AlootSet3ID8); }
  799. 						if (#AlootSet3ID9 != 0) { mes "Item 9: "+getitemname(#AlootSet3ID9); }
  800. 						if (#AlootSet3ID10 != 0) { mes "Item 10: "+getitemname(#AlootSet3ID10); }
  801. 						if (#AlootSet3ID11 != 0) { mes "Item 11: "+getitemname(#AlootSet3ID11); }
  802. 						if (#AlootSet3ID12 != 0) { mes "Item 12: "+getitemname(#AlootSet3ID12); }
  803. 						if (#AlootSet3ID13 != 0) { mes "Item 13: "+getitemname(#AlootSet3ID13); }
  804. 						if (#AlootSet3ID14 != 0) { mes "Item 14: "+getitemname(#AlootSet3ID14); }
  805. 						if (#AlootSet3ID15 != 0) { mes "Item 15: "+getitemname(#AlootSet3ID15); }
  806. 						if (#AlootSet3ID16 != 0) { mes "Item 16: "+getitemname(#AlootSet3ID16); }
  807. 						if (#AlootSet3ID17 != 0) { mes "Item 17: "+getitemname(#AlootSet3ID17); }
  808. 						if (#AlootSet3ID18 != 0) { mes "Item 18: "+getitemname(#AlootSet3ID18); }
  809. 						if (#AlootSet3ID19 != 0) { mes "Item 19: "+getitemname(#AlootSet3ID19); }
  810. 						if (#AlootSet3ID20 != 0) { mes "Item 20: "+getitemname(#AlootSet3ID20); }
  811. 						if (#AlootSet3ID21 != 0) { mes "Item 21: "+getitemname(#AlootSet3ID21); }
  812. 						if (#AlootSet3ID22 != 0) { mes "Item 22: "+getitemname(#AlootSet3ID22); }
  813. 						if (#AlootSet3ID23 != 0) { mes "Item 23: "+getitemname(#AlootSet3ID23); }
  814. 						if (#AlootSet3ID24 != 0) { mes "Item 24: "+getitemname(#AlootSet3ID24); }
  815. 						if (#AlootSet3ID25 != 0) { mes "Item 25: "+getitemname(#AlootSet3ID25); }
  816. 						close;
  817. 					}
  818.  
  819. 				case 4:
  820. 					if(#LootSet4$ == "")
  821. 					{
  822. 						mes .NPCName$;
  823. 						mes "This is an empty Set. Please choose a name for this Set first.";
  824. 						next;
  825. 						input @input$;
  826. 						if (@input$ == "")
  827. 						{
  828. 							mes .NPCName$;
  829. 							mes "Sorry, this is not a valid name.";
  830. 							close;
  831. 						}
  832. 						set #LootSet4$, @input$;
  833. 						mes .NPCName$;
  834. 						mes "Your Set got called: \""+#LootSet4$+"\".";
  835. 						mes "Now please input the Item ID for the first Item.";
  836. 						mes "(If you want to finish, type in 0)";
  837. 						set .@counter, 1;
  838. 						next;
  839. 						do
  840. 						{
  841. 							input @input;
  842. 							if(@input == 0)
  843. 							{
  844. 								next;
  845. 							} else {
  846. 								if(getiteminfo(@input,0) == -1)
  847. 								{
  848. 									mes .NPCName$;
  849. 									mes "Sorry, there is no such Item ID.";
  850. 									mes "Please try again.";
  851. 									next;
  852. 								} else {
  853. 									set .@IDsleft, 25 - .@counter;
  854. 									if (.@IDsleft == 0)
  855. 									{
  856. 										mes .NPCName$;
  857. 										mes "Sorry, but you already have 25 Items in your Set. Please enter a 0 to finish.";
  858. 										next;
  859. 									} else {
  860. 										mes .NPCName$;
  861. 										mes "Item ID "+@input+" ("+getitemname(@input)+") has been added to the list.";
  862. 										mes "You may add "+.@IDsleft+" Items.";
  863. 										setd "#AlootSet4ID"+.@counter,@input;
  864. 										set .@counter, .@counter + 1;
  865. 										next;
  866. 									}
  867. 								}
  868. 							}
  869. 						} while(@input != 0);
  870. 						if (#AlootSet4ID1 == 0)
  871. 						{
  872. 							mes .NPCName$;
  873. 							mes "You canceled at the first Item. I'll reset this Set then.";
  874. 							set #LootSet4$, "";
  875. 							close;
  876. 						}
  877. 						mes .NPCName$;
  878. 						mes "You have finished this Set.";
  879. 						mes "Now you may ask me again to toggle the Alootid to ON and choose this set.";
  880. 						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.)";
  881. 						next;
  882. 						switch(select("Yes, activate it now:No, don't activate this Set"))
  883. 						{
  884. 							case 1:
  885. 								mes .NPCName$;
  886. 								mes "Activated!";
  887. 								atcommand "@alootid reset";
  888. 									atcommand "@alootid +"+#AlootSet4ID1;
  889. 									if (#AlootSet4ID2 != 0) { atcommand "@alootid +"+#AlootSet4ID2; }
  890. 									if (#AlootSet4ID3 != 0) { atcommand "@alootid +"+#AlootSet4ID3; }
  891. 									if (#AlootSet4ID4 != 0) { atcommand "@alootid +"+#AlootSet4ID4; }
  892. 									if (#AlootSet4ID5 != 0) { atcommand "@alootid +"+#AlootSet4ID5; }
  893. 									if (#AlootSet4ID6 != 0) { atcommand "@alootid +"+#AlootSet4ID6; }
  894. 									if (#AlootSet4ID7 != 0) { atcommand "@alootid +"+#AlootSet4ID7; }
  895. 									if (#AlootSet4ID8 != 0) { atcommand "@alootid +"+#AlootSet4ID8; }
  896. 									if (#AlootSet4ID9 != 0) { atcommand "@alootid +"+#AlootSet4ID9; }
  897. 									if (#AlootSet4ID10 != 0) { atcommand "@alootid +"+#AlootSet4ID10; }
  898. 									if (#AlootSet4ID11 != 0) { atcommand "@alootid +"+#AlootSet4ID11; }
  899. 									if (#AlootSet4ID12 != 0) { atcommand "@alootid +"+#AlootSet4ID12; }
  900. 									if (#AlootSet4ID13 != 0) { atcommand "@alootid +"+#AlootSet4ID13; }
  901. 									if (#AlootSet4ID14 != 0) { atcommand "@alootid +"+#AlootSet4ID14; }
  902. 									if (#AlootSet4ID15 != 0) { atcommand "@alootid +"+#AlootSet4ID15; }
  903. 									if (#AlootSet4ID16 != 0) { atcommand "@alootid +"+#AlootSet4ID16; }
  904. 									if (#AlootSet4ID17 != 0) { atcommand "@alootid +"+#AlootSet4ID17; }
  905. 									if (#AlootSet4ID18 != 0) { atcommand "@alootid +"+#AlootSet4ID18; }
  906. 									if (#AlootSet4ID19 != 0) { atcommand "@alootid +"+#AlootSet4ID19; }
  907. 									if (#AlootSet4ID20 != 0) { atcommand "@alootid +"+#AlootSet4ID20; }
  908. 									if (#AlootSet4ID21 != 0) { atcommand "@alootid +"+#AlootSet4ID21; }
  909. 									if (#AlootSet4ID22 != 0) { atcommand "@alootid +"+#AlootSet4ID22; }
  910. 									if (#AlootSet4ID23 != 0) { atcommand "@alootid +"+#AlootSet4ID23; }
  911. 									if (#AlootSet4ID24 != 0) { atcommand "@alootid +"+#AlootSet4ID24; }
  912. 									if (#AlootSet4ID25 != 0) { atcommand "@alootid +"+#AlootSet4ID25; }
  913. 								close;
  914.  
  915. 							case 2:
  916. 								mes .NPCName$;
  917. 								mes "Then come back, if you want to activate it.";
  918. 								close;
  919. 						}
  920. 						close;
  921. 					} else {
  922. 						mes .NPCName$;
  923. 						mes "Sorry, but this Set is already used. Please delete it first and then re-create it.";
  924. 						mes "The Items you used in this set are:";
  925. 						mes "Item 1: "+getitemname(#AlootSet4ID1);
  926. 						if (#AlootSet4ID2 != 0) { mes "Item 2: "+getitemname(#AlootSet4ID2); }
  927. 						if (#AlootSet4ID3 != 0) { mes "Item 3: "+getitemname(#AlootSet4ID3); }
  928. 						if (#AlootSet4ID4 != 0) { mes "Item 4: "+getitemname(#AlootSet4ID4); }
  929. 						if (#AlootSet4ID5 != 0) { mes "Item 5: "+getitemname(#AlootSet4ID5); }
  930. 						if (#AlootSet4ID6 != 0) { mes "Item 6: "+getitemname(#AlootSet4ID6); }
  931. 						if (#AlootSet4ID7 != 0) { mes "Item 7: "+getitemname(#AlootSet4ID7); }
  932. 						if (#AlootSet4ID8 != 0) { mes "Item 8: "+getitemname(#AlootSet4ID8); }
  933. 						if (#AlootSet4ID9 != 0) { mes "Item 9: "+getitemname(#AlootSet4ID9); }
  934. 						if (#AlootSet4ID10 != 0) { mes "Item 10: "+getitemname(#AlootSet4ID10); }
  935. 						if (#AlootSet4ID11 != 0) { mes "Item 11: "+getitemname(#AlootSet4ID11); }
  936. 						if (#AlootSet4ID12 != 0) { mes "Item 12: "+getitemname(#AlootSet4ID12); }
  937. 						if (#AlootSet4ID13 != 0) { mes "Item 13: "+getitemname(#AlootSet4ID13); }
  938. 						if (#AlootSet4ID14 != 0) { mes "Item 14: "+getitemname(#AlootSet4ID14); }
  939. 						if (#AlootSet4ID15 != 0) { mes "Item 15: "+getitemname(#AlootSet4ID15); }
  940. 						if (#AlootSet4ID16 != 0) { mes "Item 16: "+getitemname(#AlootSet4ID16); }
  941. 						if (#AlootSet4ID17 != 0) { mes "Item 17: "+getitemname(#AlootSet4ID17); }
  942. 						if (#AlootSet4ID18 != 0) { mes "Item 18: "+getitemname(#AlootSet4ID18); }
  943. 						if (#AlootSet4ID19 != 0) { mes "Item 19: "+getitemname(#AlootSet4ID19); }
  944. 						if (#AlootSet4ID20 != 0) { mes "Item 20: "+getitemname(#AlootSet4ID20); }
  945. 						if (#AlootSet4ID21 != 0) { mes "Item 21: "+getitemname(#AlootSet4ID21); }
  946. 						if (#AlootSet4ID22 != 0) { mes "Item 22: "+getitemname(#AlootSet4ID22); }
  947. 						if (#AlootSet4ID23 != 0) { mes "Item 23: "+getitemname(#AlootSet4ID23); }
  948. 						if (#AlootSet4ID24 != 0) { mes "Item 24: "+getitemname(#AlootSet4ID24); }
  949. 						if (#AlootSet4ID25 != 0) { mes "Item 25: "+getitemname(#AlootSet4ID25); }
  950. 						close;
  951. 					}
  952.  
  953. 				case 5:
  954. 					if(#LootSet5$ == "")
  955. 					{
  956. 						mes .NPCName$;
  957. 						mes "This is an empty Set. Please choose a name for this Set first.";
  958. 						next;
  959. 						input @input$;
  960. 						if (@input$ == "")
  961. 						{
  962. 							mes .NPCName$;
  963. 							mes "Sorry, this is not a valid name.";
  964. 							close;
  965. 						}
  966. 						set #LootSet5$, @input$;
  967. 						mes .NPCName$;
  968. 						mes "Your Set got called: \""+#LootSet5$+"\".";
  969. 						mes "Now please input the Item ID for the first Item.";
  970. 						mes "(If you want to finish, type in 0)";
  971. 						set .@counter, 1;
  972. 						next;
  973. 						do
  974. 						{
  975. 							input @input;
  976. 							if(@input == 0)
  977. 							{
  978. 								next;
  979. 							} else {
  980. 								if(getiteminfo(@input,0) == -1)
  981. 								{
  982. 									mes .NPCName$;
  983. 									mes "Sorry, there is no such Item ID.";
  984. 									mes "Please try again.";
  985. 									next;
  986. 								} else {
  987. 									set .@IDsleft, 25 - .@counter;
  988. 									if (.@IDsleft == 0)
  989. 									{
  990. 										mes .NPCName$;
  991. 										mes "Sorry, but you already have 25 Items in your Set. Please enter a 0 to finish.";
  992. 										next;
  993. 									} else {
  994. 										mes .NPCName$;
  995. 										mes "Item ID "+@input+" ("+getitemname(@input)+") has been added to the list.";
  996. 										mes "You may add "+.@IDsleft+" Items.";
  997. 										setd "#AlootSet5ID"+.@counter,@input;
  998. 										set .@counter, .@counter + 1;
  999. 										next;
  1000. 									}
  1001. 								}
  1002. 							}
  1003. 						} while(@input != 0);
  1004. 						if (#AlootSet5ID1 == 0)
  1005. 						{
  1006. 							mes .NPCName$;
  1007. 							mes "You canceled at the first Item. I'll reset this Set then.";
  1008. 							set #LootSet5$, "";
  1009. 							close;
  1010. 						}
  1011. 						mes .NPCName$;
  1012. 						mes "You have finished this Set.";
  1013. 						mes "Now you may ask me again to toggle the Alootid to ON and choose this set.";
  1014. 						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.)";
  1015. 						next;
  1016. 						switch(select("Yes, activate it now:No, don't activate this Set"))
  1017. 						{
  1018. 							case 1:
  1019. 								mes .NPCName$;
  1020. 								mes "Activated!";
  1021. 								atcommand "@alootid reset";
  1022. 									atcommand "@alootid +"+#AlootSet5ID1;
  1023. 									if (#AlootSet5ID2 != 0) { atcommand "@alootid +"+#AlootSet5ID2; }
  1024. 									if (#AlootSet5ID3 != 0) { atcommand "@alootid +"+#AlootSet5ID3; }
  1025. 									if (#AlootSet5ID4 != 0) { atcommand "@alootid +"+#AlootSet5ID4; }
  1026. 									if (#AlootSet5ID5 != 0) { atcommand "@alootid +"+#AlootSet5ID5; }
  1027. 									if (#AlootSet5ID6 != 0) { atcommand "@alootid +"+#AlootSet5ID6; }
  1028. 									if (#AlootSet5ID7 != 0) { atcommand "@alootid +"+#AlootSet5ID7; }
  1029. 									if (#AlootSet5ID8 != 0) { atcommand "@alootid +"+#AlootSet5ID8; }
  1030. 									if (#AlootSet5ID9 != 0) { atcommand "@alootid +"+#AlootSet5ID9; }
  1031. 									if (#AlootSet5ID10 != 0) { atcommand "@alootid +"+#AlootSet5ID10; }
  1032. 									if (#AlootSet5ID11 != 0) { atcommand "@alootid +"+#AlootSet5ID11; }
  1033. 									if (#AlootSet5ID12 != 0) { atcommand "@alootid +"+#AlootSet5ID12; }
  1034. 									if (#AlootSet5ID13 != 0) { atcommand "@alootid +"+#AlootSet5ID13; }
  1035. 									if (#AlootSet5ID14 != 0) { atcommand "@alootid +"+#AlootSet5ID14; }
  1036. 									if (#AlootSet5ID15 != 0) { atcommand "@alootid +"+#AlootSet5ID15; }
  1037. 									if (#AlootSet5ID16 != 0) { atcommand "@alootid +"+#AlootSet5ID16; }
  1038. 									if (#AlootSet5ID17 != 0) { atcommand "@alootid +"+#AlootSet5ID17; }
  1039. 									if (#AlootSet5ID18 != 0) { atcommand "@alootid +"+#AlootSet5ID18; }
  1040. 									if (#AlootSet5ID19 != 0) { atcommand "@alootid +"+#AlootSet5ID19; }
  1041. 									if (#AlootSet5ID20 != 0) { atcommand "@alootid +"+#AlootSet5ID20; }
  1042. 									if (#AlootSet5ID21 != 0) { atcommand "@alootid +"+#AlootSet5ID21; }
  1043. 									if (#AlootSet5ID22 != 0) { atcommand "@alootid +"+#AlootSet5ID22; }
  1044. 									if (#AlootSet5ID23 != 0) { atcommand "@alootid +"+#AlootSet5ID23; }
  1045. 									if (#AlootSet5ID24 != 0) { atcommand "@alootid +"+#AlootSet5ID24; }
  1046. 									if (#AlootSet5ID25 != 0) { atcommand "@alootid +"+#AlootSet5ID25; }
  1047. 								close;
  1048.  
  1049. 							case 2:
  1050. 								mes .NPCName$;
  1051. 								mes "Then come back, if you want to activate it.";
  1052. 								close;
  1053. 						}
  1054. 						close;
  1055. 					} else {
  1056. 						mes .NPCName$;
  1057. 						mes "Sorry, but this Set is already used. Please delete it first and then re-create it.";
  1058. 						mes "The Items you used in this set are:";
  1059. 						mes "Item 1: "+getitemname(#AlootSet5ID1);
  1060. 						if (#AlootSet5ID2 != 0) { mes "Item 2: "+getitemname(#AlootSet5ID2); }
  1061. 						if (#AlootSet5ID3 != 0) { mes "Item 3: "+getitemname(#AlootSet5ID3); }
  1062. 						if (#AlootSet5ID4 != 0) { mes "Item 4: "+getitemname(#AlootSet5ID4); }
  1063. 						if (#AlootSet5ID5 != 0) { mes "Item 5: "+getitemname(#AlootSet5ID5); }
  1064. 						if (#AlootSet5ID6 != 0) { mes "Item 6: "+getitemname(#AlootSet5ID6); }
  1065. 						if (#AlootSet5ID7 != 0) { mes "Item 7: "+getitemname(#AlootSet5ID7); }
  1066. 						if (#AlootSet5ID8 != 0) { mes "Item 8: "+getitemname(#AlootSet5ID8); }
  1067. 						if (#AlootSet5ID9 != 0) { mes "Item 9: "+getitemname(#AlootSet5ID9); }
  1068. 						if (#AlootSet5ID10 != 0) { mes "Item 10: "+getitemname(#AlootSet5ID10); }
  1069. 						if (#AlootSet5ID11 != 0) { mes "Item 11: "+getitemname(#AlootSet5ID11); }
  1070. 						if (#AlootSet5ID12 != 0) { mes "Item 12: "+getitemname(#AlootSet5ID12); }
  1071. 						if (#AlootSet5ID13 != 0) { mes "Item 13: "+getitemname(#AlootSet5ID13); }
  1072. 						if (#AlootSet5ID14 != 0) { mes "Item 14: "+getitemname(#AlootSet5ID14); }
  1073. 						if (#AlootSet5ID15 != 0) { mes "Item 15: "+getitemname(#AlootSet5ID15); }
  1074. 						if (#AlootSet5ID16 != 0) { mes "Item 16: "+getitemname(#AlootSet5ID16); }
  1075. 						if (#AlootSet5ID17 != 0) { mes "Item 17: "+getitemname(#AlootSet5ID17); }
  1076. 						if (#AlootSet5ID18 != 0) { mes "Item 18: "+getitemname(#AlootSet5ID18); }
  1077. 						if (#AlootSet5ID19 != 0) { mes "Item 19: "+getitemname(#AlootSet5ID19); }
  1078. 						if (#AlootSet5ID20 != 0) { mes "Item 20: "+getitemname(#AlootSet5ID20); }
  1079. 						if (#AlootSet5ID21 != 0) { mes "Item 21: "+getitemname(#AlootSet5ID21); }
  1080. 						if (#AlootSet5ID22 != 0) { mes "Item 22: "+getitemname(#AlootSet5ID22); }
  1081. 						if (#AlootSet5ID23 != 0) { mes "Item 23: "+getitemname(#AlootSet5ID23); }
  1082. 						if (#AlootSet5ID24 != 0) { mes "Item 24: "+getitemname(#AlootSet5ID24); }
  1083. 						if (#AlootSet5ID25 != 0) { mes "Item 25: "+getitemname(#AlootSet5ID25); }
  1084. 						close;
  1085. 					}
  1086.  
  1087. 				case 6:
  1088. 					if(#LootSet6$ == "")
  1089. 					{
  1090. 						mes .NPCName$;
  1091. 						mes "This is an empty Set. Please choose a name for this Set first.";
  1092. 						next;
  1093. 						input @input$;
  1094. 						if (@input$ == "")
  1095. 						{
  1096. 							mes .NPCName$;
  1097. 							mes "Sorry, this is not a valid name.";
  1098. 							close;
  1099. 						}
  1100. 						set #LootSet6$, @input$;
  1101. 						mes .NPCName$;
  1102. 						mes "Your Set got called: \""+#LootSet6$+"\".";
  1103. 						mes "Now please input the Item ID for the first Item.";
  1104. 						mes "(If you want to finish, type in 0)";
  1105. 						set .@counter, 1;
  1106. 						next;
  1107. 						do
  1108. 						{
  1109. 							input @input;
  1110. 							if(@input == 0)
  1111. 							{
  1112. 								next;
  1113. 							} else {
  1114. 								if(getiteminfo(@input,0) == -1)
  1115. 								{
  1116. 									mes .NPCName$;
  1117. 									mes "Sorry, there is no such Item ID.";
  1118. 									mes "Please try again.";
  1119. 									next;
  1120. 								} else {
  1121. 									set .@IDsleft, 25 - .@counter;
  1122. 									if (.@IDsleft == 0)
  1123. 									{
  1124. 										mes .NPCName$;
  1125. 										mes "Sorry, but you already have 25 Items in your Set. Please enter a 0 to finish.";
  1126. 										next;
  1127. 									} else {
  1128. 										mes .NPCName$;
  1129. 										mes "Item ID "+@input+" ("+getitemname(@input)+") has been added to the list.";
  1130. 										mes "You may add "+.@IDsleft+" Items.";
  1131. 										setd "#AlootSet6ID"+.@counter,@input;
  1132. 										set .@counter, .@counter + 1;
  1133. 										next;
  1134. 									}
  1135. 								}
  1136. 							}
  1137. 						} while(@input != 0);
  1138. 						if (#AlootSet6ID1 == 0)
  1139. 						{
  1140. 							mes .NPCName$;
  1141. 							mes "You canceled at the first Item. I'll reset this Set then.";
  1142. 							set #LootSet6$, "";
  1143. 							close;
  1144. 						}
  1145. 						mes .NPCName$;
  1146. 						mes "You have finished this Set.";
  1147. 						mes "Now you may ask me again to toggle the Alootid to ON and choose this set.";
  1148. 						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.)";
  1149. 						next;
  1150. 						switch(select("Yes, activate it now:No, don't activate this Set"))
  1151. 						{
  1152. 							case 1:
  1153. 								mes .NPCName$;
  1154. 								mes "Activated!";
  1155. 								atcommand "@alootid reset";
  1156. 									atcommand "@alootid +"+#AlootSet6ID1;
  1157. 									if (#AlootSet6ID2 != 0) { atcommand "@alootid +"+#AlootSet6ID2; }
  1158. 									if (#AlootSet6ID3 != 0) { atcommand "@alootid +"+#AlootSet6ID3; }
  1159. 									if (#AlootSet6ID4 != 0) { atcommand "@alootid +"+#AlootSet6ID4; }
  1160. 									if (#AlootSet6ID5 != 0) { atcommand "@alootid +"+#AlootSet6ID5; }
  1161. 									if (#AlootSet6ID6 != 0) { atcommand "@alootid +"+#AlootSet6ID6; }
  1162. 									if (#AlootSet6ID7 != 0) { atcommand "@alootid +"+#AlootSet6ID7; }
  1163. 									if (#AlootSet6ID8 != 0) { atcommand "@alootid +"+#AlootSet6ID8; }
  1164. 									if (#AlootSet6ID9 != 0) { atcommand "@alootid +"+#AlootSet6ID9; }
  1165. 									if (#AlootSet6ID10 != 0) { atcommand "@alootid +"+#AlootSet6ID10; }
  1166. 									if (#AlootSet6ID11 != 0) { atcommand "@alootid +"+#AlootSet6ID11; }
  1167. 									if (#AlootSet6ID12 != 0) { atcommand "@alootid +"+#AlootSet6ID12; }
  1168. 									if (#AlootSet6ID13 != 0) { atcommand "@alootid +"+#AlootSet6ID13; }
  1169. 									if (#AlootSet6ID14 != 0) { atcommand "@alootid +"+#AlootSet6ID14; }
  1170. 									if (#AlootSet6ID15 != 0) { atcommand "@alootid +"+#AlootSet6ID15; }
  1171. 									if (#AlootSet6ID16 != 0) { atcommand "@alootid +"+#AlootSet6ID16; }
  1172. 									if (#AlootSet6ID17 != 0) { atcommand "@alootid +"+#AlootSet6ID17; }
  1173. 									if (#AlootSet6ID18 != 0) { atcommand "@alootid +"+#AlootSet6ID18; }
  1174. 									if (#AlootSet6ID19 != 0) { atcommand "@alootid +"+#AlootSet6ID19; }
  1175. 									if (#AlootSet6ID20 != 0) { atcommand "@alootid +"+#AlootSet6ID20; }
  1176. 									if (#AlootSet6ID21 != 0) { atcommand "@alootid +"+#AlootSet6ID21; }
  1177. 									if (#AlootSet6ID22 != 0) { atcommand "@alootid +"+#AlootSet6ID22; }
  1178. 									if (#AlootSet6ID23 != 0) { atcommand "@alootid +"+#AlootSet6ID23; }
  1179. 									if (#AlootSet6ID24 != 0) { atcommand "@alootid +"+#AlootSet6ID24; }
  1180. 									if (#AlootSet6ID25 != 0) { atcommand "@alootid +"+#AlootSet6ID25; }
  1181. 								close;
  1182.  
  1183. 							case 2:
  1184. 								mes .NPCName$;
  1185. 								mes "Then come back, if you want to activate it.";
  1186. 								close;
  1187. 						}
  1188. 						close;
  1189. 					} else {
  1190. 						mes .NPCName$;
  1191. 						mes "Sorry, but this Set is already used. Please delete it first and then re-create it.";
  1192. 						mes "The Items you used in this set are:";
  1193. 						mes "Item 1: "+getitemname(#AlootSet6ID1);
  1194. 						if (#AlootSet6ID2 != 0) { mes "Item 2: "+getitemname(#AlootSet6ID2); }
  1195. 						if (#AlootSet6ID3 != 0) { mes "Item 3: "+getitemname(#AlootSet6ID3); }
  1196. 						if (#AlootSet6ID4 != 0) { mes "Item 4: "+getitemname(#AlootSet6ID4); }
  1197. 						if (#AlootSet6ID5 != 0) { mes "Item 5: "+getitemname(#AlootSet6ID5); }
  1198. 						if (#AlootSet6ID6 != 0) { mes "Item 6: "+getitemname(#AlootSet6ID6); }
  1199. 						if (#AlootSet6ID7 != 0) { mes "Item 7: "+getitemname(#AlootSet6ID7); }
  1200. 						if (#AlootSet6ID8 != 0) { mes "Item 8: "+getitemname(#AlootSet6ID8); }
  1201. 						if (#AlootSet6ID9 != 0) { mes "Item 9: "+getitemname(#AlootSet6ID9); }
  1202. 						if (#AlootSet6ID10 != 0) { mes "Item 10: "+getitemname(#AlootSet6ID10); }
  1203. 						if (#AlootSet6ID11 != 0) { mes "Item 11: "+getitemname(#AlootSet6ID11); }
  1204. 						if (#AlootSet6ID12 != 0) { mes "Item 12: "+getitemname(#AlootSet6ID12); }
  1205. 						if (#AlootSet6ID13 != 0) { mes "Item 13: "+getitemname(#AlootSet6ID13); }
  1206. 						if (#AlootSet6ID14 != 0) { mes "Item 14: "+getitemname(#AlootSet6ID14); }
  1207. 						if (#AlootSet6ID15 != 0) { mes "Item 15: "+getitemname(#AlootSet6ID15); }
  1208. 						if (#AlootSet6ID16 != 0) { mes "Item 16: "+getitemname(#AlootSet6ID16); }
  1209. 						if (#AlootSet6ID17 != 0) { mes "Item 17: "+getitemname(#AlootSet6ID17); }
  1210. 						if (#AlootSet6ID18 != 0) { mes "Item 18: "+getitemname(#AlootSet6ID18); }
  1211. 						if (#AlootSet6ID19 != 0) { mes "Item 19: "+getitemname(#AlootSet6ID19); }
  1212. 						if (#AlootSet6ID20 != 0) { mes "Item 20: "+getitemname(#AlootSet6ID20); }
  1213. 						if (#AlootSet6ID21 != 0) { mes "Item 21: "+getitemname(#AlootSet6ID21); }
  1214. 						if (#AlootSet6ID22 != 0) { mes "Item 22: "+getitemname(#AlootSet6ID22); }
  1215. 						if (#AlootSet6ID23 != 0) { mes "Item 23: "+getitemname(#AlootSet6ID23); }
  1216. 						if (#AlootSet6ID24 != 0) { mes "Item 24: "+getitemname(#AlootSet6ID24); }
  1217. 						if (#AlootSet6ID25 != 0) { mes "Item 25: "+getitemname(#AlootSet6ID25); }
  1218. 						close;
  1219. 					}		
  1220. 			}
  1221. 		case 3:
  1222. 			mes .NPCName$;
  1223. 			mes "Alright, let's edit an existing set!";
  1224. 			mes "What set do you want to edit?";
  1225. 			mes "Empty/Unused Sets are shown with \"Nothing\" and can't be edited.";
  1226. 			if (#LootSet1$ == "") { set @menu$[1], "Nothing"; } else { set @menu$[1], #LootSet1$; }
  1227. 			if (#LootSet2$ == "") { set @menu$[2], "Nothing"; } else { set @menu$[2], #LootSet2$; }
  1228. 			if (#LootSet3$ == "") { set @menu$[3], "Nothing"; } else { set @menu$[3], #LootSet3$; }
  1229. 			if (#LootSet4$ == "") { set @menu$[4], "Nothing"; } else { set @menu$[4], #LootSet4$; }
  1230. 			if (#LootSet5$ == "") { set @menu$[5], "Nothing"; } else { set @menu$[5], #LootSet5$; }
  1231. 			if (#LootSet6$ == "") { set @menu$[6], "Nothing"; } else { set @menu$[6], #LootSet6$; }
  1232. 			next;
  1233. 			switch(select(@menu$[1],@menu$[2],@menu$[3],@menu$[4],@menu$[5],@menu$[6]))
  1234. 			{
  1235. 				case 1:
  1236. 					if (@menu$[1] != "Nothing")
  1237. 					{
  1238. 						mes .NPCName$;
  1239. 						mes "Perfect! Let's edit what's listed in this set.";
  1240. 						mes "You can Delete any item by entering 0.";
  1241. 						mes "Or edit the item ID by entering it in place of an existing one.";
  1242. 						if (#AlootSet1ID1 != 0) { set @menu$[1], "Add Item"; } else { set @menu$[1], "Item ID "+#AlootSet1ID1+" - ("+getitemname(#AlootSet1ID1)"+)"; }
  1243. 						if (#AlootSet1ID2 != 0) { set @menu$[2], "Add Item"; } else { set @menu$[2], "Item ID "+#AlootSet1ID2+" - ("+getitemname(#AlootSet1ID2)"+)"; }
  1244. 						if (#AlootSet1ID3 != 0) { set @menu$[3], "Add Item"; } else { set @menu$[3], "Item ID "+#AlootSet1ID3+" - ("+getitemname(#AlootSet1ID3)"+)"; }
  1245. 						if (#AlootSet1ID4 != 0) { set @menu$[4], "Add Item"; } else { set @menu$[4], "Item ID "+#AlootSet1ID4+" - ("+getitemname(#AlootSet1ID4)"+)"; }
  1246. 						if (#AlootSet1ID5 != 0) { set @menu$[5], "Add Item"; } else { set @menu$[5], "Item ID "+#AlootSet1ID5+" - ("+getitemname(#AlootSet1ID5)"+)"; }
  1247. 						if (#AlootSet1ID6 != 0) { set @menu$[6], "Add Item"; } else { set @menu$[6], "Item ID "+#AlootSet1ID6+" - ("+getitemname(#AlootSet1ID6)"+)"; }
  1248. 						if (#AlootSet1ID7 != 0) { set @menu$[7], "Add Item"; } else { set @menu$[7], "Item ID "+#AlootSet1ID7+" - ("+getitemname(#AlootSet1ID7)"+)"; }
  1249. 						if (#AlootSet1ID8 != 0) { set @menu$[8], "Add Item"; } else { set @menu$[8], "Item ID "+#AlootSet1ID8+" - ("+getitemname(#AlootSet1ID8)"+)"; }
  1250. 						if (#AlootSet1ID9 != 0) { set @menu$[9], "Add Item"; } else { set @menu$[9], "Item ID "+#AlootSet1ID9+" - ("+getitemname(#AlootSet1ID9)"+)"; }
  1251. 						if (#AlootSet1ID10 != 0) { set @menu$[10], "Add Item"; } else { set @menu$[10], "Item ID "+#AlootSet1ID10+" - ("+getitemname(#AlootSet1ID10)"+)"; }
  1252. 						if (#AlootSet1ID11 != 0) { set @menu$[11], "Add Item"; } else { set @menu$[11], "Item ID "+#AlootSet1ID11+" - ("+getitemname(#AlootSet1ID11)"+)"; }
  1253. 						if (#AlootSet1ID12 != 0) { set @menu$[12], "Add Item"; } else { set @menu$[12], "Item ID "+#AlootSet1ID12+" - ("+getitemname(#AlootSet1ID12)"+)"; }
  1254. 						if (#AlootSet1ID13 != 0) { set @menu$[13], "Add Item"; } else { set @menu$[13], "Item ID "+#AlootSet1ID13+" - ("+getitemname(#AlootSet1ID13)"+)"; }
  1255. 						if (#AlootSet1ID14 != 0) { set @menu$[14], "Add Item"; } else { set @menu$[14], "Item ID "+#AlootSet1ID14+" - ("+getitemname(#AlootSet1ID14)"+)"; }
  1256. 						if (#AlootSet1ID15 != 0) { set @menu$[15], "Add Item"; } else { set @menu$[15], "Item ID "+#AlootSet1ID15+" - ("+getitemname(#AlootSet1ID15)"+)"; }
  1257. 						if (#AlootSet1ID16 != 0) { set @menu$[16], "Add Item"; } else { set @menu$[16], "Item ID "+#AlootSet1ID16+" - ("+getitemname(#AlootSet1ID16)"+)"; }
  1258. 						if (#AlootSet1ID17 != 0) { set @menu$[17], "Add Item"; } else { set @menu$[17], "Item ID "+#AlootSet1ID17+" - ("+getitemname(#AlootSet1ID17)"+)"; }
  1259. 						if (#AlootSet1ID18 != 0) { set @menu$[18], "Add Item"; } else { set @menu$[18], "Item ID "+#AlootSet1ID18+" - ("+getitemname(#AlootSet1ID18)"+)"; }
  1260. 						if (#AlootSet1ID19 != 0) { set @menu$[19], "Add Item"; } else { set @menu$[19], "Item ID "+#AlootSet1ID19+" - ("+getitemname(#AlootSet1ID19)"+)"; }
  1261. 						if (#AlootSet1ID20 != 0) { set @menu$[20], "Add Item"; } else { set @menu$[20], "Item ID "+#AlootSet1ID20+" - ("+getitemname(#AlootSet1ID20)"+)"; }
  1262. 						if (#AlootSet1ID21 != 0) { set @menu$[21], "Add Item"; } else { set @menu$[21], "Item ID "+#AlootSet1ID21+" - ("+getitemname(#AlootSet1ID21)"+)"; }
  1263. 						if (#AlootSet1ID22 != 0) { set @menu$[22], "Add Item"; } else { set @menu$[22], "Item ID "+#AlootSet1ID22+" - ("+getitemname(#AlootSet1ID22)"+)"; }
  1264. 						if (#AlootSet1ID23 != 0) { set @menu$[23], "Add Item"; } else { set @menu$[23], "Item ID "+#AlootSet1ID23+" - ("+getitemname(#AlootSet1ID23)"+)"; }
  1265. 						if (#AlootSet1ID24 != 0) { set @menu$[24], "Add Item"; } else { set @menu$[24], "Item ID "+#AlootSet1ID24+" - ("+getitemname(#AlootSet1ID24)"+)"; }
  1266. 						if (#AlootSet1ID25 != 0) { set @menu$[25], "Add Item"; } else { set @menu$[25], "Item ID "+#AlootSet1ID25+" - ("+getitemname(#AlootSet1ID25)"+)"; }
  1267. 						next;
  1268. 						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]))
  1269. 						{
  1270. 							case 1:
  1271.  
  1272. 								mes .NPCName$;
  1273. 								mes "Please input the item ID for what you want to autoloot.";
  1274. 								mes "Enter 0 if you wish to leave this option blank.";
  1275. 								input @input;
  1276. 								if (@input == 0)
  1277. 								{
  1278. 								mes ".NPCName$;
  1279. 								mes "There's nothing there, dimwit!";
  1280. 								close;
  1281. 								} else {
  1282. 								if(getiteminfo(@input,0) == -1)
  1283. 								{
  1284. 								mes ".NPCName$;
  1285. 								mes "Sorry, this is not a valid Item ID";
  1286. 								mes "Please try again.";
  1287. 								next;
  1288. 								} else {
  1289. 								mes .NPCName$;
  1290. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  1291. 								set #AlootSet1ID1,@input;
  1292. 								next;
  1293. 								}
  1294. 							}
  1295. 							case 2:
  1296.  
  1297. 								mes .NPCName$;
  1298. 								mes "Please input the item ID for what you want to autoloot.";
  1299. 								mes "Enter 0 if you wish to leave this option blank.";
  1300. 								input @input;
  1301. 								if (@input == 0)
  1302. 								{
  1303. 								mes ".NPCName$;
  1304. 								mes "There's nothing there, dimwit!";
  1305. 								close;
  1306. 								} else {
  1307. 								if(getiteminfo(@input,0) == -1)
  1308. 								{
  1309. 								mes ".NPCName$;
  1310. 								mes "Sorry, this is not a valid Item ID";
  1311. 								mes "Please try again.";
  1312. 								next;
  1313. 								} else {
  1314. 								mes .NPCName$;
  1315. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  1316. 								set #AlootSet1ID2,@input;
  1317. 								next;
  1318. 								}
  1319. 							}
  1320. 							case 3:
  1321.  
  1322. 								mes .NPCName$;
  1323. 								mes "Please input the item ID for what you want to autoloot.";
  1324. 								mes "Enter 0 if you wish to leave this option blank.";
  1325. 								input @input;
  1326. 								if (@input == 0)
  1327. 								{
  1328. 								mes ".NPCName$;
  1329. 								mes "There's nothing there, dimwit!";
  1330. 								close;
  1331. 								} else {
  1332. 								if(getiteminfo(@input,0) == -1)
  1333. 								{
  1334. 								mes ".NPCName$;
  1335. 								mes "Sorry, this is not a valid Item ID";
  1336. 								mes "Please try again.";
  1337. 								next;
  1338. 								} else {
  1339. 								mes .NPCName$;
  1340. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  1341. 								set #AlootSet1ID3,@input;
  1342. 								next;
  1343. 								}
  1344. 							}							
  1345. 							case 4:
  1346.  
  1347. 								mes .NPCName$;
  1348. 								mes "Please input the item ID for what you want to autoloot.";
  1349. 								mes "Enter 0 if you wish to leave this option blank.";
  1350. 								input @input;
  1351. 								if (@input == 0)
  1352. 								{
  1353. 								mes ".NPCName$;
  1354. 								mes "There's nothing there, dimwit!";
  1355. 								close;
  1356. 								} else {
  1357. 								if(getiteminfo(@input,0) == -1)
  1358. 								{
  1359. 								mes ".NPCName$;
  1360. 								mes "Sorry, this is not a valid Item ID";
  1361. 								mes "Please try again.";
  1362. 								next;
  1363. 								} else {
  1364. 								mes .NPCName$;
  1365. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  1366. 								set #AlootSet1ID4,@input;
  1367. 								next;
  1368. 								}
  1369. 							}
  1370. 							case 5:
  1371.  
  1372. 								mes .NPCName$;
  1373. 								mes "Please input the item ID for what you want to autoloot.";
  1374. 								mes "Enter 0 if you wish to leave this option blank.";
  1375. 								input @input;
  1376. 								if (@input == 0)
  1377. 								{
  1378. 								mes ".NPCName$;
  1379. 								mes "There's nothing there, dimwit!";
  1380. 								close;
  1381. 								} else {
  1382. 								if(getiteminfo(@input,0) == -1)
  1383. 								{
  1384. 								mes ".NPCName$;
  1385. 								mes "Sorry, this is not a valid Item ID";
  1386. 								mes "Please try again.";
  1387. 								next;
  1388. 								} else {
  1389. 								mes .NPCName$;
  1390. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  1391. 								set #AlootSet1ID5,@input;
  1392. 								next;
  1393. 								}
  1394. 							}			
  1395. 							case 6:
  1396.  
  1397. 								mes .NPCName$;
  1398. 								mes "Please input the item ID for what you want to autoloot.";
  1399. 								mes "Enter 0 if you wish to leave this option blank.";
  1400. 								input @input;
  1401. 								if (@input == 0)
  1402. 								{
  1403. 								mes ".NPCName$;
  1404. 								mes "There's nothing there, dimwit!";
  1405. 								close;
  1406. 								} else {
  1407. 								if(getiteminfo(@input,0) == -1)
  1408. 								{
  1409. 								mes ".NPCName$;
  1410. 								mes "Sorry, this is not a valid Item ID";
  1411. 								mes "Please try again.";
  1412. 								next;
  1413. 								} else {
  1414. 								mes .NPCName$;
  1415. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  1416. 								set #AlootSet1ID6,@input;
  1417. 								next;
  1418. 								}
  1419. 							}	
  1420. 							case 7:
  1421.  
  1422. 								mes .NPCName$;
  1423. 								mes "Please input the item ID for what you want to autoloot.";
  1424. 								mes "Enter 0 if you wish to leave this option blank.";
  1425. 								input @input;
  1426. 								if (@input == 0)
  1427. 								{
  1428. 								mes ".NPCName$;
  1429. 								mes "There's nothing there, dimwit!";
  1430. 								close;
  1431. 								} else {
  1432. 								if(getiteminfo(@input,0) == -1)
  1433. 								{
  1434. 								mes ".NPCName$;
  1435. 								mes "Sorry, this is not a valid Item ID";
  1436. 								mes "Please try again.";
  1437. 								next;
  1438. 								} else {
  1439. 								mes .NPCName$;
  1440. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  1441. 								set #AlootSet1ID7,@input;
  1442. 								next;
  1443. 								}
  1444. 							}		
  1445. 							case 8:
  1446.  
  1447. 								mes .NPCName$;
  1448. 								mes "Please input the item ID for what you want to autoloot.";
  1449. 								mes "Enter 0 if you wish to leave this option blank.";
  1450. 								input @input;
  1451. 								if (@input == 0)
  1452. 								{
  1453. 								mes ".NPCName$;
  1454. 								mes "There's nothing there, dimwit!";
  1455. 								close;
  1456. 								} else {
  1457. 								if(getiteminfo(@input,0) == -1)
  1458. 								{
  1459. 								mes ".NPCName$;
  1460. 								mes "Sorry, this is not a valid Item ID";
  1461. 								mes "Please try again.";
  1462. 								next;
  1463. 								} else {
  1464. 								mes .NPCName$;
  1465. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  1466. 								set #AlootSet1ID8,@input;
  1467. 								next;
  1468. 								}
  1469. 							}		
  1470. 							case 9:
  1471.  
  1472. 								mes .NPCName$;
  1473. 								mes "Please input the item ID for what you want to autoloot.";
  1474. 								mes "Enter 0 if you wish to leave this option blank.";
  1475. 								input @input;
  1476. 								if (@input == 0)
  1477. 								{
  1478. 								mes ".NPCName$;
  1479. 								mes "There's nothing there, dimwit!";
  1480. 								close;
  1481. 								} else {
  1482. 								if(getiteminfo(@input,0) == -1)
  1483. 								{
  1484. 								mes ".NPCName$;
  1485. 								mes "Sorry, this is not a valid Item ID";
  1486. 								mes "Please try again.";
  1487. 								next;
  1488. 								} else {
  1489. 								mes .NPCName$;
  1490. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  1491. 								set #AlootSet1ID9,@input;
  1492. 								next;
  1493. 								}
  1494. 							}	
  1495. 							case 10:
  1496.  
  1497. 								mes .NPCName$;
  1498. 								mes "Please input the item ID for what you want to autoloot.";
  1499. 								mes "Enter 0 if you wish to leave this option blank.";
  1500. 								input @input;
  1501. 								if (@input == 0)
  1502. 								{
  1503. 								mes ".NPCName$;
  1504. 								mes "There's nothing there, dimwit!";
  1505. 								close;
  1506. 								} else {
  1507. 								if(getiteminfo(@input,0) == -1)
  1508. 								{
  1509. 								mes ".NPCName$;
  1510. 								mes "Sorry, this is not a valid Item ID";
  1511. 								mes "Please try again.";
  1512. 								next;
  1513. 								} else {
  1514. 								mes .NPCName$;
  1515. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  1516. 								set #AlootSet1ID10,@input;
  1517. 								next;
  1518. 								}
  1519. 							}	
  1520. 							case 11:
  1521.  
  1522. 								mes .NPCName$;
  1523. 								mes "Please input the item ID for what you want to autoloot.";
  1524. 								mes "Enter 0 if you wish to leave this option blank.";
  1525. 								input @input;
  1526. 								if (@input == 0)
  1527. 								{
  1528. 								mes ".NPCName$;
  1529. 								mes "There's nothing there, dimwit!";
  1530. 								close;
  1531. 								} else {
  1532. 								if(getiteminfo(@input,0) == -1)
  1533. 								{
  1534. 								mes ".NPCName$;
  1535. 								mes "Sorry, this is not a valid Item ID";
  1536. 								mes "Please try again.";
  1537. 								next;
  1538. 								} else {
  1539. 								mes .NPCName$;
  1540. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  1541. 								set #AlootSet1ID11,@input;
  1542. 								next;
  1543. 								}
  1544. 							}	
  1545. 							case 12:
  1546.  
  1547. 								mes .NPCName$;
  1548. 								mes "Please input the item ID for what you want to autoloot.";
  1549. 								mes "Enter 0 if you wish to leave this option blank.";
  1550. 								input @input;
  1551. 								if (@input == 0)
  1552. 								{
  1553. 								mes ".NPCName$;
  1554. 								mes "There's nothing there, dimwit!";
  1555. 								close;
  1556. 								} else {
  1557. 								if(getiteminfo(@input,0) == -1)
  1558. 								{
  1559. 								mes ".NPCName$;
  1560. 								mes "Sorry, this is not a valid Item ID";
  1561. 								mes "Please try again.";
  1562. 								next;
  1563. 								} else {
  1564. 								mes .NPCName$;
  1565. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  1566. 								set #AlootSet1ID12,@input;
  1567. 								next;
  1568. 								}
  1569. 							}			
  1570. 							case 13:
  1571.  
  1572. 								mes .NPCName$;
  1573. 								mes "Please input the item ID for what you want to autoloot.";
  1574. 								mes "Enter 0 if you wish to leave this option blank.";
  1575. 								input @input;
  1576. 								if (@input == 0)
  1577. 								{
  1578. 								mes ".NPCName$;
  1579. 								mes "There's nothing there, dimwit!";
  1580. 								close;
  1581. 								} else {
  1582. 								if(getiteminfo(@input,0) == -1)
  1583. 								{
  1584. 								mes ".NPCName$;
  1585. 								mes "Sorry, this is not a valid Item ID";
  1586. 								mes "Please try again.";
  1587. 								next;
  1588. 								} else {
  1589. 								mes .NPCName$;
  1590. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  1591. 								set #AlootSet1ID13,@input;
  1592. 								next;
  1593. 								}
  1594. 							}	
  1595. 							case 14:
  1596.  
  1597. 								mes .NPCName$;
  1598. 								mes "Please input the item ID for what you want to autoloot.";
  1599. 								mes "Enter 0 if you wish to leave this option blank.";
  1600. 								input @input;
  1601. 								if (@input == 0)
  1602. 								{
  1603. 								mes ".NPCName$;
  1604. 								mes "There's nothing there, dimwit!";
  1605. 								close;
  1606. 								} else {
  1607. 								if(getiteminfo(@input,0) == -1)
  1608. 								{
  1609. 								mes ".NPCName$;
  1610. 								mes "Sorry, this is not a valid Item ID";
  1611. 								mes "Please try again.";
  1612. 								next;
  1613. 								} else {
  1614. 								mes .NPCName$;
  1615. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  1616. 								set #AlootSet1ID14,@input;
  1617. 								next;
  1618. 								}
  1619. 							}	
  1620. 							case 15:
  1621.  
  1622. 								mes .NPCName$;
  1623. 								mes "Please input the item ID for what you want to autoloot.";
  1624. 								mes "Enter 0 if you wish to leave this option blank.";
  1625. 								input @input;
  1626. 								if (@input == 0)
  1627. 								{
  1628. 								mes ".NPCName$;
  1629. 								mes "There's nothing there, dimwit!";
  1630. 								close;
  1631. 								} else {
  1632. 								if(getiteminfo(@input,0) == -1)
  1633. 								{
  1634. 								mes ".NPCName$;
  1635. 								mes "Sorry, this is not a valid Item ID";
  1636. 								mes "Please try again.";
  1637. 								next;
  1638. 								} else {
  1639. 								mes .NPCName$;
  1640. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  1641. 								set #AlootSet1ID15,@input;
  1642. 								next;
  1643. 								}
  1644. 							}		
  1645. 							case 16:
  1646.  
  1647. 								mes .NPCName$;
  1648. 								mes "Please input the item ID for what you want to autoloot.";
  1649. 								mes "Enter 0 if you wish to leave this option blank.";
  1650. 								input @input;
  1651. 								if (@input == 0)
  1652. 								{
  1653. 								mes ".NPCName$;
  1654. 								mes "There's nothing there, dimwit!";
  1655. 								close;
  1656. 								} else {
  1657. 								if(getiteminfo(@input,0) == -1)
  1658. 								{
  1659. 								mes ".NPCName$;
  1660. 								mes "Sorry, this is not a valid Item ID";
  1661. 								mes "Please try again.";
  1662. 								next;
  1663. 								} else {
  1664. 								mes .NPCName$;
  1665. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  1666. 								set #AlootSet1ID16,@input;
  1667. 								next;
  1668. 								}
  1669. 							}		
  1670. 							case 17:
  1671.  
  1672. 								mes .NPCName$;
  1673. 								mes "Please input the item ID for what you want to autoloot.";
  1674. 								mes "Enter 0 if you wish to leave this option blank.";
  1675. 								input @input;
  1676. 								if (@input == 0)
  1677. 								{
  1678. 								mes ".NPCName$;
  1679. 								mes "There's nothing there, dimwit!";
  1680. 								close;
  1681. 								} else {
  1682. 								if(getiteminfo(@input,0) == -1)
  1683. 								{
  1684. 								mes ".NPCName$;
  1685. 								mes "Sorry, this is not a valid Item ID";
  1686. 								mes "Please try again.";
  1687. 								next;
  1688. 								} else {
  1689. 								mes .NPCName$;
  1690. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  1691. 								set #AlootSet1ID17,@input;
  1692. 								next;
  1693. 								}
  1694. 							}		
  1695. 							case 18:
  1696.  
  1697. 								mes .NPCName$;
  1698. 								mes "Please input the item ID for what you want to autoloot.";
  1699. 								mes "Enter 0 if you wish to leave this option blank.";
  1700. 								input @input;
  1701. 								if (@input == 0)
  1702. 								{
  1703. 								mes ".NPCName$;
  1704. 								mes "There's nothing there, dimwit!";
  1705. 								close;
  1706. 								} else {
  1707. 								if(getiteminfo(@input,0) == -1)
  1708. 								{
  1709. 								mes ".NPCName$;
  1710. 								mes "Sorry, this is not a valid Item ID";
  1711. 								mes "Please try again.";
  1712. 								next;
  1713. 								} else {
  1714. 								mes .NPCName$;
  1715. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  1716. 								set #AlootSet1ID18,@input;
  1717. 								next;
  1718. 								}
  1719. 							}		
  1720. 							case 19:
  1721.  
  1722. 								mes .NPCName$;
  1723. 								mes "Please input the item ID for what you want to autoloot.";
  1724. 								mes "Enter 0 if you wish to leave this option blank.";
  1725. 								input @input;
  1726. 								if (@input == 0)
  1727. 								{
  1728. 								mes ".NPCName$;
  1729. 								mes "There's nothing there, dimwit!";
  1730. 								close;
  1731. 								} else {
  1732. 								if(getiteminfo(@input,0) == -1)
  1733. 								{
  1734. 								mes ".NPCName$;
  1735. 								mes "Sorry, this is not a valid Item ID";
  1736. 								mes "Please try again.";
  1737. 								next;
  1738. 								} else {
  1739. 								mes .NPCName$;
  1740. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  1741. 								set #AlootSet1ID19,@input;
  1742. 								next;
  1743. 								}
  1744. 							}		
  1745. 							case 20:
  1746.  
  1747. 								mes .NPCName$;
  1748. 								mes "Please input the item ID for what you want to autoloot.";
  1749. 								mes "Enter 0 if you wish to leave this option blank.";
  1750. 								input @input;
  1751. 								if (@input == 0)
  1752. 								{
  1753. 								mes ".NPCName$;
  1754. 								mes "There's nothing there, dimwit!";
  1755. 								close;
  1756. 								} else {
  1757. 								if(getiteminfo(@input,0) == -1)
  1758. 								{
  1759. 								mes ".NPCName$;
  1760. 								mes "Sorry, this is not a valid Item ID";
  1761. 								mes "Please try again.";
  1762. 								next;
  1763. 								} else {
  1764. 								mes .NPCName$;
  1765. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  1766. 								set #AlootSet1ID20,@input;
  1767. 								next;
  1768. 								}
  1769. 							}			
  1770. 							case 21:
  1771.  
  1772. 								mes .NPCName$;
  1773. 								mes "Please input the item ID for what you want to autoloot.";
  1774. 								mes "Enter 0 if you wish to leave this option blank.";
  1775. 								input @input;
  1776. 								if (@input == 0)
  1777. 								{
  1778. 								mes ".NPCName$;
  1779. 								mes "There's nothing there, dimwit!";
  1780. 								close;
  1781. 								} else {
  1782. 								if(getiteminfo(@input,0) == -1)
  1783. 								{
  1784. 								mes ".NPCName$;
  1785. 								mes "Sorry, this is not a valid Item ID";
  1786. 								mes "Please try again.";
  1787. 								next;
  1788. 								} else {
  1789. 								mes .NPCName$;
  1790. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  1791. 								set #AlootSet1ID21,@input;
  1792. 								next;
  1793. 								}
  1794. 							}	
  1795. 							case 22:
  1796.  
  1797. 								mes .NPCName$;
  1798. 								mes "Please input the item ID for what you want to autoloot.";
  1799. 								mes "Enter 0 if you wish to leave this option blank.";
  1800. 								input @input;
  1801. 								if (@input == 0)
  1802. 								{
  1803. 								mes ".NPCName$;
  1804. 								mes "There's nothing there, dimwit!";
  1805. 								close;
  1806. 								} else {
  1807. 								if(getiteminfo(@input,0) == -1)
  1808. 								{
  1809. 								mes ".NPCName$;
  1810. 								mes "Sorry, this is not a valid Item ID";
  1811. 								mes "Please try again.";
  1812. 								next;
  1813. 								} else {
  1814. 								mes .NPCName$;
  1815. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  1816. 								set #AlootSet1ID22,@input;
  1817. 								next;
  1818. 								}
  1819. 							}		
  1820. 							case 23:
  1821.  
  1822. 								mes .NPCName$;
  1823. 								mes "Please input the item ID for what you want to autoloot.";
  1824. 								mes "Enter 0 if you wish to leave this option blank.";
  1825. 								input @input;
  1826. 								if (@input == 0)
  1827. 								{
  1828. 								mes ".NPCName$;
  1829. 								mes "There's nothing there, dimwit!";
  1830. 								close;
  1831. 								} else {
  1832. 								if(getiteminfo(@input,0) == -1)
  1833. 								{
  1834. 								mes ".NPCName$;
  1835. 								mes "Sorry, this is not a valid Item ID";
  1836. 								mes "Please try again.";
  1837. 								next;
  1838. 								} else {
  1839. 								mes .NPCName$;
  1840. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  1841. 								set #AlootSet1ID23,@input;
  1842. 								next;
  1843. 								}
  1844. 							}			
  1845. 							case 24:
  1846.  
  1847. 								mes .NPCName$;
  1848. 								mes "Please input the item ID for what you want to autoloot.";
  1849. 								mes "Enter 0 if you wish to leave this option blank.";
  1850. 								input @input;
  1851. 								if (@input == 0)
  1852. 								{
  1853. 								mes ".NPCName$;
  1854. 								mes "There's nothing there, dimwit!";
  1855. 								close;
  1856. 								} else {
  1857. 								if(getiteminfo(@input,0) == -1)
  1858. 								{
  1859. 								mes ".NPCName$;
  1860. 								mes "Sorry, this is not a valid Item ID";
  1861. 								mes "Please try again.";
  1862. 								next;
  1863. 								} else {
  1864. 								mes .NPCName$;
  1865. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  1866. 								set #AlootSet1ID24,@input;
  1867. 								next;
  1868. 								}
  1869. 							}	
  1870. 							case 25:
  1871.  
  1872. 								mes .NPCName$;
  1873. 								mes "Please input the item ID for what you want to autoloot.";
  1874. 								mes "Enter 0 if you wish to leave this option blank.";
  1875. 								input @input;
  1876. 								if (@input == 0)
  1877. 								{
  1878. 								mes ".NPCName$;
  1879. 								mes "There's nothing there, dimwit!";
  1880. 								close;
  1881. 								} else {
  1882. 								if(getiteminfo(@input,0) == -1)
  1883. 								{
  1884. 								mes ".NPCName$;
  1885. 								mes "Sorry, this is not a valid Item ID";
  1886. 								mes "Please try again.";
  1887. 								next;
  1888. 								} else {
  1889. 								mes .NPCName$;
  1890. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  1891. 								set #AlootSet1ID25,@input;
  1892. 								next;
  1893. 								}
  1894. 							}	
  1895. 						}
  1896.  
  1897. 		} else {
  1898. 		mes .NPCName$;
  1899. 		mes "You have nothing created in this set!";
  1900. 		mes "Please create a set before editing it.";
  1901. 		close;
  1902. 		}
  1903. 							case 2:
  1904. 					if (@menu$[2] != "Nothing")
  1905. 					{
  1906. 						mes .NPCName$;
  1907. 						mes "Perfect! Let's edit what's listed in this set.";
  1908. 						mes "You can Delete any item by entering 0.";
  1909. 						mes "Or edit the item ID by entering it in place of an existing one.";
  1910. 						if (#AlootSet2ID1 != 0) { set @menu$[1], "Add Item"; } else { set @menu$[1], "Item ID "+#AlootSet2ID1+" - ("+getitemname(#AlootSet2ID1)"+)"; }
  1911. 						if (#AlootSet2ID2 != 0) { set @menu$[2], "Add Item"; } else { set @menu$[2], "Item ID "+#AlootSet2ID2+" - ("+getitemname(#AlootSet2ID2)"+)"; }
  1912. 						if (#AlootSet2ID3 != 0) { set @menu$[3], "Add Item"; } else { set @menu$[3], "Item ID "+#AlootSet2ID3+" - ("+getitemname(#AlootSet2ID3)"+)"; }
  1913. 						if (#AlootSet2ID4 != 0) { set @menu$[4], "Add Item"; } else { set @menu$[4], "Item ID "+#AlootSet2ID4+" - ("+getitemname(#AlootSet2ID4)"+)"; }
  1914. 						if (#AlootSet2ID5 != 0) { set @menu$[5], "Add Item"; } else { set @menu$[5], "Item ID "+#AlootSet2ID5+" - ("+getitemname(#AlootSet2ID5)"+)"; }
  1915. 						if (#AlootSet2ID6 != 0) { set @menu$[6], "Add Item"; } else { set @menu$[6], "Item ID "+#AlootSet2ID6+" - ("+getitemname(#AlootSet2ID6)"+)"; }
  1916. 						if (#AlootSet2ID7 != 0) { set @menu$[7], "Add Item"; } else { set @menu$[7], "Item ID "+#AlootSet2ID7+" - ("+getitemname(#AlootSet2ID7)"+)"; }
  1917. 						if (#AlootSet2ID8 != 0) { set @menu$[8], "Add Item"; } else { set @menu$[8], "Item ID "+#AlootSet2ID8+" - ("+getitemname(#AlootSet2ID8)"+)"; }
  1918. 						if (#AlootSet2ID9 != 0) { set @menu$[9], "Add Item"; } else { set @menu$[9], "Item ID "+#AlootSet2ID9+" - ("+getitemname(#AlootSet2ID9)"+)"; }
  1919. 						if (#AlootSet2ID10 != 0) { set @menu$[10], "Add Item"; } else { set @menu$[10], "Item ID "+#AlootSet2ID10+" - ("+getitemname(#AlootSet2ID10)"+)"; }
  1920. 						if (#AlootSet2ID11 != 0) { set @menu$[11], "Add Item"; } else { set @menu$[11], "Item ID "+#AlootSet2ID11+" - ("+getitemname(#AlootSet2ID11)"+)"; }
  1921. 						if (#AlootSet2ID12 != 0) { set @menu$[12], "Add Item"; } else { set @menu$[12], "Item ID "+#AlootSet2ID12+" - ("+getitemname(#AlootSet2ID12)"+)"; }
  1922. 						if (#AlootSet2ID13 != 0) { set @menu$[13], "Add Item"; } else { set @menu$[13], "Item ID "+#AlootSet2ID13+" - ("+getitemname(#AlootSet2ID13)"+)"; }
  1923. 						if (#AlootSet2ID14 != 0) { set @menu$[14], "Add Item"; } else { set @menu$[14], "Item ID "+#AlootSet2ID14+" - ("+getitemname(#AlootSet2ID14)"+)"; }
  1924. 						if (#AlootSet2ID15 != 0) { set @menu$[15], "Add Item"; } else { set @menu$[15], "Item ID "+#AlootSet2ID15+" - ("+getitemname(#AlootSet2ID15)"+)"; }
  1925. 						if (#AlootSet2ID16 != 0) { set @menu$[16], "Add Item"; } else { set @menu$[16], "Item ID "+#AlootSet2ID16+" - ("+getitemname(#AlootSet2ID16)"+)"; }
  1926. 						if (#AlootSet2ID17 != 0) { set @menu$[17], "Add Item"; } else { set @menu$[17], "Item ID "+#AlootSet2ID17+" - ("+getitemname(#AlootSet2ID17)"+)"; }
  1927. 						if (#AlootSet2ID18 != 0) { set @menu$[18], "Add Item"; } else { set @menu$[18], "Item ID "+#AlootSet2ID18+" - ("+getitemname(#AlootSet2ID18)"+)"; }
  1928. 						if (#AlootSet2ID19 != 0) { set @menu$[19], "Add Item"; } else { set @menu$[19], "Item ID "+#AlootSet2ID19+" - ("+getitemname(#AlootSet2ID19)"+)"; }
  1929. 						if (#AlootSet2ID20 != 0) { set @menu$[20], "Add Item"; } else { set @menu$[20], "Item ID "+#AlootSet2ID20+" - ("+getitemname(#AlootSet2ID20)"+)"; }
  1930. 						if (#AlootSet2ID21 != 0) { set @menu$[21], "Add Item"; } else { set @menu$[21], "Item ID "+#AlootSet2ID21+" - ("+getitemname(#AlootSet2ID21)"+)"; }
  1931. 						if (#AlootSet2ID22 != 0) { set @menu$[22], "Add Item"; } else { set @menu$[22], "Item ID "+#AlootSet2ID22+" - ("+getitemname(#AlootSet2ID22)"+)"; }
  1932. 						if (#AlootSet2ID23 != 0) { set @menu$[23], "Add Item"; } else { set @menu$[23], "Item ID "+#AlootSet2ID23+" - ("+getitemname(#AlootSet2ID23)"+)"; }
  1933. 						if (#AlootSet2ID24 != 0) { set @menu$[24], "Add Item"; } else { set @menu$[24], "Item ID "+#AlootSet2ID24+" - ("+getitemname(#AlootSet2ID24)"+)"; }
  1934. 						if (#AlootSet2ID25 != 0) { set @menu$[25], "Add Item"; } else { set @menu$[25], "Item ID "+#AlootSet2ID25+" - ("+getitemname(#AlootSet2ID25)"+)"; }
  1935. 						next;
  1936. 						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]))
  1937. 						{
  1938. 							case 1:
  1939.  
  1940. 								mes .NPCName$;
  1941. 								mes "Please input the item ID for what you want to autoloot.";
  1942. 								mes "Enter 0 if you wish to leave this option blank.";
  1943. 								input @input;
  1944. 								if (@input == 0)
  1945. 								{
  1946. 								mes ".NPCName$;
  1947. 								mes "There's nothing there, dimwit!";
  1948. 								close;
  1949. 								} else {
  1950. 								if(getiteminfo(@input,0) == -1)
  1951. 								{
  1952. 								mes ".NPCName$;
  1953. 								mes "Sorry, this is not a valid Item ID";
  1954. 								mes "Please try again.";
  1955. 								next;
  1956. 								} else {
  1957. 								mes .NPCName$;
  1958. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  1959. 								set #AlootSet2ID1,@input;
  1960. 								next;
  1961. 								}
  1962. 							}
  1963. 							case 2:
  1964.  
  1965. 								mes .NPCName$;
  1966. 								mes "Please input the item ID for what you want to autoloot.";
  1967. 								mes "Enter 0 if you wish to leave this option blank.";
  1968. 								input @input;
  1969. 								if (@input == 0)
  1970. 								{
  1971. 								mes ".NPCName$;
  1972. 								mes "There's nothing there, dimwit!";
  1973. 								close;
  1974. 								} else {
  1975. 								if(getiteminfo(@input,0) == -1)
  1976. 								{
  1977. 								mes ".NPCName$;
  1978. 								mes "Sorry, this is not a valid Item ID";
  1979. 								mes "Please try again.";
  1980. 								next;
  1981. 								} else {
  1982. 								mes .NPCName$;
  1983. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  1984. 								set #AlootSet2ID2,@input;
  1985. 								next;
  1986. 								}
  1987. 							}
  1988. 							case 3:
  1989.  
  1990. 								mes .NPCName$;
  1991. 								mes "Please input the item ID for what you want to autoloot.";
  1992. 								mes "Enter 0 if you wish to leave this option blank.";
  1993. 								input @input;
  1994. 								if (@input == 0)
  1995. 								{
  1996. 								mes ".NPCName$;
  1997. 								mes "There's nothing there, dimwit!";
  1998. 								close;
  1999. 								} else {
  2000. 								if(getiteminfo(@input,0) == -1)
  2001. 								{
  2002. 								mes ".NPCName$;
  2003. 								mes "Sorry, this is not a valid Item ID";
  2004. 								mes "Please try again.";
  2005. 								next;
  2006. 								} else {
  2007. 								mes .NPCName$;
  2008. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2009. 								set #AlootSet2ID3,@input;
  2010. 								next;
  2011. 								}
  2012. 							}							
  2013. 							case 4:
  2014.  
  2015. 								mes .NPCName$;
  2016. 								mes "Please input the item ID for what you want to autoloot.";
  2017. 								mes "Enter 0 if you wish to leave this option blank.";
  2018. 								input @input;
  2019. 								if (@input == 0)
  2020. 								{
  2021. 								mes ".NPCName$;
  2022. 								mes "There's nothing there, dimwit!";
  2023. 								close;
  2024. 								} else {
  2025. 								if(getiteminfo(@input,0) == -1)
  2026. 								{
  2027. 								mes ".NPCName$;
  2028. 								mes "Sorry, this is not a valid Item ID";
  2029. 								mes "Please try again.";
  2030. 								next;
  2031. 								} else {
  2032. 								mes .NPCName$;
  2033. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2034. 								set #AlootSet2ID4,@input;
  2035. 								next;
  2036. 								}
  2037. 							}
  2038. 							case 5:
  2039.  
  2040. 								mes .NPCName$;
  2041. 								mes "Please input the item ID for what you want to autoloot.";
  2042. 								mes "Enter 0 if you wish to leave this option blank.";
  2043. 								input @input;
  2044. 								if (@input == 0)
  2045. 								{
  2046. 								mes ".NPCName$;
  2047. 								mes "There's nothing there, dimwit!";
  2048. 								close;
  2049. 								} else {
  2050. 								if(getiteminfo(@input,0) == -1)
  2051. 								{
  2052. 								mes ".NPCName$;
  2053. 								mes "Sorry, this is not a valid Item ID";
  2054. 								mes "Please try again.";
  2055. 								next;
  2056. 								} else {
  2057. 								mes .NPCName$;
  2058. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2059. 								set #AlootSet2ID5,@input;
  2060. 								next;
  2061. 								}
  2062. 							}			
  2063. 							case 6:
  2064.  
  2065. 								mes .NPCName$;
  2066. 								mes "Please input the item ID for what you want to autoloot.";
  2067. 								mes "Enter 0 if you wish to leave this option blank.";
  2068. 								input @input;
  2069. 								if (@input == 0)
  2070. 								{
  2071. 								mes ".NPCName$;
  2072. 								mes "There's nothing there, dimwit!";
  2073. 								close;
  2074. 								} else {
  2075. 								if(getiteminfo(@input,0) == -1)
  2076. 								{
  2077. 								mes ".NPCName$;
  2078. 								mes "Sorry, this is not a valid Item ID";
  2079. 								mes "Please try again.";
  2080. 								next;
  2081. 								} else {
  2082. 								mes .NPCName$;
  2083. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2084. 								set #AlootSet2ID6,@input;
  2085. 								next;
  2086. 								}
  2087. 							}	
  2088. 							case 7:
  2089.  
  2090. 								mes .NPCName$;
  2091. 								mes "Please input the item ID for what you want to autoloot.";
  2092. 								mes "Enter 0 if you wish to leave this option blank.";
  2093. 								input @input;
  2094. 								if (@input == 0)
  2095. 								{
  2096. 								mes ".NPCName$;
  2097. 								mes "There's nothing there, dimwit!";
  2098. 								close;
  2099. 								} else {
  2100. 								if(getiteminfo(@input,0) == -1)
  2101. 								{
  2102. 								mes ".NPCName$;
  2103. 								mes "Sorry, this is not a valid Item ID";
  2104. 								mes "Please try again.";
  2105. 								next;
  2106. 								} else {
  2107. 								mes .NPCName$;
  2108. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2109. 								set #AlootSet2ID7,@input;
  2110. 								next;
  2111. 								}
  2112. 							}		
  2113. 							case 8:
  2114.  
  2115. 								mes .NPCName$;
  2116. 								mes "Please input the item ID for what you want to autoloot.";
  2117. 								mes "Enter 0 if you wish to leave this option blank.";
  2118. 								input @input;
  2119. 								if (@input == 0)
  2120. 								{
  2121. 								mes ".NPCName$;
  2122. 								mes "There's nothing there, dimwit!";
  2123. 								close;
  2124. 								} else {
  2125. 								if(getiteminfo(@input,0) == -1)
  2126. 								{
  2127. 								mes ".NPCName$;
  2128. 								mes "Sorry, this is not a valid Item ID";
  2129. 								mes "Please try again.";
  2130. 								next;
  2131. 								} else {
  2132. 								mes .NPCName$;
  2133. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2134. 								set #AlootSet2ID8,@input;
  2135. 								next;
  2136. 								}
  2137. 							}		
  2138. 							case 9:
  2139.  
  2140. 								mes .NPCName$;
  2141. 								mes "Please input the item ID for what you want to autoloot.";
  2142. 								mes "Enter 0 if you wish to leave this option blank.";
  2143. 								input @input;
  2144. 								if (@input == 0)
  2145. 								{
  2146. 								mes ".NPCName$;
  2147. 								mes "There's nothing there, dimwit!";
  2148. 								close;
  2149. 								} else {
  2150. 								if(getiteminfo(@input,0) == -1)
  2151. 								{
  2152. 								mes ".NPCName$;
  2153. 								mes "Sorry, this is not a valid Item ID";
  2154. 								mes "Please try again.";
  2155. 								next;
  2156. 								} else {
  2157. 								mes .NPCName$;
  2158. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2159. 								set #AlootSet2ID9,@input;
  2160. 								next;
  2161. 								}
  2162. 							}	
  2163. 							case 10:
  2164.  
  2165. 								mes .NPCName$;
  2166. 								mes "Please input the item ID for what you want to autoloot.";
  2167. 								mes "Enter 0 if you wish to leave this option blank.";
  2168. 								input @input;
  2169. 								if (@input == 0)
  2170. 								{
  2171. 								mes ".NPCName$;
  2172. 								mes "There's nothing there, dimwit!";
  2173. 								close;
  2174. 								} else {
  2175. 								if(getiteminfo(@input,0) == -1)
  2176. 								{
  2177. 								mes ".NPCName$;
  2178. 								mes "Sorry, this is not a valid Item ID";
  2179. 								mes "Please try again.";
  2180. 								next;
  2181. 								} else {
  2182. 								mes .NPCName$;
  2183. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2184. 								set #AlootSet2ID10,@input;
  2185. 								next;
  2186. 								}
  2187. 							}	
  2188. 							case 11:
  2189.  
  2190. 								mes .NPCName$;
  2191. 								mes "Please input the item ID for what you want to autoloot.";
  2192. 								mes "Enter 0 if you wish to leave this option blank.";
  2193. 								input @input;
  2194. 								if (@input == 0)
  2195. 								{
  2196. 								mes ".NPCName$;
  2197. 								mes "There's nothing there, dimwit!";
  2198. 								close;
  2199. 								} else {
  2200. 								if(getiteminfo(@input,0) == -1)
  2201. 								{
  2202. 								mes ".NPCName$;
  2203. 								mes "Sorry, this is not a valid Item ID";
  2204. 								mes "Please try again.";
  2205. 								next;
  2206. 								} else {
  2207. 								mes .NPCName$;
  2208. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2209. 								set #AlootSet2ID11,@input;
  2210. 								next;
  2211. 								}
  2212. 							}	
  2213. 							case 12:
  2214.  
  2215. 								mes .NPCName$;
  2216. 								mes "Please input the item ID for what you want to autoloot.";
  2217. 								mes "Enter 0 if you wish to leave this option blank.";
  2218. 								input @input;
  2219. 								if (@input == 0)
  2220. 								{
  2221. 								mes ".NPCName$;
  2222. 								mes "There's nothing there, dimwit!";
  2223. 								close;
  2224. 								} else {
  2225. 								if(getiteminfo(@input,0) == -1)
  2226. 								{
  2227. 								mes ".NPCName$;
  2228. 								mes "Sorry, this is not a valid Item ID";
  2229. 								mes "Please try again.";
  2230. 								next;
  2231. 								} else {
  2232. 								mes .NPCName$;
  2233. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2234. 								set #AlootSet2ID12,@input;
  2235. 								next;
  2236. 								}
  2237. 							}			
  2238. 							case 13:
  2239.  
  2240. 								mes .NPCName$;
  2241. 								mes "Please input the item ID for what you want to autoloot.";
  2242. 								mes "Enter 0 if you wish to leave this option blank.";
  2243. 								input @input;
  2244. 								if (@input == 0)
  2245. 								{
  2246. 								mes ".NPCName$;
  2247. 								mes "There's nothing there, dimwit!";
  2248. 								close;
  2249. 								} else {
  2250. 								if(getiteminfo(@input,0) == -1)
  2251. 								{
  2252. 								mes ".NPCName$;
  2253. 								mes "Sorry, this is not a valid Item ID";
  2254. 								mes "Please try again.";
  2255. 								next;
  2256. 								} else {
  2257. 								mes .NPCName$;
  2258. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2259. 								set #AlootSet2ID13,@input;
  2260. 								next;
  2261. 								}
  2262. 							}	
  2263. 							case 14:
  2264.  
  2265. 								mes .NPCName$;
  2266. 								mes "Please input the item ID for what you want to autoloot.";
  2267. 								mes "Enter 0 if you wish to leave this option blank.";
  2268. 								input @input;
  2269. 								if (@input == 0)
  2270. 								{
  2271. 								mes ".NPCName$;
  2272. 								mes "There's nothing there, dimwit!";
  2273. 								close;
  2274. 								} else {
  2275. 								if(getiteminfo(@input,0) == -1)
  2276. 								{
  2277. 								mes ".NPCName$;
  2278. 								mes "Sorry, this is not a valid Item ID";
  2279. 								mes "Please try again.";
  2280. 								next;
  2281. 								} else {
  2282. 								mes .NPCName$;
  2283. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2284. 								set #AlootSet2ID14,@input;
  2285. 								next;
  2286. 								}
  2287. 							}	
  2288. 							case 15:
  2289.  
  2290. 								mes .NPCName$;
  2291. 								mes "Please input the item ID for what you want to autoloot.";
  2292. 								mes "Enter 0 if you wish to leave this option blank.";
  2293. 								input @input;
  2294. 								if (@input == 0)
  2295. 								{
  2296. 								mes ".NPCName$;
  2297. 								mes "There's nothing there, dimwit!";
  2298. 								close;
  2299. 								} else {
  2300. 								if(getiteminfo(@input,0) == -1)
  2301. 								{
  2302. 								mes ".NPCName$;
  2303. 								mes "Sorry, this is not a valid Item ID";
  2304. 								mes "Please try again.";
  2305. 								next;
  2306. 								} else {
  2307. 								mes .NPCName$;
  2308. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2309. 								set #AlootSet2ID15,@input;
  2310. 								next;
  2311. 								}
  2312. 							}		
  2313. 							case 16:
  2314.  
  2315. 								mes .NPCName$;
  2316. 								mes "Please input the item ID for what you want to autoloot.";
  2317. 								mes "Enter 0 if you wish to leave this option blank.";
  2318. 								input @input;
  2319. 								if (@input == 0)
  2320. 								{
  2321. 								mes ".NPCName$;
  2322. 								mes "There's nothing there, dimwit!";
  2323. 								close;
  2324. 								} else {
  2325. 								if(getiteminfo(@input,0) == -1)
  2326. 								{
  2327. 								mes ".NPCName$;
  2328. 								mes "Sorry, this is not a valid Item ID";
  2329. 								mes "Please try again.";
  2330. 								next;
  2331. 								} else {
  2332. 								mes .NPCName$;
  2333. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2334. 								set #AlootSet2ID16,@input;
  2335. 								next;
  2336. 								}
  2337. 							}		
  2338. 							case 17:
  2339.  
  2340. 								mes .NPCName$;
  2341. 								mes "Please input the item ID for what you want to autoloot.";
  2342. 								mes "Enter 0 if you wish to leave this option blank.";
  2343. 								input @input;
  2344. 								if (@input == 0)
  2345. 								{
  2346. 								mes ".NPCName$;
  2347. 								mes "There's nothing there, dimwit!";
  2348. 								close;
  2349. 								} else {
  2350. 								if(getiteminfo(@input,0) == -1)
  2351. 								{
  2352. 								mes ".NPCName$;
  2353. 								mes "Sorry, this is not a valid Item ID";
  2354. 								mes "Please try again.";
  2355. 								next;
  2356. 								} else {
  2357. 								mes .NPCName$;
  2358. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2359. 								set #AlootSet2ID17,@input;
  2360. 								next;
  2361. 								}
  2362. 							}		
  2363. 							case 18:
  2364.  
  2365. 								mes .NPCName$;
  2366. 								mes "Please input the item ID for what you want to autoloot.";
  2367. 								mes "Enter 0 if you wish to leave this option blank.";
  2368. 								input @input;
  2369. 								if (@input == 0)
  2370. 								{
  2371. 								mes ".NPCName$;
  2372. 								mes "There's nothing there, dimwit!";
  2373. 								close;
  2374. 								} else {
  2375. 								if(getiteminfo(@input,0) == -1)
  2376. 								{
  2377. 								mes ".NPCName$;
  2378. 								mes "Sorry, this is not a valid Item ID";
  2379. 								mes "Please try again.";
  2380. 								next;
  2381. 								} else {
  2382. 								mes .NPCName$;
  2383. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2384. 								set #AlootSet2ID18,@input;
  2385. 								next;
  2386. 								}
  2387. 							}		
  2388. 							case 19:
  2389.  
  2390. 								mes .NPCName$;
  2391. 								mes "Please input the item ID for what you want to autoloot.";
  2392. 								mes "Enter 0 if you wish to leave this option blank.";
  2393. 								input @input;
  2394. 								if (@input == 0)
  2395. 								{
  2396. 								mes ".NPCName$;
  2397. 								mes "There's nothing there, dimwit!";
  2398. 								close;
  2399. 								} else {
  2400. 								if(getiteminfo(@input,0) == -1)
  2401. 								{
  2402. 								mes ".NPCName$;
  2403. 								mes "Sorry, this is not a valid Item ID";
  2404. 								mes "Please try again.";
  2405. 								next;
  2406. 								} else {
  2407. 								mes .NPCName$;
  2408. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2409. 								set #AlootSet2ID19,@input;
  2410. 								next;
  2411. 								}
  2412. 							}		
  2413. 							case 20:
  2414.  
  2415. 								mes .NPCName$;
  2416. 								mes "Please input the item ID for what you want to autoloot.";
  2417. 								mes "Enter 0 if you wish to leave this option blank.";
  2418. 								input @input;
  2419. 								if (@input == 0)
  2420. 								{
  2421. 								mes ".NPCName$;
  2422. 								mes "There's nothing there, dimwit!";
  2423. 								close;
  2424. 								} else {
  2425. 								if(getiteminfo(@input,0) == -1)
  2426. 								{
  2427. 								mes ".NPCName$;
  2428. 								mes "Sorry, this is not a valid Item ID";
  2429. 								mes "Please try again.";
  2430. 								next;
  2431. 								} else {
  2432. 								mes .NPCName$;
  2433. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2434. 								set #AlootSet2ID20,@input;
  2435. 								next;
  2436. 								}
  2437. 							}			
  2438. 							case 21:
  2439.  
  2440. 								mes .NPCName$;
  2441. 								mes "Please input the item ID for what you want to autoloot.";
  2442. 								mes "Enter 0 if you wish to leave this option blank.";
  2443. 								input @input;
  2444. 								if (@input == 0)
  2445. 								{
  2446. 								mes ".NPCName$;
  2447. 								mes "There's nothing there, dimwit!";
  2448. 								close;
  2449. 								} else {
  2450. 								if(getiteminfo(@input,0) == -1)
  2451. 								{
  2452. 								mes ".NPCName$;
  2453. 								mes "Sorry, this is not a valid Item ID";
  2454. 								mes "Please try again.";
  2455. 								next;
  2456. 								} else {
  2457. 								mes .NPCName$;
  2458. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2459. 								set #AlootSet2ID21,@input;
  2460. 								next;
  2461. 								}
  2462. 							}	
  2463. 							case 22:
  2464.  
  2465. 								mes .NPCName$;
  2466. 								mes "Please input the item ID for what you want to autoloot.";
  2467. 								mes "Enter 0 if you wish to leave this option blank.";
  2468. 								input @input;
  2469. 								if (@input == 0)
  2470. 								{
  2471. 								mes ".NPCName$;
  2472. 								mes "There's nothing there, dimwit!";
  2473. 								close;
  2474. 								} else {
  2475. 								if(getiteminfo(@input,0) == -1)
  2476. 								{
  2477. 								mes ".NPCName$;
  2478. 								mes "Sorry, this is not a valid Item ID";
  2479. 								mes "Please try again.";
  2480. 								next;
  2481. 								} else {
  2482. 								mes .NPCName$;
  2483. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2484. 								set #AlootSet2ID22,@input;
  2485. 								next;
  2486. 								}
  2487. 							}		
  2488. 							case 23:
  2489.  
  2490. 								mes .NPCName$;
  2491. 								mes "Please input the item ID for what you want to autoloot.";
  2492. 								mes "Enter 0 if you wish to leave this option blank.";
  2493. 								input @input;
  2494. 								if (@input == 0)
  2495. 								{
  2496. 								mes ".NPCName$;
  2497. 								mes "There's nothing there, dimwit!";
  2498. 								close;
  2499. 								} else {
  2500. 								if(getiteminfo(@input,0) == -1)
  2501. 								{
  2502. 								mes ".NPCName$;
  2503. 								mes "Sorry, this is not a valid Item ID";
  2504. 								mes "Please try again.";
  2505. 								next;
  2506. 								} else {
  2507. 								mes .NPCName$;
  2508. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2509. 								set #AlootSet2ID23,@input;
  2510. 								next;
  2511. 								}
  2512. 							}			
  2513. 							case 24:
  2514.  
  2515. 								mes .NPCName$;
  2516. 								mes "Please input the item ID for what you want to autoloot.";
  2517. 								mes "Enter 0 if you wish to leave this option blank.";
  2518. 								input @input;
  2519. 								if (@input == 0)
  2520. 								{
  2521. 								mes ".NPCName$;
  2522. 								mes "There's nothing there, dimwit!";
  2523. 								close;
  2524. 								} else {
  2525. 								if(getiteminfo(@input,0) == -1)
  2526. 								{
  2527. 								mes ".NPCName$;
  2528. 								mes "Sorry, this is not a valid Item ID";
  2529. 								mes "Please try again.";
  2530. 								next;
  2531. 								} else {
  2532. 								mes .NPCName$;
  2533. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2534. 								set #AlootSet2ID24,@input;
  2535. 								next;
  2536. 								}
  2537. 							}	
  2538. 							case 25:
  2539.  
  2540. 								mes .NPCName$;
  2541. 								mes "Please input the item ID for what you want to autoloot.";
  2542. 								mes "Enter 0 if you wish to leave this option blank.";
  2543. 								input @input;
  2544. 								if (@input == 0)
  2545. 								{
  2546. 								mes ".NPCName$;
  2547. 								mes "There's nothing there, dimwit!";
  2548. 								close;
  2549. 								} else {
  2550. 								if(getiteminfo(@input,0) == -1)
  2551. 								{
  2552. 								mes ".NPCName$;
  2553. 								mes "Sorry, this is not a valid Item ID";
  2554. 								mes "Please try again.";
  2555. 								next;
  2556. 								} else {
  2557. 								mes .NPCName$;
  2558. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2559. 								set #AlootSet2ID25,@input;
  2560. 								next;
  2561. 								}
  2562. 							}
  2563. 						}
  2564. 		} else {
  2565. 		mes .NPCName$;
  2566. 		mes "You have nothing created in this set!";
  2567. 		mes "Please create a set before editing it.";
  2568. 		close;
  2569. 		}
  2570. 					case 3:
  2571. 					if (@menu$[3] != "Nothing")
  2572. 					{
  2573. 						mes .NPCName$;
  2574. 						mes "Perfect! Let's edit what's listed in this set.";
  2575. 						mes "You can Delete any item by entering 0.";
  2576. 						mes "Or edit the item ID by entering it in place of an existing one.";
  2577. 						if (#AlootSet3ID1 != 0) { set @menu$[1], "Add Item"; } else { set @menu$[1], "Item ID "+#AlootSet3ID1+" - ("+getitemname(#AlootSet3ID1)"+)"; }
  2578. 						if (#AlootSet3ID2 != 0) { set @menu$[2], "Add Item"; } else { set @menu$[2], "Item ID "+#AlootSet3ID2+" - ("+getitemname(#AlootSet3ID2)"+)"; }
  2579. 						if (#AlootSet3ID3 != 0) { set @menu$[3], "Add Item"; } else { set @menu$[3], "Item ID "+#AlootSet3ID3+" - ("+getitemname(#AlootSet3ID3)"+)"; }
  2580. 						if (#AlootSet3ID4 != 0) { set @menu$[4], "Add Item"; } else { set @menu$[4], "Item ID "+#AlootSet3ID4+" - ("+getitemname(#AlootSet3ID4)"+)"; }
  2581. 						if (#AlootSet3ID5 != 0) { set @menu$[5], "Add Item"; } else { set @menu$[5], "Item ID "+#AlootSet3ID5+" - ("+getitemname(#AlootSet3ID5)"+)"; }
  2582. 						if (#AlootSet3ID6 != 0) { set @menu$[6], "Add Item"; } else { set @menu$[6], "Item ID "+#AlootSet3ID6+" - ("+getitemname(#AlootSet3ID6)"+)"; }
  2583. 						if (#AlootSet3ID7 != 0) { set @menu$[7], "Add Item"; } else { set @menu$[7], "Item ID "+#AlootSet3ID7+" - ("+getitemname(#AlootSet3ID7)"+)"; }
  2584. 						if (#AlootSet3ID8 != 0) { set @menu$[8], "Add Item"; } else { set @menu$[8], "Item ID "+#AlootSet3ID8+" - ("+getitemname(#AlootSet3ID8)"+)"; }
  2585. 						if (#AlootSet3ID9 != 0) { set @menu$[9], "Add Item"; } else { set @menu$[9], "Item ID "+#AlootSet3ID9+" - ("+getitemname(#AlootSet3ID9)"+)"; }
  2586. 						if (#AlootSet3ID10 != 0) { set @menu$[10], "Add Item"; } else { set @menu$[10], "Item ID "+#AlootSet3ID10+" - ("+getitemname(#AlootSet3ID10)"+)"; }
  2587. 						if (#AlootSet3ID11 != 0) { set @menu$[11], "Add Item"; } else { set @menu$[11], "Item ID "+#AlootSet3ID11+" - ("+getitemname(#AlootSet3ID11)"+)"; }
  2588. 						if (#AlootSet3ID12 != 0) { set @menu$[12], "Add Item"; } else { set @menu$[12], "Item ID "+#AlootSet3ID12+" - ("+getitemname(#AlootSet3ID12)"+)"; }
  2589. 						if (#AlootSet3ID13 != 0) { set @menu$[13], "Add Item"; } else { set @menu$[13], "Item ID "+#AlootSet3ID13+" - ("+getitemname(#AlootSet3ID13)"+)"; }
  2590. 						if (#AlootSet3ID14 != 0) { set @menu$[14], "Add Item"; } else { set @menu$[14], "Item ID "+#AlootSet3ID14+" - ("+getitemname(#AlootSet3ID14)"+)"; }
  2591. 						if (#AlootSet3ID15 != 0) { set @menu$[15], "Add Item"; } else { set @menu$[15], "Item ID "+#AlootSet3ID15+" - ("+getitemname(#AlootSet3ID15)"+)"; }
  2592. 						if (#AlootSet3ID16 != 0) { set @menu$[16], "Add Item"; } else { set @menu$[16], "Item ID "+#AlootSet3ID16+" - ("+getitemname(#AlootSet3ID16)"+)"; }
  2593. 						if (#AlootSet3ID17 != 0) { set @menu$[17], "Add Item"; } else { set @menu$[17], "Item ID "+#AlootSet3ID17+" - ("+getitemname(#AlootSet3ID17)"+)"; }
  2594. 						if (#AlootSet3ID18 != 0) { set @menu$[18], "Add Item"; } else { set @menu$[18], "Item ID "+#AlootSet3ID18+" - ("+getitemname(#AlootSet3ID18)"+)"; }
  2595. 						if (#AlootSet3ID19 != 0) { set @menu$[19], "Add Item"; } else { set @menu$[19], "Item ID "+#AlootSet3ID19+" - ("+getitemname(#AlootSet3ID19)"+)"; }
  2596. 						if (#AlootSet3ID20 != 0) { set @menu$[20], "Add Item"; } else { set @menu$[20], "Item ID "+#AlootSet3ID20+" - ("+getitemname(#AlootSet3ID20)"+)"; }
  2597. 						if (#AlootSet3ID21 != 0) { set @menu$[21], "Add Item"; } else { set @menu$[21], "Item ID "+#AlootSet3ID21+" - ("+getitemname(#AlootSet3ID21)"+)"; }
  2598. 						if (#AlootSet3ID22 != 0) { set @menu$[22], "Add Item"; } else { set @menu$[22], "Item ID "+#AlootSet3ID22+" - ("+getitemname(#AlootSet3ID22)"+)"; }
  2599. 						if (#AlootSet3ID23 != 0) { set @menu$[23], "Add Item"; } else { set @menu$[23], "Item ID "+#AlootSet3ID23+" - ("+getitemname(#AlootSet3ID23)"+)"; }
  2600. 						if (#AlootSet3ID24 != 0) { set @menu$[24], "Add Item"; } else { set @menu$[24], "Item ID "+#AlootSet3ID24+" - ("+getitemname(#AlootSet3ID24)"+)"; }
  2601. 						if (#AlootSet3ID25 != 0) { set @menu$[25], "Add Item"; } else { set @menu$[25], "Item ID "+#AlootSet3ID25+" - ("+getitemname(#AlootSet3ID25)"+)"; }
  2602. 						next;
  2603. 						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]))
  2604. 						{
  2605. 							case 1:
  2606.  
  2607. 								mes .NPCName$;
  2608. 								mes "Please input the item ID for what you want to autoloot.";
  2609. 								mes "Enter 0 if you wish to leave this option blank.";
  2610. 								input @input;
  2611. 								if (@input == 0)
  2612. 								{
  2613. 								mes ".NPCName$;
  2614. 								mes "There's nothing there, dimwit!";
  2615. 								close;
  2616. 								} else {
  2617. 								if(getiteminfo(@input,0) == -1)
  2618. 								{
  2619. 								mes ".NPCName$;
  2620. 								mes "Sorry, this is not a valid Item ID";
  2621. 								mes "Please try again.";
  2622. 								next;
  2623. 								} else {
  2624. 								mes .NPCName$;
  2625. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2626. 								set #AlootSet3ID1,@input;
  2627. 								next;
  2628. 								}
  2629. 							}
  2630. 							case 2:
  2631.  
  2632. 								mes .NPCName$;
  2633. 								mes "Please input the item ID for what you want to autoloot.";
  2634. 								mes "Enter 0 if you wish to leave this option blank.";
  2635. 								input @input;
  2636. 								if (@input == 0)
  2637. 								{
  2638. 								mes ".NPCName$;
  2639. 								mes "There's nothing there, dimwit!";
  2640. 								close;
  2641. 								} else {
  2642. 								if(getiteminfo(@input,0) == -1)
  2643. 								{
  2644. 								mes ".NPCName$;
  2645. 								mes "Sorry, this is not a valid Item ID";
  2646. 								mes "Please try again.";
  2647. 								next;
  2648. 								} else {
  2649. 								mes .NPCName$;
  2650. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2651. 								set #AlootSet3ID2,@input;
  2652. 								next;
  2653. 								}
  2654. 							}
  2655. 							case 3:
  2656.  
  2657. 								mes .NPCName$;
  2658. 								mes "Please input the item ID for what you want to autoloot.";
  2659. 								mes "Enter 0 if you wish to leave this option blank.";
  2660. 								input @input;
  2661. 								if (@input == 0)
  2662. 								{
  2663. 								mes ".NPCName$;
  2664. 								mes "There's nothing there, dimwit!";
  2665. 								close;
  2666. 								} else {
  2667. 								if(getiteminfo(@input,0) == -1)
  2668. 								{
  2669. 								mes ".NPCName$;
  2670. 								mes "Sorry, this is not a valid Item ID";
  2671. 								mes "Please try again.";
  2672. 								next;
  2673. 								} else {
  2674. 								mes .NPCName$;
  2675. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2676. 								set #AlootSet3ID3,@input;
  2677. 								next;
  2678. 								}
  2679. 							}							
  2680. 							case 4:
  2681.  
  2682. 								mes .NPCName$;
  2683. 								mes "Please input the item ID for what you want to autoloot.";
  2684. 								mes "Enter 0 if you wish to leave this option blank.";
  2685. 								input @input;
  2686. 								if (@input == 0)
  2687. 								{
  2688. 								mes ".NPCName$;
  2689. 								mes "There's nothing there, dimwit!";
  2690. 								close;
  2691. 								} else {
  2692. 								if(getiteminfo(@input,0) == -1)
  2693. 								{
  2694. 								mes ".NPCName$;
  2695. 								mes "Sorry, this is not a valid Item ID";
  2696. 								mes "Please try again.";
  2697. 								next;
  2698. 								} else {
  2699. 								mes .NPCName$;
  2700. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2701. 								set #AlootSet3ID4,@input;
  2702. 								next;
  2703. 								}
  2704. 							}
  2705. 							case 5:
  2706.  
  2707. 								mes .NPCName$;
  2708. 								mes "Please input the item ID for what you want to autoloot.";
  2709. 								mes "Enter 0 if you wish to leave this option blank.";
  2710. 								input @input;
  2711. 								if (@input == 0)
  2712. 								{
  2713. 								mes ".NPCName$;
  2714. 								mes "There's nothing there, dimwit!";
  2715. 								close;
  2716. 								} else {
  2717. 								if(getiteminfo(@input,0) == -1)
  2718. 								{
  2719. 								mes ".NPCName$;
  2720. 								mes "Sorry, this is not a valid Item ID";
  2721. 								mes "Please try again.";
  2722. 								next;
  2723. 								} else {
  2724. 								mes .NPCName$;
  2725. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2726. 								set #AlootSet3ID5,@input;
  2727. 								next;
  2728. 								}
  2729. 							}			
  2730. 							case 6:
  2731.  
  2732. 								mes .NPCName$;
  2733. 								mes "Please input the item ID for what you want to autoloot.";
  2734. 								mes "Enter 0 if you wish to leave this option blank.";
  2735. 								input @input;
  2736. 								if (@input == 0)
  2737. 								{
  2738. 								mes ".NPCName$;
  2739. 								mes "There's nothing there, dimwit!";
  2740. 								close;
  2741. 								} else {
  2742. 								if(getiteminfo(@input,0) == -1)
  2743. 								{
  2744. 								mes ".NPCName$;
  2745. 								mes "Sorry, this is not a valid Item ID";
  2746. 								mes "Please try again.";
  2747. 								next;
  2748. 								} else {
  2749. 								mes .NPCName$;
  2750. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2751. 								set #AlootSet3ID6,@input;
  2752. 								next;
  2753. 								}
  2754. 							}	
  2755. 							case 7:
  2756.  
  2757. 								mes .NPCName$;
  2758. 								mes "Please input the item ID for what you want to autoloot.";
  2759. 								mes "Enter 0 if you wish to leave this option blank.";
  2760. 								input @input;
  2761. 								if (@input == 0)
  2762. 								{
  2763. 								mes ".NPCName$;
  2764. 								mes "There's nothing there, dimwit!";
  2765. 								close;
  2766. 								} else {
  2767. 								if(getiteminfo(@input,0) == -1)
  2768. 								{
  2769. 								mes ".NPCName$;
  2770. 								mes "Sorry, this is not a valid Item ID";
  2771. 								mes "Please try again.";
  2772. 								next;
  2773. 								} else {
  2774. 								mes .NPCName$;
  2775. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2776. 								set #AlootSet3ID7,@input;
  2777. 								next;
  2778. 								}
  2779. 							}		
  2780. 							case 8:
  2781.  
  2782. 								mes .NPCName$;
  2783. 								mes "Please input the item ID for what you want to autoloot.";
  2784. 								mes "Enter 0 if you wish to leave this option blank.";
  2785. 								input @input;
  2786. 								if (@input == 0)
  2787. 								{
  2788. 								mes ".NPCName$;
  2789. 								mes "There's nothing there, dimwit!";
  2790. 								close;
  2791. 								} else {
  2792. 								if(getiteminfo(@input,0) == -1)
  2793. 								{
  2794. 								mes ".NPCName$;
  2795. 								mes "Sorry, this is not a valid Item ID";
  2796. 								mes "Please try again.";
  2797. 								next;
  2798. 								} else {
  2799. 								mes .NPCName$;
  2800. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2801. 								set #AlootSet3ID8,@input;
  2802. 								next;
  2803. 								}
  2804. 							}		
  2805. 							case 9:
  2806.  
  2807. 								mes .NPCName$;
  2808. 								mes "Please input the item ID for what you want to autoloot.";
  2809. 								mes "Enter 0 if you wish to leave this option blank.";
  2810. 								input @input;
  2811. 								if (@input == 0)
  2812. 								{
  2813. 								mes ".NPCName$;
  2814. 								mes "There's nothing there, dimwit!";
  2815. 								close;
  2816. 								} else {
  2817. 								if(getiteminfo(@input,0) == -1)
  2818. 								{
  2819. 								mes ".NPCName$;
  2820. 								mes "Sorry, this is not a valid Item ID";
  2821. 								mes "Please try again.";
  2822. 								next;
  2823. 								} else {
  2824. 								mes .NPCName$;
  2825. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2826. 								set #AlootSet3ID9,@input;
  2827. 								next;
  2828. 								}
  2829. 							}	
  2830. 							case 10:
  2831.  
  2832. 								mes .NPCName$;
  2833. 								mes "Please input the item ID for what you want to autoloot.";
  2834. 								mes "Enter 0 if you wish to leave this option blank.";
  2835. 								input @input;
  2836. 								if (@input == 0)
  2837. 								{
  2838. 								mes ".NPCName$;
  2839. 								mes "There's nothing there, dimwit!";
  2840. 								close;
  2841. 								} else {
  2842. 								if(getiteminfo(@input,0) == -1)
  2843. 								{
  2844. 								mes ".NPCName$;
  2845. 								mes "Sorry, this is not a valid Item ID";
  2846. 								mes "Please try again.";
  2847. 								next;
  2848. 								} else {
  2849. 								mes .NPCName$;
  2850. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2851. 								set #AlootSet3ID10,@input;
  2852. 								next;
  2853. 								}
  2854. 							}	
  2855. 							case 11:
  2856.  
  2857. 								mes .NPCName$;
  2858. 								mes "Please input the item ID for what you want to autoloot.";
  2859. 								mes "Enter 0 if you wish to leave this option blank.";
  2860. 								input @input;
  2861. 								if (@input == 0)
  2862. 								{
  2863. 								mes ".NPCName$;
  2864. 								mes "There's nothing there, dimwit!";
  2865. 								close;
  2866. 								} else {
  2867. 								if(getiteminfo(@input,0) == -1)
  2868. 								{
  2869. 								mes ".NPCName$;
  2870. 								mes "Sorry, this is not a valid Item ID";
  2871. 								mes "Please try again.";
  2872. 								next;
  2873. 								} else {
  2874. 								mes .NPCName$;
  2875. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2876. 								set #AlootSet3ID11,@input;
  2877. 								next;
  2878. 								}
  2879. 							}	
  2880. 							case 12:
  2881.  
  2882. 								mes .NPCName$;
  2883. 								mes "Please input the item ID for what you want to autoloot.";
  2884. 								mes "Enter 0 if you wish to leave this option blank.";
  2885. 								input @input;
  2886. 								if (@input == 0)
  2887. 								{
  2888. 								mes ".NPCName$;
  2889. 								mes "There's nothing there, dimwit!";
  2890. 								close;
  2891. 								} else {
  2892. 								if(getiteminfo(@input,0) == -1)
  2893. 								{
  2894. 								mes ".NPCName$;
  2895. 								mes "Sorry, this is not a valid Item ID";
  2896. 								mes "Please try again.";
  2897. 								next;
  2898. 								} else {
  2899. 								mes .NPCName$;
  2900. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2901. 								set #AlootSet3ID12,@input;
  2902. 								next;
  2903. 								}
  2904. 							}			
  2905. 							case 13:
  2906.  
  2907. 								mes .NPCName$;
  2908. 								mes "Please input the item ID for what you want to autoloot.";
  2909. 								mes "Enter 0 if you wish to leave this option blank.";
  2910. 								input @input;
  2911. 								if (@input == 0)
  2912. 								{
  2913. 								mes ".NPCName$;
  2914. 								mes "There's nothing there, dimwit!";
  2915. 								close;
  2916. 								} else {
  2917. 								if(getiteminfo(@input,0) == -1)
  2918. 								{
  2919. 								mes ".NPCName$;
  2920. 								mes "Sorry, this is not a valid Item ID";
  2921. 								mes "Please try again.";
  2922. 								next;
  2923. 								} else {
  2924. 								mes .NPCName$;
  2925. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2926. 								set #AlootSet3ID13,@input;
  2927. 								next;
  2928. 								}
  2929. 							}	
  2930. 							case 14:
  2931.  
  2932. 								mes .NPCName$;
  2933. 								mes "Please input the item ID for what you want to autoloot.";
  2934. 								mes "Enter 0 if you wish to leave this option blank.";
  2935. 								input @input;
  2936. 								if (@input == 0)
  2937. 								{
  2938. 								mes ".NPCName$;
  2939. 								mes "There's nothing there, dimwit!";
  2940. 								close;
  2941. 								} else {
  2942. 								if(getiteminfo(@input,0) == -1)
  2943. 								{
  2944. 								mes ".NPCName$;
  2945. 								mes "Sorry, this is not a valid Item ID";
  2946. 								mes "Please try again.";
  2947. 								next;
  2948. 								} else {
  2949. 								mes .NPCName$;
  2950. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2951. 								set #AlootSet3ID14,@input;
  2952. 								next;
  2953. 								}
  2954. 							}	
  2955. 							case 15:
  2956.  
  2957. 								mes .NPCName$;
  2958. 								mes "Please input the item ID for what you want to autoloot.";
  2959. 								mes "Enter 0 if you wish to leave this option blank.";
  2960. 								input @input;
  2961. 								if (@input == 0)
  2962. 								{
  2963. 								mes ".NPCName$;
  2964. 								mes "There's nothing there, dimwit!";
  2965. 								close;
  2966. 								} else {
  2967. 								if(getiteminfo(@input,0) == -1)
  2968. 								{
  2969. 								mes ".NPCName$;
  2970. 								mes "Sorry, this is not a valid Item ID";
  2971. 								mes "Please try again.";
  2972. 								next;
  2973. 								} else {
  2974. 								mes .NPCName$;
  2975. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  2976. 								set #AlootSet3ID15,@input;
  2977. 								next;
  2978. 								}
  2979. 							}		
  2980. 							case 16:
  2981.  
  2982. 								mes .NPCName$;
  2983. 								mes "Please input the item ID for what you want to autoloot.";
  2984. 								mes "Enter 0 if you wish to leave this option blank.";
  2985. 								input @input;
  2986. 								if (@input == 0)
  2987. 								{
  2988. 								mes ".NPCName$;
  2989. 								mes "There's nothing there, dimwit!";
  2990. 								close;
  2991. 								} else {
  2992. 								if(getiteminfo(@input,0) == -1)
  2993. 								{
  2994. 								mes ".NPCName$;
  2995. 								mes "Sorry, this is not a valid Item ID";
  2996. 								mes "Please try again.";
  2997. 								next;
  2998. 								} else {
  2999. 								mes .NPCName$;
  3000. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3001. 								set #AlootSet3ID16,@input;
  3002. 								next;
  3003. 								}
  3004. 							}		
  3005. 							case 17:
  3006.  
  3007. 								mes .NPCName$;
  3008. 								mes "Please input the item ID for what you want to autoloot.";
  3009. 								mes "Enter 0 if you wish to leave this option blank.";
  3010. 								input @input;
  3011. 								if (@input == 0)
  3012. 								{
  3013. 								mes ".NPCName$;
  3014. 								mes "There's nothing there, dimwit!";
  3015. 								close;
  3016. 								} else {
  3017. 								if(getiteminfo(@input,0) == -1)
  3018. 								{
  3019. 								mes ".NPCName$;
  3020. 								mes "Sorry, this is not a valid Item ID";
  3021. 								mes "Please try again.";
  3022. 								next;
  3023. 								} else {
  3024. 								mes .NPCName$;
  3025. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3026. 								set #AlootSet3ID17,@input;
  3027. 								next;
  3028. 								}
  3029. 							}		
  3030. 							case 18:
  3031.  
  3032. 								mes .NPCName$;
  3033. 								mes "Please input the item ID for what you want to autoloot.";
  3034. 								mes "Enter 0 if you wish to leave this option blank.";
  3035. 								input @input;
  3036. 								if (@input == 0)
  3037. 								{
  3038. 								mes ".NPCName$;
  3039. 								mes "There's nothing there, dimwit!";
  3040. 								close;
  3041. 								} else {
  3042. 								if(getiteminfo(@input,0) == -1)
  3043. 								{
  3044. 								mes ".NPCName$;
  3045. 								mes "Sorry, this is not a valid Item ID";
  3046. 								mes "Please try again.";
  3047. 								next;
  3048. 								} else {
  3049. 								mes .NPCName$;
  3050. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3051. 								set #AlootSet3ID18,@input;
  3052. 								next;
  3053. 								}
  3054. 							}		
  3055. 							case 19:
  3056.  
  3057. 								mes .NPCName$;
  3058. 								mes "Please input the item ID for what you want to autoloot.";
  3059. 								mes "Enter 0 if you wish to leave this option blank.";
  3060. 								input @input;
  3061. 								if (@input == 0)
  3062. 								{
  3063. 								mes ".NPCName$;
  3064. 								mes "There's nothing there, dimwit!";
  3065. 								close;
  3066. 								} else {
  3067. 								if(getiteminfo(@input,0) == -1)
  3068. 								{
  3069. 								mes ".NPCName$;
  3070. 								mes "Sorry, this is not a valid Item ID";
  3071. 								mes "Please try again.";
  3072. 								next;
  3073. 								} else {
  3074. 								mes .NPCName$;
  3075. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3076. 								set #AlootSet3ID19,@input;
  3077. 								next;
  3078. 								}
  3079. 							}		
  3080. 							case 20:
  3081.  
  3082. 								mes .NPCName$;
  3083. 								mes "Please input the item ID for what you want to autoloot.";
  3084. 								mes "Enter 0 if you wish to leave this option blank.";
  3085. 								input @input;
  3086. 								if (@input == 0)
  3087. 								{
  3088. 								mes ".NPCName$;
  3089. 								mes "There's nothing there, dimwit!";
  3090. 								close;
  3091. 								} else {
  3092. 								if(getiteminfo(@input,0) == -1)
  3093. 								{
  3094. 								mes ".NPCName$;
  3095. 								mes "Sorry, this is not a valid Item ID";
  3096. 								mes "Please try again.";
  3097. 								next;
  3098. 								} else {
  3099. 								mes .NPCName$;
  3100. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3101. 								set #AlootSet3ID20,@input;
  3102. 								next;
  3103. 								}
  3104. 							}			
  3105. 							case 21:
  3106.  
  3107. 								mes .NPCName$;
  3108. 								mes "Please input the item ID for what you want to autoloot.";
  3109. 								mes "Enter 0 if you wish to leave this option blank.";
  3110. 								input @input;
  3111. 								if (@input == 0)
  3112. 								{
  3113. 								mes ".NPCName$;
  3114. 								mes "There's nothing there, dimwit!";
  3115. 								close;
  3116. 								} else {
  3117. 								if(getiteminfo(@input,0) == -1)
  3118. 								{
  3119. 								mes ".NPCName$;
  3120. 								mes "Sorry, this is not a valid Item ID";
  3121. 								mes "Please try again.";
  3122. 								next;
  3123. 								} else {
  3124. 								mes .NPCName$;
  3125. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3126. 								set #AlootSet3ID21,@input;
  3127. 								next;
  3128. 								}
  3129. 							}	
  3130. 							case 22:
  3131.  
  3132. 								mes .NPCName$;
  3133. 								mes "Please input the item ID for what you want to autoloot.";
  3134. 								mes "Enter 0 if you wish to leave this option blank.";
  3135. 								input @input;
  3136. 								if (@input == 0)
  3137. 								{
  3138. 								mes ".NPCName$;
  3139. 								mes "There's nothing there, dimwit!";
  3140. 								close;
  3141. 								} else {
  3142. 								if(getiteminfo(@input,0) == -1)
  3143. 								{
  3144. 								mes ".NPCName$;
  3145. 								mes "Sorry, this is not a valid Item ID";
  3146. 								mes "Please try again.";
  3147. 								next;
  3148. 								} else {
  3149. 								mes .NPCName$;
  3150. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3151. 								set #AlootSet3ID22,@input;
  3152. 								next;
  3153. 								}
  3154. 							}		
  3155. 							case 23:
  3156.  
  3157. 								mes .NPCName$;
  3158. 								mes "Please input the item ID for what you want to autoloot.";
  3159. 								mes "Enter 0 if you wish to leave this option blank.";
  3160. 								input @input;
  3161. 								if (@input == 0)
  3162. 								{
  3163. 								mes ".NPCName$;
  3164. 								mes "There's nothing there, dimwit!";
  3165. 								close;
  3166. 								} else {
  3167. 								if(getiteminfo(@input,0) == -1)
  3168. 								{
  3169. 								mes ".NPCName$;
  3170. 								mes "Sorry, this is not a valid Item ID";
  3171. 								mes "Please try again.";
  3172. 								next;
  3173. 								} else {
  3174. 								mes .NPCName$;
  3175. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3176. 								set #AlootSet3ID23,@input;
  3177. 								next;
  3178. 								}
  3179. 							}			
  3180. 							case 24:
  3181.  
  3182. 								mes .NPCName$;
  3183. 								mes "Please input the item ID for what you want to autoloot.";
  3184. 								mes "Enter 0 if you wish to leave this option blank.";
  3185. 								input @input;
  3186. 								if (@input == 0)
  3187. 								{
  3188. 								mes ".NPCName$;
  3189. 								mes "There's nothing there, dimwit!";
  3190. 								close;
  3191. 								} else {
  3192. 								if(getiteminfo(@input,0) == -1)
  3193. 								{
  3194. 								mes ".NPCName$;
  3195. 								mes "Sorry, this is not a valid Item ID";
  3196. 								mes "Please try again.";
  3197. 								next;
  3198. 								} else {
  3199. 								mes .NPCName$;
  3200. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3201. 								set #AlootSet3ID24,@input;
  3202. 								next;
  3203. 								}
  3204. 							}	
  3205. 							case 25:
  3206.  
  3207. 								mes .NPCName$;
  3208. 								mes "Please input the item ID for what you want to autoloot.";
  3209. 								mes "Enter 0 if you wish to leave this option blank.";
  3210. 								input @input;
  3211. 								if (@input == 0)
  3212. 								{
  3213. 								mes ".NPCName$;
  3214. 								mes "There's nothing there, dimwit!";
  3215. 								close;
  3216. 								} else {
  3217. 								if(getiteminfo(@input,0) == -1)
  3218. 								{
  3219. 								mes ".NPCName$;
  3220. 								mes "Sorry, this is not a valid Item ID";
  3221. 								mes "Please try again.";
  3222. 								next;
  3223. 								} else {
  3224. 								mes .NPCName$;
  3225. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3226. 								set #AlootSet3ID25,@input;
  3227. 								next;
  3228. 								}
  3229. 							}
  3230. 						}
  3231. 		} else {
  3232. 		mes .NPCName$;
  3233. 		mes "You have nothing created in this set!";
  3234. 		mes "Please create a set before editing it.";
  3235. 		close;
  3236. 		}
  3237. 					case 4:
  3238. 					if (@menu$[4] != "Nothing")
  3239. 					{
  3240. 						mes .NPCName$;
  3241. 						mes "Perfect! Let's edit what's listed in this set.";
  3242. 						mes "You can Delete any item by entering 0.";
  3243. 						mes "Or edit the item ID by entering it in place of an existing one.";
  3244. 						if (#AlootSet4ID1 != 0) { set @menu$[1], "Add Item"; } else { set @menu$[1], "Item ID "+#AlootSet4ID1+" - ("+getitemname(#AlootSet4ID1)"+)"; }
  3245. 						if (#AlootSet4ID2 != 0) { set @menu$[2], "Add Item"; } else { set @menu$[2], "Item ID "+#AlootSet4ID2+" - ("+getitemname(#AlootSet4ID2)"+)"; }
  3246. 						if (#AlootSet4ID3 != 0) { set @menu$[3], "Add Item"; } else { set @menu$[3], "Item ID "+#AlootSet4ID3+" - ("+getitemname(#AlootSet4ID3)"+)"; }
  3247. 						if (#AlootSet4ID4 != 0) { set @menu$[4], "Add Item"; } else { set @menu$[4], "Item ID "+#AlootSet4ID4+" - ("+getitemname(#AlootSet4ID4)"+)"; }
  3248. 						if (#AlootSet4ID5 != 0) { set @menu$[5], "Add Item"; } else { set @menu$[5], "Item ID "+#AlootSet4ID5+" - ("+getitemname(#AlootSet4ID5)"+)"; }
  3249. 						if (#AlootSet4ID6 != 0) { set @menu$[6], "Add Item"; } else { set @menu$[6], "Item ID "+#AlootSet4ID6+" - ("+getitemname(#AlootSet4ID6)"+)"; }
  3250. 						if (#AlootSet4ID7 != 0) { set @menu$[7], "Add Item"; } else { set @menu$[7], "Item ID "+#AlootSet4ID7+" - ("+getitemname(#AlootSet4ID7)"+)"; }
  3251. 						if (#AlootSet4ID8 != 0) { set @menu$[8], "Add Item"; } else { set @menu$[8], "Item ID "+#AlootSet4ID8+" - ("+getitemname(#AlootSet4ID8)"+)"; }
  3252. 						if (#AlootSet4ID9 != 0) { set @menu$[9], "Add Item"; } else { set @menu$[9], "Item ID "+#AlootSet4ID9+" - ("+getitemname(#AlootSet4ID9)"+)"; }
  3253. 						if (#AlootSet4ID10 != 0) { set @menu$[10], "Add Item"; } else { set @menu$[10], "Item ID "+#AlootSet4ID10+" - ("+getitemname(#AlootSet4ID10)"+)"; }
  3254. 						if (#AlootSet4ID11 != 0) { set @menu$[11], "Add Item"; } else { set @menu$[11], "Item ID "+#AlootSet4ID11+" - ("+getitemname(#AlootSet4ID11)"+)"; }
  3255. 						if (#AlootSet4ID12 != 0) { set @menu$[12], "Add Item"; } else { set @menu$[12], "Item ID "+#AlootSet4ID12+" - ("+getitemname(#AlootSet4ID12)"+)"; }
  3256. 						if (#AlootSet4ID13 != 0) { set @menu$[13], "Add Item"; } else { set @menu$[13], "Item ID "+#AlootSet4ID13+" - ("+getitemname(#AlootSet4ID13)"+)"; }
  3257. 						if (#AlootSet4ID14 != 0) { set @menu$[14], "Add Item"; } else { set @menu$[14], "Item ID "+#AlootSet4ID14+" - ("+getitemname(#AlootSet4ID14)"+)"; }
  3258. 						if (#AlootSet4ID15 != 0) { set @menu$[15], "Add Item"; } else { set @menu$[15], "Item ID "+#AlootSet4ID15+" - ("+getitemname(#AlootSet4ID15)"+)"; }
  3259. 						if (#AlootSet4ID16 != 0) { set @menu$[16], "Add Item"; } else { set @menu$[16], "Item ID "+#AlootSet4ID16+" - ("+getitemname(#AlootSet4ID16)"+)"; }
  3260. 						if (#AlootSet4ID17 != 0) { set @menu$[17], "Add Item"; } else { set @menu$[17], "Item ID "+#AlootSet4ID17+" - ("+getitemname(#AlootSet4ID17)"+)"; }
  3261. 						if (#AlootSet4ID18 != 0) { set @menu$[18], "Add Item"; } else { set @menu$[18], "Item ID "+#AlootSet4ID18+" - ("+getitemname(#AlootSet4ID18)"+)"; }
  3262. 						if (#AlootSet4ID19 != 0) { set @menu$[19], "Add Item"; } else { set @menu$[19], "Item ID "+#AlootSet4ID19+" - ("+getitemname(#AlootSet4ID19)"+)"; }
  3263. 						if (#AlootSet4ID20 != 0) { set @menu$[20], "Add Item"; } else { set @menu$[20], "Item ID "+#AlootSet4ID20+" - ("+getitemname(#AlootSet4ID20)"+)"; }
  3264. 						if (#AlootSet4ID21 != 0) { set @menu$[21], "Add Item"; } else { set @menu$[21], "Item ID "+#AlootSet4ID21+" - ("+getitemname(#AlootSet4ID21)"+)"; }
  3265. 						if (#AlootSet4ID22 != 0) { set @menu$[22], "Add Item"; } else { set @menu$[22], "Item ID "+#AlootSet4ID22+" - ("+getitemname(#AlootSet4ID22)"+)"; }
  3266. 						if (#AlootSet4ID23 != 0) { set @menu$[23], "Add Item"; } else { set @menu$[23], "Item ID "+#AlootSet4ID23+" - ("+getitemname(#AlootSet4ID23)"+)"; }
  3267. 						if (#AlootSet4ID24 != 0) { set @menu$[24], "Add Item"; } else { set @menu$[24], "Item ID "+#AlootSet4ID24+" - ("+getitemname(#AlootSet4ID24)"+)"; }
  3268. 						if (#AlootSet4ID25 != 0) { set @menu$[25], "Add Item"; } else { set @menu$[25], "Item ID "+#AlootSet4ID25+" - ("+getitemname(#AlootSet4ID25)"+)"; }
  3269. 						next;
  3270. 						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]))
  3271. 						{
  3272. 							case 1:
  3273.  
  3274. 								mes .NPCName$;
  3275. 								mes "Please input the item ID for what you want to autoloot.";
  3276. 								mes "Enter 0 if you wish to leave this option blank.";
  3277. 								input @input;
  3278. 								if (@input == 0)
  3279. 								{
  3280. 								mes ".NPCName$;
  3281. 								mes "There's nothing there, dimwit!";
  3282. 								close;
  3283. 								} else {
  3284. 								if(getiteminfo(@input,0) == -1)
  3285. 								{
  3286. 								mes ".NPCName$;
  3287. 								mes "Sorry, this is not a valid Item ID";
  3288. 								mes "Please try again.";
  3289. 								next;
  3290. 								} else {
  3291. 								mes .NPCName$;
  3292. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3293. 								set #AlootSet4ID1,@input;
  3294. 								next;
  3295. 								}
  3296. 							}
  3297. 							case 2:
  3298.  
  3299. 								mes .NPCName$;
  3300. 								mes "Please input the item ID for what you want to autoloot.";
  3301. 								mes "Enter 0 if you wish to leave this option blank.";
  3302. 								input @input;
  3303. 								if (@input == 0)
  3304. 								{
  3305. 								mes ".NPCName$;
  3306. 								mes "There's nothing there, dimwit!";
  3307. 								close;
  3308. 								} else {
  3309. 								if(getiteminfo(@input,0) == -1)
  3310. 								{
  3311. 								mes ".NPCName$;
  3312. 								mes "Sorry, this is not a valid Item ID";
  3313. 								mes "Please try again.";
  3314. 								next;
  3315. 								} else {
  3316. 								mes .NPCName$;
  3317. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3318. 								set #AlootSet4ID2,@input;
  3319. 								next;
  3320. 								}
  3321. 							}
  3322. 							case 3:
  3323.  
  3324. 								mes .NPCName$;
  3325. 								mes "Please input the item ID for what you want to autoloot.";
  3326. 								mes "Enter 0 if you wish to leave this option blank.";
  3327. 								input @input;
  3328. 								if (@input == 0)
  3329. 								{
  3330. 								mes ".NPCName$;
  3331. 								mes "There's nothing there, dimwit!";
  3332. 								close;
  3333. 								} else {
  3334. 								if(getiteminfo(@input,0) == -1)
  3335. 								{
  3336. 								mes ".NPCName$;
  3337. 								mes "Sorry, this is not a valid Item ID";
  3338. 								mes "Please try again.";
  3339. 								next;
  3340. 								} else {
  3341. 								mes .NPCName$;
  3342. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3343. 								set #AlootSet4ID3,@input;
  3344. 								next;
  3345. 								}
  3346. 							}							
  3347. 							case 4:
  3348.  
  3349. 								mes .NPCName$;
  3350. 								mes "Please input the item ID for what you want to autoloot.";
  3351. 								mes "Enter 0 if you wish to leave this option blank.";
  3352. 								input @input;
  3353. 								if (@input == 0)
  3354. 								{
  3355. 								mes ".NPCName$;
  3356. 								mes "There's nothing there, dimwit!";
  3357. 								close;
  3358. 								} else {
  3359. 								if(getiteminfo(@input,0) == -1)
  3360. 								{
  3361. 								mes ".NPCName$;
  3362. 								mes "Sorry, this is not a valid Item ID";
  3363. 								mes "Please try again.";
  3364. 								next;
  3365. 								} else {
  3366. 								mes .NPCName$;
  3367. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3368. 								set #AlootSet4ID4,@input;
  3369. 								next;
  3370. 								}
  3371. 							}
  3372. 							case 5:
  3373.  
  3374. 								mes .NPCName$;
  3375. 								mes "Please input the item ID for what you want to autoloot.";
  3376. 								mes "Enter 0 if you wish to leave this option blank.";
  3377. 								input @input;
  3378. 								if (@input == 0)
  3379. 								{
  3380. 								mes ".NPCName$;
  3381. 								mes "There's nothing there, dimwit!";
  3382. 								close;
  3383. 								} else {
  3384. 								if(getiteminfo(@input,0) == -1)
  3385. 								{
  3386. 								mes ".NPCName$;
  3387. 								mes "Sorry, this is not a valid Item ID";
  3388. 								mes "Please try again.";
  3389. 								next;
  3390. 								} else {
  3391. 								mes .NPCName$;
  3392. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3393. 								set #AlootSet4ID5,@input;
  3394. 								next;
  3395. 								}
  3396. 							}			
  3397. 							case 6:
  3398.  
  3399. 								mes .NPCName$;
  3400. 								mes "Please input the item ID for what you want to autoloot.";
  3401. 								mes "Enter 0 if you wish to leave this option blank.";
  3402. 								input @input;
  3403. 								if (@input == 0)
  3404. 								{
  3405. 								mes ".NPCName$;
  3406. 								mes "There's nothing there, dimwit!";
  3407. 								close;
  3408. 								} else {
  3409. 								if(getiteminfo(@input,0) == -1)
  3410. 								{
  3411. 								mes ".NPCName$;
  3412. 								mes "Sorry, this is not a valid Item ID";
  3413. 								mes "Please try again.";
  3414. 								next;
  3415. 								} else {
  3416. 								mes .NPCName$;
  3417. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3418. 								set #AlootSet4ID6,@input;
  3419. 								next;
  3420. 								}
  3421. 							}	
  3422. 							case 7:
  3423.  
  3424. 								mes .NPCName$;
  3425. 								mes "Please input the item ID for what you want to autoloot.";
  3426. 								mes "Enter 0 if you wish to leave this option blank.";
  3427. 								input @input;
  3428. 								if (@input == 0)
  3429. 								{
  3430. 								mes ".NPCName$;
  3431. 								mes "There's nothing there, dimwit!";
  3432. 								close;
  3433. 								} else {
  3434. 								if(getiteminfo(@input,0) == -1)
  3435. 								{
  3436. 								mes ".NPCName$;
  3437. 								mes "Sorry, this is not a valid Item ID";
  3438. 								mes "Please try again.";
  3439. 								next;
  3440. 								} else {
  3441. 								mes .NPCName$;
  3442. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3443. 								set #AlootSet4ID7,@input;
  3444. 								next;
  3445. 								}
  3446. 							}		
  3447. 							case 8:
  3448.  
  3449. 								mes .NPCName$;
  3450. 								mes "Please input the item ID for what you want to autoloot.";
  3451. 								mes "Enter 0 if you wish to leave this option blank.";
  3452. 								input @input;
  3453. 								if (@input == 0)
  3454. 								{
  3455. 								mes ".NPCName$;
  3456. 								mes "There's nothing there, dimwit!";
  3457. 								close;
  3458. 								} else {
  3459. 								if(getiteminfo(@input,0) == -1)
  3460. 								{
  3461. 								mes ".NPCName$;
  3462. 								mes "Sorry, this is not a valid Item ID";
  3463. 								mes "Please try again.";
  3464. 								next;
  3465. 								} else {
  3466. 								mes .NPCName$;
  3467. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3468. 								set #AlootSet4ID8,@input;
  3469. 								next;
  3470. 								}
  3471. 							}		
  3472. 							case 9:
  3473.  
  3474. 								mes .NPCName$;
  3475. 								mes "Please input the item ID for what you want to autoloot.";
  3476. 								mes "Enter 0 if you wish to leave this option blank.";
  3477. 								input @input;
  3478. 								if (@input == 0)
  3479. 								{
  3480. 								mes ".NPCName$;
  3481. 								mes "There's nothing there, dimwit!";
  3482. 								close;
  3483. 								} else {
  3484. 								if(getiteminfo(@input,0) == -1)
  3485. 								{
  3486. 								mes ".NPCName$;
  3487. 								mes "Sorry, this is not a valid Item ID";
  3488. 								mes "Please try again.";
  3489. 								next;
  3490. 								} else {
  3491. 								mes .NPCName$;
  3492. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3493. 								set #AlootSet4ID9,@input;
  3494. 								next;
  3495. 								}
  3496. 							}	
  3497. 							case 10:
  3498.  
  3499. 								mes .NPCName$;
  3500. 								mes "Please input the item ID for what you want to autoloot.";
  3501. 								mes "Enter 0 if you wish to leave this option blank.";
  3502. 								input @input;
  3503. 								if (@input == 0)
  3504. 								{
  3505. 								mes ".NPCName$;
  3506. 								mes "There's nothing there, dimwit!";
  3507. 								close;
  3508. 								} else {
  3509. 								if(getiteminfo(@input,0) == -1)
  3510. 								{
  3511. 								mes ".NPCName$;
  3512. 								mes "Sorry, this is not a valid Item ID";
  3513. 								mes "Please try again.";
  3514. 								next;
  3515. 								} else {
  3516. 								mes .NPCName$;
  3517. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3518. 								set #AlootSet4ID10,@input;
  3519. 								next;
  3520. 								}
  3521. 							}	
  3522. 							case 11:
  3523.  
  3524. 								mes .NPCName$;
  3525. 								mes "Please input the item ID for what you want to autoloot.";
  3526. 								mes "Enter 0 if you wish to leave this option blank.";
  3527. 								input @input;
  3528. 								if (@input == 0)
  3529. 								{
  3530. 								mes ".NPCName$;
  3531. 								mes "There's nothing there, dimwit!";
  3532. 								close;
  3533. 								} else {
  3534. 								if(getiteminfo(@input,0) == -1)
  3535. 								{
  3536. 								mes ".NPCName$;
  3537. 								mes "Sorry, this is not a valid Item ID";
  3538. 								mes "Please try again.";
  3539. 								next;
  3540. 								} else {
  3541. 								mes .NPCName$;
  3542. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3543. 								set #AlootSet4ID11,@input;
  3544. 								next;
  3545. 								}
  3546. 							}	
  3547. 							case 12:
  3548.  
  3549. 								mes .NPCName$;
  3550. 								mes "Please input the item ID for what you want to autoloot.";
  3551. 								mes "Enter 0 if you wish to leave this option blank.";
  3552. 								input @input;
  3553. 								if (@input == 0)
  3554. 								{
  3555. 								mes ".NPCName$;
  3556. 								mes "There's nothing there, dimwit!";
  3557. 								close;
  3558. 								} else {
  3559. 								if(getiteminfo(@input,0) == -1)
  3560. 								{
  3561. 								mes ".NPCName$;
  3562. 								mes "Sorry, this is not a valid Item ID";
  3563. 								mes "Please try again.";
  3564. 								next;
  3565. 								} else {
  3566. 								mes .NPCName$;
  3567. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3568. 								set #AlootSet4ID12,@input;
  3569. 								next;
  3570. 								}
  3571. 							}			
  3572. 							case 13:
  3573.  
  3574. 								mes .NPCName$;
  3575. 								mes "Please input the item ID for what you want to autoloot.";
  3576. 								mes "Enter 0 if you wish to leave this option blank.";
  3577. 								input @input;
  3578. 								if (@input == 0)
  3579. 								{
  3580. 								mes ".NPCName$;
  3581. 								mes "There's nothing there, dimwit!";
  3582. 								close;
  3583. 								} else {
  3584. 								if(getiteminfo(@input,0) == -1)
  3585. 								{
  3586. 								mes ".NPCName$;
  3587. 								mes "Sorry, this is not a valid Item ID";
  3588. 								mes "Please try again.";
  3589. 								next;
  3590. 								} else {
  3591. 								mes .NPCName$;
  3592. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3593. 								set #AlootSet4ID13,@input;
  3594. 								next;
  3595. 								}
  3596. 							}	
  3597. 							case 14:
  3598.  
  3599. 								mes .NPCName$;
  3600. 								mes "Please input the item ID for what you want to autoloot.";
  3601. 								mes "Enter 0 if you wish to leave this option blank.";
  3602. 								input @input;
  3603. 								if (@input == 0)
  3604. 								{
  3605. 								mes ".NPCName$;
  3606. 								mes "There's nothing there, dimwit!";
  3607. 								close;
  3608. 								} else {
  3609. 								if(getiteminfo(@input,0) == -1)
  3610. 								{
  3611. 								mes ".NPCName$;
  3612. 								mes "Sorry, this is not a valid Item ID";
  3613. 								mes "Please try again.";
  3614. 								next;
  3615. 								} else {
  3616. 								mes .NPCName$;
  3617. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3618. 								set #AlootSet4ID14,@input;
  3619. 								next;
  3620. 								}
  3621. 							}	
  3622. 							case 15:
  3623.  
  3624. 								mes .NPCName$;
  3625. 								mes "Please input the item ID for what you want to autoloot.";
  3626. 								mes "Enter 0 if you wish to leave this option blank.";
  3627. 								input @input;
  3628. 								if (@input == 0)
  3629. 								{
  3630. 								mes ".NPCName$;
  3631. 								mes "There's nothing there, dimwit!";
  3632. 								close;
  3633. 								} else {
  3634. 								if(getiteminfo(@input,0) == -1)
  3635. 								{
  3636. 								mes ".NPCName$;
  3637. 								mes "Sorry, this is not a valid Item ID";
  3638. 								mes "Please try again.";
  3639. 								next;
  3640. 								} else {
  3641. 								mes .NPCName$;
  3642. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3643. 								set #AlootSet4ID15,@input;
  3644. 								next;
  3645. 								}
  3646. 							}		
  3647. 							case 16:
  3648.  
  3649. 								mes .NPCName$;
  3650. 								mes "Please input the item ID for what you want to autoloot.";
  3651. 								mes "Enter 0 if you wish to leave this option blank.";
  3652. 								input @input;
  3653. 								if (@input == 0)
  3654. 								{
  3655. 								mes ".NPCName$;
  3656. 								mes "There's nothing there, dimwit!";
  3657. 								close;
  3658. 								} else {
  3659. 								if(getiteminfo(@input,0) == -1)
  3660. 								{
  3661. 								mes ".NPCName$;
  3662. 								mes "Sorry, this is not a valid Item ID";
  3663. 								mes "Please try again.";
  3664. 								next;
  3665. 								} else {
  3666. 								mes .NPCName$;
  3667. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3668. 								set #AlootSet4ID16,@input;
  3669. 								next;
  3670. 								}
  3671. 							}		
  3672. 							case 17:
  3673.  
  3674. 								mes .NPCName$;
  3675. 								mes "Please input the item ID for what you want to autoloot.";
  3676. 								mes "Enter 0 if you wish to leave this option blank.";
  3677. 								input @input;
  3678. 								if (@input == 0)
  3679. 								{
  3680. 								mes ".NPCName$;
  3681. 								mes "There's nothing there, dimwit!";
  3682. 								close;
  3683. 								} else {
  3684. 								if(getiteminfo(@input,0) == -1)
  3685. 								{
  3686. 								mes ".NPCName$;
  3687. 								mes "Sorry, this is not a valid Item ID";
  3688. 								mes "Please try again.";
  3689. 								next;
  3690. 								} else {
  3691. 								mes .NPCName$;
  3692. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3693. 								set #AlootSet4ID17,@input;
  3694. 								next;
  3695. 								}
  3696. 							}		
  3697. 							case 18:
  3698.  
  3699. 								mes .NPCName$;
  3700. 								mes "Please input the item ID for what you want to autoloot.";
  3701. 								mes "Enter 0 if you wish to leave this option blank.";
  3702. 								input @input;
  3703. 								if (@input == 0)
  3704. 								{
  3705. 								mes ".NPCName$;
  3706. 								mes "There's nothing there, dimwit!";
  3707. 								close;
  3708. 								} else {
  3709. 								if(getiteminfo(@input,0) == -1)
  3710. 								{
  3711. 								mes ".NPCName$;
  3712. 								mes "Sorry, this is not a valid Item ID";
  3713. 								mes "Please try again.";
  3714. 								next;
  3715. 								} else {
  3716. 								mes .NPCName$;
  3717. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3718. 								set #AlootSet4ID18,@input;
  3719. 								next;
  3720. 								}
  3721. 							}		
  3722. 							case 19:
  3723.  
  3724. 								mes .NPCName$;
  3725. 								mes "Please input the item ID for what you want to autoloot.";
  3726. 								mes "Enter 0 if you wish to leave this option blank.";
  3727. 								input @input;
  3728. 								if (@input == 0)
  3729. 								{
  3730. 								mes ".NPCName$;
  3731. 								mes "There's nothing there, dimwit!";
  3732. 								close;
  3733. 								} else {
  3734. 								if(getiteminfo(@input,0) == -1)
  3735. 								{
  3736. 								mes ".NPCName$;
  3737. 								mes "Sorry, this is not a valid Item ID";
  3738. 								mes "Please try again.";
  3739. 								next;
  3740. 								} else {
  3741. 								mes .NPCName$;
  3742. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3743. 								set #AlootSet4ID19,@input;
  3744. 								next;
  3745. 								}
  3746. 							}		
  3747. 							case 20:
  3748.  
  3749. 								mes .NPCName$;
  3750. 								mes "Please input the item ID for what you want to autoloot.";
  3751. 								mes "Enter 0 if you wish to leave this option blank.";
  3752. 								input @input;
  3753. 								if (@input == 0)
  3754. 								{
  3755. 								mes ".NPCName$;
  3756. 								mes "There's nothing there, dimwit!";
  3757. 								close;
  3758. 								} else {
  3759. 								if(getiteminfo(@input,0) == -1)
  3760. 								{
  3761. 								mes ".NPCName$;
  3762. 								mes "Sorry, this is not a valid Item ID";
  3763. 								mes "Please try again.";
  3764. 								next;
  3765. 								} else {
  3766. 								mes .NPCName$;
  3767. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3768. 								set #AlootSet4ID20,@input;
  3769. 								next;
  3770. 								}
  3771. 							}			
  3772. 							case 21:
  3773.  
  3774. 								mes .NPCName$;
  3775. 								mes "Please input the item ID for what you want to autoloot.";
  3776. 								mes "Enter 0 if you wish to leave this option blank.";
  3777. 								input @input;
  3778. 								if (@input == 0)
  3779. 								{
  3780. 								mes ".NPCName$;
  3781. 								mes "There's nothing there, dimwit!";
  3782. 								close;
  3783. 								} else {
  3784. 								if(getiteminfo(@input,0) == -1)
  3785. 								{
  3786. 								mes ".NPCName$;
  3787. 								mes "Sorry, this is not a valid Item ID";
  3788. 								mes "Please try again.";
  3789. 								next;
  3790. 								} else {
  3791. 								mes .NPCName$;
  3792. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3793. 								set #AlootSet4ID21,@input;
  3794. 								next;
  3795. 								}
  3796. 							}	
  3797. 							case 22:
  3798.  
  3799. 								mes .NPCName$;
  3800. 								mes "Please input the item ID for what you want to autoloot.";
  3801. 								mes "Enter 0 if you wish to leave this option blank.";
  3802. 								input @input;
  3803. 								if (@input == 0)
  3804. 								{
  3805. 								mes ".NPCName$;
  3806. 								mes "There's nothing there, dimwit!";
  3807. 								close;
  3808. 								} else {
  3809. 								if(getiteminfo(@input,0) == -1)
  3810. 								{
  3811. 								mes ".NPCName$;
  3812. 								mes "Sorry, this is not a valid Item ID";
  3813. 								mes "Please try again.";
  3814. 								next;
  3815. 								} else {
  3816. 								mes .NPCName$;
  3817. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3818. 								set #AlootSet4ID22,@input;
  3819. 								next;
  3820. 								}
  3821. 							}		
  3822. 							case 23:
  3823.  
  3824. 								mes .NPCName$;
  3825. 								mes "Please input the item ID for what you want to autoloot.";
  3826. 								mes "Enter 0 if you wish to leave this option blank.";
  3827. 								input @input;
  3828. 								if (@input == 0)
  3829. 								{
  3830. 								mes ".NPCName$;
  3831. 								mes "There's nothing there, dimwit!";
  3832. 								close;
  3833. 								} else {
  3834. 								if(getiteminfo(@input,0) == -1)
  3835. 								{
  3836. 								mes ".NPCName$;
  3837. 								mes "Sorry, this is not a valid Item ID";
  3838. 								mes "Please try again.";
  3839. 								next;
  3840. 								} else {
  3841. 								mes .NPCName$;
  3842. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3843. 								set #AlootSet4ID23,@input;
  3844. 								next;
  3845. 								}
  3846. 							}			
  3847. 							case 24:
  3848.  
  3849. 								mes .NPCName$;
  3850. 								mes "Please input the item ID for what you want to autoloot.";
  3851. 								mes "Enter 0 if you wish to leave this option blank.";
  3852. 								input @input;
  3853. 								if (@input == 0)
  3854. 								{
  3855. 								mes ".NPCName$;
  3856. 								mes "There's nothing there, dimwit!";
  3857. 								close;
  3858. 								} else {
  3859. 								if(getiteminfo(@input,0) == -1)
  3860. 								{
  3861. 								mes ".NPCName$;
  3862. 								mes "Sorry, this is not a valid Item ID";
  3863. 								mes "Please try again.";
  3864. 								next;
  3865. 								} else {
  3866. 								mes .NPCName$;
  3867. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3868. 								set #AlootSet4ID24,@input;
  3869. 								next;
  3870. 								}
  3871. 							}	
  3872. 							case 25:
  3873.  
  3874. 								mes .NPCName$;
  3875. 								mes "Please input the item ID for what you want to autoloot.";
  3876. 								mes "Enter 0 if you wish to leave this option blank.";
  3877. 								input @input;
  3878. 								if (@input == 0)
  3879. 								{
  3880. 								mes ".NPCName$;
  3881. 								mes "There's nothing there, dimwit!";
  3882. 								close;
  3883. 								} else {
  3884. 								if(getiteminfo(@input,0) == -1)
  3885. 								{
  3886. 								mes ".NPCName$;
  3887. 								mes "Sorry, this is not a valid Item ID";
  3888. 								mes "Please try again.";
  3889. 								next;
  3890. 								} else {
  3891. 								mes .NPCName$;
  3892. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3893. 								set #AlootSet4ID25,@input;
  3894. 								next;
  3895. 								}
  3896. 							}
  3897. 						}
  3898. 				} else {
  3899. 		mes .NPCName$;
  3900. 		mes "You have nothing created in this set!";
  3901. 		mes "Please create a set before editing it.";
  3902. 		close;
  3903. 		}
  3904. 					case 5:
  3905. 					if (@menu$[5] != "Nothing")
  3906. 					{
  3907. 						mes .NPCName$;
  3908. 						mes "Perfect! Let's edit what's listed in this set.";
  3909. 						mes "You can Delete any item by entering 0.";
  3910. 						mes "Or edit the item ID by entering it in place of an existing one.";
  3911. 						if (#AlootSet5ID1 != 0) { set @menu$[1], "Add Item"; } else { set @menu$[1], "Item ID "+#AlootSet5ID1+" - ("+getitemname(#AlootSet5ID1)"+)"; }
  3912. 						if (#AlootSet5ID2 != 0) { set @menu$[2], "Add Item"; } else { set @menu$[2], "Item ID "+#AlootSet5ID2+" - ("+getitemname(#AlootSet5ID2)"+)"; }
  3913. 						if (#AlootSet5ID3 != 0) { set @menu$[3], "Add Item"; } else { set @menu$[3], "Item ID "+#AlootSet5ID3+" - ("+getitemname(#AlootSet5ID3)"+)"; }
  3914. 						if (#AlootSet5ID4 != 0) { set @menu$[4], "Add Item"; } else { set @menu$[4], "Item ID "+#AlootSet5ID4+" - ("+getitemname(#AlootSet5ID4)"+)"; }
  3915. 						if (#AlootSet5ID5 != 0) { set @menu$[5], "Add Item"; } else { set @menu$[5], "Item ID "+#AlootSet5ID5+" - ("+getitemname(#AlootSet5ID5)"+)"; }
  3916. 						if (#AlootSet5ID6 != 0) { set @menu$[6], "Add Item"; } else { set @menu$[6], "Item ID "+#AlootSet5ID6+" - ("+getitemname(#AlootSet5ID6)"+)"; }
  3917. 						if (#AlootSet5ID7 != 0) { set @menu$[7], "Add Item"; } else { set @menu$[7], "Item ID "+#AlootSet5ID7+" - ("+getitemname(#AlootSet5ID7)"+)"; }
  3918. 						if (#AlootSet5ID8 != 0) { set @menu$[8], "Add Item"; } else { set @menu$[8], "Item ID "+#AlootSet5ID8+" - ("+getitemname(#AlootSet5ID8)"+)"; }
  3919. 						if (#AlootSet5ID9 != 0) { set @menu$[9], "Add Item"; } else { set @menu$[9], "Item ID "+#AlootSet5ID9+" - ("+getitemname(#AlootSet5ID9)"+)"; }
  3920. 						if (#AlootSet5ID10 != 0) { set @menu$[10], "Add Item"; } else { set @menu$[10], "Item ID "+#AlootSet5ID10+" - ("+getitemname(#AlootSet5ID10)"+)"; }
  3921. 						if (#AlootSet5ID11 != 0) { set @menu$[11], "Add Item"; } else { set @menu$[11], "Item ID "+#AlootSet5ID11+" - ("+getitemname(#AlootSet5ID11)"+)"; }
  3922. 						if (#AlootSet5ID12 != 0) { set @menu$[12], "Add Item"; } else { set @menu$[12], "Item ID "+#AlootSet5ID12+" - ("+getitemname(#AlootSet5ID12)"+)"; }
  3923. 						if (#AlootSet5ID13 != 0) { set @menu$[13], "Add Item"; } else { set @menu$[13], "Item ID "+#AlootSet5ID13+" - ("+getitemname(#AlootSet5ID13)"+)"; }
  3924. 						if (#AlootSet5ID14 != 0) { set @menu$[14], "Add Item"; } else { set @menu$[14], "Item ID "+#AlootSet5ID14+" - ("+getitemname(#AlootSet5ID14)"+)"; }
  3925. 						if (#AlootSet5ID15 != 0) { set @menu$[15], "Add Item"; } else { set @menu$[15], "Item ID "+#AlootSet5ID15+" - ("+getitemname(#AlootSet5ID15)"+)"; }
  3926. 						if (#AlootSet5ID16 != 0) { set @menu$[16], "Add Item"; } else { set @menu$[16], "Item ID "+#AlootSet5ID16+" - ("+getitemname(#AlootSet5ID16)"+)"; }
  3927. 						if (#AlootSet5ID17 != 0) { set @menu$[17], "Add Item"; } else { set @menu$[17], "Item ID "+#AlootSet5ID17+" - ("+getitemname(#AlootSet5ID17)"+)"; }
  3928. 						if (#AlootSet5ID18 != 0) { set @menu$[18], "Add Item"; } else { set @menu$[18], "Item ID "+#AlootSet5ID18+" - ("+getitemname(#AlootSet5ID18)"+)"; }
  3929. 						if (#AlootSet5ID19 != 0) { set @menu$[19], "Add Item"; } else { set @menu$[19], "Item ID "+#AlootSet5ID19+" - ("+getitemname(#AlootSet5ID19)"+)"; }
  3930. 						if (#AlootSet5ID20 != 0) { set @menu$[20], "Add Item"; } else { set @menu$[20], "Item ID "+#AlootSet5ID20+" - ("+getitemname(#AlootSet5ID20)"+)"; }
  3931. 						if (#AlootSet5ID21 != 0) { set @menu$[21], "Add Item"; } else { set @menu$[21], "Item ID "+#AlootSet5ID21+" - ("+getitemname(#AlootSet5ID21)"+)"; }
  3932. 						if (#AlootSet5ID22 != 0) { set @menu$[22], "Add Item"; } else { set @menu$[22], "Item ID "+#AlootSet5ID22+" - ("+getitemname(#AlootSet5ID22)"+)"; }
  3933. 						if (#AlootSet5ID23 != 0) { set @menu$[23], "Add Item"; } else { set @menu$[23], "Item ID "+#AlootSet5ID23+" - ("+getitemname(#AlootSet5ID23)"+)"; }
  3934. 						if (#AlootSet5ID24 != 0) { set @menu$[24], "Add Item"; } else { set @menu$[24], "Item ID "+#AlootSet5ID24+" - ("+getitemname(#AlootSet5ID24)"+)"; }
  3935. 						if (#AlootSet5ID25 != 0) { set @menu$[25], "Add Item"; } else { set @menu$[25], "Item ID "+#AlootSet5ID25+" - ("+getitemname(#AlootSet5ID25)"+)"; }
  3936. 						next;
  3937. 						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]))
  3938. 						{
  3939. 							case 1:
  3940.  
  3941. 								mes .NPCName$;
  3942. 								mes "Please input the item ID for what you want to autoloot.";
  3943. 								mes "Enter 0 if you wish to leave this option blank.";
  3944. 								input @input;
  3945. 								if (@input == 0)
  3946. 								{
  3947. 								mes ".NPCName$;
  3948. 								mes "There's nothing there, dimwit!";
  3949. 								close;
  3950. 								} else {
  3951. 								if(getiteminfo(@input,0) == -1)
  3952. 								{
  3953. 								mes ".NPCName$;
  3954. 								mes "Sorry, this is not a valid Item ID";
  3955. 								mes "Please try again.";
  3956. 								next;
  3957. 								} else {
  3958. 								mes .NPCName$;
  3959. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3960. 								set #AlootSet5ID1,@input;
  3961. 								next;
  3962. 								}
  3963. 							}
  3964. 							case 2:
  3965.  
  3966. 								mes .NPCName$;
  3967. 								mes "Please input the item ID for what you want to autoloot.";
  3968. 								mes "Enter 0 if you wish to leave this option blank.";
  3969. 								input @input;
  3970. 								if (@input == 0)
  3971. 								{
  3972. 								mes ".NPCName$;
  3973. 								mes "There's nothing there, dimwit!";
  3974. 								close;
  3975. 								} else {
  3976. 								if(getiteminfo(@input,0) == -1)
  3977. 								{
  3978. 								mes ".NPCName$;
  3979. 								mes "Sorry, this is not a valid Item ID";
  3980. 								mes "Please try again.";
  3981. 								next;
  3982. 								} else {
  3983. 								mes .NPCName$;
  3984. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  3985. 								set #AlootSet5ID2,@input;
  3986. 								next;
  3987. 								}
  3988. 							}
  3989. 							case 3:
  3990.  
  3991. 								mes .NPCName$;
  3992. 								mes "Please input the item ID for what you want to autoloot.";
  3993. 								mes "Enter 0 if you wish to leave this option blank.";
  3994. 								input @input;
  3995. 								if (@input == 0)
  3996. 								{
  3997. 								mes ".NPCName$;
  3998. 								mes "There's nothing there, dimwit!";
  3999. 								close;
  4000. 								} else {
  4001. 								if(getiteminfo(@input,0) == -1)
  4002. 								{
  4003. 								mes ".NPCName$;
  4004. 								mes "Sorry, this is not a valid Item ID";
  4005. 								mes "Please try again.";
  4006. 								next;
  4007. 								} else {
  4008. 								mes .NPCName$;
  4009. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4010. 								set #AlootSet5ID3,@input;
  4011. 								next;
  4012. 								}
  4013. 							}							
  4014. 							case 4:
  4015.  
  4016. 								mes .NPCName$;
  4017. 								mes "Please input the item ID for what you want to autoloot.";
  4018. 								mes "Enter 0 if you wish to leave this option blank.";
  4019. 								input @input;
  4020. 								if (@input == 0)
  4021. 								{
  4022. 								mes ".NPCName$;
  4023. 								mes "There's nothing there, dimwit!";
  4024. 								close;
  4025. 								} else {
  4026. 								if(getiteminfo(@input,0) == -1)
  4027. 								{
  4028. 								mes ".NPCName$;
  4029. 								mes "Sorry, this is not a valid Item ID";
  4030. 								mes "Please try again.";
  4031. 								next;
  4032. 								} else {
  4033. 								mes .NPCName$;
  4034. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4035. 								set #AlootSet5ID4,@input;
  4036. 								next;
  4037. 								}
  4038. 							}
  4039. 							case 5:
  4040.  
  4041. 								mes .NPCName$;
  4042. 								mes "Please input the item ID for what you want to autoloot.";
  4043. 								mes "Enter 0 if you wish to leave this option blank.";
  4044. 								input @input;
  4045. 								if (@input == 0)
  4046. 								{
  4047. 								mes ".NPCName$;
  4048. 								mes "There's nothing there, dimwit!";
  4049. 								close;
  4050. 								} else {
  4051. 								if(getiteminfo(@input,0) == -1)
  4052. 								{
  4053. 								mes ".NPCName$;
  4054. 								mes "Sorry, this is not a valid Item ID";
  4055. 								mes "Please try again.";
  4056. 								next;
  4057. 								} else {
  4058. 								mes .NPCName$;
  4059. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4060. 								set #AlootSet5ID5,@input;
  4061. 								next;
  4062. 								}
  4063. 							}			
  4064. 							case 6:
  4065.  
  4066. 								mes .NPCName$;
  4067. 								mes "Please input the item ID for what you want to autoloot.";
  4068. 								mes "Enter 0 if you wish to leave this option blank.";
  4069. 								input @input;
  4070. 								if (@input == 0)
  4071. 								{
  4072. 								mes ".NPCName$;
  4073. 								mes "There's nothing there, dimwit!";
  4074. 								close;
  4075. 								} else {
  4076. 								if(getiteminfo(@input,0) == -1)
  4077. 								{
  4078. 								mes ".NPCName$;
  4079. 								mes "Sorry, this is not a valid Item ID";
  4080. 								mes "Please try again.";
  4081. 								next;
  4082. 								} else {
  4083. 								mes .NPCName$;
  4084. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4085. 								set #AlootSet5ID6,@input;
  4086. 								next;
  4087. 								}
  4088. 							}	
  4089. 							case 7:
  4090.  
  4091. 								mes .NPCName$;
  4092. 								mes "Please input the item ID for what you want to autoloot.";
  4093. 								mes "Enter 0 if you wish to leave this option blank.";
  4094. 								input @input;
  4095. 								if (@input == 0)
  4096. 								{
  4097. 								mes ".NPCName$;
  4098. 								mes "There's nothing there, dimwit!";
  4099. 								close;
  4100. 								} else {
  4101. 								if(getiteminfo(@input,0) == -1)
  4102. 								{
  4103. 								mes ".NPCName$;
  4104. 								mes "Sorry, this is not a valid Item ID";
  4105. 								mes "Please try again.";
  4106. 								next;
  4107. 								} else {
  4108. 								mes .NPCName$;
  4109. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4110. 								set #AlootSet5ID7,@input;
  4111. 								next;
  4112. 								}
  4113. 							}		
  4114. 							case 8:
  4115.  
  4116. 								mes .NPCName$;
  4117. 								mes "Please input the item ID for what you want to autoloot.";
  4118. 								mes "Enter 0 if you wish to leave this option blank.";
  4119. 								input @input;
  4120. 								if (@input == 0)
  4121. 								{
  4122. 								mes ".NPCName$;
  4123. 								mes "There's nothing there, dimwit!";
  4124. 								close;
  4125. 								} else {
  4126. 								if(getiteminfo(@input,0) == -1)
  4127. 								{
  4128. 								mes ".NPCName$;
  4129. 								mes "Sorry, this is not a valid Item ID";
  4130. 								mes "Please try again.";
  4131. 								next;
  4132. 								} else {
  4133. 								mes .NPCName$;
  4134. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4135. 								set #AlootSet5ID8,@input;
  4136. 								next;
  4137. 								}
  4138. 							}		
  4139. 							case 9:
  4140.  
  4141. 								mes .NPCName$;
  4142. 								mes "Please input the item ID for what you want to autoloot.";
  4143. 								mes "Enter 0 if you wish to leave this option blank.";
  4144. 								input @input;
  4145. 								if (@input == 0)
  4146. 								{
  4147. 								mes ".NPCName$;
  4148. 								mes "There's nothing there, dimwit!";
  4149. 								close;
  4150. 								} else {
  4151. 								if(getiteminfo(@input,0) == -1)
  4152. 								{
  4153. 								mes ".NPCName$;
  4154. 								mes "Sorry, this is not a valid Item ID";
  4155. 								mes "Please try again.";
  4156. 								next;
  4157. 								} else {
  4158. 								mes .NPCName$;
  4159. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4160. 								set #AlootSet5ID9,@input;
  4161. 								next;
  4162. 								}
  4163. 							}	
  4164. 							case 10:
  4165.  
  4166. 								mes .NPCName$;
  4167. 								mes "Please input the item ID for what you want to autoloot.";
  4168. 								mes "Enter 0 if you wish to leave this option blank.";
  4169. 								input @input;
  4170. 								if (@input == 0)
  4171. 								{
  4172. 								mes ".NPCName$;
  4173. 								mes "There's nothing there, dimwit!";
  4174. 								close;
  4175. 								} else {
  4176. 								if(getiteminfo(@input,0) == -1)
  4177. 								{
  4178. 								mes ".NPCName$;
  4179. 								mes "Sorry, this is not a valid Item ID";
  4180. 								mes "Please try again.";
  4181. 								next;
  4182. 								} else {
  4183. 								mes .NPCName$;
  4184. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4185. 								set #AlootSet5ID10,@input;
  4186. 								next;
  4187. 								}
  4188. 							}	
  4189. 							case 11:
  4190.  
  4191. 								mes .NPCName$;
  4192. 								mes "Please input the item ID for what you want to autoloot.";
  4193. 								mes "Enter 0 if you wish to leave this option blank.";
  4194. 								input @input;
  4195. 								if (@input == 0)
  4196. 								{
  4197. 								mes ".NPCName$;
  4198. 								mes "There's nothing there, dimwit!";
  4199. 								close;
  4200. 								} else {
  4201. 								if(getiteminfo(@input,0) == -1)
  4202. 								{
  4203. 								mes ".NPCName$;
  4204. 								mes "Sorry, this is not a valid Item ID";
  4205. 								mes "Please try again.";
  4206. 								next;
  4207. 								} else {
  4208. 								mes .NPCName$;
  4209. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4210. 								set #AlootSet5ID11,@input;
  4211. 								next;
  4212. 								}
  4213. 							}	
  4214. 							case 12:
  4215.  
  4216. 								mes .NPCName$;
  4217. 								mes "Please input the item ID for what you want to autoloot.";
  4218. 								mes "Enter 0 if you wish to leave this option blank.";
  4219. 								input @input;
  4220. 								if (@input == 0)
  4221. 								{
  4222. 								mes ".NPCName$;
  4223. 								mes "There's nothing there, dimwit!";
  4224. 								close;
  4225. 								} else {
  4226. 								if(getiteminfo(@input,0) == -1)
  4227. 								{
  4228. 								mes ".NPCName$;
  4229. 								mes "Sorry, this is not a valid Item ID";
  4230. 								mes "Please try again.";
  4231. 								next;
  4232. 								} else {
  4233. 								mes .NPCName$;
  4234. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4235. 								set #AlootSet5ID12,@input;
  4236. 								next;
  4237. 								}
  4238. 							}			
  4239. 							case 13:
  4240.  
  4241. 								mes .NPCName$;
  4242. 								mes "Please input the item ID for what you want to autoloot.";
  4243. 								mes "Enter 0 if you wish to leave this option blank.";
  4244. 								input @input;
  4245. 								if (@input == 0)
  4246. 								{
  4247. 								mes ".NPCName$;
  4248. 								mes "There's nothing there, dimwit!";
  4249. 								close;
  4250. 								} else {
  4251. 								if(getiteminfo(@input,0) == -1)
  4252. 								{
  4253. 								mes ".NPCName$;
  4254. 								mes "Sorry, this is not a valid Item ID";
  4255. 								mes "Please try again.";
  4256. 								next;
  4257. 								} else {
  4258. 								mes .NPCName$;
  4259. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4260. 								set #AlootSet5ID13,@input;
  4261. 								next;
  4262. 								}
  4263. 							}	
  4264. 							case 14:
  4265.  
  4266. 								mes .NPCName$;
  4267. 								mes "Please input the item ID for what you want to autoloot.";
  4268. 								mes "Enter 0 if you wish to leave this option blank.";
  4269. 								input @input;
  4270. 								if (@input == 0)
  4271. 								{
  4272. 								mes ".NPCName$;
  4273. 								mes "There's nothing there, dimwit!";
  4274. 								close;
  4275. 								} else {
  4276. 								if(getiteminfo(@input,0) == -1)
  4277. 								{
  4278. 								mes ".NPCName$;
  4279. 								mes "Sorry, this is not a valid Item ID";
  4280. 								mes "Please try again.";
  4281. 								next;
  4282. 								} else {
  4283. 								mes .NPCName$;
  4284. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4285. 								set #AlootSet5ID14,@input;
  4286. 								next;
  4287. 								}
  4288. 							}	
  4289. 							case 15:
  4290.  
  4291. 								mes .NPCName$;
  4292. 								mes "Please input the item ID for what you want to autoloot.";
  4293. 								mes "Enter 0 if you wish to leave this option blank.";
  4294. 								input @input;
  4295. 								if (@input == 0)
  4296. 								{
  4297. 								mes ".NPCName$;
  4298. 								mes "There's nothing there, dimwit!";
  4299. 								close;
  4300. 								} else {
  4301. 								if(getiteminfo(@input,0) == -1)
  4302. 								{
  4303. 								mes ".NPCName$;
  4304. 								mes "Sorry, this is not a valid Item ID";
  4305. 								mes "Please try again.";
  4306. 								next;
  4307. 								} else {
  4308. 								mes .NPCName$;
  4309. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4310. 								set #AlootSet5ID15,@input;
  4311. 								next;
  4312. 								}
  4313. 							}		
  4314. 							case 16:
  4315.  
  4316. 								mes .NPCName$;
  4317. 								mes "Please input the item ID for what you want to autoloot.";
  4318. 								mes "Enter 0 if you wish to leave this option blank.";
  4319. 								input @input;
  4320. 								if (@input == 0)
  4321. 								{
  4322. 								mes ".NPCName$;
  4323. 								mes "There's nothing there, dimwit!";
  4324. 								close;
  4325. 								} else {
  4326. 								if(getiteminfo(@input,0) == -1)
  4327. 								{
  4328. 								mes ".NPCName$;
  4329. 								mes "Sorry, this is not a valid Item ID";
  4330. 								mes "Please try again.";
  4331. 								next;
  4332. 								} else {
  4333. 								mes .NPCName$;
  4334. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4335. 								set #AlootSet5ID16,@input;
  4336. 								next;
  4337. 								}
  4338. 							}		
  4339. 							case 17:
  4340.  
  4341. 								mes .NPCName$;
  4342. 								mes "Please input the item ID for what you want to autoloot.";
  4343. 								mes "Enter 0 if you wish to leave this option blank.";
  4344. 								input @input;
  4345. 								if (@input == 0)
  4346. 								{
  4347. 								mes ".NPCName$;
  4348. 								mes "There's nothing there, dimwit!";
  4349. 								close;
  4350. 								} else {
  4351. 								if(getiteminfo(@input,0) == -1)
  4352. 								{
  4353. 								mes ".NPCName$;
  4354. 								mes "Sorry, this is not a valid Item ID";
  4355. 								mes "Please try again.";
  4356. 								next;
  4357. 								} else {
  4358. 								mes .NPCName$;
  4359. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4360. 								set #AlootSet5ID17,@input;
  4361. 								next;
  4362. 								}
  4363. 							}		
  4364. 							case 18:
  4365.  
  4366. 								mes .NPCName$;
  4367. 								mes "Please input the item ID for what you want to autoloot.";
  4368. 								mes "Enter 0 if you wish to leave this option blank.";
  4369. 								input @input;
  4370. 								if (@input == 0)
  4371. 								{
  4372. 								mes ".NPCName$;
  4373. 								mes "There's nothing there, dimwit!";
  4374. 								close;
  4375. 								} else {
  4376. 								if(getiteminfo(@input,0) == -1)
  4377. 								{
  4378. 								mes ".NPCName$;
  4379. 								mes "Sorry, this is not a valid Item ID";
  4380. 								mes "Please try again.";
  4381. 								next;
  4382. 								} else {
  4383. 								mes .NPCName$;
  4384. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4385. 								set #AlootSet5ID18,@input;
  4386. 								next;
  4387. 								}
  4388. 							}		
  4389. 							case 19:
  4390.  
  4391. 								mes .NPCName$;
  4392. 								mes "Please input the item ID for what you want to autoloot.";
  4393. 								mes "Enter 0 if you wish to leave this option blank.";
  4394. 								input @input;
  4395. 								if (@input == 0)
  4396. 								{
  4397. 								mes ".NPCName$;
  4398. 								mes "There's nothing there, dimwit!";
  4399. 								close;
  4400. 								} else {
  4401. 								if(getiteminfo(@input,0) == -1)
  4402. 								{
  4403. 								mes ".NPCName$;
  4404. 								mes "Sorry, this is not a valid Item ID";
  4405. 								mes "Please try again.";
  4406. 								next;
  4407. 								} else {
  4408. 								mes .NPCName$;
  4409. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4410. 								set #AlootSet5ID19,@input;
  4411. 								next;
  4412. 								}
  4413. 							}		
  4414. 							case 20:
  4415.  
  4416. 								mes .NPCName$;
  4417. 								mes "Please input the item ID for what you want to autoloot.";
  4418. 								mes "Enter 0 if you wish to leave this option blank.";
  4419. 								input @input;
  4420. 								if (@input == 0)
  4421. 								{
  4422. 								mes ".NPCName$;
  4423. 								mes "There's nothing there, dimwit!";
  4424. 								close;
  4425. 								} else {
  4426. 								if(getiteminfo(@input,0) == -1)
  4427. 								{
  4428. 								mes ".NPCName$;
  4429. 								mes "Sorry, this is not a valid Item ID";
  4430. 								mes "Please try again.";
  4431. 								next;
  4432. 								} else {
  4433. 								mes .NPCName$;
  4434. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4435. 								set #AlootSet5ID20,@input;
  4436. 								next;
  4437. 								}
  4438. 							}			
  4439. 							case 21:
  4440.  
  4441. 								mes .NPCName$;
  4442. 								mes "Please input the item ID for what you want to autoloot.";
  4443. 								mes "Enter 0 if you wish to leave this option blank.";
  4444. 								input @input;
  4445. 								if (@input == 0)
  4446. 								{
  4447. 								mes ".NPCName$;
  4448. 								mes "There's nothing there, dimwit!";
  4449. 								close;
  4450. 								} else {
  4451. 								if(getiteminfo(@input,0) == -1)
  4452. 								{
  4453. 								mes ".NPCName$;
  4454. 								mes "Sorry, this is not a valid Item ID";
  4455. 								mes "Please try again.";
  4456. 								next;
  4457. 								} else {
  4458. 								mes .NPCName$;
  4459. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4460. 								set #AlootSet5ID21,@input;
  4461. 								next;
  4462. 								}
  4463. 							}	
  4464. 							case 22:
  4465.  
  4466. 								mes .NPCName$;
  4467. 								mes "Please input the item ID for what you want to autoloot.";
  4468. 								mes "Enter 0 if you wish to leave this option blank.";
  4469. 								input @input;
  4470. 								if (@input == 0)
  4471. 								{
  4472. 								mes ".NPCName$;
  4473. 								mes "There's nothing there, dimwit!";
  4474. 								close;
  4475. 								} else {
  4476. 								if(getiteminfo(@input,0) == -1)
  4477. 								{
  4478. 								mes ".NPCName$;
  4479. 								mes "Sorry, this is not a valid Item ID";
  4480. 								mes "Please try again.";
  4481. 								next;
  4482. 								} else {
  4483. 								mes .NPCName$;
  4484. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4485. 								set #AlootSet5ID22,@input;
  4486. 								next;
  4487. 								}
  4488. 							}		
  4489. 							case 23:
  4490.  
  4491. 								mes .NPCName$;
  4492. 								mes "Please input the item ID for what you want to autoloot.";
  4493. 								mes "Enter 0 if you wish to leave this option blank.";
  4494. 								input @input;
  4495. 								if (@input == 0)
  4496. 								{
  4497. 								mes ".NPCName$;
  4498. 								mes "There's nothing there, dimwit!";
  4499. 								close;
  4500. 								} else {
  4501. 								if(getiteminfo(@input,0) == -1)
  4502. 								{
  4503. 								mes ".NPCName$;
  4504. 								mes "Sorry, this is not a valid Item ID";
  4505. 								mes "Please try again.";
  4506. 								next;
  4507. 								} else {
  4508. 								mes .NPCName$;
  4509. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4510. 								set #AlootSet5ID23,@input;
  4511. 								next;
  4512. 								}
  4513. 							}			
  4514. 							case 24:
  4515.  
  4516. 								mes .NPCName$;
  4517. 								mes "Please input the item ID for what you want to autoloot.";
  4518. 								mes "Enter 0 if you wish to leave this option blank.";
  4519. 								input @input;
  4520. 								if (@input == 0)
  4521. 								{
  4522. 								mes ".NPCName$;
  4523. 								mes "There's nothing there, dimwit!";
  4524. 								close;
  4525. 								} else {
  4526. 								if(getiteminfo(@input,0) == -1)
  4527. 								{
  4528. 								mes ".NPCName$;
  4529. 								mes "Sorry, this is not a valid Item ID";
  4530. 								mes "Please try again.";
  4531. 								next;
  4532. 								} else {
  4533. 								mes .NPCName$;
  4534. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4535. 								set #AlootSet5ID24,@input;
  4536. 								next;
  4537. 								}
  4538. 							}	
  4539. 							case 25:
  4540.  
  4541. 								mes .NPCName$;
  4542. 								mes "Please input the item ID for what you want to autoloot.";
  4543. 								mes "Enter 0 if you wish to leave this option blank.";
  4544. 								input @input;
  4545. 								if (@input == 0)
  4546. 								{
  4547. 								mes ".NPCName$;
  4548. 								mes "There's nothing there, dimwit!";
  4549. 								close;
  4550. 								} else {
  4551. 								if(getiteminfo(@input,0) == -1)
  4552. 								{
  4553. 								mes ".NPCName$;
  4554. 								mes "Sorry, this is not a valid Item ID";
  4555. 								mes "Please try again.";
  4556. 								next;
  4557. 								} else {
  4558. 								mes .NPCName$;
  4559. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4560. 								set #AlootSet5ID25,@input;
  4561. 								next;
  4562. 								}
  4563. 							}
  4564. 						}
  4565. 					} else {
  4566. 		mes .NPCName$;
  4567. 		mes "You have nothing created in this set!";
  4568. 		mes "Please create a set before editing it.";
  4569. 		close;
  4570. 		}
  4571. 													case 6:
  4572. 					if (@menu$[6] != "Nothing")
  4573. 					{
  4574. 						mes .NPCName$;
  4575. 						mes "Perfect! Let's edit what's listed in this set.";
  4576. 						mes "You can Delete any item by entering 0.";
  4577. 						mes "Or edit the item ID by entering it in place of an existing one.";
  4578. 						if (#AlootSet6ID1 != 0) { set @menu$[1], "Add Item"; } else { set @menu$[1], "Item ID "+#AlootSet6ID1+" - ("+getitemname(#AlootSet6ID1)"+)"; }
  4579. 						if (#AlootSet6ID2 != 0) { set @menu$[2], "Add Item"; } else { set @menu$[2], "Item ID "+#AlootSet6ID2+" - ("+getitemname(#AlootSet6ID2)"+)"; }
  4580. 						if (#AlootSet6ID3 != 0) { set @menu$[3], "Add Item"; } else { set @menu$[3], "Item ID "+#AlootSet6ID3+" - ("+getitemname(#AlootSet6ID3)"+)"; }
  4581. 						if (#AlootSet6ID4 != 0) { set @menu$[4], "Add Item"; } else { set @menu$[4], "Item ID "+#AlootSet6ID4+" - ("+getitemname(#AlootSet6ID4)"+)"; }
  4582. 						if (#AlootSet6ID5 != 0) { set @menu$[5], "Add Item"; } else { set @menu$[5], "Item ID "+#AlootSet6ID5+" - ("+getitemname(#AlootSet6ID5)"+)"; }
  4583. 						if (#AlootSet6ID6 != 0) { set @menu$[6], "Add Item"; } else { set @menu$[6], "Item ID "+#AlootSet6ID6+" - ("+getitemname(#AlootSet6ID6)"+)"; }
  4584. 						if (#AlootSet6ID7 != 0) { set @menu$[7], "Add Item"; } else { set @menu$[7], "Item ID "+#AlootSet6ID7+" - ("+getitemname(#AlootSet6ID7)"+)"; }
  4585. 						if (#AlootSet6ID8 != 0) { set @menu$[8], "Add Item"; } else { set @menu$[8], "Item ID "+#AlootSet6ID8+" - ("+getitemname(#AlootSet6ID8)"+)"; }
  4586. 						if (#AlootSet6ID9 != 0) { set @menu$[9], "Add Item"; } else { set @menu$[9], "Item ID "+#AlootSet6ID9+" - ("+getitemname(#AlootSet6ID9)"+)"; }
  4587. 						if (#AlootSet6ID10 != 0) { set @menu$[10], "Add Item"; } else { set @menu$[10], "Item ID "+#AlootSet6ID10+" - ("+getitemname(#AlootSet6ID10)"+)"; }
  4588. 						if (#AlootSet6ID11 != 0) { set @menu$[11], "Add Item"; } else { set @menu$[11], "Item ID "+#AlootSet6ID11+" - ("+getitemname(#AlootSet6ID11)"+)"; }
  4589. 						if (#AlootSet6ID12 != 0) { set @menu$[12], "Add Item"; } else { set @menu$[12], "Item ID "+#AlootSet6ID12+" - ("+getitemname(#AlootSet6ID12)"+)"; }
  4590. 						if (#AlootSet6ID13 != 0) { set @menu$[13], "Add Item"; } else { set @menu$[13], "Item ID "+#AlootSet6ID13+" - ("+getitemname(#AlootSet6ID13)"+)"; }
  4591. 						if (#AlootSet6ID14 != 0) { set @menu$[14], "Add Item"; } else { set @menu$[14], "Item ID "+#AlootSet6ID14+" - ("+getitemname(#AlootSet6ID14)"+)"; }
  4592. 						if (#AlootSet6ID15 != 0) { set @menu$[15], "Add Item"; } else { set @menu$[15], "Item ID "+#AlootSet6ID15+" - ("+getitemname(#AlootSet6ID15)"+)"; }
  4593. 						if (#AlootSet6ID16 != 0) { set @menu$[16], "Add Item"; } else { set @menu$[16], "Item ID "+#AlootSet6ID16+" - ("+getitemname(#AlootSet6ID16)"+)"; }
  4594. 						if (#AlootSet6ID17 != 0) { set @menu$[17], "Add Item"; } else { set @menu$[17], "Item ID "+#AlootSet6ID17+" - ("+getitemname(#AlootSet6ID17)"+)"; }
  4595. 						if (#AlootSet6ID18 != 0) { set @menu$[18], "Add Item"; } else { set @menu$[18], "Item ID "+#AlootSet6ID18+" - ("+getitemname(#AlootSet6ID18)"+)"; }
  4596. 						if (#AlootSet6ID19 != 0) { set @menu$[19], "Add Item"; } else { set @menu$[19], "Item ID "+#AlootSet6ID19+" - ("+getitemname(#AlootSet6ID19)"+)"; }
  4597. 						if (#AlootSet6ID20 != 0) { set @menu$[20], "Add Item"; } else { set @menu$[20], "Item ID "+#AlootSet6ID20+" - ("+getitemname(#AlootSet6ID20)"+)"; }
  4598. 						if (#AlootSet6ID21 != 0) { set @menu$[21], "Add Item"; } else { set @menu$[21], "Item ID "+#AlootSet6ID21+" - ("+getitemname(#AlootSet6ID21)"+)"; }
  4599. 						if (#AlootSet6ID22 != 0) { set @menu$[22], "Add Item"; } else { set @menu$[22], "Item ID "+#AlootSet6ID22+" - ("+getitemname(#AlootSet6ID22)"+)"; }
  4600. 						if (#AlootSet6ID23 != 0) { set @menu$[23], "Add Item"; } else { set @menu$[23], "Item ID "+#AlootSet6ID23+" - ("+getitemname(#AlootSet6ID23)"+)"; }
  4601. 						if (#AlootSet6ID24 != 0) { set @menu$[24], "Add Item"; } else { set @menu$[24], "Item ID "+#AlootSet6ID24+" - ("+getitemname(#AlootSet6ID24)"+)"; }
  4602. 						if (#AlootSet6ID25 != 0) { set @menu$[25], "Add Item"; } else { set @menu$[25], "Item ID "+#AlootSet6ID25+" - ("+getitemname(#AlootSet6ID25)"+)"; }
  4603. 						next;
  4604. 						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]))
  4605. 						{
  4606. 							case 1:
  4607.  
  4608. 								mes .NPCName$;
  4609. 								mes "Please input the item ID for what you want to autoloot.";
  4610. 								mes "Enter 0 if you wish to leave this option blank.";
  4611. 								input @input;
  4612. 								if (@input == 0)
  4613. 								{
  4614. 								mes ".NPCName$;
  4615. 								mes "There's nothing there, dimwit!";
  4616. 								close;
  4617. 								} else {
  4618. 								if(getiteminfo(@input,0) == -1)
  4619. 								{
  4620. 								mes ".NPCName$;
  4621. 								mes "Sorry, this is not a valid Item ID";
  4622. 								mes "Please try again.";
  4623. 								next;
  4624. 								} else {
  4625. 								mes .NPCName$;
  4626. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4627. 								set #AlootSet6ID1,@input;
  4628. 								next;
  4629. 								}
  4630. 							}
  4631. 							case 2:
  4632.  
  4633. 								mes .NPCName$;
  4634. 								mes "Please input the item ID for what you want to autoloot.";
  4635. 								mes "Enter 0 if you wish to leave this option blank.";
  4636. 								input @input;
  4637. 								if (@input == 0)
  4638. 								{
  4639. 								mes ".NPCName$;
  4640. 								mes "There's nothing there, dimwit!";
  4641. 								close;
  4642. 								} else {
  4643. 								if(getiteminfo(@input,0) == -1)
  4644. 								{
  4645. 								mes ".NPCName$;
  4646. 								mes "Sorry, this is not a valid Item ID";
  4647. 								mes "Please try again.";
  4648. 								next;
  4649. 								} else {
  4650. 								mes .NPCName$;
  4651. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4652. 								set #AlootSet6ID2,@input;
  4653. 								next;
  4654. 								}
  4655. 							}
  4656. 							case 3:
  4657.  
  4658. 								mes .NPCName$;
  4659. 								mes "Please input the item ID for what you want to autoloot.";
  4660. 								mes "Enter 0 if you wish to leave this option blank.";
  4661. 								input @input;
  4662. 								if (@input == 0)
  4663. 								{
  4664. 								mes ".NPCName$;
  4665. 								mes "There's nothing there, dimwit!";
  4666. 								close;
  4667. 								} else {
  4668. 								if(getiteminfo(@input,0) == -1)
  4669. 								{
  4670. 								mes ".NPCName$;
  4671. 								mes "Sorry, this is not a valid Item ID";
  4672. 								mes "Please try again.";
  4673. 								next;
  4674. 								} else {
  4675. 								mes .NPCName$;
  4676. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4677. 								set #AlootSet6ID3,@input;
  4678. 								next;
  4679. 								}
  4680. 							}							
  4681. 							case 4:
  4682.  
  4683. 								mes .NPCName$;
  4684. 								mes "Please input the item ID for what you want to autoloot.";
  4685. 								mes "Enter 0 if you wish to leave this option blank.";
  4686. 								input @input;
  4687. 								if (@input == 0)
  4688. 								{
  4689. 								mes ".NPCName$;
  4690. 								mes "There's nothing there, dimwit!";
  4691. 								close;
  4692. 								} else {
  4693. 								if(getiteminfo(@input,0) == -1)
  4694. 								{
  4695. 								mes ".NPCName$;
  4696. 								mes "Sorry, this is not a valid Item ID";
  4697. 								mes "Please try again.";
  4698. 								next;
  4699. 								} else {
  4700. 								mes .NPCName$;
  4701. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4702. 								set #AlootSet6ID4,@input;
  4703. 								next;
  4704. 								}
  4705. 							}
  4706. 							case 5:
  4707.  
  4708. 								mes .NPCName$;
  4709. 								mes "Please input the item ID for what you want to autoloot.";
  4710. 								mes "Enter 0 if you wish to leave this option blank.";
  4711. 								input @input;
  4712. 								if (@input == 0)
  4713. 								{
  4714. 								mes ".NPCName$;
  4715. 								mes "There's nothing there, dimwit!";
  4716. 								close;
  4717. 								} else {
  4718. 								if(getiteminfo(@input,0) == -1)
  4719. 								{
  4720. 								mes ".NPCName$;
  4721. 								mes "Sorry, this is not a valid Item ID";
  4722. 								mes "Please try again.";
  4723. 								next;
  4724. 								} else {
  4725. 								mes .NPCName$;
  4726. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4727. 								set #AlootSet6ID5,@input;
  4728. 								next;
  4729. 								}
  4730. 							}			
  4731. 							case 6:
  4732.  
  4733. 								mes .NPCName$;
  4734. 								mes "Please input the item ID for what you want to autoloot.";
  4735. 								mes "Enter 0 if you wish to leave this option blank.";
  4736. 								input @input;
  4737. 								if (@input == 0)
  4738. 								{
  4739. 								mes ".NPCName$;
  4740. 								mes "There's nothing there, dimwit!";
  4741. 								close;
  4742. 								} else {
  4743. 								if(getiteminfo(@input,0) == -1)
  4744. 								{
  4745. 								mes ".NPCName$;
  4746. 								mes "Sorry, this is not a valid Item ID";
  4747. 								mes "Please try again.";
  4748. 								next;
  4749. 								} else {
  4750. 								mes .NPCName$;
  4751. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4752. 								set #AlootSet6ID6,@input;
  4753. 								next;
  4754. 								}
  4755. 							}	
  4756. 							case 7:
  4757.  
  4758. 								mes .NPCName$;
  4759. 								mes "Please input the item ID for what you want to autoloot.";
  4760. 								mes "Enter 0 if you wish to leave this option blank.";
  4761. 								input @input;
  4762. 								if (@input == 0)
  4763. 								{
  4764. 								mes ".NPCName$;
  4765. 								mes "There's nothing there, dimwit!";
  4766. 								close;
  4767. 								} else {
  4768. 								if(getiteminfo(@input,0) == -1)
  4769. 								{
  4770. 								mes ".NPCName$;
  4771. 								mes "Sorry, this is not a valid Item ID";
  4772. 								mes "Please try again.";
  4773. 								next;
  4774. 								} else {
  4775. 								mes .NPCName$;
  4776. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4777. 								set #AlootSet6ID7,@input;
  4778. 								next;
  4779. 								}
  4780. 							}		
  4781. 							case 8:
  4782.  
  4783. 								mes .NPCName$;
  4784. 								mes "Please input the item ID for what you want to autoloot.";
  4785. 								mes "Enter 0 if you wish to leave this option blank.";
  4786. 								input @input;
  4787. 								if (@input == 0)
  4788. 								{
  4789. 								mes ".NPCName$;
  4790. 								mes "There's nothing there, dimwit!";
  4791. 								close;
  4792. 								} else {
  4793. 								if(getiteminfo(@input,0) == -1)
  4794. 								{
  4795. 								mes ".NPCName$;
  4796. 								mes "Sorry, this is not a valid Item ID";
  4797. 								mes "Please try again.";
  4798. 								next;
  4799. 								} else {
  4800. 								mes .NPCName$;
  4801. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4802. 								set #AlootSet6ID8,@input;
  4803. 								next;
  4804. 								}
  4805. 							}		
  4806. 							case 9:
  4807.  
  4808. 								mes .NPCName$;
  4809. 								mes "Please input the item ID for what you want to autoloot.";
  4810. 								mes "Enter 0 if you wish to leave this option blank.";
  4811. 								input @input;
  4812. 								if (@input == 0)
  4813. 								{
  4814. 								mes ".NPCName$;
  4815. 								mes "There's nothing there, dimwit!";
  4816. 								close;
  4817. 								} else {
  4818. 								if(getiteminfo(@input,0) == -1)
  4819. 								{
  4820. 								mes ".NPCName$;
  4821. 								mes "Sorry, this is not a valid Item ID";
  4822. 								mes "Please try again.";
  4823. 								next;
  4824. 								} else {
  4825. 								mes .NPCName$;
  4826. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4827. 								set #AlootSet6ID9,@input;
  4828. 								next;
  4829. 								}
  4830. 							}	
  4831. 							case 10:
  4832.  
  4833. 								mes .NPCName$;
  4834. 								mes "Please input the item ID for what you want to autoloot.";
  4835. 								mes "Enter 0 if you wish to leave this option blank.";
  4836. 								input @input;
  4837. 								if (@input == 0)
  4838. 								{
  4839. 								mes ".NPCName$;
  4840. 								mes "There's nothing there, dimwit!";
  4841. 								close;
  4842. 								} else {
  4843. 								if(getiteminfo(@input,0) == -1)
  4844. 								{
  4845. 								mes ".NPCName$;
  4846. 								mes "Sorry, this is not a valid Item ID";
  4847. 								mes "Please try again.";
  4848. 								next;
  4849. 								} else {
  4850. 								mes .NPCName$;
  4851. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4852. 								set #AlootSet6ID10,@input;
  4853. 								next;
  4854. 								}
  4855. 							}	
  4856. 							case 11:
  4857.  
  4858. 								mes .NPCName$;
  4859. 								mes "Please input the item ID for what you want to autoloot.";
  4860. 								mes "Enter 0 if you wish to leave this option blank.";
  4861. 								input @input;
  4862. 								if (@input == 0)
  4863. 								{
  4864. 								mes ".NPCName$;
  4865. 								mes "There's nothing there, dimwit!";
  4866. 								close;
  4867. 								} else {
  4868. 								if(getiteminfo(@input,0) == -1)
  4869. 								{
  4870. 								mes ".NPCName$;
  4871. 								mes "Sorry, this is not a valid Item ID";
  4872. 								mes "Please try again.";
  4873. 								next;
  4874. 								} else {
  4875. 								mes .NPCName$;
  4876. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4877. 								set #AlootSet6ID11,@input;
  4878. 								next;
  4879. 								}
  4880. 							}	
  4881. 							case 12:
  4882.  
  4883. 								mes .NPCName$;
  4884. 								mes "Please input the item ID for what you want to autoloot.";
  4885. 								mes "Enter 0 if you wish to leave this option blank.";
  4886. 								input @input;
  4887. 								if (@input == 0)
  4888. 								{
  4889. 								mes ".NPCName$;
  4890. 								mes "There's nothing there, dimwit!";
  4891. 								close;
  4892. 								} else {
  4893. 								if(getiteminfo(@input,0) == -1)
  4894. 								{
  4895. 								mes ".NPCName$;
  4896. 								mes "Sorry, this is not a valid Item ID";
  4897. 								mes "Please try again.";
  4898. 								next;
  4899. 								} else {
  4900. 								mes .NPCName$;
  4901. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4902. 								set #AlootSet6ID12,@input;
  4903. 								next;
  4904. 								}
  4905. 							}			
  4906. 							case 13:
  4907.  
  4908. 								mes .NPCName$;
  4909. 								mes "Please input the item ID for what you want to autoloot.";
  4910. 								mes "Enter 0 if you wish to leave this option blank.";
  4911. 								input @input;
  4912. 								if (@input == 0)
  4913. 								{
  4914. 								mes ".NPCName$;
  4915. 								mes "There's nothing there, dimwit!";
  4916. 								close;
  4917. 								} else {
  4918. 								if(getiteminfo(@input,0) == -1)
  4919. 								{
  4920. 								mes ".NPCName$;
  4921. 								mes "Sorry, this is not a valid Item ID";
  4922. 								mes "Please try again.";
  4923. 								next;
  4924. 								} else {
  4925. 								mes .NPCName$;
  4926. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4927. 								set #AlootSet6ID13,@input;
  4928. 								next;
  4929. 								}
  4930. 							}	
  4931. 							case 14:
  4932.  
  4933. 								mes .NPCName$;
  4934. 								mes "Please input the item ID for what you want to autoloot.";
  4935. 								mes "Enter 0 if you wish to leave this option blank.";
  4936. 								input @input;
  4937. 								if (@input == 0)
  4938. 								{
  4939. 								mes ".NPCName$;
  4940. 								mes "There's nothing there, dimwit!";
  4941. 								close;
  4942. 								} else {
  4943. 								if(getiteminfo(@input,0) == -1)
  4944. 								{
  4945. 								mes ".NPCName$;
  4946. 								mes "Sorry, this is not a valid Item ID";
  4947. 								mes "Please try again.";
  4948. 								next;
  4949. 								} else {
  4950. 								mes .NPCName$;
  4951. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4952. 								set #AlootSet6ID14,@input;
  4953. 								next;
  4954. 								}
  4955. 							}	
  4956. 							case 15:
  4957.  
  4958. 								mes .NPCName$;
  4959. 								mes "Please input the item ID for what you want to autoloot.";
  4960. 								mes "Enter 0 if you wish to leave this option blank.";
  4961. 								input @input;
  4962. 								if (@input == 0)
  4963. 								{
  4964. 								mes ".NPCName$;
  4965. 								mes "There's nothing there, dimwit!";
  4966. 								close;
  4967. 								} else {
  4968. 								if(getiteminfo(@input,0) == -1)
  4969. 								{
  4970. 								mes ".NPCName$;
  4971. 								mes "Sorry, this is not a valid Item ID";
  4972. 								mes "Please try again.";
  4973. 								next;
  4974. 								} else {
  4975. 								mes .NPCName$;
  4976. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  4977. 								set #AlootSet6ID15,@input;
  4978. 								next;
  4979. 								}
  4980. 							}		
  4981. 							case 16:
  4982.  
  4983. 								mes .NPCName$;
  4984. 								mes "Please input the item ID for what you want to autoloot.";
  4985. 								mes "Enter 0 if you wish to leave this option blank.";
  4986. 								input @input;
  4987. 								if (@input == 0)
  4988. 								{
  4989. 								mes ".NPCName$;
  4990. 								mes "There's nothing there, dimwit!";
  4991. 								close;
  4992. 								} else {
  4993. 								if(getiteminfo(@input,0) == -1)
  4994. 								{
  4995. 								mes ".NPCName$;
  4996. 								mes "Sorry, this is not a valid Item ID";
  4997. 								mes "Please try again.";
  4998. 								next;
  4999. 								} else {
  5000. 								mes .NPCName$;
  5001. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  5002. 								set #AlootSet6ID16,@input;
  5003. 								next;
  5004. 								}
  5005. 							}		
  5006. 							case 17:
  5007.  
  5008. 								mes .NPCName$;
  5009. 								mes "Please input the item ID for what you want to autoloot.";
  5010. 								mes "Enter 0 if you wish to leave this option blank.";
  5011. 								input @input;
  5012. 								if (@input == 0)
  5013. 								{
  5014. 								mes ".NPCName$;
  5015. 								mes "There's nothing there, dimwit!";
  5016. 								close;
  5017. 								} else {
  5018. 								if(getiteminfo(@input,0) == -1)
  5019. 								{
  5020. 								mes ".NPCName$;
  5021. 								mes "Sorry, this is not a valid Item ID";
  5022. 								mes "Please try again.";
  5023. 								next;
  5024. 								} else {
  5025. 								mes .NPCName$;
  5026. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  5027. 								set #AlootSet6ID17,@input;
  5028. 								next;
  5029. 								}
  5030. 							}		
  5031. 							case 18:
  5032.  
  5033. 								mes .NPCName$;
  5034. 								mes "Please input the item ID for what you want to autoloot.";
  5035. 								mes "Enter 0 if you wish to leave this option blank.";
  5036. 								input @input;
  5037. 								if (@input == 0)
  5038. 								{
  5039. 								mes ".NPCName$;
  5040. 								mes "There's nothing there, dimwit!";
  5041. 								close;
  5042. 								} else {
  5043. 								if(getiteminfo(@input,0) == -1)
  5044. 								{
  5045. 								mes ".NPCName$;
  5046. 								mes "Sorry, this is not a valid Item ID";
  5047. 								mes "Please try again.";
  5048. 								next;
  5049. 								} else {
  5050. 								mes .NPCName$;
  5051. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  5052. 								set #AlootSet6ID18,@input;
  5053. 								next;
  5054. 								}
  5055. 							}		
  5056. 							case 19:
  5057.  
  5058. 								mes .NPCName$;
  5059. 								mes "Please input the item ID for what you want to autoloot.";
  5060. 								mes "Enter 0 if you wish to leave this option blank.";
  5061. 								input @input;
  5062. 								if (@input == 0)
  5063. 								{
  5064. 								mes ".NPCName$;
  5065. 								mes "There's nothing there, dimwit!";
  5066. 								close;
  5067. 								} else {
  5068. 								if(getiteminfo(@input,0) == -1)
  5069. 								{
  5070. 								mes ".NPCName$;
  5071. 								mes "Sorry, this is not a valid Item ID";
  5072. 								mes "Please try again.";
  5073. 								next;
  5074. 								} else {
  5075. 								mes .NPCName$;
  5076. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  5077. 								set #AlootSet6ID19,@input;
  5078. 								next;
  5079. 								}
  5080. 							}		
  5081. 							case 20:
  5082.  
  5083. 								mes .NPCName$;
  5084. 								mes "Please input the item ID for what you want to autoloot.";
  5085. 								mes "Enter 0 if you wish to leave this option blank.";
  5086. 								input @input;
  5087. 								if (@input == 0)
  5088. 								{
  5089. 								mes ".NPCName$;
  5090. 								mes "There's nothing there, dimwit!";
  5091. 								close;
  5092. 								} else {
  5093. 								if(getiteminfo(@input,0) == -1)
  5094. 								{
  5095. 								mes ".NPCName$;
  5096. 								mes "Sorry, this is not a valid Item ID";
  5097. 								mes "Please try again.";
  5098. 								next;
  5099. 								} else {
  5100. 								mes .NPCName$;
  5101. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  5102. 								set #AlootSet6ID20,@input;
  5103. 								next;
  5104. 								}
  5105. 							}			
  5106. 							case 21:
  5107.  
  5108. 								mes .NPCName$;
  5109. 								mes "Please input the item ID for what you want to autoloot.";
  5110. 								mes "Enter 0 if you wish to leave this option blank.";
  5111. 								input @input;
  5112. 								if (@input == 0)
  5113. 								{
  5114. 								mes ".NPCName$;
  5115. 								mes "There's nothing there, dimwit!";
  5116. 								close;
  5117. 								} else {
  5118. 								if(getiteminfo(@input,0) == -1)
  5119. 								{
  5120. 								mes ".NPCName$;
  5121. 								mes "Sorry, this is not a valid Item ID";
  5122. 								mes "Please try again.";
  5123. 								next;
  5124. 								} else {
  5125. 								mes .NPCName$;
  5126. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  5127. 								set #AlootSet6ID21,@input;
  5128. 								next;
  5129. 								}
  5130. 							}	
  5131. 							case 22:
  5132.  
  5133. 								mes .NPCName$;
  5134. 								mes "Please input the item ID for what you want to autoloot.";
  5135. 								mes "Enter 0 if you wish to leave this option blank.";
  5136. 								input @input;
  5137. 								if (@input == 0)
  5138. 								{
  5139. 								mes ".NPCName$;
  5140. 								mes "There's nothing there, dimwit!";
  5141. 								close;
  5142. 								} else {
  5143. 								if(getiteminfo(@input,0) == -1)
  5144. 								{
  5145. 								mes ".NPCName$;
  5146. 								mes "Sorry, this is not a valid Item ID";
  5147. 								mes "Please try again.";
  5148. 								next;
  5149. 								} else {
  5150. 								mes .NPCName$;
  5151. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  5152. 								set #AlootSet6ID22,@input;
  5153. 								next;
  5154. 								}
  5155. 							}		
  5156. 							case 23:
  5157.  
  5158. 								mes .NPCName$;
  5159. 								mes "Please input the item ID for what you want to autoloot.";
  5160. 								mes "Enter 0 if you wish to leave this option blank.";
  5161. 								input @input;
  5162. 								if (@input == 0)
  5163. 								{
  5164. 								mes ".NPCName$;
  5165. 								mes "There's nothing there, dimwit!";
  5166. 								close;
  5167. 								} else {
  5168. 								if(getiteminfo(@input,0) == -1)
  5169. 								{
  5170. 								mes ".NPCName$;
  5171. 								mes "Sorry, this is not a valid Item ID";
  5172. 								mes "Please try again.";
  5173. 								next;
  5174. 								} else {
  5175. 								mes .NPCName$;
  5176. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  5177. 								set #AlootSet6ID23,@input;
  5178. 								next;
  5179. 								}
  5180. 							}			
  5181. 							case 24:
  5182.  
  5183. 								mes .NPCName$;
  5184. 								mes "Please input the item ID for what you want to autoloot.";
  5185. 								mes "Enter 0 if you wish to leave this option blank.";
  5186. 								input @input;
  5187. 								if (@input == 0)
  5188. 								{
  5189. 								mes ".NPCName$;
  5190. 								mes "There's nothing there, dimwit!";
  5191. 								close;
  5192. 								} else {
  5193. 								if(getiteminfo(@input,0) == -1)
  5194. 								{
  5195. 								mes ".NPCName$;
  5196. 								mes "Sorry, this is not a valid Item ID";
  5197. 								mes "Please try again.";
  5198. 								next;
  5199. 								} else {
  5200. 								mes .NPCName$;
  5201. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  5202. 								set #AlootSet6ID24,@input;
  5203. 								next;
  5204. 								}
  5205. 							}	
  5206. 							case 25:
  5207.  
  5208. 								mes .NPCName$;
  5209. 								mes "Please input the item ID for what you want to autoloot.";
  5210. 								mes "Enter 0 if you wish to leave this option blank.";
  5211. 								input @input;
  5212. 								if (@input == 0)
  5213. 								{
  5214. 								mes ".NPCName$;
  5215. 								mes "There's nothing there, dimwit!";
  5216. 								close;
  5217. 								} else {
  5218. 								if(getiteminfo(@input,0) == -1)
  5219. 								{
  5220. 								mes ".NPCName$;
  5221. 								mes "Sorry, this is not a valid Item ID";
  5222. 								mes "Please try again.";
  5223. 								next;
  5224. 								} else {
  5225. 								mes .NPCName$;
  5226. 								mes "Item ID "+@input+" ("+getitemname(@input)+") has been updated on your list.";
  5227. 								set #AlootSet6ID25,@input;
  5228. 								next;
  5229. 								}
  5230. 							}
  5231. 						}
  5232.  
  5233. 		} else {
  5234. 		mes .NPCName$;
  5235. 		mes "You have nothing created in this set!";
  5236. 		mes "Please create a set before editing it.";
  5237. 		close;
  5238. 		}
  5239. 	}
  5240.  
  5241. 		case 4:
  5242. 			mes .NPCName$;
  5243. 			mes "Here I can delete your Alootid-Sets.";
  5244. 			mes "Please choose an existing Set.";
  5245. 			mes "Empty/Unused Sets are shown with \"Nothing\" and can't be deleted.";
  5246. 			if (#LootSet1$ == "") { set @menu$[1], "Nothing"; } else { set @menu$[1], #LootSet1$; }
  5247. 			if (#LootSet2$ == "") { set @menu$[2], "Nothing"; } else { set @menu$[2], #LootSet2$; }
  5248. 			if (#LootSet3$ == "") { set @menu$[3], "Nothing"; } else { set @menu$[3], #LootSet3$; }
  5249. 			if (#LootSet4$ == "") { set @menu$[4], "Nothing"; } else { set @menu$[4], #LootSet4$; }
  5250. 			if (#LootSet5$ == "") { set @menu$[5], "Nothing"; } else { set @menu$[5], #LootSet5$; }
  5251. 			if (#LootSet6$ == "") { set @menu$[6], "Nothing"; } else { set @menu$[6], #LootSet6$; }
  5252. 			next;
  5253. 			switch(select(@menu$[1],@menu$[2],@menu$[3],@menu$[4],@menu$[5],@menu$[6]))
  5254. 			{
  5255. 				case 1:
  5256. 					if (#LootSet1$ != "")
  5257. 					{
  5258. 						mes .NPCName$;
  5259. 						mes "So you want to delete Set 1?";
  5260. 						next;
  5261. 						switch(select("Yes:No"))
  5262. 						{
  5263. 							case 1:
  5264. 								mes .NPCName$;
  5265. 								mes "Set deleted.";
  5266. 								set #LootSet1$, "";
  5267. 								set #AlootSet1ID1, 0;
  5268. 								set #AlootSet1ID2, 0;
  5269. 								set #AlootSet1ID3, 0;
  5270. 								set #AlootSet1ID4, 0;
  5271. 								set #AlootSet1ID5, 0;
  5272. 								set #AlootSet1ID6, 0;
  5273. 								set #AlootSet1ID7, 0;
  5274. 								set #AlootSet1ID8, 0;
  5275. 								set #AlootSet1ID9, 0;
  5276. 								set #AlootSet1ID10, 0;
  5277. 								set #AlootSet1ID11, 0;
  5278. 								set #AlootSet1ID12, 0;
  5279. 								set #AlootSet1ID13, 0;
  5280. 								set #AlootSet1ID14, 0;
  5281. 								set #AlootSet1ID15, 0;
  5282. 								set #AlootSet1ID16, 0;
  5283. 								set #AlootSet1ID17, 0;
  5284. 								set #AlootSet1ID18, 0;
  5285. 								set #AlootSet1ID19, 0;
  5286. 								set #AlootSet1ID20, 0;
  5287. 								set #AlootSet1ID21, 0;
  5288. 								set #AlootSet1ID22, 0;
  5289. 								set #AlootSet1ID23, 0;
  5290. 								set #AlootSet1ID24, 0;
  5291. 								set #AlootSet1ID25, 0;
  5292. 								set set_alootid, 0;
  5293. 								mes "I also toggled the alootid off. Please enable it again and choose a new set.";
  5294. 								close;
  5295.  
  5296. 							case 2:
  5297. 								mes .NPCName$;
  5298. 								mes "Come back if you want to delete a Set.";
  5299. 								close;
  5300. 						}
  5301. 					} else {
  5302. 						mes .NPCName$;
  5303. 						mes "Sorry, but this Set is already empty.";
  5304. 						mes "Nothing to do here.";
  5305. 						close;
  5306. 					}
  5307.  
  5308. 				case 2:
  5309. 					if (#LootSet2$ != "")
  5310. 					{
  5311. 						mes .NPCName$;
  5312. 						mes "So you want to delete Set 2?";
  5313. 						next;
  5314. 						switch(select("Yes:No"))
  5315. 						{
  5316. 							case 1:
  5317. 								mes .NPCName$;
  5318. 								mes "Set deleted.";
  5319. 								set #LootSet2$, "";
  5320. 								set #AlootSet2ID1, 0;
  5321. 								set #AlootSet2ID2, 0;
  5322. 								set #AlootSet2ID3, 0;
  5323. 								set #AlootSet2ID4, 0;
  5324. 								set #AlootSet2ID5, 0;
  5325. 								set #AlootSet2ID6, 0;
  5326. 								set #AlootSet2ID7, 0;
  5327. 								set #AlootSet2ID8, 0;
  5328. 								set #AlootSet2ID9, 0;
  5329. 								set #AlootSet2ID10, 0;
  5330. 								set #AlootSet2ID11, 0;
  5331. 								set #AlootSet2ID12, 0;
  5332. 								set #AlootSet2ID13, 0;
  5333. 								set #AlootSet2ID14, 0;
  5334. 								set #AlootSet2ID15, 0;
  5335. 								set #AlootSet2ID16, 0;
  5336. 								set #AlootSet2ID17, 0;
  5337. 								set #AlootSet2ID18, 0;
  5338. 								set #AlootSet2ID19, 0;
  5339. 								set #AlootSet2ID20, 0;
  5340. 								set #AlootSet2ID21, 0;
  5341. 								set #AlootSet2ID22, 0;
  5342. 								set #AlootSet2ID23, 0;
  5343. 								set #AlootSet2ID24, 0;
  5344. 								set #AlootSet2ID25, 0;
  5345. 								set set_alootid, 0;
  5346. 								mes "I also toggled the alootid off. Please enable it again and choose a new set.";
  5347. 								close;
  5348.  
  5349. 							case 2:
  5350. 								mes .NPCName$;
  5351. 								mes "Come back if you want to delete a Set.";
  5352. 								close;
  5353. 						}
  5354. 					} else {
  5355. 						mes .NPCName$;
  5356. 						mes "Sorry, but this Set is already empty.";
  5357. 						mes "Nothing to do here.";
  5358. 						close;
  5359. 					}
  5360.  
  5361. 				case 3:
  5362. 					if (#LootSet3$ != "")
  5363. 					{
  5364. 						mes .NPCName$;
  5365. 						mes "So you want to delete Set 3?";
  5366. 						next;
  5367. 						switch(select("Yes:No"))
  5368. 						{
  5369. 							case 1:
  5370. 								mes .NPCName$;
  5371. 								mes "Set deleted.";
  5372. 								set #LootSet3$, "";
  5373. 								set #AlootSet3ID1, 0;
  5374. 								set #AlootSet3ID2, 0;
  5375. 								set #AlootSet3ID3, 0;
  5376. 								set #AlootSet3ID4, 0;
  5377. 								set #AlootSet3ID5, 0;
  5378. 								set #AlootSet3ID6, 0;
  5379. 								set #AlootSet3ID7, 0;
  5380. 								set #AlootSet3ID8, 0;
  5381. 								set #AlootSet3ID9, 0;
  5382. 								set #AlootSet3ID10, 0;
  5383. 								set #AlootSet3ID11, 0;
  5384. 								set #AlootSet3ID12, 0;
  5385. 								set #AlootSet3ID13, 0;
  5386. 								set #AlootSet3ID14, 0;
  5387. 								set #AlootSet3ID15, 0;
  5388. 								set #AlootSet3ID16, 0;
  5389. 								set #AlootSet3ID17, 0;
  5390. 								set #AlootSet3ID18, 0;
  5391. 								set #AlootSet3ID19, 0;
  5392. 								set #AlootSet3ID20, 0;
  5393. 								set #AlootSet3ID21, 0;
  5394. 								set #AlootSet3ID22, 0;
  5395. 								set #AlootSet3ID23, 0;
  5396. 								set #AlootSet3ID24, 0;
  5397. 								set #AlootSet3ID25, 0;
  5398. 								set set_alootid, 0;
  5399. 								mes "I also toggled the alootid off. Please enable it again and choose a new set.";
  5400. 								close;
  5401.  
  5402. 							case 2:
  5403. 								mes .NPCName$;
  5404. 								mes "Come back if you want to delete a Set.";
  5405. 								close;
  5406. 						}
  5407. 					} else {
  5408. 						mes .NPCName$;
  5409. 						mes "Sorry, but this Set is already empty.";
  5410. 						mes "Nothing to do here.";
  5411. 						close;
  5412. 					}
  5413.  
  5414. 				case 4:
  5415. 					if (#LootSet4$ != "")
  5416. 					{
  5417. 						mes .NPCName$;
  5418. 						mes "So you want to delete Set 4?";
  5419. 						next;
  5420. 						switch(select("Yes:No"))
  5421. 						{
  5422. 							case 1:
  5423. 								mes .NPCName$;
  5424. 								mes "Set deleted.";
  5425. 								set #LootSet4$, "";
  5426. 								set #AlootSet4ID1, 0;
  5427. 								set #AlootSet4ID2, 0;
  5428. 								set #AlootSet4ID3, 0;
  5429. 								set #AlootSet4ID4, 0;
  5430. 								set #AlootSet4ID5, 0;
  5431. 								set #AlootSet4ID6, 0;
  5432. 								set #AlootSet4ID7, 0;
  5433. 								set #AlootSet4ID8, 0;
  5434. 								set #AlootSet4ID9, 0;
  5435. 								set #AlootSet4ID10, 0;
  5436. 								set #AlootSet4ID11, 0;
  5437. 								set #AlootSet4ID12, 0;
  5438. 								set #AlootSet4ID13, 0;
  5439. 								set #AlootSet4ID14, 0;
  5440. 								set #AlootSet4ID15, 0;
  5441. 								set #AlootSet4ID16, 0;
  5442. 								set #AlootSet4ID17, 0;
  5443. 								set #AlootSet4ID18, 0;
  5444. 								set #AlootSet4ID19, 0;
  5445. 								set #AlootSet4ID20, 0;
  5446. 								set #AlootSet4ID21, 0;
  5447. 								set #AlootSet4ID22, 0;
  5448. 								set #AlootSet4ID23, 0;
  5449. 								set #AlootSet4ID24, 0;
  5450. 								set #AlootSet4ID25, 0;
  5451. 								set set_alootid, 0;
  5452. 								mes "I also toggled the alootid off. Please enable it again and choose a new set.";
  5453. 								close;
  5454.  
  5455. 							case 2:
  5456. 								mes .NPCName$;
  5457. 								mes "Come back if you want to delete a Set.";
  5458. 								close;
  5459. 						}
  5460. 					} else {
  5461. 						mes .NPCName$;
  5462. 						mes "Sorry, but this Set is already empty.";
  5463. 						mes "Nothing to do here.";
  5464. 						close;
  5465. 					}
  5466.  
  5467. 				case 5:
  5468. 					if (#LootSet5$ != "")
  5469. 					{
  5470. 						mes .NPCName$;
  5471. 						mes "So you want to delete Set 5?";
  5472. 						next;
  5473. 						switch(select("Yes:No"))
  5474. 						{
  5475. 							case 1:
  5476. 								mes .NPCName$;
  5477. 								mes "Set deleted.";
  5478. 								set #LootSet5$, "";
  5479. 								set #AlootSet5ID1, 0;
  5480. 								set #AlootSet5ID2, 0;
  5481. 								set #AlootSet5ID3, 0;
  5482. 								set #AlootSet5ID4, 0;
  5483. 								set #AlootSet5ID5, 0;
  5484. 								set #AlootSet5ID6, 0;
  5485. 								set #AlootSet5ID7, 0;
  5486. 								set #AlootSet5ID8, 0;
  5487. 								set #AlootSet5ID9, 0;
  5488. 								set #AlootSet5ID10, 0;
  5489. 								set #AlootSet5ID11, 0;
  5490. 								set #AlootSet5ID12, 0;
  5491. 								set #AlootSet5ID13, 0;
  5492. 								set #AlootSet5ID14, 0;
  5493. 								set #AlootSet5ID15, 0;
  5494. 								set #AlootSet5ID16, 0;
  5495. 								set #AlootSet5ID17, 0;
  5496. 								set #AlootSet5ID18, 0;
  5497. 								set #AlootSet5ID19, 0;
  5498. 								set #AlootSet5ID20, 0;
  5499. 								set #AlootSet5ID21, 0;
  5500. 								set #AlootSet5ID22, 0;
  5501. 								set #AlootSet5ID23, 0;
  5502. 								set #AlootSet5ID24, 0;
  5503. 								set #AlootSet5ID25, 0;
  5504. 								set set_alootid, 0;
  5505. 								mes "I also toggled the alootid off. Please enable it again and choose a new set.";
  5506. 								close;
  5507.  
  5508. 							case 2:
  5509. 								mes .NPCName$;
  5510. 								mes "Come back if you want to delete a Set.";
  5511. 								close;
  5512. 						}
  5513. 					} else {
  5514. 						mes .NPCName$;
  5515. 						mes "Sorry, but this Set is already empty.";
  5516. 						mes "Nothing to do here.";
  5517. 						close;
  5518. 					}
  5519.  
  5520. 					case 6:
  5521. 					if (#LootSet6$ != "")
  5522. 					{
  5523. 						mes .NPCName$;
  5524. 						mes "So you want to delete Set 6?";
  5525. 						next;
  5526. 						switch(select("Yes:No"))
  5527. 						{
  5528. 							case 1:
  5529. 								mes .NPCName$;
  5530. 								mes "Set deleted.";
  5531. 								set #LootSet6$, "";
  5532. 								set #AlootSet6ID1, 0;
  5533. 								set #AlootSet6ID2, 0;
  5534. 								set #AlootSet6ID3, 0;
  5535. 								set #AlootSet6ID4, 0;
  5536. 								set #AlootSet6ID5, 0;
  5537. 								set #AlootSet6ID6, 0;
  5538. 								set #AlootSet6ID7, 0;
  5539. 								set #AlootSet6ID8, 0;
  5540. 								set #AlootSet6ID9, 0;
  5541. 								set #AlootSet6ID10, 0;
  5542. 								set #AlootSet6ID11, 0;
  5543. 								set #AlootSet6ID12, 0;
  5544. 								set #AlootSet6ID13, 0;
  5545. 								set #AlootSet6ID14, 0;
  5546. 								set #AlootSet6ID15, 0;
  5547. 								set #AlootSet6ID16, 0;
  5548. 								set #AlootSet6ID17, 0;
  5549. 								set #AlootSet6ID18, 0;
  5550. 								set #AlootSet6ID19, 0;
  5551. 								set #AlootSet6ID20, 0;
  5552. 								set #AlootSet6ID21, 0;
  5553. 								set #AlootSet6ID22, 0;
  5554. 								set #AlootSet6ID23, 0;
  5555. 								set #AlootSet6ID24, 0;
  5556. 								set #AlootSet6ID25, 0;
  5557. 								set set_alootid, 0;
  5558. 								mes "I also toggled the alootid off. Please enable it again and choose a new set.";
  5559. 								close;
  5560.  
  5561. 							case 2:
  5562. 								mes .NPCName$;
  5563. 								mes "Come back if you want to delete a Set.";
  5564. 								close;
  5565. 						}
  5566. 					} else {
  5567. 						mes .NPCName$;
  5568. 						mes "Sorry, but this Set is already empty.";
  5569. 						mes "Nothing to do here.";
  5570. 						close;
  5571. 					}
  5572. 			}
  5573.  
  5574. 		case 5:
  5575. 			mes .NPCName$;
  5576. 			mes "Come back if you want to change something.";
  5577. 			close;
  5578. 	}
  5579. 	close;
  5580.  
  5581. OnInit:
  5582. 	set .NPCName$, "^0000FF[Howard Alt-Eisen]^000000";
  5583. 	end;
  5584. 	}
  5585.  
  5586. -	script	Alootid	-1,{
  5587. OnPCLoginEvent:
  5588. 	if (set_alootid == 1)
  5589. 	{
  5590. 		switch(set_alootidnr)
  5591. 		{
  5592. 			case 1:
  5593. 				atcommand "@alootid +"+#AlootSet1ID1;
  5594. 				if (#AlootSet1ID2 != 0) { atcommand "@alootid +"+#AlootSet1ID2; }
  5595. 				if (#AlootSet1ID3 != 0) { atcommand "@alootid +"+#AlootSet1ID3; }
  5596. 				if (#AlootSet1ID4 != 0) { atcommand "@alootid +"+#AlootSet1ID4; }
  5597. 				if (#AlootSet1ID5 != 0) { atcommand "@alootid +"+#AlootSet1ID5; }
  5598. 				if (#AlootSet1ID6 != 0) { atcommand "@alootid +"+#AlootSet1ID6; }
  5599. 				if (#AlootSet1ID7 != 0) { atcommand "@alootid +"+#AlootSet1ID7; }
  5600. 				if (#AlootSet1ID8 != 0) { atcommand "@alootid +"+#AlootSet1ID8; }
  5601. 				if (#AlootSet1ID9 != 0) { atcommand "@alootid +"+#AlootSet1ID9; }
  5602. 				if (#AlootSet1ID10 != 0) { atcommand "@alootid +"+#AlootSet1ID10; }
  5603. 				if (#AlootSet1ID11 != 0) { atcommand "@alootid +"+#AlootSet1ID11; }
  5604. 				if (#AlootSet1ID12 != 0) { atcommand "@alootid +"+#AlootSet1ID12; }
  5605. 				if (#AlootSet1ID13 != 0) { atcommand "@alootid +"+#AlootSet1ID13; }
  5606. 				if (#AlootSet1ID14 != 0) { atcommand "@alootid +"+#AlootSet1ID14; }
  5607. 				if (#AlootSet1ID15 != 0) { atcommand "@alootid +"+#AlootSet1ID15; }
  5608. 				if (#AlootSet1ID16 != 0) { atcommand "@alootid +"+#AlootSet1ID16; }
  5609. 				if (#AlootSet1ID17 != 0) { atcommand "@alootid +"+#AlootSet1ID17; }
  5610. 				if (#AlootSet1ID18 != 0) { atcommand "@alootid +"+#AlootSet1ID18; }
  5611. 				if (#AlootSet1ID19 != 0) { atcommand "@alootid +"+#AlootSet1ID19; }
  5612. 				if (#AlootSet1ID20 != 0) { atcommand "@alootid +"+#AlootSet1ID20; }
  5613. 				if (#AlootSet1ID21 != 0) { atcommand "@alootid +"+#AlootSet1ID21; }
  5614. 				if (#AlootSet1ID22 != 0) { atcommand "@alootid +"+#AlootSet1ID22; }
  5615. 				if (#AlootSet1ID23 != 0) { atcommand "@alootid +"+#AlootSet1ID23; }
  5616. 				if (#AlootSet1ID24 != 0) { atcommand "@alootid +"+#AlootSet1ID24; }
  5617. 				if (#AlootSet1ID25 != 0) { atcommand "@alootid +"+#AlootSet1ID25; }
  5618.  
  5619. 				end;
  5620.  
  5621. 			case 2:
  5622. 				atcommand "@alootid +"+#AlootSet2ID1;
  5623. 				if (#AlootSet2ID2 != 0) { atcommand "@alootid +"+#AlootSet2ID2; }
  5624. 				if (#AlootSet2ID3 != 0) { atcommand "@alootid +"+#AlootSet2ID3; }
  5625. 				if (#AlootSet2ID4 != 0) { atcommand "@alootid +"+#AlootSet2ID4; }
  5626. 				if (#AlootSet2ID5 != 0) { atcommand "@alootid +"+#AlootSet2ID5; }
  5627. 				if (#AlootSet2ID6 != 0) { atcommand "@alootid +"+#AlootSet2ID6; }
  5628. 				if (#AlootSet2ID7 != 0) { atcommand "@alootid +"+#AlootSet2ID7; }
  5629. 				if (#AlootSet2ID8 != 0) { atcommand "@alootid +"+#AlootSet2ID8; }
  5630. 				if (#AlootSet2ID9 != 0) { atcommand "@alootid +"+#AlootSet2ID9; }
  5631. 				if (#AlootSet2ID10 != 0) { atcommand "@alootid +"+#AlootSet2ID10; }
  5632. 				if (#AlootSet2ID11 != 0) { atcommand "@alootid +"+#AlootSet2ID11; }
  5633. 				if (#AlootSet2ID12 != 0) { atcommand "@alootid +"+#AlootSet2ID12; }
  5634. 				if (#AlootSet2ID13 != 0) { atcommand "@alootid +"+#AlootSet2ID13; }
  5635. 				if (#AlootSet2ID14 != 0) { atcommand "@alootid +"+#AlootSet2ID14; }
  5636. 				if (#AlootSet2ID15 != 0) { atcommand "@alootid +"+#AlootSet2ID15; }
  5637. 				if (#AlootSet2ID16 != 0) { atcommand "@alootid +"+#AlootSet2ID16; }
  5638. 				if (#AlootSet2ID17 != 0) { atcommand "@alootid +"+#AlootSet2ID17; }
  5639. 				if (#AlootSet2ID18 != 0) { atcommand "@alootid +"+#AlootSet2ID18; }
  5640. 				if (#AlootSet2ID19 != 0) { atcommand "@alootid +"+#AlootSet2ID19; }
  5641. 				if (#AlootSet2ID20 != 0) { atcommand "@alootid +"+#AlootSet2ID20; }
  5642. 				if (#AlootSet2ID21 != 0) { atcommand "@alootid +"+#AlootSet2ID21; }
  5643. 				if (#AlootSet2ID22 != 0) { atcommand "@alootid +"+#AlootSet2ID22; }
  5644. 				if (#AlootSet2ID23 != 0) { atcommand "@alootid +"+#AlootSet2ID23; }
  5645. 				if (#AlootSet2ID24 != 0) { atcommand "@alootid +"+#AlootSet2ID24; }
  5646. 				if (#AlootSet2ID25 != 0) { atcommand "@alootid +"+#AlootSet2ID25; }
  5647. 				end;
  5648.  
  5649. 			case 3:
  5650. 				atcommand "@alootid +"+#AlootSet3ID1;
  5651. 				if (#AlootSet3ID2 != 0) { atcommand "@alootid +"+#AlootSet3ID2; }
  5652. 				if (#AlootSet3ID3 != 0) { atcommand "@alootid +"+#AlootSet3ID3; }
  5653. 				if (#AlootSet3ID4 != 0) { atcommand "@alootid +"+#AlootSet3ID4; }
  5654. 				if (#AlootSet3ID5 != 0) { atcommand "@alootid +"+#AlootSet3ID5; }
  5655. 				if (#AlootSet3ID6 != 0) { atcommand "@alootid +"+#AlootSet3ID6; }
  5656. 				if (#AlootSet3ID7 != 0) { atcommand "@alootid +"+#AlootSet3ID7; }
  5657. 				if (#AlootSet3ID8 != 0) { atcommand "@alootid +"+#AlootSet3ID8; }
  5658. 				if (#AlootSet3ID9 != 0) { atcommand "@alootid +"+#AlootSet3ID9; }
  5659. 				if (#AlootSet3ID10 != 0) { atcommand "@alootid +"+#AlootSet3ID10; }
  5660. 				if (#AlootSet3ID11 != 0) { atcommand "@alootid +"+#AlootSet3ID11; }
  5661. 				if (#AlootSet3ID12 != 0) { atcommand "@alootid +"+#AlootSet3ID12; }
  5662. 				if (#AlootSet3ID13 != 0) { atcommand "@alootid +"+#AlootSet3ID13; }
  5663. 				if (#AlootSet3ID14 != 0) { atcommand "@alootid +"+#AlootSet3ID14; }
  5664. 				if (#AlootSet3ID15 != 0) { atcommand "@alootid +"+#AlootSet3ID15; }
  5665. 				if (#AlootSet3ID16 != 0) { atcommand "@alootid +"+#AlootSet3ID16; }
  5666. 				if (#AlootSet3ID17 != 0) { atcommand "@alootid +"+#AlootSet3ID17; }
  5667. 				if (#AlootSet3ID18 != 0) { atcommand "@alootid +"+#AlootSet3ID18; }
  5668. 				if (#AlootSet3ID19 != 0) { atcommand "@alootid +"+#AlootSet3ID19; }
  5669. 				if (#AlootSet3ID20 != 0) { atcommand "@alootid +"+#AlootSet3ID20; }
  5670. 				if (#AlootSet3ID21 != 0) { atcommand "@alootid +"+#AlootSet3ID21; }
  5671. 				if (#AlootSet3ID22 != 0) { atcommand "@alootid +"+#AlootSet3ID22; }
  5672. 				if (#AlootSet3ID23 != 0) { atcommand "@alootid +"+#AlootSet3ID23; }
  5673. 				if (#AlootSet3ID24 != 0) { atcommand "@alootid +"+#AlootSet3ID24; }
  5674. 				if (#AlootSet3ID25 != 0) { atcommand "@alootid +"+#AlootSet3ID25; }
  5675. 				end;
  5676.  
  5677. 			case 4:
  5678. 				atcommand "@alootid +"+#AlootSet4ID1;
  5679. 				if (#AlootSet4ID2 != 0) { atcommand "@alootid +"+#AlootSet4ID2; }
  5680. 				if (#AlootSet4ID3 != 0) { atcommand "@alootid +"+#AlootSet4ID3; }
  5681. 				if (#AlootSet4ID4 != 0) { atcommand "@alootid +"+#AlootSet4ID4; }
  5682. 				if (#AlootSet4ID5 != 0) { atcommand "@alootid +"+#AlootSet4ID5; }
  5683. 				if (#AlootSet4ID6 != 0) { atcommand "@alootid +"+#AlootSet4ID6; }
  5684. 				if (#AlootSet4ID7 != 0) { atcommand "@alootid +"+#AlootSet4ID7; }
  5685. 				if (#AlootSet4ID8 != 0) { atcommand "@alootid +"+#AlootSet4ID8; }
  5686. 				if (#AlootSet4ID9 != 0) { atcommand "@alootid +"+#AlootSet4ID9; }
  5687. 				if (#AlootSet4ID10 != 0) { atcommand "@alootid +"+#AlootSet4ID10; }
  5688. 				if (#AlootSet4ID11 != 0) { atcommand "@alootid +"+#AlootSet4ID11; }
  5689. 				if (#AlootSet4ID12 != 0) { atcommand "@alootid +"+#AlootSet4ID12; }
  5690. 				if (#AlootSet4ID13 != 0) { atcommand "@alootid +"+#AlootSet4ID13; }
  5691. 				if (#AlootSet4ID14 != 0) { atcommand "@alootid +"+#AlootSet4ID14; }
  5692. 				if (#AlootSet4ID15 != 0) { atcommand "@alootid +"+#AlootSet4ID15; }
  5693. 				if (#AlootSet4ID16 != 0) { atcommand "@alootid +"+#AlootSet4ID16; }
  5694. 				if (#AlootSet4ID17 != 0) { atcommand "@alootid +"+#AlootSet4ID17; }
  5695. 				if (#AlootSet4ID18 != 0) { atcommand "@alootid +"+#AlootSet4ID18; }
  5696. 				if (#AlootSet4ID19 != 0) { atcommand "@alootid +"+#AlootSet4ID19; }
  5697. 				if (#AlootSet4ID20 != 0) { atcommand "@alootid +"+#AlootSet4ID20; }
  5698. 				if (#AlootSet4ID21 != 0) { atcommand "@alootid +"+#AlootSet4ID21; }
  5699. 				if (#AlootSet4ID22 != 0) { atcommand "@alootid +"+#AlootSet4ID22; }
  5700. 				if (#AlootSet4ID23 != 0) { atcommand "@alootid +"+#AlootSet4ID23; }
  5701. 				if (#AlootSet4ID24 != 0) { atcommand "@alootid +"+#AlootSet4ID24; }
  5702. 				if (#AlootSet4ID25 != 0) { atcommand "@alootid +"+#AlootSet4ID25; }
  5703. 				end;
  5704.  
  5705. 			case 5:
  5706. 				atcommand "@alootid +"+#AlootSet5ID1;
  5707. 				if (#AlootSet5ID2 != 0) { atcommand "@alootid +"+#AlootSet5ID2; }
  5708. 				if (#AlootSet5ID3 != 0) { atcommand "@alootid +"+#AlootSet5ID3; }
  5709. 				if (#AlootSet5ID4 != 0) { atcommand "@alootid +"+#AlootSet5ID4; }
  5710. 				if (#AlootSet5ID5 != 0) { atcommand "@alootid +"+#AlootSet5ID5; }
  5711. 				if (#AlootSet5ID6 != 0) { atcommand "@alootid +"+#AlootSet5ID6; }