PWI: Reflections offset list for Prophet Bot.

08/08/2012 21:50 altivex#16
martmor, and what about pm notifications ?
Are they working?
cos mine not...
08/08/2012 22:08 KarmielKid#17
Mort can you post your edited .au3 So I can see what changes you have made?

I am not sure where to edit. I tried and compiled but get error. :mad:
08/08/2012 22:10 martmor#18
Quote:
Originally Posted by altivex View Post
martmor, and what about pm notifications ?
Are they working?
cos mine not...
I think not
08/08/2012 22:13 KarmielKid#19
OFFSET_ACTIONFLAG = "ActionFlag_Offset", $CFG_OFFSET_ACTIONSTRCT1 = "ACTIONSTRCT1_Offset", $CFG_OFFSET_ACTIONSTRCT2 = "ACTIONSTRCT2_Offset", $CFG_OFFSET_ACTIONSTRCT3 = "ACTIONSTRCT3_Offset", $CFG_OFFSET_ACTIONSTRCT4A = "ACTIONSTRCT4A_Offset", $CFG_OFFSET_ACTIONSTRCT4B = "ACTIONSTRCT4B_Offset"
$OFFSET_ACTIONFLAG[1] = IniRead($SOFTWARE_OFFSET_CONFIG, $CFG_OFFSET_ROOT_KEY, $CFG_OFFSET_ACTIONSTRCT1, "52")
$OFFSET_ACTIONFLAG[2] = IniRead($SOFTWARE_OFFSET_CONFIG, $CFG_OFFSET_ROOT_KEY, $CFG_OFFSET_ACTIONSTRCT2, "4176") < Is this the Value to be changed ?
$OFFSET_ACTIONFLAG[3] = IniRead($SOFTWARE_OFFSET_CONFIG, $CFG_OFFSET_ROOT_KEY, $CFG_OFFSET_ACTIONFLAG, "24")

Also noticed when targeting mobs it does not show in console.
08/08/2012 23:09 looka#20
Hello.

I prefer to use Hex when I'm trying to code so if anyone else do the same I have made a simple converter in autoit.

Code:
dim $dth, $dth1
$fil = FileOpen("c:\Autoit\hexconv.txt",1) ; filename for result (adding lines if file exsist)
$fil2 = FileOpen("c:\Autoit\tmp_dig.txt",0) ; filname to read
If $fil = -1 or $fil2 = -1 Then
    MsgBox(0, "Error", "Unable to open file.")
    Exit
EndIf
while 1
	$row = FileReadLine($fil2)
	If @error = -1 Then ExitLoop
	if StringInStr($row, "=") then
		$dth1 = StringSplit($row, "=")
		$dth = hex( $dth1[2])
		$row = $dth1[1] & "= Dec: " & $dth1[2] & " Hex: " & $dth
	EndIf
	FileWriteLine($fil, $row)
	$dth = ""
WEnd
FileClose($fil)
FileClose($fil2)
Result when converting 'altivex' list.

[Perfect_World_Base_Address_In_Decimal]
Application_Title= Dec: Perfect World International Hex: 00000000
Base_Address= Dec: 11859452 Hex: 00B4F5FC
Real_Base_Address= Dec: 11857716 Hex: 00B4EF34
Base_AddressFZ= Dec: 11860588 Hex: 00B4FA6C
Base_AddressEXP= Dec: Hex: 00000000
SendPacket_Adress= Dec: 6870592 Hex: 0068D640
ChatBase_Address= Dec: Hex: 00000000
LastChat_Address= Dec: Hex: 00000000

