[RELEASE] Jawq (WQ bot for PWI)

12/27/2013 13:32 mirakita#121
martmor, how it works? i have error msg with new offsets. PWI, windows 7 x64 i have. thanks
12/28/2013 10:15 martmor#122
Hi

Please take a look what I wrote here:

[Only registered and activated users can see links. Click Here To Register...]

I do not have all offsets. All Offsets that I have, I wrote already. I searched for them by Cheat Engine. Maybe you have more luck with the other offsets. Interest07 wrote an guide at the WQ Bot (first and second page).

By the way, the offsets are at every OS the same.
12/30/2013 21:57 mirakita#123
Quote:
Originally Posted by martmor View Post
Hi

Please take a look what I wrote here:

[Only registered and activated users can see links. Click Here To Register...]

I do not have all offsets. All Offsets that I have, I wrote already. I searched for them by Cheat Engine. Maybe you have more luck with the other offsets. Interest07 wrote an guide at the WQ Bot (first and second page).

By the way, the offsets are at every OS the same.
yep, i know everything of it, thanks.
this is my ini file:
Code:
[main]
GameProcessName=elementclient.exe
LogMode=0
LogPath=logs/
DelayOnError=5000
MaxErrorRetries=5
[gui]
AnimateRemove=1
[offsets]
CallSendPacket=0x00725700
CallIsQuestAvailable=0x007966B0
BaseAddress=0x00C7662C
BaseOffset=0x1C
PlayerStruct=0x2C
PlayerId=0x480
PlayerLevel=0x4A0
PlayerName=0x6B0
PlayerTransportMode=0x6C4
PlayerFlyMountId=0x57C
PlayerPositionX=0x3C
PlayerPositionZ=0x40
PlayerPositionY=0x44
PlayerTargetId=0xD3C
PlayerFreeze=0x4D0
PlayerQuestInventory=0xDC8
PlayerAction=0x1204
PlayerQuestList=0x120C
ItemId=0x08
Lists=0x1C
NpcList=0x24
NpcSortedList=0x50
NpcId=0x124
and i have a critical error, code 256. idk what does it mean
12/31/2013 06:20 edmundtyy#124
how do i set the flying altitude for this bot? i got the bot working but it is flying at altitude 36. would like to move it up to about 65

edit: ok. i found out my problem as my world quest was done half way. so the altitude was lower thus hitting the wall. it should work fine if i start it from the volume 1
12/31/2013 07:49 martmor#125
Quote:
Originally Posted by edmundtyy View Post
i got the bot working but it is flying at altitude 36. would like to move it up to about 65
Do you play on PWI? If yes:
Which offsets do you use?

Quote:
edit: ok. i found out my problem as my world quest was done half way. so the altitude was lower thus hitting the wall. it should work fine if i start it from the volume 1
Yes, thats correct.
01/02/2014 14:39 dixgen#126
(translate)
check these values

Code:
CallSendPacket=0x00725700
CallIsQuestAvailable=0x0082A690
BaseAddress=0x00C7662C
BaseOffset=0x1C
PlayerStruct=0x2C
PlayerId=0x494
PlayerLevel=0x4A0
PlayerName=0x6B0
PlayerTransportMode=0x6C4
PlayerFlyMountId=0x5B0
PlayerPositionX=0x3C
PlayerPositionZ=0x40
PlayerPositionY=0x44
PlayerTargetId=0xD3C
PlayerFreeze=0xD5A
PlayerQuestInventory=0xF18
PlayerAction=0x1370
PlayerQuestList=0x1378
ItemId=0x0C
Lists=0x18
NpcList=0x20
NpcSortedList=0x58
NpcId=0x124
01/02/2014 14:58 martmor#127
Thank you very much dixgen. I will try them in some hours. I am sure they will work.

Edit: the offsets work :)
01/02/2014 23:28 bigbear72#128
if anyone has this working correctly could you post the contents of your .ini file? it just crashes on me then unhooks
01/02/2014 23:41 martmor#129
Quote:
if anyone has this working correctly could you post the contents of your .ini file? it just crashes on me then unhooks
Working on PWI with win7 64 bit

Code:
[main]
GameProcessName=elementclient.exe
LogMode=0
LogPath=logs/
DelayOnError=5000
MaxErrorRetries=5
[gui]
AnimateRemove=1
[offsets]
CallSendPacket=0x00725700
CallIsQuestAvailable=0x0082A690
BaseAddress=0x00C7662C
BaseOffset=0x1C
PlayerStruct=0x2C
PlayerId=0x494
PlayerLevel=0x4A0
PlayerName=0x6B0
PlayerTransportMode=0x6C4
PlayerFlyMountId=0x5B0
PlayerPositionX=0x3C
PlayerPositionZ=0x40
PlayerPositionY=0x44
PlayerTargetId=0xD3C
PlayerFreeze=0xD5A
PlayerQuestInventory=0xF18
PlayerAction=0x1370
PlayerQuestList=0x1378
ItemId=0x0C
Lists=0x18
NpcList=0x20
NpcSortedList=0x58
NpcId=0x124
04/05/2014 06:32 mengsys#130
need help

