Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Guild Wars > GW Bots
You last visited: Today at 20:15

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Problem with GetQuestById

Discussion on Problem with GetQuestById within the GW Bots forum part of the Guild Wars category.

Reply
 
Old   #1
 
mhaendler's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 1,826
Received Thanks: 226
Problem with GetQuestById

So basicly i want to see if i have a certain quest id already in my questlog

So i use it like that: GetQuestById($questId)

The return appears to be like the struct of the current active quest id in the quest log.

it doesnt matter if i give "GetQuestByID" an id or something.

also how can i acceess / read that returned struct?

currently i use _DLLStructDisplay, but i dont get any useful information back?! at least i dont know if i get useful information back

Maybe some1 knows the answer to this

_
mhaendler
mhaendler is offline  
Old 05/11/2018, 09:18   #2
 
elite*gold: 0
Join Date: Jun 2013
Posts: 39
Received Thanks: 26
quests are only updated clientside if requested, so unless the quest is actively being looked at in the quest log, the info you get from smth like GetQuestByID will probably be outdated or nonexistant
4D1 is offline  
Old 05/11/2018, 20:51   #3
 
mhaendler's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 1,826
Received Thanks: 226
Quote:
Originally Posted by 4D1 View Post
quests are only updated clientside if requested, so unless the quest is actively being looked at in the quest log, the info you get from smth like GetQuestByID will probably be outdated or nonexistant
mhhh okay, you got any idea on how to check if acepting a quest was succesful?

Like
Code:
AcceptQuest(1)
$lQuest = GetQuestById(1)
If DllStructGetData($lQuest, 'active') Then
MsgBox(0,0,'got quest')
Else
MsgBox(0,0,'mhh no quest')
Endif
mhaendler is offline  
Old 05/12/2018, 07:04   #4
 
elite*gold: 0
Join Date: Nov 2012
Posts: 134
Received Thanks: 49
I would suggest a ToggleQuestWindow() then GetQuestByID() and look for the correct quest ID to see if it matches. ()
Code:
ToggleQuestWindow()
If GetQuestByID <> xxxx Then
DoSomeShit()
Else
TryAgain()
EndIf
savsuds is offline  
Old 05/12/2018, 08:20   #5
 
elite*gold: 0
Join Date: Oct 2008
Posts: 19
Received Thanks: 5
Is it possible to get the state of the quest? Like check for (Completed)?

Edit:
I'm currently testing checking 'LogState' from the struct.

This seemed to work ok -

Code:
ToggleQuestWindow()
Local $lQuest = GetQuestById(###)
If DllStructGetData($lQuest, 'LogState') = 3 Then
AbandonQuest(###)
EndIf
Logstate when you just have the quest was 1, on completion it returned 3. Depending on the state of GW I did get 2 but 3 seemed to work, could try <> 1 so it would abandon if it was 2 or 3 but this was working for me.

Thanks 4D1 and Savsuds for the info on quests
goofyninja is offline  
Old 05/13/2018, 02:59   #6
 
elite*gold: 0
Join Date: Jun 2013
Posts: 39
Received Thanks: 26
theres two packets involving requesting quest info and setting active quest, you can see em with a packet log and use that to not have to keep quest log open
4D1 is offline  
Old 05/13/2018, 10:28   #7
 
elite*gold: 0
Join Date: Oct 2008
Posts: 19
Received Thanks: 5
Quote:
Originally Posted by 4D1 View Post
theres two packets involving requesting quest info and setting active quest, you can see em with a packet log and use that to not have to keep quest log open
I'll have a look into it.
goofyninja is offline  
Reply


Similar Threads Similar Threads
[PROBLEM]HATCHERY PROBLEM[PROBLEM]
07/27/2013 - Facebook - 8 Replies
GUYS I HAVE 3 HATCHERY IN MY ISLAND I WANT TO DELETE THE 2 I CLICK THE REMOVE TOOL THEN CLICK ON THE HATCHERY THEN NOTHING HAPPENS HELP?? THANKS =)
[problem] IB problem
05/11/2008 - Flyff - 2 Replies
Hi , i have problem with IB when i click on this its load the game guard and then Disappear , someone know what the problem? its in the flyff folder i just dont know what the problem whay its disappear , Thnx.
[Problem] Server Inspection Problem
05/01/2008 - Silkroad Online - 1 Replies
Hi, By the update of 1.145 I get the error "The servers is undergoing inspection or updates. Connect to htpp://www.silkroadonline.net for more information." I reinstall the game but I get the same error. And the servers are open! Who can help me. Thank You
Problem with Infinty/ Problem mit Infinity
04/14/2008 - Dekaron - 1 Replies
Hey guys, i donwloadet Infinity from this site http://www.gametribe.com/. K i installed this game and now if i try to start is i get an error message: The game security module update has failed How i can fix this problem, i wont to play it. Ps. I postet it here becoz its the same producer like Dekaronīs Hi Leute, ich hab mir Infinty gedownloadet von http://www.gametribe.com/ und hab es auch installiert, doch jedes mal wenn ich das spiel starten will bekomm ich diesen Fehler: The...



All times are GMT +1. The time now is 20:15.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.