Everything is A-OK with it essentially...except...it's not. The chat bubble for little Timmy appears, but it doesn't allow for the quest to function properly. In my Quest Log is says "Golem Slaying (Daily) - N/A"
Main
{
questname "Golem Slaying (Daily)"
version 1
}
state Begin
{
desc "Golem Slaying (Daily)"
action AddNpcChat(6, "The Golem has been terrorizing our Town for weeks!");
rule TalkedToNpc(6) goto Begin1
else Reset();
}
state Begin1
{
desc "Golem Slaying (Daily)"
action AddNpcText( 6 , "Hello, [name]! You look strong enough to slay the Golem!");
action AddNpcText( 6 , "You will be paid well for such a task!.");
action AddNpcText( 6 , "The Golem resides in a cave nearby and comes to our Town often. Go defeat him.!");
action AddNpcInput( 6 , 1 , "Okay!");
rule InputNpc ( 1 ) goto Collect1
}
state Collect1
{
desc "Collect the HEART of the Golem"
rule GotItems(787, 1) goto Collect2
}
state Collect2
{
desc "Return to Timmy"
action ShowHint("You have collected the Heart!");
action AddNpcText(6, "Collect your payment?");
action AddNpcInput(6, 1, "Collect.");
rule InputNpc(1) goto Collect3
}
state Collect3
{
if GotItems(787, 1) goto Check1
else SetState("Collect1");
}
state Check1
{
desc "Golem Slaying (Daily)"
action Roll(5)
rule DoneDaily( 1 ) goto EndWithoutReset
rule Rolled(1) goto Ing1
rule Rolled(2) goto Ing2
rule Rolled(3) goto Ing3
rule Rolled(4) goto Ing4
rule Rolled(5) goto Ing5
}
state Ing1
{
action RemoveItem(787, 1);
action GiveItem(732, 1);
action ShowHint("You have been paid 1 Chaos Coin!");
action SetState("GetReward");
}
state Ing2
{
action RemoveItem(787, 1);
action GiveItem(1, 145000);
action ShowHint("You have been paid 145k!");
action SetState("GetReward");
}
state Ing3
{
action RemoveItem(787, 1);
action GiveItem(799, 5);
action ShowHint("You have been paid 5 EXP Essence!");
action SetState("GetReward");
}
state Ing4
{
action RemoveItem(787, 1);
action GiveItem(1, 75000);
action ShowHint("You have been paid 75k!");
action SetState("GetReward");
}
state Ing5
{
action RemoveItem(787, 1);
action GiveItem(177, 1);
action ShowHint("You have been paid with a White Scarf");
action SetState("GetReward");
}
state GetReward
{
action ShowHint("You have been paid! (DAILY)");
action PlaySound(17);
action GiveExp(225000)
action ResetDaily();
}
state EndWithoutReset
{
desc "Golem Slaying (Daily)"
action ShowHint("You can only complete this job once a day.");
action AddNpcText( 6 , "You have already been paid today, please come back tomorrow." );
rule TalkedToNpc( 6 ) goto Reset
}
state Reset
{
action ShowHint("Golem Slaying (Daily) aborted...")
action Reset();
}