I wanted to take Roll Call quest from PW School Teacher before start WQ. so i added the below in npcs.ahk

; Roll Call
npcs[15870] := new TNpc(22485, "PW School Teacher", "Roll Call", 30590)
npcs[15870].addAction("flyTo", 1529.83, 360, 1018.42)
npcs[15870].addAction("land")
npcs[15870].addAction("interact")

and also "itemId = 15870" in jawq.ahk.

it able to fly and landed at the NPC, but got error "17 ; Target id passed to function could not be located in vicinity' after landed.

is there anything i miss out ?
04/07/2014 20:11 Shareen#131
Quote:
Originally Posted by mengsys View Post
need help

I wanted to take Roll Call quest from PW School Teacher before start WQ. so i added the below in npcs.ahk

; Roll Call
npcs[15870] := new TNpc(22485, "PW School Teacher", "Roll Call", 30590)
npcs[15870].addAction("flyTo", 1529.83, 360, 1018.42)
npcs[15870].addAction("land")
npcs[15870].addAction("interact")

and also "itemId = 15870" in jawq.ahk.

it able to fly and landed at the NPC, but got error "17 ; Target id passed to function could not be located in vicinity' after landed.

is there anything i miss out ?
My guess would be wrong npc ID.
There are (in general) two ID's that refer to npc: one is unique ID of that npc, the other is the ID it assumes as it's spawned in the world, let's call that one instance ID.
Instance ID's change across servers and, sometimes, after server is restarted. Npc ID's do not.

What you need to pass is npc ID, NOT instance ID.
04/08/2014 13:08 mengsys#132
Quote:
Originally Posted by Shareen View Post
My guess would be wrong npc ID.
There are (in general) two ID's that refer to npc: one is unique ID of that npc, the other is the ID it assumes as it's spawned in the world, let's call that one instance ID.
Instance ID's change across servers and, sometimes, after server is restarted. Npc ID's do not.

What you need to pass is npc ID, NOT instance ID.
thx Shareen, but I got the npc ID from pwdatabase. [Only registered and activated users can see links. Click Here To Register...]

:(
04/08/2014 19:56 martmor#133
Quote:
Originally Posted by mengsys View Post
thx Shareen, but I got the npc ID from pwdatabase. [Only registered and activated users can see links. Click Here To Register...]

:(
Try to search them with CE as Interest07 wrote it in the FlyWQ Bot Thread.

[Only registered and activated users can see links. Click Here To Register...]
04/09/2014 12:22 mengsys#134
Quote:
Originally Posted by martmor View Post
Try to search them with CE as Interest07 wrote it in the FlyWQ Bot Thread.

[Only registered and activated users can see links. Click Here To Register...]
finally able to take quest at PW School Teacher by hard coded itemID and player.wqItemID and added the parameters in npcs.ahk. but now came to another problem. it got error 2 Timeout at step onDialogueOpened(player). seems like it wait for the return result value after took the quest.


itemId = 30590
player.wqItemId = 30590

; Roll Call
npcs[30590] := new TNpc(22485, "PW School Teacher", "Roll Call", 15870)
npcs[30590].addAction("flyTo", 1530, 360, 1019)
npcs[30590].addAction("land")
npcs[30590].addAction("interact")
04/09/2014 19:01 Shareen#135
Quote:
Originally Posted by mengsys View Post
finally able to take quest at PW School Teacher by hard coded itemID and player.wqItemID and added the parameters in npcs.ahk. but now came to another problem. it got error 2 Timeout at step onDialogueOpened(player). seems like it wait for the return result value after took the quest.


itemId = 30590
player.wqItemId = 30590

; Roll Call
npcs[30590] := new TNpc(22485, "PW School Teacher", "Roll Call", 15870)
npcs[30590].addAction("flyTo", 1530, 360, 1019)
npcs[30590].addAction("land")
npcs[30590].addAction("interact")
I can't comment on changes I can't see, it'd be best if you post the changes you did and the objective you are trying to accomplish.
Placement of where these changes were made is also important.

WQ item id of 30590 isn't really a WQ item, it's a different quest item.. you'll need to bypass certain checks first, for example, there is a check in player.ahk that excludes items with those ids, line 142:
Code:
if (((itemId >= 14031) and (itemId <= 14125)) or ((itemId >= 37013) and (itemId <= 37019))) {
You can do anything you want around the core, but if it falls outside the WQ range, it'll take little more than hack and slash in places here and there.

I'd advise against changing the line above for this quest, because it's in function getWQItemSlot(), thus indicating it's WQ related.

Better, wholesome approach, would be to add new function to retrieve slot for specific quest item id.

Another such caveat to look out for, are callback (event) functions. As npc dialogue opens, player.onDialogueOpened is called.
Problem here is that it assumes it's being called for WQ reason and thus it triggers return quest. Now that might be what you want and that's great, but it might also not be...and will thus yield unpredictable results.

Again, post changes and then we can talk shop, else it's just pointless guess work.