// Evol scripts. // Author: // 4144 // Description: // if COOKING_RECIPES[id] is set to true, you know how to make it boss,29,27,0 script micksha NPC_FEMALE,{ if (!is_admin()) { mesc "Error 13: Permission Denied", 1; close; } do { mesn; mesc l("You know recipes @@", COOKING_RECIPES); mesc l("You need Recipe Book @@", getitemlink(ThetaBook)); mes l("Code: @@", CraftCarpCocktail); select ("Let's craft"), ("Toggle recipe 1 - Carp"), ("Toggle recipe 2 - Manana"), ("Toggle recipe 4 - Piou Leg"), ("Leave"); mes ""; switch (@menu) { case 1: setskin "craft4"; .@var$ = requestcraft(4); .@craft = initcraft(.@var$); .@entry = findcraftentry(.@craft, 4); mes "found craft entry: " + .@entry; if (.@entry < 0) { mes "This didn't work!"; } else { // Check against COOKING_RECIPES // using CraftCarpCocktail for example (Craft ID) // Checking somehow if you know it (array_find?) if (COOKING_RECIPES[.@entry]) { usecraft .@craft; mes "done!"; } else { mes "This didn't work!"; } } deletecraft .@craft; setskin ""; break; case 2: COOKING_RECIPES[CraftCarpCocktail]=!COOKING_RECIPES[CraftCarpCocktail]; break; case 3: COOKING_RECIPES[CraftMananaCocktail]=!COOKING_RECIPES[CraftMananaCocktail]; break; case 4: COOKING_RECIPES[CraftLegsCocktail]=!COOKING_RECIPES[CraftLegsCocktail]; break; } } while (@menu != 5); close; OnInit: .sex = G_MALE; .distance = 5; end; }