Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Main
- {
- questname "Trade Ships (20x Daily)"
- version 1
- }
- state Begin
- {
- desc "Trade Menu (Daily Trading)"
- action ShowHint("You will be charged if you proceed with a trade...");
- action AddNpcText(30,"Trade Ship Search: 20x per day search limit.");
- action AddNpcInput(30,1,"Search to buy resources.");
- action AddNpcInput(30,2,"Search to sell resources.");
- action AddNpcInput(30,3,"Cancel.");
- rule InputNpc(1) goto BuyMenuRoll
- rule InputNpc(2) goto SellMenuRoll
- rule InputNpc(3) goto Reset
- }
- State BuyMenuRoll
- {
- action Roll(7)
- rule DoneDaily(20) goto DailyResetDialogue
- rule Rolled(1) goto BuyMenu1
- rule Rolled(2) goto BuyMenu2
- rule Rolled(3) goto BuyMenu3
- rule Rolled(4) goto BuyMenu4
- rule Rolled(5) goto BuyMenu5
- rule Rolled(6) goto BuyMenu6
- rule Rolled(7) goto BuyMenu7
- }
- State SellMenuRoll
- {
- action Roll(7)
- rule DoneDaily(20) goto DailyResetDialogue
- rule Rolled(1) goto SellMenu1
- rule Rolled(2) goto SellMenu2
- rule Rolled(3) goto SellMenu3
- rule Rolled(4) goto SellMenu4
- rule Rolled(5) goto SellMenu5
- rule Rolled(6) goto SellMenu6
- rule Rolled(7) goto SellMenu7
- }
- state BuyMenu1
- {
- desc "Trade Menu (Daily Trading)"
- action ShowHint("You will be charged if you proceed with a trade...");
- action AddNpcText(30,"Ship: The Everglow - Buy");
- action AddNpcInput(30,1,"100 Stone [658c]");
- action AddNpcInput(30,2,"100 Clay [752c]");
- action AddNpcInput(30,3,"100 Wood [357c]");
- action AddNpcInput(30,4,"100 Metal [851c]");
- action AddNpcInput(30,5,"100 Berries [165c]");
- action AddNpcInput(30,6,"Reject Trade");
- rule InputNpc(1) goto BuyMenu1Stone
- rule InputNpc(2) goto BuyMenu1Clay
- rule InputNpc(3) goto BuyMenu1Wood
- rule InputNpc(4) goto BuyMenu1Metal
- rule InputNpc(5) goto BuyMenu1Berries
- rule InputNpc(6) goto ResetNoExp
- }
- state BuyMenu1Stone
- {
- if GotItems(1,658) goto BuyMenu1Stone1
- else SetState("nofunds");
- }
- state BuyMenu1Clay
- {
- if GotItems(1,752) goto BuyMenu1Clay1
- else SetState("nofunds");
- }
- state BuyMenu1Wood
- {
- if GotItems(1,357) goto BuyMenu1Wood1
- else SetState("nofunds");
- }
- state BuyMenu1Metal
- {
- if GotItems(1,851) goto BuyMenu1Metal1
- else SetState("nofunds");
- }
- state BuyMenu1Berries
- {
- if GotItems(1,165) goto BuyMenu1Berries1
- else SetState("nofunds");
- }
- state BuyMenu1Stone1
- {
- action RemoveItem(1,658);
- action GiveItem(193,100);
- action ShowHint("You have purchased 100 Stone!");
- action SetState("GetReward");
- }
- state BuyMenu1Clay1
- {
- action RemoveItem(1,752);
- action GiveItem(194,100);
- action ShowHint("You have purchased 100 Clay!");
- action SetState("GetReward");
- }
- state BuyMenu1Wood1
- {
- action RemoveItem(1,357);
- action GiveItem(195,100);
- action ShowHint("You have purchased 100 Wood!");
- action SetState("GetReward");
- }
- state BuyMenu1Metal1
- {
- action RemoveItem(1,851);
- action GiveItem(196,100);
- action ShowHint("You have purchased 100 Metal!");
- action SetState("GetReward");
- }
- state BuyMenu1Berries1
- {
- action RemoveItem(1,165);
- action GiveItem(197,100);
- action ShowHint("You have purchased 100 Berries!");
- action SetState("GetReward");
- }
- state BuyMenu2
- {
- desc "Trade Menu (Daily Trading)"
- action ShowHint("You will be charged if you proceed with a trade...");
- action AddNpcText(30,"Ship: The Trident - Buy");
- action AddNpcInput(30,1,"100 Stone [743c]");
- action AddNpcInput(30,2,"100 Clay [627c]");
- action AddNpcInput(30,3,"100 Wood [431c]");
- action AddNpcInput(30,4,"100 Metal [1012c]");
- action AddNpcInput(30,5,"100 Berries [202c]");
- action AddNpcInput(30,6,"Reject Trade");
- rule InputNpc(1) goto BuyMenu2Stone
- rule InputNpc(2) goto BuyMenu2Clay
- rule InputNpc(3) goto BuyMenu2Wood
- rule InputNpc(4) goto BuyMenu2Metal
- rule InputNpc(5) goto BuyMenu2Berries
- rule InputNpc(6) goto ResetNoExp
- }
- state BuyMenu2Stone
- {
- if GotItems(1,743) goto BuyMenu2Stone2
- else SetState("nofunds");
- }
- state BuyMenu2Clay
- {
- if GotItems(1,627) goto BuyMenu2Clay2
- else SetState("nofunds");
- }
- state BuyMenu2Wood
- {
- if GotItems(1,431) goto BuyMenu2Wood2
- else SetState("nofunds");
- }
- state BuyMenu2Metal
- {
- if GotItems(1,1012) goto BuyMenu2Metal2
- else SetState("nofunds");
- }
- state BuyMenu2Berries
- {
- if GotItems(1,202) goto BuyMenu2Berries2
- else SetState("nofunds");
- }
- state BuyMenu2Stone2
- {
- action RemoveItem(1,743);
- action GiveItem(193,100);
- action ShowHint("You have purchased 100 Stone!");
- action SetState("GetReward");
- }
- state BuyMenu2Clay2
- {
- action RemoveItem(1,627);
- action GiveItem(194,100);
- action ShowHint("You have purchased 100 Clay!");
- action SetState("GetReward");
- }
- state BuyMenu2Wood2
- {
- action RemoveItem(1,431);
- action GiveItem(195,100);
- action ShowHint("You have purchased 100 Wood!");
- action SetState("GetReward");
- }
- state BuyMenu2Metal2
- {
- action RemoveItem(1,1012);
- action GiveItem(196,100);
- action ShowHint("You have purchased 100 Metal!");
- action SetState("GetReward");
- }
- state BuyMenu2Berries2
- {
- action RemoveItem(1,202);
- action GiveItem(197,100);
- action ShowHint("You have purchased 100 Berries!");
- action SetState("GetReward");
- }
- state BuyMenu3
- {
- desc "Trade Menu (Daily Trading)"
- action ShowHint("You will be charged if you proceed with a trade...");
- action AddNpcText(30,"Ship: The Gaunt - Buy");
- action AddNpcInput(30,1,"100 Stone [817c]");
- action AddNpcInput(30,2,"100 Clay [689c]");
- action AddNpcInput(30,3,"100 Wood [474c]");
- action AddNpcInput(30,4,"100 Metal [1102c]");
- action AddNpcInput(30,5,"100 Berries [221c]");
- action AddNpcInput(30,6,"Reject Trade");
- rule InputNpc(1) goto BuyMenu3Stone
- rule InputNpc(2) goto BuyMenu3Clay
- rule InputNpc(3) goto BuyMenu3Wood
- rule InputNpc(4) goto BuyMenu3Metal
- rule InputNpc(5) goto BuyMenu3Berries
- rule InputNpc(6) goto ResetNoExp
- }
- state BuyMenu3Stone
- {
- if GotItems(1,817) goto BuyMenu3Stone3
- else SetState("nofunds");
- }
- state BuyMenu3Clay
- {
- if GotItems(1,689) goto BuyMenu3Clay3
- else SetState("nofunds");
- }
- state BuyMenu3Wood
- {
- if GotItems(1,474) goto BuyMenu3Wood3
- else SetState("nofunds");
- }
- state BuyMenu3Metal
- {
- if GotItems(1,1102) goto BuyMenu3Metal3
- else SetState("nofunds");
- }
- state BuyMenu3Berries
- {
- if GotItems(1,221) goto BuyMenu3Berries3
- else SetState("nofunds");
- }
- state BuyMenu3Stone3
- {
- action RemoveItem(1,817);
- action GiveItem(193,100);
- action ShowHint("You have purchased 100 Stone!");
- action SetState("GetReward");
- }
- state BuyMenu3Clay3
- {
- action RemoveItem(1,689);
- action GiveItem(194,100);
- action ShowHint("You have purchased 100 Clay!");
- action SetState("GetReward");
- }
- state BuyMenu3Wood3
- {
- action RemoveItem(1,474);
- action GiveItem(195,100);
- action ShowHint("You have purchased 100 Wood!");
- action SetState("GetReward");
- }
- state BuyMenu3Metal3
- {
- action RemoveItem(1,1102);
- action GiveItem(196,100);
- action ShowHint("You have purchased 100 Metal!");
- action SetState("GetReward");
- }
- state BuyMenu3Berries3
- {
- action RemoveItem(1,221);
- action GiveItem(197,100);
- action ShowHint("You have purchased 100 Berries!");
- action SetState("GetReward");
- }
- state BuyMenu4
- {
- desc "Trade Menu (Daily Trading)"
- action ShowHint("You will be charged if you proceed with a trade...");
- action AddNpcText(30,"Ship: The Hallowed - Buy");
- action AddNpcInput(30,1,"100 Stone [898c]");
- action AddNpcInput(30,2,"100 Clay [757c]");
- action AddNpcInput(30,3,"100 Wood [521c]");
- action AddNpcInput(30,4,"100 Metal [1212c]");
- action AddNpcInput(30,5,"100 Berries [243c]");
- action AddNpcInput(30,6,"Reject Trade");
- rule InputNpc(1) goto BuyMenu4Stone
- rule InputNpc(2) goto BuyMenu4Clay
- rule InputNpc(3) goto BuyMenu4Wood
- rule InputNpc(4) goto BuyMenu4Metal
- rule InputNpc(5) goto BuyMenu4Berries
- rule InputNpc(6) goto ResetNoExp
- }
- state BuyMenu4Stone
- {
- if GotItems(1,898) goto BuyMenu4Stone4
- else SetState("nofunds");
- }
- state BuyMenu4Clay
- {
- if GotItems(1,757) goto BuyMenu4Clay4
- else SetState("nofunds");
- }
- state BuyMenu4Wood
- {
- if GotItems(1,521) goto BuyMenu4Wood4
- else SetState("nofunds");
- }
- state BuyMenu4Metal
- {
- if GotItems(1,1212) goto BuyMenu4Metal4
- else SetState("nofunds");
- }
- state BuyMenu4Berries
- {
- if GotItems(1,243) goto BuyMenu4Berries4
- else SetState("nofunds");
- }
- state BuyMenu4Stone4
- {
- action RemoveItem(1,898);
- action GiveItem(193,100);
- action ShowHint("You have purchased 100 Stone!");
- action SetState("GetReward");
- }
- state BuyMenu4Clay4
- {
- action RemoveItem(1,757);
- action GiveItem(194,100);
- action ShowHint("You have purchased 100 Clay!");
- action SetState("GetReward");
- }
- state BuyMenu4Wood4
- {
- action RemoveItem(1,521);
- action GiveItem(195,100);
- action ShowHint("You have purchased 100 Wood!");
- action SetState("GetReward");
- }
- state BuyMenu4Metal4
- {
- action RemoveItem(1,1212);
- action GiveItem(196,100);
- action ShowHint("You have purchased 100 Metal!");
- action SetState("GetReward");
- }
- state BuyMenu4Berries4
- {
- action RemoveItem(1,243);
- action GiveItem(197,100);
- action ShowHint("You have purchased 100 Berries!");
- action SetState("GetReward");
- }
- state BuyMenu5
- {
- desc "Trade Menu (Daily Trading)"
- action ShowHint("You will be charged if you proceed with a trade...");
- action AddNpcText(30,"Ship: The Shanty - Buy");
- action AddNpcInput(30,1,"100 Stone [987c]");
- action AddNpcInput(30,2,"100 Clay [832c]");
- action AddNpcInput(30,3,"100 Wood [573c]");
- action AddNpcInput(30,4,"100 Metal [1330c]");
- action AddNpcInput(30,5,"100 Berries [267c]");
- action AddNpcInput(30,6,"Reject Trade");
- rule InputNpc(1) goto BuyMenu5Stone
- rule InputNpc(2) goto BuyMenu5Clay
- rule InputNpc(3) goto BuyMenu5Wood
- rule InputNpc(4) goto BuyMenu5Metal
- rule InputNpc(5) goto BuyMenu5Berries
- rule InputNpc(6) goto ResetNoExp
- }
- state BuyMenu5Stone
- {
- if GotItems(1,987) goto BuyMenu5Stone5
- else SetState("nofunds");
- }
- state BuyMenu5Clay
- {
- if GotItems(1,832) goto BuyMenu5Clay5
- else SetState("nofunds");
- }
- state BuyMenu5Wood
- {
- if GotItems(1,573) goto BuyMenu5Wood5
- else SetState("nofunds");
- }
- state BuyMenu5Metal
- {
- if GotItems(1,1330) goto BuyMenu5Metal5
- else SetState("nofunds");
- }
- state BuyMenu5Berries
- {
- if GotItems(1,267) goto BuyMenu5Berries5
- else SetState("nofunds");
- }
- state BuyMenu5Stone5
- {
- action RemoveItem(1,987);
- action GiveItem(193,100);
- action ShowHint("You have purchased 100 Stone!");
- action SetState("GetReward");
- }
- state BuyMenu5Clay5
- {
- action RemoveItem(1,832);
- action GiveItem(194,100);
- action ShowHint("You have purchased 100 Clay!");
- action SetState("GetReward");
- }
- state BuyMenu5Wood5
- {
- action RemoveItem(1,573);
- action GiveItem(195,100);
- action ShowHint("You have purchased 100 Wood!");
- action SetState("GetReward");
- }
- state BuyMenu5Metal5
- {
- action RemoveItem(1,1330);
- action GiveItem(196,100);
- action ShowHint("You have purchased 100 Metal!");
- action SetState("GetReward");
- }
- state BuyMenu5Berries5
- {
- action RemoveItem(1,267);
- action GiveItem(197,100);
- action ShowHint("You have purchased 100 Berries!");
- action SetState("GetReward");
- }
- state BuyMenu6
- {
- desc "Trade Menu (Daily Trading)"
- action ShowHint("You will be charged if you proceed with a trade...");
- action AddNpcText(30,"Ship: The Quicken - Buy");
- action AddNpcInput(30,1,"100 Stone [1085c]");
- action AddNpcInput(30,2,"100 Clay [915c]");
- action AddNpcInput(30,3,"100 Wood [630c]");
- action AddNpcInput(30,4,"100 Metal [1463c]");
- action AddNpcInput(30,5,"100 Berries [293c]");
- action AddNpcInput(30,6,"Reject Trade");
- rule InputNpc(1) goto BuyMenu6Stone
- rule InputNpc(2) goto BuyMenu6Clay
- rule InputNpc(3) goto BuyMenu6Wood
- rule InputNpc(4) goto BuyMenu6Metal
- rule InputNpc(5) goto BuyMenu6Berries
- rule InputNpc(6) goto ResetNoExp
- }
- state BuyMenu6Stone
- {
- if GotItems(1,1085) goto BuyMenu6Stone6
- else SetState("nofunds");
- }
- state BuyMenu6Clay
- {
- if GotItems(1,915) goto BuyMenu6Clay6
- else SetState("nofunds");
- }
- state BuyMenu6Wood
- {
- if GotItems(1,630) goto BuyMenu6Wood6
- else SetState("nofunds");
- }
- state BuyMenu6Metal
- {
- if GotItems(1,1463) goto BuyMenu6Metal6
- else SetState("nofunds");
- }
- state BuyMenu6Berries
- {
- if GotItems(1,293) goto BuyMenu6Berries6
- else SetState("nofunds");
- }
- state BuyMenu6Stone6
- {
- action RemoveItem(1,1085);
- action GiveItem(193,100);
- action ShowHint("You have purchased 100 Stone!");
- action SetState("GetReward");
- }
- state BuyMenu6Clay6
- {
- action RemoveItem(1,915);
- action GiveItem(194,100);
- action ShowHint("You have purchased 100 Clay!");
- action SetState("GetReward");
- }
- state BuyMenu6Wood6
- {
- action RemoveItem(1,630);
- action GiveItem(195,100);
- action ShowHint("You have purchased 100 Wood!");
- action SetState("GetReward");
- }
- state BuyMenu6Metal6
- {
- action RemoveItem(1,1463);
- action GiveItem(196,100);
- action ShowHint("You have purchased 100 Metal!");
- action SetState("GetReward");
- }
- state BuyMenu6Berries6
- {
- action RemoveItem(1,293);
- action GiveItem(197,100);
- action ShowHint("You have purchased 100 Berries!");
- action SetState("GetReward");
- }
- state BuyMenu7
- {
- desc "Trade Menu (Daily Trading)"
- action ShowHint("You will be charged if you proceed with a trade...");
- action AddNpcText(30,"Ship: The Argent - Buy");
- action AddNpcInput(30,1,"100 Stone [1085c]");
- action AddNpcInput(30,2,"100 Clay [915c]");
- action AddNpcInput(30,3,"100 Wood [630c]");
- action AddNpcInput(30,4,"100 Metal [1463c]");
- action AddNpcInput(30,5,"100 Berries [293c]");
- action AddNpcInput(30,6,"Reject Trade");
- rule InputNpc(1) goto BuyMenu7Stone
- rule InputNpc(2) goto BuyMenu7Clay
- rule InputNpc(3) goto BuyMenu7Wood
- rule InputNpc(4) goto BuyMenu7Metal
- rule InputNpc(5) goto BuyMenu7Berries
- rule InputNpc(6) goto ResetNoExp
- }
- state BuyMenu7Stone
- {
- if GotItems(1,1085) goto BuyMenu7Stone7
- else SetState("nofunds");
- }
- state BuyMenu7Clay
- {
- if GotItems(1,915) goto BuyMenu7Clay7
- else SetState("nofunds");
- }
- state BuyMenu7Wood
- {
- if GotItems(1,630) goto BuyMenu7Wood7
- else SetState("nofunds");
- }
- state BuyMenu7Metal
- {
- if GotItems(1,1463) goto BuyMenu7Metal7
- else SetState("nofunds");
- }
- state BuyMenu7Berries
- {
- if GotItems(1,293) goto BuyMenu7Berries7
- else SetState("nofunds");
- }
- state BuyMenu7Stone7
- {
- action RemoveItem(1,1085);
- action GiveItem(193,100);
- action ShowHint("You have purchased 100 Stone!");
- action SetState("GetReward");
- }
- state BuyMenu7Clay7
- {
- action RemoveItem(1,915);
- action GiveItem(194,100);
- action ShowHint("You have purchased 100 Clay!");
- action SetState("GetReward");
- }
- state BuyMenu7Wood7
- {
- action RemoveItem(1,630);
- action GiveItem(195,100);
- action ShowHint("You have purchased 100 Wood!");
- action SetState("GetReward");
- }
- state BuyMenu7Metal7
- {
- action RemoveItem(1,1463);
- action GiveItem(196,100);
- action ShowHint("You have purchased 100 Metal!");
- action SetState("GetReward");
- }
- state BuyMenu7Berries7
- {
- action RemoveItem(1,293);
- action GiveItem(197,100);
- action ShowHint("You have purchased 100 Berries!");
- action SetState("GetReward");
- }
- state SellMenu1
- {
- desc "Trade Menu (Daily Trading)"
- action ShowHint("You will be charged if you proceed with a trade...");
- action AddNpcText(30,"Ship: The Everglow - Sell");
- action AddNpcInput(30,1,"100 Stone [658c]");
- action AddNpcInput(30,2,"100 Clay [752c]");
- action AddNpcInput(30,3,"100 Wood [357c]");
- action AddNpcInput(30,4,"100 Metal [851c]");
- action AddNpcInput(30,5,"100 Berries [165c]");
- action AddNpcInput(30,6,"Reject Trade");
- rule InputNpc(1) goto SellMenu1Stone
- rule InputNpc(2) goto SellMenu1Clay
- rule InputNpc(3) goto SellMenu1Wood
- rule InputNpc(4) goto SellMenu1Metal
- rule InputNpc(5) goto SellMenu1Berries
- rule InputNpc(6) goto ResetNoExp
- }
- state SellMenu1Stone
- {
- if GotItems(193,100) goto SellMenu1Stone1
- else SetState("nofunds1");
- }
- state SellMenu1Clay
- {
- if GotItems(194,100) goto SellMenu1Clay1
- else SetState("nofunds1");
- }
- state SellMenu1Wood
- {
- if GotItems(195,100) goto SellMenu1Wood1
- else SetState("nofunds1");
- }
- state SellMenu1Metal
- {
- if GotItems(196,100) goto SellMenu1Metal1
- else SetState("nofunds1");
- }
- state SellMenu1Berries
- {
- if GotItems(197,100) goto SellMenu1Berries1
- else SetState("nofunds1");
- }
- state SellMenu1Stone1
- {
- action RemoveItem(193,100);
- action GiveItem(1,658);
- action ShowHint("You have sold 100 Stone!");
- action SetState("GetReward");
- }
- state SellMenu1Clay1
- {
- action RemoveItem(194,100);
- action GiveItem(1,752);
- action ShowHint("You have sold 100 Clay!");
- action SetState("GetReward");
- }
- state SellMenu1Wood1
- {
- action RemoveItem(195,100);
- action GiveItem(1,357);
- action ShowHint("You have sold 100 Wood!");
- action SetState("GetReward");
- }
- state SellMenu1Metal1
- {
- action RemoveItem(196,100);
- action GiveItem(1,851);
- action ShowHint("You have sold 100 Metal!");
- action SetState("GetReward");
- }
- state SellMenu1Berries1
- {
- action RemoveItem(197,100);
- action GiveItem(1,165);
- action ShowHint("You have sold 100 Berries!");
- action SetState("GetReward");
- }
- state SellMenu2
- {
- desc "Trade Menu (Daily Trading)"
- action ShowHint("You will be charged if you proceed with a trade...");
- action AddNpcText(30,"Ship: The Trident - Sell");
- action AddNpcInput(30,1,"100 Stone [743c]");
- action AddNpcInput(30,2,"100 Clay [627c]");
- action AddNpcInput(30,3,"100 Wood [431c]");
- action AddNpcInput(30,4,"100 Metal [1012c]");
- action AddNpcInput(30,5,"100 Berries [202c]");
- action AddNpcInput(30,6,"Reject Trade");
- rule InputNpc(1) goto SellMenu2Stone
- rule InputNpc(2) goto SellMenu2Clay
- rule InputNpc(3) goto SellMenu2Wood
- rule InputNpc(4) goto SellMenu2Metal
- rule InputNpc(5) goto SellMenu2Berries
- rule InputNpc(6) goto ResetNoExp
- }
- state SellMenu2Stone
- {
- if GotItems(193,100) goto SellMenu2Stone2
- else SetState("nofunds1");
- }
- state SellMenu2Clay
- {
- if GotItems(194,100) goto SellMenu2Clay2
- else SetState("nofunds1");
- }
- state SellMenu2Wood
- {
- if GotItems(195,100) goto SellMenu2Wood2
- else SetState("nofunds1");
- }
- state SellMenu2Metal
- {
- if GotItems(196,100) goto SellMenu2Metal2
- else SetState("nofunds1");
- }
- state SellMenu2Berries
- {
- if GotItems(197,100) goto SellMenu2Berries2
- else SetState("nofunds1");
- }
- state SellMenu2Stone2
- {
- action RemoveItem(193,100);
- action GiveItem(1,743);
- action ShowHint("You have sold 100 Stone!");
- action SetState("GetReward");
- }
- state SellMenu2Clay2
- {
- action RemoveItem(194,100);
- action GiveItem(1,627);
- action ShowHint("You have sold 100 Clay!");
- action SetState("GetReward");
- }
- state SellMenu2Wood2
- {
- action RemoveItem(195,100);
- action GiveItem(1,431);
- action ShowHint("You have sold 100 Wood!");
- action SetState("GetReward");
- }
- state SellMenu2Metal2
- {
- action RemoveItem(196,100);
- action GiveItem(1,1012);
- action ShowHint("You have sold 100 Metal!");
- action SetState("GetReward");
- }
- state SellMenu2Berries2
- {
- action RemoveItem(197,100);
- action GiveItem(1,202);
- action ShowHint("You have sold 100 Berries!");
- action SetState("GetReward");
- }
- state SellMenu3
- {
- desc "Trade Menu (Daily Trading)"
- action ShowHint("You will be charged if you proceed with a trade...");
- action AddNpcText(30,"Ship: The Gaunt - Sell");
- action AddNpcInput(30,1,"100 Stone [817c]");
- action AddNpcInput(30,2,"100 Clay [689c]");
- action AddNpcInput(30,3,"100 Wood [474c]");
- action AddNpcInput(30,4,"100 Metal [1102c]");
- action AddNpcInput(30,5,"100 Berries [221c]");
- action AddNpcInput(30,6,"Reject Trade");
- rule InputNpc(1) goto SellMenu3Stone
- rule InputNpc(2) goto SellMenu3Clay
- rule InputNpc(3) goto SellMenu3Wood
- rule InputNpc(4) goto SellMenu3Metal
- rule InputNpc(5) goto SellMenu3Berries
- rule InputNpc(6) goto ResetNoExp
- }
- state SellMenu3Stone
- {
- if GotItems(193,100) goto SellMenu3Stone3
- else SetState("nofunds1");
- }
- state SellMenu3Clay
- {
- if GotItems(194,100) goto SellMenu3Clay3
- else SetState("nofunds1");
- }
- state SellMenu3Wood
- {
- if GotItems(195,100) goto SellMenu3Wood3
- else SetState("nofunds1");
- }
- state SellMenu3Metal
- {
- if GotItems(196,100) goto SellMenu3Metal3
- else SetState("nofunds1");
- }
- state SellMenu3Berries
- {
- if GotItems(197,100) goto SellMenu3Berries3
- else SetState("nofunds1");
- }
- state SellMenu3Stone3
- {
- action RemoveItem(193,100);
- action GiveItem(1,817);
- action ShowHint("You have sold 100 Stone!");
- action SetState("GetReward");
- }
- state SellMenu3Clay3
- {
- action RemoveItem(194,100);
- action GiveItem(1,689);
- action ShowHint("You have sold 100 Clay!");
- action SetState("GetReward");
- }
- state SellMenu3Wood3
- {
- action RemoveItem(195,100);
- action GiveItem(1,474);
- action ShowHint("You have sold 100 Wood!");
- action SetState("GetReward");
- }
- state SellMenu3Metal3
- {
- action RemoveItem(196,100);
- action GiveItem(1,1102);
- action ShowHint("You have sold 100 Metal!");
- action SetState("GetReward");
- }
- state SellMenu3Berries3
- {
- action RemoveItem(197,100);
- action GiveItem(1,221);
- action ShowHint("You have sold 100 Berries!");
- action SetState("GetReward");
- }
- state SellMenu4
- {
- desc "Trade Menu (Daily Trading)"
- action ShowHint("You will be charged if you proceed with a trade...");
- action AddNpcText(30,"Ship: The Hallowed - Sell");
- action AddNpcInput(30,1,"100 Stone [898c]");
- action AddNpcInput(30,2,"100 Clay [757c]");
- action AddNpcInput(30,3,"100 Wood [521c]");
- action AddNpcInput(30,4,"100 Metal [1212c]");
- action AddNpcInput(30,5,"100 Berries [243c]");
- action AddNpcInput(30,6,"Reject Trade");
- rule InputNpc(1) goto SellMenu4Stone
- rule InputNpc(2) goto SellMenu4Clay
- rule InputNpc(3) goto SellMenu4Wood
- rule InputNpc(4) goto SellMenu4Metal
- rule InputNpc(5) goto SellMenu4Berries
- rule InputNpc(6) goto ResetNoExp
- }
- state SellMenu4Stone
- {
- if GotItems(193,100) goto SellMenu4Stone4
- else SetState("nofunds1");
- }
- state SellMenu4Clay
- {
- if GotItems(194,100) goto SellMenu4Clay4
- else SetState("nofunds1");
- }
- state SellMenu4Wood
- {
- if GotItems(195,100) goto SellMenu4Wood4
- else SetState("nofunds1");
- }
- state SellMenu4Metal
- {
- if GotItems(196,100) goto SellMenu4Metal4
- else SetState("nofunds1");
- }
- state SellMenu4Berries
- {
- if GotItems(197,100) goto SellMenu4Berries4
- else SetState("nofunds1");
- }
- state SellMenu4Stone4
- {
- action RemoveItem(193,100);
- action GiveItem(1,898);
- action ShowHint("You have sold 100 Stone!");
- action SetState("GetReward");
- }
- state SellMenu4Clay4
- {
- action RemoveItem(194,100);
- action GiveItem(1,757);
- action ShowHint("You have sold 100 Clay!");
- action SetState("GetReward");
- }
- state SellMenu4Wood4
- {
- action RemoveItem(195,100);
- action GiveItem(1,521);
- action ShowHint("You have sold 100 Wood!");
- action SetState("GetReward");
- }
- state SellMenu4Metal4
- {
- action RemoveItem(196,100);
- action GiveItem(1,1212);
- action ShowHint("You have sold 100 Metal!");
- action SetState("GetReward");
- }
- state SellMenu4Berries4
- {
- action RemoveItem(197,100);
- action GiveItem(1,243);
- action ShowHint("You have sold 100 Berries!");
- action SetState("GetReward");
- }
- state SellMenu5
- {
- desc "Trade Menu (Daily Trading)"
- action ShowHint("You will be charged if you proceed with a trade...");
- action AddNpcText(30,"Ship: The Shanty - Sell");
- action AddNpcInput(30,1,"100 Stone [987c]");
- action AddNpcInput(30,2,"100 Clay [832c]");
- action AddNpcInput(30,3,"100 Wood [573c]");
- action AddNpcInput(30,4,"100 Metal [1330c]");
- action AddNpcInput(30,5,"100 Berries [267c]");
- action AddNpcInput(30,6,"Reject Trade");
- rule InputNpc(1) goto SellMenu5Stone
- rule InputNpc(2) goto SellMenu5Clay
- rule InputNpc(3) goto SellMenu5Wood
- rule InputNpc(4) goto SellMenu5Metal
- rule InputNpc(5) goto SellMenu5Berries
- rule InputNpc(6) goto ResetNoExp
- }
- state SellMenu5Stone
- {
- if GotItems(193,100) goto SellMenu5Stone5
- else SetState("nofunds1");
- }
- state SellMenu5Clay
- {
- if GotItems(194,100) goto SellMenu5Clay5
- else SetState("nofunds1");
- }
- state SellMenu5Wood
- {
- if GotItems(195,100) goto SellMenu5Wood5
- else SetState("nofunds1");
- }
- state SellMenu5Metal
- {
- if GotItems(196,100) goto SellMenu5Metal5
- else SetState("nofunds1");
- }
- state SellMenu5Berries
- {
- if GotItems(197,100) goto SellMenu5Berries5
- else SetState("nofunds1");
- }
- state SellMenu5Stone5
- {
- action RemoveItem(193,100);
- action GiveItem(1,987);
- action ShowHint("You have sold 100 Stone!");
- action SetState("GetReward");
- }
- state SellMenu5Clay5
- {
- action RemoveItem(194,100);
- action GiveItem(1,832);
- action ShowHint("You have sold 100 Clay!");
- action SetState("GetReward");
- }
- state SellMenu5Wood5
- {
- action RemoveItem(195,100);
- action GiveItem(1,573);
- action ShowHint("You have sold 100 Wood!");
- action SetState("GetReward");
- }
- state SellMenu5Metal5
- {
- action RemoveItem(196,100);
- action GiveItem(1,1330);
- action ShowHint("You have sold 100 Metal!");
- action SetState("GetReward");
- }
- state SellMenu5Berries5
- {
- action RemoveItem(197,100);
- action GiveItem(1,267);
- action ShowHint("You have sold 100 Berries!");
- action SetState("GetReward");
- }
- state SellMenu6
- {
- desc "Trade Menu (Daily Trading)"
- action ShowHint("You will be charged if you proceed with a trade...");
- action AddNpcText(30,"Ship: The Quicken - Sell");
- action AddNpcInput(30,1,"100 Stone [1085c]");
- action AddNpcInput(30,2,"100 Clay [915c]");
- action AddNpcInput(30,3,"100 Wood [630c]");
- action AddNpcInput(30,4,"100 Metal [1463c]");
- action AddNpcInput(30,5,"100 Berries [293c]");
- action AddNpcInput(30,6,"Reject Trade");
- rule InputNpc(1) goto SellMenu6Stone
- rule InputNpc(2) goto SellMenu6Clay
- rule InputNpc(3) goto SellMenu6Wood
- rule InputNpc(4) goto SellMenu6Metal
- rule InputNpc(5) goto SellMenu6Berries
- rule InputNpc(6) goto ResetNoExp
- }
- state SellMenu6Stone
- {
- if GotItems(193,100) goto SellMenu6Stone6
- else SetState("nofunds1");
- }
- state SellMenu6Clay
- {
- if GotItems(194,100) goto SellMenu6Clay6
- else SetState("nofunds1");
- }
- state SellMenu6Wood
- {
- if GotItems(195,100) goto SellMenu6Wood6
- else SetState("nofunds1");
- }
- state SellMenu6Metal
- {
- if GotItems(196,100) goto SellMenu6Metal6
- else SetState("nofunds1");
- }
- state SellMenu6Berries
- {
- if GotItems(197,100) goto SellMenu6Berries6
- else SetState("nofunds1");
- }
- state SellMenu6Stone6
- {
- action RemoveItem(193,100);
- action GiveItem(1,1085);
- action ShowHint("You have sold 100 Stone!");
- action SetState("GetReward");
- }
- state SellMenu6Clay6
- {
- action RemoveItem(194,100);
- action GiveItem(1,915);
- action ShowHint("You have sold 100 Clay!");
- action SetState("GetReward");
- }
- state SellMenu6Wood6
- {
- action RemoveItem(195,100);
- action GiveItem(1,630);
- action ShowHint("You have sold 100 Wood!");
- action SetState("GetReward");
- }
- state SellMenu6Metal6
- {
- action RemoveItem(196,100);
- action GiveItem(1,1463);
- action ShowHint("You have sold 100 Metal!");
- action SetState("GetReward");
- }
- state SellMenu6Berries6
- {
- action RemoveItem(197,100);
- action GiveItem(1,293);
- action ShowHint("You have sold 100 Berries!");
- action SetState("GetReward");
- }
- state SellMenu7
- {
- desc "Trade Menu (Daily Trading)"
- action ShowHint("You will be charged if you proceed with a trade...");
- action AddNpcText(30,"Ship: The Argent - Sell");
- action AddNpcInput(30,1,"100 Stone [1085c]");
- action AddNpcInput(30,2,"100 Clay [915c]");
- action AddNpcInput(30,3,"100 Wood [630c]");
- action AddNpcInput(30,4,"100 Metal [1463c]");
- action AddNpcInput(30,5,"100 Berries [293c]");
- action AddNpcInput(30,6,"Reject Trade");
- rule InputNpc(1) goto SellMenu7Stone
- rule InputNpc(2) goto SellMenu7Clay
- rule InputNpc(3) goto SellMenu7Wood
- rule InputNpc(4) goto SellMenu7Metal
- rule InputNpc(5) goto SellMenu7Berries
- rule InputNpc(6) goto ResetNoExp
- }
- state SellMenu7Stone
- {
- if GotItems(193,100) goto SellMenu7Stone7
- else SetState("nofunds1");
- }
- state SellMenu7Clay
- {
- if GotItems(194,100) goto SellMenu7Clay7
- else SetState("nofunds1");
- }
- state SellMenu7Wood
- {
- if GotItems(195,100) goto SellMenu7Wood7
- else SetState("nofunds1");
- }
- state SellMenu7Metal
- {
- if GotItems(196,100) goto SellMenu7Metal7
- else SetState("nofunds1");
- }
- state SellMenu7Berries
- {
- if GotItems(197,100) goto SellMenu7Berries7
- else SetState("nofunds1");
- }
- state SellMenu7Stone7
- {
- action RemoveItem(193,100);
- action GiveItem(1,1085);
- action ShowHint("You have sold 100 Stone!");
- action SetState("GetReward");
- }
- state SellMenu7Clay7
- {
- action RemoveItem(194,100);
- action GiveItem(1,915);
- action ShowHint("You have sold 100 Clay!");
- action SetState("GetReward");
- }
- state SellMenu7Wood7
- {
- action RemoveItem(195,100);
- action GiveItem(1,630);
- action ShowHint("You have sold 100 Wood!");
- action SetState("GetReward");
- }
- state SellMenu7Metal7
- {
- action RemoveItem(196,100);
- action GiveItem(1,1463);
- action ShowHint("You have sold 100 Metal!");
- action SetState("GetReward");
- }
- state SellMenu7Berries7
- {
- action RemoveItem(197,100);
- action GiveItem(1,293);
- action ShowHint("You have sold 100 Berries!");
- action SetState("GetReward");
- }
- state GetReward
- {
- action ShowHint("Your trade was successful!");
- action PlaySound(17);
- action GiveExp(3990);
- action ResetDaily();
- }
- state DailyResetDialogue
- {
- action ShowHint("There are no more ships available for trade today.");
- action ShowHint("Trade limit has already been reached today. (x20)" );
- action SetState("Reset");
- }
- state ResetNoExp
- {
- action ShowHint("The ship has sailed away.");
- action ShowHint("Careful not to waste your daily limit!" );
- action ResetDaily();
- }
- state Reset
- {
- action ShowHint("Trade (20x Daily) aborted...")
- action Reset();
- }
- State nofunds
- {
- action ShowHint("The captain scoffs at your lack of money and sails away.");
- action ShowHint("Next time check your balance before trying to buy!");
- action ResetDaily();
- }
- State nofunds1
- {
- action ShowHint("The captain scoffs at your lack of resources and sails away.");
- action ShowHint("Next time check your stocks before trying to buy!");
- action ResetDaily();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement