// TMW2/LoF scripts. // Authors: // TMW-LoF Team // Jesusalva // Description: // Controls the four first levels from Heroes Hold 018-2-2,0,0,0 script #HH_CONTROLLER01 NPC_HIDDEN,{ end; OnPlayerCycle: @HH_TIMER+=1; // 20 minutes have passed. This should be 40 minutes, but the HH is not finished yet if (@HH_TIMER >= 2400) { warp "018-2-1", 0, 0; dispbottom l("You were rescued by DUSTMAN."); // TODO FIXME - the only current way to win is wait 20 minutes .@g=getq2(LoFQuest_HH); setq2 LoFQuest_HH, .@g|@HH_LEVEL; end; } // TODO: Handle traps (We'll use isin() command because you can give 3~4 steps each counter) if (rand(0,1000) <= @HH_LEVEL) { dispbottom l("You step on a trap!"); heal -(@HH_LEVEL*rand(2,5)), 0; } // Continue the execution if (getmap() ~= "018-2-*") addtimer(500, "#HH_CONTROLLER01::OnPlayerCycle"); end; // Initialize Variables. Remember this causes a search for On. And keep same number or CRASH OnInit: // Novice setarray .Novice_Mobs, AngryScorpion,CaveMaggot,MagicGoblin,ViciousSquirrel,AngryBat,RedSlime,AngryRedScorpion,Bandit,Skeleton,GreenSlime, BlueSlime,LavaSlime,RedMushroom,RobinBandit,AngryYellowSlime,OldSnake,GrassSnake,BlackSlime,SmallMagicBif,BronzeChest; setarray .Novice_Ammo, 40, 40, 40, 50, 40, 80, 20, 20, 10, 90, 30, 30, 25, 10, 40, 10, 15, 50, 7, 2; // Intermediary setarray .Interm_Mobs, RedSlime,AngryRedScorpion,Bandit,Skeleton,GreenSlime, BlueSlime,LavaSlime,RedMushroom,RobinBandit, AngryYellowSlime,OldSnake,GrassSnake,BlackSlime,Wolvern,DarkLizard,BlackScorpion,DustRevolver,MagicBif,SilverChest; setarray .Interm_Ammo, 80, 50, 50, 10, 90, 30, 60, 35, 20, 50, 20, 25, 50, 30, 20, 25, 5, 7, 2; // Advanced setarray .Advanc_Mobs, AngryYellowSlime,Snake,GrassSnake,BlackSlime,Wolvern,DarkLizard,BlackScorpion,DustRevolver,MagicBif,SilverChest, MountainSnake, Yeti, WickedMushroom,Forain,GoldenChest,BigMagicBif,DustGatling; setarray .Advanc_Ammo, 50, 30, 35, 90, 30, 30, 45, 15, 7, 2, 15, 10, 30, 5, 2, 1, 10; // Expert setarray .Expert_Mobs, MountainSnake, Yeti, WickedMushroom,Forain,GoldenChest,BigMagicBif,DustGatling,BlackMamba,Terranite, Wolvern, PrismChest, BlueSlime, GreenDragon; setarray .Expert_Ammo, 45, 30, 90, 35, 3, 7, 30, 20, 15, 10, 1, 140, 15; // Master setarray .Master_Mobs, SupremeChest,BlueSlime,MurdererScorpion,Tipiou,AlphaMouboo,BanditLord,Tipiu,GreenDragon,GiantMutatedBat,FallenKing1, FallenKing2, EvilScythe, YetiKing, MonsterKing; setarray .Master_Ammo, 1, 140, 20, 20, 20, 20, 20, 20, 20, 10, 10, 1, 7, 1; // HH_MASTER freeloop(true); for (.@i=0;.@i