[code]Main
{
questname "Test"
version 1.0
}
State Begin
{
desc "Talk With Fred"
action AddNpcText(1, "My Life is ruined! The Goats are destroying everything!");
action AddNpcText(1, "Will you please Kill them all?");
action AddNpcInput(1, 1, "Of course I will! I hate Goats anyway");
action AddNpcInput(1, 2, "Kill your own goats.");
rule InputNpc(1) goto HelpFred
rule InputNpc(2) goto Coward
}
State Coward
{
desc "Talk With Fred"
action AddNpcText(1, "MY FAMILY WILL STARVE!");
rule TalkedToNpc(1) goto EndReset
}
State HelpBob
{
desc "Kill 30 Goats"
action AddNpcText(1, "Please kill 30 Goats for me! They will never come back!");
action AddNpcInput(1, 1, "Easy");
action AddNpcInput(1, 2, "Can't be bothered");
rule InputNpc(1) goto KillGoats
rule InputNpc(2) goto Coward2
}
State Coward2
{
desc "TalktoFred"
action AddNpcText(1, "That sucks.");
rule TalkedToNpc(1) goto EndReset
}
State KillGoats
{
desc "Kill 30 Goats"
action AddNpcText(1, "Thank you so much for helping! I will reward you");
rule KilledNpcs(7, 30) goto ReturnToFred
}
State ReturnToFred
{
desc "ReturnToFred"
action ShowHint("You Finished the Quest! Talk to Fred");
action AddNpcText(1, "YOU FINISHED! You have helped my whole family!");
rule TalkedToNpc(1) goto Reward
}
State Reward
{
desc "Complete"
action ShowHint("YOU Fred Gives you 5000xp and 5000Gold");
action GiveEXP(5000);
action GiveItem(1, 5000);
action End();
}
State EndReset
{
desc "Complete"
action Reset();
}
[/code]
I have edited Pedros boy in the pub and changed his name to Farmer Fred which worked ( so this shows the pub editor is working ) Also changed him to a quest npc and set his Quest script to 1... Nothing happens when I click him :/