[Custom_32_Offsets_In_Decimal]
CHARSTRUCT1_OffSet= Dec: 52 Hex: 00000034
Casting_Offset= Dec: 1824 Hex: 00000720
Name_offset= Dec: 1644 Hex: 0000066C
CHARID_Offset= Dec: 1152 Hex: 00000480
LVL_Offset= Dec: 1164 Hex: 0000048C
Class_offset= Dec: 1652 Hex: 00000674
HP_OffSet= Dec: 1172 Hex: 00000494
MaxHP_OffSet= Dec: 1244 Hex: 000004DC
EXP_OffSet= Dec: 1180 Hex: 0000049C
MP_OffSet= Dec: 1176 Hex: 00000498
MaxMP_OffSet= Dec: 1248 Hex: 000004E0
STR_offset= Dec: 1236 Hex: 000004D4
DEX_offset= Dec: 1240 Hex: 000004D8
VIT_offset= Dec: 1228 Hex: 000004CC
MAG_offset= Dec: 1232 Hex: 000004D0
Spirit_offset= Dec: 1184 Hex: 000004A0
Gold_offset= Dec: 1376 Hex: 00000560
FlySpeed_Offset= Dec: 1272 Hex: 000004F8
FlyCounter_Offset= Dec: 2408 Hex: 00000968
MoveMode_OffSet= Dec: 1656 Hex: 00000678
CHI_Offset= Dec: 1192 Hex: 000004A8
MAXCHI_Offset= Dec: Hex: 00000000
Jump_Offset= Dec: 3172 Hex: 00000C64
CastID_Offset= Dec: 1832 Hex: 00000728
CharState_Offset= Dec: 1732 Hex: 000006C4
Reputation_Offset= Dec: 1504 Hex: 000005E0
Culti_Offset= Dec: 1164 Hex: 0000048C
X_Offset= Dec: 60 Hex: 0000003C
Y_Offset= Dec: 68 Hex: 00000044
Z_Offset= Dec: 64 Hex: 00000040

Target_OffSet= Dec: 3036 Hex: 00000BDC
PetBase_Offset= Dec: 4316 Hex: 000010DC
PetHP_OffSet= Dec: 56 Hex: 00000038
PetHunger_OffSet= Dec: 8 Hex: 00000008

ACTIONSTRCT1_Offset= Dec: 52 Hex: 00000034
ACTIONSTRCT2_Offset= Dec: 4292 Hex: 000010C4
ACTIONSTRCT3_Offset= Dec: 48 Hex: 00000030
ACTIONSTRCT4A_Offset= Dec: 4 Hex: 00000004
ACTIONSTRCT4B_Offset= Dec: 8 Hex: 00000008

ActionFlag_Offset= Dec: 24 Hex: 00000018
ActionRead_Offset= Dec: 4 Hex: 00000004
ActionRead2_Offset= Dec: 8 Hex: 00000008
ActionRead3_Offset= Dec: 28 Hex: 0000001C
ActionWrite_Offset= Dec: 12 Hex: 0000000C
ActionWrite2_Offset= Dec: 20 Hex: 00000014
ActionSkill_Offset= Dec: 80 Hex: 00000050
ActionMoveX_Offset= Dec: 32 Hex: 00000020
ActionMoveY_Offset= Dec: 40 Hex: 00000028
ActionMoveZ_Offset= Dec: 36 Hex: 00000024
ActionHeight_OffSet= Dec: 104 Hex: 00000068
ActionHeightFlag_OffSet= Dec: 100 Hex: 00000064
ActionHeightFlag2_OffSet= Dec: 108 Hex: 0000006C
ActionDoneFlag_Offset= Dec: 8 Hex: 00000008
ActionValue_Offset= Dec: 44 Hex: 0000002C
ActionValue2_Offset= Dec: 64 Hex: 00000040
ActionSetError_Offset= Dec: 76 Hex: 0000004C
ActionFinished_Offset= Dec: 8 Hex: 00000008
ActionStart_Offset= Dec: 20 Hex: 00000014
ActionNotStart_Offset= Dec: 36 Hex: 00000024
ActionObject_Offset= Dec: 32 Hex: 00000020
ObjectAction_Offset= Dec: 56 Hex: 00000038

PLAYERSTRUCT1_OffSet= Dec: 28 Hex: 0000001C
PLAYERSTRUCT2_OffSet= Dec: 32 Hex: 00000020

PlayerBase_Offset= Dec: 136 Hex: 00000088
PlayerCount_Offset= Dec: 20 Hex: 00000014
PlayerID_Offset= Dec: 1152 Hex: 00000480
PlayerLVL_Offset= Dec: 1164 Hex: 0000048C
PlayerName_Offset= Dec: 1636 Hex: 00000664
PlayerHP_Offset= Dec: 1140 Hex: 00000474
PlayerMAXHP_Offset= Dec: 1232 Hex: 000004D0
PlayerClass_Offset= Dec: 1596 Hex: 0000063C

