Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Main
- {
- questname "Heroes Call (Group)"
- version 1.0
- }
- state Begin
- {
- action AddNpcChat(62, "Only a Group Leader over level 100 can start the Heroes Call War Games!");
- if IsLeader() goto CheckLeader1
- elseif InParty() goto GetLeader1
- else goto GetParty1
- }
- state GetLeader1
- {
- action AddNpcChat(62, "You will need to get your Group Leader to talk to me [name].");
- action Reset();
- }
- state GetParty1
- {
- action AddNpcChat(62, "You need to be in a group for the Heroes Call War Games [name], maybe create one and lead?");
- action Reset();
- }
- state GetLevel1
- {
- action AddNpcChat(62, "The Group Leader becomes your teams General and must be over level 100, [name].");
- action Reset();
- }
- state CheckLeader1
- {
- if IsLevel(100) goto Begin1
- else goto GetLevel1
- }
- State NoFunds1
- {
- action AddNpcChat(62, "Insufficient funds, [name].");
- action Reset();
- }
- state Begin1
- {
- desc "Heroes Call (Group)"
- action AddNpcText(62, "Welcome to the Heroes Call War Games [name]!");
- action AddNpcText(62, "When you and your group are ready, I can start the Heroes Call!");
- action AddNpcText(62, "Each attempt will cost 50 Gold Coin, though the rewards you can acquire inside are considerable!");
- action AddNpcText(62, "If your fail and are unable to complete it, you must speak to the Reset NPC at the entrance to start it again.");
- action AddNpcText(62, "It is important that you brief your group on what to do, you will be your teams General!");
- action AddNpcText(62, "Once we begin, your whole team will be summoned to the battleground, to win, you must defeat 5 of the opposing teams Captains, then defeat the opposing teams General.");
- action AddNpcText(62, "Your team will have to fight its way through the opposing teams forces to complete the objectives, working as a team is a good idea!");
- action AddNpcText(62, "If you are new to the Heroes Call War Games, take this time now to explain the rules to your team members...");
- action AddNpcInput(62,1,"We are ready.");
- action AddNpcInput(62,2,"We are not ready.");
- rule InputNpc(1) goto ReadyCheck
- rule InputNpc(2) goto Reset
- }
- state Reset
- {
- action Reset();
- }
- state ReadyCheck
- {
- desc "HC - Kill Captains"
- action AddNpcText(62, "Everything is ready to go [name]! You will now be charged 50 Gold coin and your team will be mobilized for battle.");
- action AddNpcInput(62,1,"Begin.");
- rule InputNpc(1) goto PayFee1
- }
- State PayFee1
- {
- if GotItems(443, 50) goto PayFee2
- else SetState("NoFunds1");
- }
- State PayFee2
- {
- action RemoveItem(443, 50);
- action PlaySound(5);
- action ShowHint("Heroes Call War Games has begun!");
- action SetState("KillCaptains1");
- }
- state KillCaptains1
- {
- action SetCoord(48,17,79);
- action SpawnNpc(294,2);
- action SetCoord(48,13,73);
- action SpawnNpc(295,5);
- action SetCoord(48,28,86);
- action SpawnNpc(295,5);
- action SetState("KillCaptains2");
- }
- state KillCaptains2
- {
- action SetCoord(48,79,18);
- action SpawnNpc(294,2);
- action SetCoord(48,69,12);
- action SpawnNpc(295,5);
- action SetCoord(48,87,28);
- action SpawnNpc(295,5);
- action SetState("KillCaptains3");
- }
- state KillCaptains3
- {
- action SetCoord(48,71,73);
- action SpawnNpc(294,2);
- action SetCoord(48,63,78);
- action SpawnNpc(295,3);
- action SetCoord(48,77,63);
- action SpawnNpc(295,3);
- action SetState("KillCaptains4");
- }
- state KillCaptains4
- {
- action SetCoord(48,42,42);
- action SpawnNpc(295,5);
- action SetCoord(48,32,45);
- action SpawnNpc(293,5);
- action SetCoord(48,47,32);
- action SpawnNpc(293,5);
- action SetState("SummonTeam1");
- }
- state SummonTeam1
- {
- action SetCoord(48,15,15);
- action SetState("SummonTeam2");
- }
- state SummonTeam2
- {
- action PartyWarp(48,15,15);
- action SetState("KillCaptains5");
- }
- state KillCaptains5
- {
- desc "HC - Kill Captains"
- action ShowHint("Heroes Call War Game has begun!");
- rule KilledNpcs(294,5) goto SummonTeam3
- }
- state SummonTeam3
- {
- action SetCoord(48,15,15);
- action SetState("SummonTeam4");
- }
- state SummonTeam4
- {
- action PartyWarp(48,15,15);
- action SetState("KillGeneral1");
- }
- state KillGeneral1
- {
- action SetCoord(48,44,44);
- action SpawnNpc(296,1);
- action SetCoord(48,15,15);
- action SetState("KillGeneral2");
- }
- state KillGeneral2
- {
- desc "HC - Kill General"
- action ShowHint("The enemy General has come on to the battlefield!");
- action ShowHint("Kill the enemy General!");
- rule KilledNpcs(296,1) goto Win1
- }
- state Win1
- {
- action ShowHint("Your team has defeated the opposing team!");
- action ShowHint("Rewarding all party members now, well done!");
- action GivePartyItem(583, 5);
- action SetState("Reset");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement