Pastebin

New pastes are no longer accepted · Stats

Latest Pastes

Main
{
	questname 	"store panic"
	version		1.0
}

State Begin
{
  desc "talking to tommy"
  action  AddNpcText(27, "These store rats are driving me crazy!! Im never going to come back here");
  action  AddNpcText(27, "if they keep scaring me away..");
  action  AddNpcInput(27, 1, "What Sir??");
  
  rule  InputNpc(1) goto WhatSir
}

State WhatSir
{
  desc "What are you talking about sir"
  action AddNpcText(27, "These store rats all around us!!  There driving people out of the store including me!");
  action AddNpcText(27, "If someone doesn't act quickly this store will go out of buisness!");
  action AddNpcInput(27, 1, "I happen to be a noble warrior");
  action AddNpcInput(27, 2, "I dont care");
  
  rule  InputNpc(1) goto KillGoats
  rule  InputNpc(2) goto Exit
}

State Exit
{
  action  AddNpcText(27, "You dont care? So be it.");
  action Reset();
}

State KillGoats
{
  desc "Kill 15 hungry goats"
  action  AddNpcText(27, "So your a noble warrior?");
  action   AddNpcText(27, "Prove it...");
  action  AddNpcText(27, "Go kill 15 hungry goats outside.");

  rule KilledNpcs(7, 15) goto Return
}

State Return
{
  desc "Return to Tommy"
   action  ShowHint("You killed 15 hungry goats! Return to tommy");
  action  AddNpcText(27, "Well, your combat skills have paid off.");
  action  AddNpcText(27, "Please kill 45 store rats...");
  
  rule  TalkedToNpc(27) goto KillRats
}

State KillRats
{
  desc "Kill 45 store rats"
  rule  KilledNpcs(258, 45) goto TalkTo
}

State TalkTo
{
  desc "Return To Tommy"
  action  ShowHint("Return to Tommy");
  action  AddNpcText(27, "Thank you! You have saved the store.  Please accept this fat pay check from the store.as well as some experience points.");

  rule TalkedToNpc(27) goto Reward
}

State Reward
{
  action  ShowHint("You obtained 1K Chao-Coins and gained 1K EXP!");
  action  GiveExp(1000);
  action  GiveItem(1, 1000);
  action  End();  
}