Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Main
- {
- questname "Fishing Quest"
- version 1.0
- }
- state Begin
- {
- desc "Talk to Dan"
- action AddNpcText(7, "Hello,[c-name] i am here to sell you baits. Would you like to buy some?");
- action AddNpcInput(7,1,"Sure");
- action AddNpcInput(7,2,"No thanks");
- action AddNpcInput(7,3,"Milestone");
- rule InputNpc(1) goto Bait
- rule InputNpc(2) goto Reset
- rule InputNpc(3) goto Milestone
- }
- state Bait
- {
- desc "Buying Bait"
- action AddNpcText(7, "How many baits would you like to buy?");
- action AddNpcInput(7,1,"Sell me 500");
- action AddNpcInput(7,2,"Sell me 1k");
- action AddNpcInput(7,3,"Sell me 5k");
- action AddNpcInput(7,4,"Sell me 10k");
- rule InputNpc(1) goto Fivehun
- rule InputNpc(2) goto Onek
- rule InputNpc(3) goto Fivek
- rule InputNpc(4) goto Tenk
- }
- state Fivehun
- {
- action AddNpcText(7, "Please get 500 golds to purchase.");
- rule GotItems(1,500) goto GiveFive
- }
- state GiveFive
- {
- action RemoveItem(1,500);
- action GiveItem(680,500);
- action ShowHint("You have bought 500 Fishing Baits.");
- action Reset();
- }
- state Onek
- {
- action AddNpcText(7, "Please get 1000 golds to purchase.");
- rule GotItems(1,1000) goto GiveOnek
- }
- state GiveOnek
- {
- action RemoveItem(1,1000);
- action GiveItem(680,1000);
- action ShowHint("You have bought 1000 Fishing Baits.");
- action Reset();
- }
- state Fivek
- {
- action AddNpcText(7, "Please get 5000 golds to purchase.");
- rule GotItems(1,5000) goto GiveFivek
- }
- state GiveFivek
- {
- action RemoveItem(1,5000);
- action GiveItem(680,5000);
- action ShowHint("You have bought 5000 Fishing Baits.");
- action Reset();
- }
- state Tenk
- {
- action AddNpcText(7, "Please get 10000 golds to purchase.");
- rule GotItems(1,10000) goto GiveTenk
- }
- state GiveTenk
- {
- action RemoveItem(1,10000);
- action GiveItem(680,10000);
- action ShowHint("You have bought 10000 Fishing Baits.");
- action Reset();
- }
- state Reset
- {
- action Reset();
- }
- State Milestone
- {
- desc "Talk to Dan the fisherman"
- action AddNpcText(7, "Hello, if you get level 100 in fishing, then you will get a costume having 5k hp");
- action AddNpcInput(7, 1, "oh i see");
- rule InputNpc(1) goto Reset
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement