Pastebin

New pastes are no longer accepted · Stats

Latest Pastes

testquest

Main
{
        questname       "Karma Quest"
        version         2.0
}
State Begin
{
        desc            "Talk to Wise Man"
        action          AddNpcChat( 4 , "Hellow stranger" );
        action          AddNpcText( 4 , "Hellow stranger, what can i do for you" );

        action          AddNpcInput( 4 , 1 , "Karma menu");
        action          AddNpcInput( 4 , 2 , "Class menu");
        action          AddNpcInput( 4 , 3 , "Skin menu");
        action          AddNpcInput( 4 , 4 , "Item gather test");
 
        rule            InputNpc( 1 ) goto Karma
        rule            InputNpc( 2 ) goto Class
        rule            InputNpc( 3 ) goto Skin
        rule            InputNpc( 4 ) goto ItemGatherBegin
}
State Karma
{
        desc            "Talk to Wise Man"
        action          ShowHint("Karma menu opened");
 
        action          AddNpcText( 4 , "What shall i do to your karma?" );
        action          AddNpcInput( 4 , 1 , "Take 10 Karma");
        action          AddNpcInput( 4 , 2 , "Take 100 Karma");
        action          AddNpcInput( 4 , 3 , "Give 10 Karma");
        action          AddNpcInput( 4 , 4 , "Give 100 Karma");
 
        rule            InputNpc( 1 ) goto Take10
        rule            InputNpc( 2 ) goto Take100
        rule            InputNpc( 3 ) goto Give10
        rule            InputNpc( 4 ) goto Give100
}
State Class
{
        desc            "Talk to Wise Man"
        action          ShowHint("Class menu opened");
 
        action          AddNpcText( 4 , "This is a temporary menu to set your class thru the quest-engine, will be better later on." );
        action          AddNpcInput( 4 , 1 , "Make me Priest");
        action          AddNpcInput( 4 , 2 , "Make me Magician");
        action          AddNpcInput( 4 , 3 , "Make me Rogue");
        action          AddNpcInput( 4 , 4 , "Make me Archer");
        action          AddNpcInput( 4 , 5 , "Make me Warrior");
 
        rule            InputNpc( 1 ) goto Priest
        rule            InputNpc( 2 ) goto Magician
        rule            InputNpc( 3 ) goto Rogue
        rule            InputNpc( 4 ) goto Archer
        rule            InputNpc( 5 ) goto Warrior
}
State Skin
{
        desc            "Talk to Wise Man"
        action          ShowHint("Skin menu opened");
 
        action          AddNpcText( 4 , "This is a temporary menu to set your skin thru the quest-engine, will be better later on." );
        action          AddNpcInput( 4 , 1 , "Make me Human");
        action          AddNpcInput( 4 , 2 , "Make me Human (tan)");
        action          AddNpcInput( 4 , 3 , "Make me Human (pale)");
        action          AddNpcInput( 4 , 4 , "Make me Orc");
        action          AddNpcInput( 4 , 5 , "Make me Skeleton");
        action          AddNpcInput( 4 , 6 , "Make me Panda");
        action          AddNpcInput( 4 , 7 , "Make me Fish");
 
        rule            InputNpc( 1 ) goto Human
        rule            InputNpc( 2 ) goto HumanTan
        rule            InputNpc( 3 ) goto HumanPale
        rule            InputNpc( 4 ) goto Orc
        rule            InputNpc( 5 ) goto Skeleton
        rule            InputNpc( 6 ) goto Panda
        rule            InputNpc( 7 ) goto Fish
}

State Priest
{
        action          SetClass(2);
        action          Reset();
}
State Magician
{
        action          SetClass(3);
        action          Reset();
}
state Rogue
{
        action          SetClass(4);
        action          Reset();
}
state Archer
{
        action          SetClass(5);
        action          Reset();
}
state Warrior
{
        action          SetClass(6);
        action          Reset();
}

state Take10
{
        action          RemoveKarma(10);
        action          Reset();
}
state Take100
{
        action          RemoveKarma(100);
        action          Reset();
}
state Give10
{
        action          GiveKarma(10);
        action          Reset();
}
state Give100
{
        action          GiveKarma(100);
        action          Reset();
}

state Human
{
        action          SetRace(0);
        action          Reset();
}
state HumanTan
{
        action          SetRace(1);
        action          Reset();
}
state HumanPale
{
        action          SetRace(2);
        action          Reset();
}
state Orc
{
        action          SetRace(3);
        action          Reset();
}
state Skeleton
{
        action          SetRace(4);
        action          Reset();
}
state Panda
{
        action          SetRace(5);
        action          Reset();
}
state Fish
{
        action          SetRace(6);
        action          Reset();
}

state ItemGatherBegin
{
	desc	"Collect 1000 gold coins"
	
	// Wise man dialog
		action	AddNpcText(4, "Bring me 1000 coins!");
		action	AddNpcInput(4, 1, "Okay!");
		action	AddNpcInput(4, 2, "Eat shit!");
		rule	InputNpc(2) Reset();

	goal	GotItems(1, 1000) goto ItemGatherGotGold;
}

state ItemGatherGotGold
{
	desc	"Bring your cash to the wise man"

	action	ShowHint("Bring your cash to the wise man!");
	
	// Wise man dialog
		action	AddNpcText(4, "Is that gold for me?")
		action	AddNpcInput(4, 1, "Dream on!")
		action	AddNpcInput(4, 2, "Sure, here you go!")
		rule	InputNpc(1) Reset();
		goal	InputNpc(2) goto ItemGatherGiveGold;

	rule	LostItems(1, 1000) goto ItemGatherBegin;
}

state ItemGatherGiveGold
{
	desc	"Talk to the wise man"
	action	RemoveItem(1, 1000)

	// Wise man dialog
		action	AddNpcText(4, "Ha ha! Thanks sucker!")
		action	AddNpcText(4, "Aww, I can't give you noting in return. Here, take this.")

	goal	TalkedToNpc(4) goto ItemGatherReward;
}

state ItemGatherReward
{
	action	GiveItem(350);

	action	PlaySound(17);
	action	ShowHint("The rockin' old man gave you a guitar!");
	action	Reset();
}