Lineage 2 Tower Forum

Full Version: Quest finish ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Guys how we can check quest Finish ?
like this :
PHP Code:
until GetQuestManager():GetQuestProgress(id) == ???; 
i don't know what is " ????? " have any condition to check it ? Big Grin
thnks ^^
as i remeber it was -1
(03-16-2014 02:39 AM)Sakaszli Wrote: [ -> ]thnks for answer Big Grin
as i remeber it was -1

-1 for all quest ? Big Grin
because i check some quest : some quest is 2 , 6 , >2
like :
Code:
until GetQuestManager():GetQuestProgress(10362) == 2;
Code:
until GetQuestManager():GetQuestProgress(10364) > 2;
Code:
until GetQuestManager():GetQuestProgress(10363) == 6;

where i can find this number ? Big Grin
@Sakaszli
QuestName-e.dat
i found QuestName-e.dat in system folder but when open it with l2edit i don't see the number of quest Sad can u give me a littel guide for it ? Big Grin
it's impossible to know if quest finished or not., because this is server-side info.
GetQuestProgress() will return quest stage if you have quest.
will return -1 if you haven't quest.

only way to know if quest is finished, is to go to start npc and analyze html.
(03-16-2014 10:56 AM)kerberos464 Wrote: [ -> ]it's impossible to know if quest finished or not., because this is server-side info.
GetQuestProgress() will return quest stage if you have quest.
will return -1 if you haven't quest.

only way to know if quest is finished, is to go to start npc and analyze html.
Big Grin nice thnks for answer !
can u guide me some way to do that ? Big Grin
@benbt91
record the quest, and you will see sometimes "-- Quest state changed, ID: xxxxx STATE: x"

You only have to check for the last state and you can write

until GetQuestManager():GetQuestProgress(Quest_ID) > Last_Quest_State_ID;
If you get quest items and your looking for a certain amount you can do it like this.

Code:
Sleep(1000);
until GetQuestManager():GetQuestItemCount(36712) == 10 and GetQuestManager():GetQuestItemCount(36710) == 30 and GetQuestManager():GetQuestItemCount(36711) == 20;
SetPause(true);

or if you need a certain event to happen and you don't get a quest item for it you need to do it manually the first time and you should get a change log like

Code:
until GetQuestManager():GetQuestProgress(10360) == 3;-- Quest state changed, ID: 10360, STATE: 2
Reference URL's