(03-16-2014 02:39 AM)Sakaszli Wrote: [ -> ]thnks for answer
as i remeber it was -1
-1 for all quest ?
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 ?
@Sakaszli
i found QuestName-e.dat in system folder but when open it with l2edit i don't see the number of quest
can u give me a littel guide for it ?
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.
nice thnks for answer !
can u guide me some way to do that ?
@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