English:
Hello ElitePVPers,
I'm new to FlyFF Development, and I am currently trying to create an own quest. I have read several tutorials and I'm pretty sure my code is right, but I think I'm overlooking something.
Basically, every part of the quest works - it's at the right NPC, name is fine, everything is perfectly fine, even the quest log shows the correct information, however I can just finish the quest without completing the ending condition - in my case, I set the EndCondItem to one Twinkle Stone, however I can complete the quest without collecting one.
This is my definequest.h entry:
Code:
#define QUEST_MYNEWQUEST 7897
This is my propQuest.inc:
QUEST_MYNEWQUEST
{
SetTitle
(
IDS_TEST_INC_000001
);
setting
{
SetHeadQuest( 1992 );
SetCharacter( "MaFl_Is" );
SetBeginCondLevel( 1, 3 );
SetBeginCondParty( 0, 0, 0, 0 );
SetBeginCondJob( JOB_VAGRANT );
SetEndCondItem(-1, 0, -1, II_GEN_GEM_GEM_TWINKLESTONE, 1 );
SetEndRemoveItem(0, II_GEN_GEM_GEM_TWINKLESTONE, 1 );
}
SetDialog
(
QSAY_BEGIN1,
IDS_TEST_INC_000002
);
SetDialog
(
QSAY_BEGIN2,
IDS_TEST_INC_000003
);
SetDialog
(
QSAY_BEGIN3,
IDS_TEST_INC_000004
);
SetDialog
(
QSAY_BEGIN4,
IDS_TEST_INC_000005
);
SetDialog
(
QSAY_BEGIN5,
IDS_TEST_INC_000006
);
SetDialog
(
QSAY_BEGIN_YES,
IDS_TEST_INC_000007
);
SetDialog
(
QSAY_BEGIN_NO,
IDS_TEST_INC_000008
);
SetDialog
(
QSAY_END_COMPLETE1,
IDS_TEST_INC_000009
);
SetDialog
(
QSAY_END_FAILURE1,
IDS_TEST_INC_000010
);
state 0
{
SetDesc
(
IDS_TEST_INC_000011
);
}
state 14
{
SetDesc
(
IDS_TEST_INC_000012
);
}
}
And this is my propQuest.txt.txt, although I doubt it has anything to do with the issue:
IDS_TEST_INC_000001 Fetching a Twinkle Stone
IDS_TEST_INC_000002 Fetch me a Twinkle Stone! (1)
IDS_TEST_INC_000003 Fetch me a Twinkle Stone! (2)
IDS_TEST_INC_000004 Fetch me a Twinkle Stone! (3)
IDS_TEST_INC_000005 Fetch me a Twinkle Stone! (4)
IDS_TEST_INC_000006 Fetch me a Twinkle Stone! (5)
IDS_TEST_INC_000007 Get going!
IDS_TEST_INC_000008 You sucker!
IDS_TEST_INC_000009 Good job!
IDS_TEST_INC_000010 What are you waiting for?
IDS_TEST_INC_000011 You finished the quest!
IDS_TEST_INC_000012
I am, of course, after every edit inserting the new files into dataSub1.res (data.res for definequest.h).
What am I doing wrong?
Deutsch:
Hallo liebe ElitePVPers,
Ich bin relativ neu in der Development-Szene, und versuche momentan einen eigenen Quest zu erstellen. Ich habe mir schon mehrere Tutorials durchgelesen, und bin mir ziemlich sicher dass mein Code richtig ist, ich glaube aber, dass ich etwas übersehe.
Im Grunde genommen funktioniert jeder Teil der Quest - Der NPC ist richtig, Name stimmt, alles passt, sogar der Quest Log zeigt alle richtigen Informationen, jedoch kann ich die Quest abschließen ohne die Bedingung zu erfüllen - in meinem Fall habe ich EndCondItem auf einen Twinkle Stone gesetzt, jedoch kann ich die Quest einfach direkt abschließen ohne einen Twinkle Stone zu sammeln / im Inventar zu haben.
Mein definequest.h-Eintrag:
Code:
#define QUEST_MYNEWQUEST 7897
Meine propQuest.inc:
QUEST_MYNEWQUEST
{
SetTitle
(
IDS_TEST_INC_000001
);
setting
{
SetHeadQuest( 1992 );
SetCharacter( "MaFl_Is" );
SetBeginCondLevel( 1, 3 );
SetBeginCondParty( 0, 0, 0, 0 );
SetBeginCondJob( JOB_VAGRANT );
SetEndCondItem(-1, 0, -1, II_GEN_GEM_GEM_TWINKLESTONE, 1 );
SetEndRemoveItem(0, II_GEN_GEM_GEM_TWINKLESTONE, 1 );
}
SetDialog
(
QSAY_BEGIN1,
IDS_TEST_INC_000002
);
SetDialog
(
QSAY_BEGIN2,
IDS_TEST_INC_000003
);
SetDialog
(
QSAY_BEGIN3,
IDS_TEST_INC_000004
);
SetDialog
(
QSAY_BEGIN4,
IDS_TEST_INC_000005
);
SetDialog
(
QSAY_BEGIN5,
IDS_TEST_INC_000006
);
SetDialog
(
QSAY_BEGIN_YES,
IDS_TEST_INC_000007
);
SetDialog
(
QSAY_BEGIN_NO,
IDS_TEST_INC_000008
);
SetDialog
(
QSAY_END_COMPLETE1,
IDS_TEST_INC_000009
);
SetDialog
(
QSAY_END_FAILURE1,
IDS_TEST_INC_000010
);
state 0
{
SetDesc
(
IDS_TEST_INC_000011
);
}
state 14
{
SetDesc
(
IDS_TEST_INC_000012
);
}
}
Und meine propQuest.txt.txt, obwohl ich kaum glaube, dass diese relevant ist:
IDS_TEST_INC_000001 Fetching a Twinkle Stone
IDS_TEST_INC_000002 Fetch me a Twinkle Stone! (1)
IDS_TEST_INC_000003 Fetch me a Twinkle Stone! (2)
IDS_TEST_INC_000004 Fetch me a Twinkle Stone! (3)
IDS_TEST_INC_000005 Fetch me a Twinkle Stone! (4)
IDS_TEST_INC_000006 Fetch me a Twinkle Stone! (5)
IDS_TEST_INC_000007 Get going!
IDS_TEST_INC_000008 You sucker!
IDS_TEST_INC_000009 Good job!
IDS_TEST_INC_000010 What are you waiting for?
IDS_TEST_INC_000011 You finished the quest!
IDS_TEST_INC_000012
Und natürlich ersetze ich nach jedem Edit die Daten in der dataSub1.res (data.res für definequest.h).
Was mache ich falsch?