NPCSTRUCT1_OffSet= Dec: 28 Hex: 0000001C
NPCSTRUCT1_OffSet= Dec: 36 Hex: 00000024

NPCBase_Offset= Dec: 80 Hex: 00000050
NPCPAI_Offset= Dec: 748 Hex: 000002EC
NPCCount_Offset= Dec: 20 Hex: 00000014
NPCID_Offset= Dec: 288 Hex: 00000120
NPCName_Offset= Dec: 608 Hex: 00000260
NPCLVL_Offset= Dec: 296 Hex: 00000128
NPCHP_Offset= Dec: 304 Hex: 00000130
NPCMAXHP_Offset= Dec: 376 Hex: 00000178
NPCSpecial_Offset= Dec: 596 Hex: 00000254
TARSTARGET_OffSet= Dec: 748 Hex: 000002EC

ITEMSTRUCT1_OffSet= Dec: 28 Hex: 0000001C
ITEMSTRUCT2_OffSet= Dec: 40 Hex: 00000028

ItemBase_Offset= Dec: 24 Hex: 00000018
ItemID_Offset= Dec: 272 Hex: 00000110
ItemSN_Offset= Dec: 276 Hex: 00000114
ItemName_Offset= Dec: 360 Hex: 00000168
ItemType_Offset= Dec: 336 Hex: 00000150

INVENTORYSTRUCT1_OffSet= Dec: 3360 Hex: 00000D20

InventoryBase_Offset= Dec: 12 Hex: 0000000C
InventoryID_Offset= Dec: 8 Hex: 00000008
InventoryStackAmount_Offset= Dec: 16 Hex: 00000010
InventoryMAXStackAmount_Offset= Dec: 20 Hex: 00000014
InventorySellPrice_Offset= Dec: 24 Hex: 00000018
InventoryBuyPrice_Offset= Dec: 28 Hex: 0000001C
InventoryDescription_Offset= Dec: 64 Hex: 00000040

EQUIPPEDINVENTORSTRUCT1_OffSet= Dec: 3324 Hex: 00000CFC

(Edit: got 2 filereadline in while)
08/08/2012 23:32 KarmielKid#21
I am stumped still working on it if I get it I will share all.
08/08/2012 23:50 altivex#22
4 offsets left

MAXCHI_Offset=
Base_AddressEXP=
ChatBase_Address=
LastChat_Address=

Bot was tested for several hours - it`s workin a bit fine!
08/09/2012 00:07 KarmielKid#23
Use 3.0 with new offsets posted here by altivex and motmor to grind.

Use same offsets with 3.1 to farm herb only. When I add target to list manually the game crashes. So you may want to clear the mob list. Until I can try to address this.

Both tested and both work

You do not need to edit the .exe file.


If you can not get the offsets just use offset finder 2 it finds the main offsets.

I will still be working on my Autoit use and the scripting. Since it is open source, I see no reason not be to share once it is fully working.
08/11/2012 00:45 KarmielKid#24
Thank you to Mortmor and other who helped with the offsets.

I have a working version of Prophet Bot now.
08/11/2012 14:27 Yulss#25
Hello, I copied the offset and everything is fine, but the rest of pj stops, stands not rest to recover HP and MP, there is some solution, thanks
The values ​​that are empty, nothing is written?
08/11/2012 18:29 martmor#26
Hi

You must change in the exe file at the Version 3.1 the sendpacket and real base address too. And at the 3.0 Version the Action offset in the .exe file.
08/12/2012 11:32 Yulss#27
Thanks for answering martmor, I am new to AutoIt and when I find this SendPacket: Global $ SENDPACKETADDRESS = "0x" & Hex (IniRead ($ SOFTWARE_OFFSET_CONFIG, $ CFG_BASEADDRESS_ROOT_KEY, "SendPacket_Adress", "")), $ REALBASEADDRESS = "0x" ..... etc. Should I replace 0x, for 0068D640?
I hope google translator is doing a good job.
08/12/2012 11:42 martmor#28
Sendpacket address should be 0x........
08/12/2012 12:02 Yulss#29
This is very difficult for me, could you help me more?, Be a little more specific?, Thanks and sorry for so many questions
08/12/2012 15:49 zbychos#30
hi

Base_AddressEXP=11862300