SRL Archive - Client Hacking

#612


ZephyrsFury

2010-06-24 10:52:36

I've updated the hooks from the updater but I dunno how to get the rest and some hooks from the updater are switched compared to previous versions so I'm not sure. I just commited stuff directly from the updater.

masterBB

2010-06-24 11:00:16

It doesn't seems enough to run my reflection scripts, great job though. And it still says the hooks are outdated. Only reflectionSetupEx(false) will run…

ZephyrsFury

2010-06-24 11:03:27

I had no idea there was a SetupReflection function =/

Narcle

2010-06-24 11:42:40

Well Drags is mia (player WoW?). I'm not sure where the other locations are to get the hooks. But from what I've read all the other bots are still outdated… Gah we need to get all the hooks in the updater at some point. =X

The hook for Login_index is wrong, that's why the SetupReflection terminates currently. Again I can't double check it atm.

Method

2010-06-24 11:44:44

You could try using these, if you want. I can't guarantee the validity of them, but they were pasted in another IRC channel earlier.

edit: I'd suggest using TRiLeZ's log as it's probably more accurate.

TRiLeZ

2010-06-24 12:43:48

Here's my updater log:

[--------------TRiLeZ's Updater--------------]
Client Revision: 612
Loaded 731 classes from runescape-612.jar

[ Client ]
Class client implements Client
getMinimapScale() --> static int fj.u
getMinimapSetting() --> static int dc.w
getMinimapAngle() --> static int bs.c
getMinimapOffset() --> static float qda.fb
getBaseX() --> static int hda.L
getBaseY() --> static int jh.Lb
getPlane() --> static int tm.q
getPlayerArray() --> static pi[] jba.r
getNpcIndexArray() --> static int[] cm.p
getPlayerIndexArray() --> static int[] in.B
getPlayerCount() --> static int daa.f
getNpcCount() --> static int hu.d
getNpcNodes() --> static lda[] aga.c
getLoginIndex() --> static int ml.i
getMyPlayer() --> static pi nn.O
getLoopCycle() --> static int uca.r
getPlanes() --> static d[] bs.g
getMainToolkit() --> static oa mi.r
getUsername() --> static java.lang.String mf.D
getPassword() --> static java.lang.String fl.a
getMenuOptionCount() --> static int hq.c
getSelectedActionName() --> static java.lang.String sj.d
getSelectedObjectName() --> static java.lang.String wfa.f
* Hooked 23/27 hooks.

[ Animable ]
Class fu implements Animable
getPlane() --> field byte fu.i
getLocalX() --> field int fu.l
getLocalY() --> field int fu.r
* Hooked 3/3 hooks.

[ Character ]
Class fp implements Character
getWalkQueueX() --> field int[] fp.Bc
getWalkQueueY() --> field int[] fp.Dc
getMovementSpeed() --> field int fp.xc
getLoopCycleStatus() --> field int fp.cb
getAnimation() --> field int fp.sb
getChatMessage() --> field java.lang.String fp.X
getHPRatio() --> field int fp.ub
getHitTypes() --> field int[] fp.S
getHitDamages() --> field int[] fp.Eb
* Hooked 9/9 hooks.

[ NpcNode ]
Class lda implements NpcNode
getNpc() --> field ag lda.m
* Hooked 1/1 hooks.

[ Npc ]
Class ag implements Npc
getNpcDef() --> field nc ag.Qc
* Hooked 1/1 hooks.

[ NpcDef ]
Class nc implements NpcDef
getActions() --> field java.lang.String[] nc.S
getIsClickable() --> field boolean nc.g
* Hooked 2/4 hooks.

[ Plane ]
Class d implements Plane
getZSize() --> field int d.f
getXSize() --> field int d.b
getScale() --> field int d.d
getYSize() --> field int d.e
* Hooked 4/4 hooks.

[ Player ]
Class pi implements Player
getAccountName() --> field java.lang.String pi.ud
getDisplayName() --> field java.lang.String pi.dd
* Hooked 2/3 hooks.

[ SDPlane ]
Class jj implements SDPlane
getTileHeights() --> field int[][] jj.m
* Hooked 1/1 hooks.

[ SDToolkit ]
Class uq implements SDToolkit
getViewport() --> field aea uq.S
getZNear() --> field int uq.E
getZFar() --> field int uq.jb
getXMultiplier() --> field int uq.K
getYMultiplier() --> field int uq.bb
getAbsoluteX1() --> field int uq.db
getAbsoluteX2() --> field int uq.y
getAbsoluteY1() --> field int uq.A
getAbsoluteY2() --> field int uq.gb
* Hooked 9/9 hooks.

[ SDViewport ]
Class aea implements SDViewport
getZOff() --> field int aea.k
getZX() --> field int aea.p
getZY() --> field int aea.t
getZZ() --> field int aea.o
getXOff() --> field int aea.j
getXX() --> field int aea.r
getXY() --> field int aea.l
getXZ() --> field int aea.q
getYOff() --> field int aea.s
getYX() --> field int aea.i
getYY() --> field int aea.m
getYZ() --> field int aea.n
* Hooked 12/12 hooks.

[ SDModel ]
Class tca implements SDModel
getVerticesX() --> field int[] tca.sb
getVerticesY() --> field int[] tca.dc
getVerticesZ() --> field int[] tca.jc
getVertexCount() --> field int tca.N
* Hooked 4/4 hooks.

Found 71/78 hooks in 1031ms.

MylesMadness

2010-06-24 13:09:14

{**
* Copyright 2010 by Benjamin J. Land (a.k.a. BenLand100)
*
* This file is part of the SMART Minimizing Autoing Resource Thing (SMART)
*
* SMART is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* SMART is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with SMART. If not, see <http://www.gnu.org/licenses/>.
*}

const
ClientVersion = 612;

{Static Hooks}
hook_static_LoginIndex = 'ml.i';
hook_static_MyPlayer = 'nn.O';
hook_static_BaseX = 'hda.L';
hook_static_BaseY = 'jh.Lb';
hook_static_NPCIndexArray = 'cm.p';
hook_static_NPCNodes = 'aga.c';
hook_static_NPCCount = 'jea.ahu.d';
hook_static_GroundSettingsArray = '';
hook_static_LoadedPlane = 'tm.q';
hook_static_PlaneArray = 'bs.g';
hook_static_Toolkit = 'mi.r';
hook_static_MapAngle = 'bs.c';
hook_static_DestX = '';
hook_static_DestY = '';
hook_static_MenuOptionCount = 'hq.c';
hook_static_MenuX = '';
hook_static_MenuY = '';
hook_static_MenuOpen = '';
hook_static_MenuNodeList = '';
hook_static_LoopCycle = 'uca.r';
hook_static_PlayerCount = 'daa.f';
hook_static_PlayerIndexArray = 'in.B';
hook_static_GetPlayers = 'jba.r';
hook_static_GetSkillLevels = 'sb.d';//
hook_static_GetSkillExperiences = 'qq.u';//

{Class Animable}
class_Animable = 'fu';
hook_animable_PixelX = 'l';
hook_animable_PixelY = 'r';
hook_animable_Plane = 'i';

{Class Player}
class_Player = 'pi';
hook_player_GetLevel = 'bd';
hook_player_GetName = 'ud';
hook_player_PlayerDef = 'Oc';

{Class Character}
class_Character = 'fp';
hook_character_GetHitDamges = 'Eb';
hook_character_Animation = 'sb';
hook_character_Motion = 'xc';
hook_character_WalkQueueX = 'Bc';
hook_character_WalkQueueY = 'Dc';
hook_character_GetHeight = 'jb';
hook_character_LoopCycleStatus = 'cb';
hook_character_HPRatio = 'ub';
hook_character_GetInteracting = 'Rb';

{Class NPC}
class_NPC = 'ag';
hook_npc_NPCDef = 'Qc';

{Class NPCDef}
class_NPCDef = 'nc';
hook_npcdef_GetName = 'y';
hook_npcdef_GetActions = 'S';
hook_npcdef_GetLevel = 'c';

{Class NPCNode}
class_NPCNode = 'lda';
hook_npcnode_GetNPC = 'm';

{Class GroundTile}
class_GroundTile = 'ne';

{Class Plane}
class_Plane = 'd';

{Class RSInteractable}
class_RSInteractable = 'fl';

{Class Toolkit}
class_Toolkit = 'oa';

{Class Viewport}
class_Viewport = 'q';

{Class SDViewport}
class_SDViewport = 'aea';
hook_sdviewport_xOff = 'j';
hook_sdviewport_xX = 'r';
hook_sdviewport_xY = 'l';
hook_sdviewport_xZ = 'q';
hook_sdviewport_yOff = 's';
hook_sdviewport_yX = 'i';
hook_sdviewport_yY = 'm';
hook_sdviewport_yZ = 'n';
hook_sdviewport_zOff = 'k';
hook_sdviewport_zX = 'p';
hook_sdviewport_zY = 't';
hook_sdviewport_zZ = 'o';

{Class SDToolkit}
class_SDToolkit = 'uq';
hook_sdtoolkit_xMin = 'db';
hook_sdtoolkit_xMax = 'y';
hook_sdtoolkit_yMin = 'A';
hook_sdtoolkit_yMax = 'gb';
hook_sdtoolkit_zMin = 'E';
hook_sdtoolkit_zMax = 'jb';
hook_sdtoolkit_xScale = 'K';
hook_sdtoolkit_yScale = 'bb';
hook_sdtoolkit_Viewport = 'S';

{Class SDPlane}
class_SDPlane = 'jj';
hook_sdplane_TileHeights = 'm';

{Class NodeList}
class_NodeList = 'mfa';
hook_nodelist_Current = 'p';
hook_nodelist_Head = 'k';

{Class Node}
class_Node = 'mu';
hook_node_Next = 'a';
hook_node_GetID = 'b';//
hook_node_Previous = 'k';

{Class Menu}
class_Menu = 'rt';
hook_menu_Option = 'q';
hook_menu_Action = 'u';

{Class PlayerDef}
class_PlayerDef = 'dea';
hook_playerdef_GetEquipment = 's';//

{
/////////////// HOOKS BELOW HERE ARE OUTDATED AS OF 24 JUNE 2010 (Client 612) ////////////////////////

These hooks all need to be added to the updater.
}

//Character
hook_character_Orientation = 'ab';

//NPCDef
hook_npcdef_GetID = 'z';

//Client
hook_static_GroundTiles = 'lm.w'; //getRSGroundArray in RSBot
hook_static_GetInterfaces = 'tc.r'; //getRSInterfaceCache in RSBot
hook_static_ValidInterfaces = 'cg.n'; //getValidRSInterfaceArray in RSBot
hook_static_GetSettings = 'fba.M'; //getSettingArray in RSBot
hook_static_GroundItemCache = 'tu.Md'; //getRSItemNodeCache in RSBot

//RSGround class uaa.
hook_ground_AnimableList = 'k'; //getRSAnimableList in RSBot
hook_ground_WallObject1 = 't'; //getRSObject2_1 in RSBot
hook_ground_WallObject2 = 'l'; //getRSObject2_0 in RSBot
hook_ground_WallDecoration1 = 'e'; //getRSObject3_0 in RSBot
hook_ground_WallDecoration2 = 's'; //getRSObject3_1 in RSBot
hook_ground_FloorDecoration = 'r'; //getRSObject1 in RSBot

//AnimableNode class de
hook_AnimableNode_GetAnimable = 'j';
hook_AnimableNode_GetNext = 'h';

//InteractiveObject class pba
hook_InteractiveObject_GetID = 'z';
hook_InteractiveObject_GetID2 = 'H.o'; //instance of ej. is an int.

//WallObjectData class dca
hook_wallobjectdata_GetID = 'N';
hook_wallobjectdata_GetID2 = 'y.o'; //instance of ej. is an int.

//WallDecorationData class ew
hook_WallDecorationData_GetID = 'C';
hook_WallDecorationData_GetID2 = 'z.o'; //instance of ej. is an int.

//FloorDecorationData class rv
hook_FloorDecorationData_GetID = 'O';
hook_FloorDecorationData_GetID2 = 'r.o'; //instance of ej. is an int.

//Interface class jq
hook_interface_GetChildren = 'i'; //getComponents in RSBot
hook_interface_GetName = 'hb'; //getComponentName in RSBot
hook_interface_GetID = 'Tb'; //getComponentID in RSBot
hook_interface_GetStack = 'qc'; //getComponentStackSize in RSBot
hook_interface_GetActions = 'm';
hook_interface_GetX = 'Eb';
hook_interface_GetY = 'Dc';
hook_interface_GetWidth = 'Gb';
hook_interface_GetHeight = 'F';
hook_interface_GetText = 'S';
hook_interface_GetTextureID = 'fd';
hook_interface_GetTextColor = 'jc';
hook_interface_GetUID = 'xb';
hook_interface_GetModelID = 'Z';
hook_interface_GetModelZoom = 'kb';

//GroundItem crap.
hook_nodecache_GetNodes = 'l'; //getCache in RSBot
hook_nodelistcache_GetNodeList = 'm';

hook_item_GetID = 'q';
hook_item_GetStack = 'k';

//Settings Array
hook_settingarray_GetData = 'k';
I didn't get through them all, but i started changing Trilez output into scar. If there is nothing in it means I couldn't find it

Narcle

2010-06-24 13:40:46

Tile height and/or plane hooks seem to be wrong. I've got walking working but that's the only thing accurate atm.

scuz 10

2010-06-24 19:52:05

Has anyone been able to find the hooks for:

getClanChatPlayerCount()
getClanChatPlayers()

yet?

MylesMadness

2010-06-24 20:00:29

From: scuz 10
Has anyone been able to find the hooks for:

getClanChatPlayerCount()
getClanChatPlayers()

yet?
ClanChatPlayerCount is uo.b

MylesMadness

2010-06-24 21:17:55

Double post, but:

{**
* Copyright 2010 by Benjamin J. Land (a.k.a. BenLand100)
*
* This file is part of the SMART Minimizing Autoing Resource Thing (SMART)
*
* SMART is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* SMART is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with SMART. If not, see <http://www.gnu.org/licenses/>.
*}

const
ClientVersion = 612;

{Static Hooks}
hook_static_LoginIndex = 'ml.i';
hook_static_MyPlayer = 'nn.O';
hook_static_BaseX = 'hda.L';
hook_static_BaseY = 'jh.Lb';
hook_static_NPCIndexArray = 'cm.p';
hook_static_NPCNodes = 'aga.c';
hook_static_NPCCount = 'hu.d';
hook_static_GroundSettingsArray = 'nv.z';
hook_static_LoadedPlane = 'tm.q';
hook_static_PlaneArray = 'bs.g';
hook_static_Toolkit = 'mi.r';
hook_static_MapAngle = 'qda.fb';
hook_static_DestX = 'nn.x';
hook_static_DestY = 'tc.x';
hook_static_MenuOptionCount = 'hq.c';
hook_static_MenuX = 'daa.f';
hook_static_MenuY = 'in.B';
hook_static_MenuOpen = 'ida.i';
hook_static_MenuNodeList = 'ht.D';
hook_static_LoopCycle = 'uca.r';
hook_static_PlayerCount = 'daa.f';
hook_static_PlayerIndexArray = 'in.B';
hook_static_GetPlayers = 'jba.r';

{Class Animable}
class_Animable = 'fu';
hook_animable_PixelX = 'l';
hook_animable_PixelY = 'r';
hook_animable_Plane = 'i';

{Class Player}
class_Player = 'pi';
hook_player_GetLevel = 'bd';
hook_player_GetName = 'ud';
hook_player_PlayerDef = 'Oc';

{Class Character}
class_Character = 'fp';
hook_character_GetHitDamges = 'A';
hook_character_Animation = 'sb';
hook_character_Motion = 'xc';
hook_character_WalkQueueX = 'Dc';
hook_character_WalkQueueY = 'Bc';
hook_character_GetHeight = 'jb';
hook_character_LoopCycleStatus = 'cb';
hook_character_HPRatio = 'ub';
hook_character_GetInteracting = 'Rb';

{Class NPC}
class_NPC = 'ag';
hook_npc_NPCDef = 'Qc';

{Class NPCDef}
class_NPCDef = 'nc';
hook_npcdef_GetName = 'y';
hook_npcdef_GetActions = 'S';
hook_npcdef_GetLevel = 'c';

{Class NPCNode}
class_NPCNode = 'lda';
hook_npcnode_GetNPC = 'm';

{Class GroundTile}
class_GroundTile = 'ne';

{Class Plane}
class_Plane = 'd';

{Class RSInteractable}
class_RSInteractable = 'fl';

{Class Toolkit}
class_Toolkit = 'oa';

{Class Viewport}
class_Viewport = 'q';

{Class SDViewport}
class_SDViewport = 'aea';
hook_sdviewport_xOff = 'j';
hook_sdviewport_xX = 'r';
hook_sdviewport_xY = 'l';
hook_sdviewport_xZ = 'q';
hook_sdviewport_yOff = 's';
hook_sdviewport_yX = 'i';
hook_sdviewport_yY = 'm';
hook_sdviewport_yZ = 'n';
hook_sdviewport_zOff = 'k';
hook_sdviewport_zX = 'p';
hook_sdviewport_zY = 't';
hook_sdviewport_zZ = 'o';

{Class SDToolkit}
class_SDToolkit = 'uq';
hook_sdtoolkit_xMin = 'db';
hook_sdtoolkit_xMax = 'y';
hook_sdtoolkit_yMin = 'A';
hook_sdtoolkit_yMax = 'gb';
hook_sdtoolkit_zMin = 'E';
hook_sdtoolkit_zMax = 'jb';
hook_sdtoolkit_xScale = 'K';
hook_sdtoolkit_yScale = 'bb';
hook_sdtoolkit_Viewport = 'S';

{Class SDPlane}
class_SDPlane = 'jj';
hook_sdplane_TileHeights = 'm';

{Class NodeList}
class_NodeList = 'mfa';
hook_nodelist_Current = 'p';
hook_nodelist_Head = 'k';

{Class Node}
class_Node = 'mu';
hook_node_Next = 'a';
hook_node_Previous = 'k';

{Class Menu}
class_Menu = 'rt';
hook_menu_Option = 'q';
hook_menu_Action = 'u';

{Class PlayerDef}
class_PlayerDef = 'dea';
Output right from the updater in the reflection trunk

ZephyrsFury

2010-06-24 21:44:37

From: MylesMadness
Double post, but:

{**
* Copyright 2010 by Benjamin J. Land (a.k.a. BenLand100)
*
* This file is part of the SMART Minimizing Autoing Resource Thing (SMART)
*
* SMART is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* SMART is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with SMART. If not, see <http://www.gnu.org/licenses/>.
*}

const
ClientVersion = 612;

{Static Hooks}
hook_static_LoginIndex = 'ml.i';
hook_static_MyPlayer = 'nn.O';
hook_static_BaseX = 'hda.L';
hook_static_BaseY = 'jh.Lb';
hook_static_NPCIndexArray = 'cm.p';
hook_static_NPCNodes = 'aga.c';
hook_static_NPCCount = 'hu.d';
hook_static_GroundSettingsArray = 'nv.z';
hook_static_LoadedPlane = 'tm.q';
hook_static_PlaneArray = 'bs.g';
hook_static_Toolkit = 'mi.r';
hook_static_MapAngle = 'qda.fb';
hook_static_DestX = 'nn.x';
hook_static_DestY = 'tc.x';
hook_static_MenuOptionCount = 'hq.c';
hook_static_MenuX = 'daa.f';
hook_static_MenuY = 'in.B';
hook_static_MenuOpen = 'ida.i';
hook_static_MenuNodeList = 'ht.D';
hook_static_LoopCycle = 'uca.r';
hook_static_PlayerCount = 'daa.f';
hook_static_PlayerIndexArray = 'in.B';
hook_static_GetPlayers = 'jba.r';

{Class Animable}
class_Animable = 'fu';
hook_animable_PixelX = 'l';
hook_animable_PixelY = 'r';
hook_animable_Plane = 'i';

{Class Player}
class_Player = 'pi';
hook_player_GetLevel = 'bd';
hook_player_GetName = 'ud';
hook_player_PlayerDef = 'Oc';

{Class Character}
class_Character = 'fp';
hook_character_GetHitDamges = 'A';
hook_character_Animation = 'sb';
hook_character_Motion = 'xc';
hook_character_WalkQueueX = 'Dc';
hook_character_WalkQueueY = 'Bc';
hook_character_GetHeight = 'jb';
hook_character_LoopCycleStatus = 'cb';
hook_character_HPRatio = 'ub';
hook_character_GetInteracting = 'Rb';

{Class NPC}
class_NPC = 'ag';
hook_npc_NPCDef = 'Qc';

{Class NPCDef}
class_NPCDef = 'nc';
hook_npcdef_GetName = 'y';
hook_npcdef_GetActions = 'S';
hook_npcdef_GetLevel = 'c';

{Class NPCNode}
class_NPCNode = 'lda';
hook_npcnode_GetNPC = 'm';

{Class GroundTile}
class_GroundTile = 'ne';

{Class Plane}
class_Plane = 'd';

{Class RSInteractable}
class_RSInteractable = 'fl';

{Class Toolkit}
class_Toolkit = 'oa';

{Class Viewport}
class_Viewport = 'q';

{Class SDViewport}
class_SDViewport = 'aea';
hook_sdviewport_xOff = 'j';
hook_sdviewport_xX = 'r';
hook_sdviewport_xY = 'l';
hook_sdviewport_xZ = 'q';
hook_sdviewport_yOff = 's';
hook_sdviewport_yX = 'i';
hook_sdviewport_yY = 'm';
hook_sdviewport_yZ = 'n';
hook_sdviewport_zOff = 'k';
hook_sdviewport_zX = 'p';
hook_sdviewport_zY = 't';
hook_sdviewport_zZ = 'o';

{Class SDToolkit}
class_SDToolkit = 'uq';
hook_sdtoolkit_xMin = 'db';
hook_sdtoolkit_xMax = 'y';
hook_sdtoolkit_yMin = 'A';
hook_sdtoolkit_yMax = 'gb';
hook_sdtoolkit_zMin = 'E';
hook_sdtoolkit_zMax = 'jb';
hook_sdtoolkit_xScale = 'K';
hook_sdtoolkit_yScale = 'bb';
hook_sdtoolkit_Viewport = 'S';

{Class SDPlane}
class_SDPlane = 'jj';
hook_sdplane_TileHeights = 'm';

{Class NodeList}
class_NodeList = 'mfa';
hook_nodelist_Current = 'p';
hook_nodelist_Head = 'k';

{Class Node}
class_Node = 'mu';
hook_node_Next = 'a';
hook_node_Previous = 'k';

{Class Menu}
class_Menu = 'rt';
hook_menu_Option = 'q';
hook_menu_Action = 'u';

{Class PlayerDef}
class_PlayerDef = 'dea';
Output right from the updater in the reflection trunk


Which is the one I said I'd commited to the repos already. Unless some of these ones are incorrect we just need the other half or so hooks that seem to need manual updating.

MylesMadness

2010-06-25 11:17:05

uh, there seem to be no updated hooks besides the client version in the repo…

ZephyrsFury

2010-06-25 11:57:42

From: MylesMadness
uh, there seem to be no updated hooks besides the client version in the repo…


Hmm, sorry then. I did commit the output of the updater though. Something happened somewhere along the way. =/

Method

2010-06-25 12:03:30

From: ZephyrsFury
Hmm, sorry then. I did commit the output of the updater though. Something happened somewhere along the way. =/


It looks like you made two different commits. I think some of the ones in the first one were correct while others in the second one were correct. However, when you overwrote the first set of hooks, some of them became invalid.

Narcle

2010-06-25 13:55:09

Drags before got the hooks from RSBots hook database which is online somewhere… I can't find it though, nor can I get in contact of Drags to ask.

This is what I've got.

{**
* Copyright 2010 by Benjamin J. Land (a.k.a. BenLand100)
*
* This file is part of the SMART Minimizing Autoing Resource Thing (SMART)
*
* SMART is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* SMART is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with SMART. If not, see <http://www.gnu.org/licenses/>.
*}

const
ClientVersion = 612;

{Static Hooks}
hook_static_LoginIndex = 'ml.i';
hook_static_MyPlayer = 'nn.O';
hook_static_BaseX = 'hda.L';
hook_static_BaseY = 'jh.Lb';
hook_static_NPCIndexArray = 'cm.p';
hook_static_NPCNodes = 'aga.c';
hook_static_NPCCount = 'hu.d';
hook_static_GroundSettingsArray = 'nv.z';
hook_static_LoadedPlane = 'tm.q';
hook_static_PlaneArray = 'bs.g';
hook_static_Toolkit = 'mi.r';
hook_static_MapAngle = 'qda.fb';
hook_static_DestX = 'nn.x';
hook_static_DestY = 'tc.x';
hook_static_MenuOptionCount = 'hq.c';
hook_static_MenuX = 'daa.f';
hook_static_MenuY = 'in.B';
hook_static_MenuOpen = 'ida.i';
hook_static_MenuNodeList = 'ht.D';
hook_static_LoopCycle = 'uca.r';
hook_static_PlayerCount = 'daa.f';
hook_static_PlayerIndexArray = 'in.B';
hook_static_GetPlayers = 'jba.r';
hook_static_GetSkillLevels = 'tt.v';
hook_static_GetSkillExperiences = 'mb.a';

{Class Animable}
class_Animable = 'fu';
hook_animable_PixelX = 'l';
hook_animable_PixelY = 'r';
hook_animable_Plane = 'i';

{Class Player}
class_Player = 'pi';
hook_player_GetLevel = 'bd';
hook_player_GetName = 'ud';
hook_player_PlayerDef = 'Oc';

{Class Character}
class_Character = 'fp';
hook_character_GetHitDamges = 'A';
hook_character_Animation = 'sb';
hook_character_Motion = 'xc';
hook_character_WalkQueueX = 'Dc';
hook_character_WalkQueueY = 'Bc';
hook_character_GetHeight = 'jb';
hook_character_LoopCycleStatus = 'cb';
hook_character_HPRatio = 'ub';
hook_character_GetInteracting = 'Rb';

{Class NPC}
class_NPC = 'ag';
hook_npc_NPCDef = 'Qc';

{Class NPCDef}
class_NPCDef = 'nc';
hook_npcdef_GetName = 'y';
hook_npcdef_GetActions = 'S';
hook_npcdef_GetLevel = 'c';

{Class NPCNode}
class_NPCNode = 'lda';
hook_npcnode_GetNPC = 'm';

{Class GroundTile}
class_GroundTile = 'ne';

{Class Plane}
class_Plane = 'd';

{Class RSInteractable}
class_RSInteractable = 'fl';

{Class Toolkit}
class_Toolkit = 'oa';

{Class Viewport}
class_Viewport = 'q';

{Class SDViewport}
class_SDViewport = 'aea';
hook_sdviewport_xOff = 'j';
hook_sdviewport_xX = 'r';
hook_sdviewport_xY = 'l';
hook_sdviewport_xZ = 'q';
hook_sdviewport_yOff = 's';
hook_sdviewport_yX = 'i';
hook_sdviewport_yY = 'm';
hook_sdviewport_yZ = 'n';
hook_sdviewport_zOff = 'k';
hook_sdviewport_zX = 'p';
hook_sdviewport_zY = 't';
hook_sdviewport_zZ = 'o';

{Class SDToolkit}
class_SDToolkit = 'uq';
hook_sdtoolkit_xMin = 'db';
hook_sdtoolkit_xMax = 'y';
hook_sdtoolkit_yMin = 'A';
hook_sdtoolkit_yMax = 'gb';
hook_sdtoolkit_zMin = 'E';
hook_sdtoolkit_zMax = 'jb';
hook_sdtoolkit_xScale = 'K';
hook_sdtoolkit_yScale = 'bb';
hook_sdtoolkit_Viewport = 'S';

{Class SDPlane}
class_SDPlane = 'jj';
hook_sdplane_TileHeights = 'm';

{Class NodeList}
class_NodeList = 'mfa';
hook_nodelist_Current = 'p';
hook_nodelist_Head = 'k';

{Class Node}
class_Node = 'mu';
hook_node_Next = 'a';
hook_node_GetID = 'b';//
hook_node_Previous = 'k';

{Class Menu}
class_Menu = 'rt';
hook_menu_Option = 'q';
hook_menu_Action = 'u';

{Class PlayerDef}
class_PlayerDef = 'dea';
hook_playerdef_GetEquipment = 's';//

{Class Interface}
hook_interface_GetChildren = 'I'; //getComponents in RSBot
hook_interface_GetID = 'ad'; //getComponentID in RSBot
hook_interface_GetStack = 'i'; //getComponentStackSize in RSBot
hook_interface_GetActions = 'Wb';
hook_interface_GetX = 'yb';
hook_interface_GetY = 'Rc';
hook_interface_GetWidth = 'Sc';
hook_interface_GetHeight = 'od';
hook_interface_GetText = 'kc';
hook_interface_GetTextureID = 'hb';
hook_interface_GetTextColor = 'Zc';
hook_interface_GetModelID = 'oc';
hook_interface_GetModelZoom = 'ic';

{
/////////////// HOOKS BELOW HERE ARE OUTDATED AS OF 24 JUNE 2010 (Client 612) ////////////////////////

These hooks all need to be added to the updater.
}

//Character
hook_character_Orientation = 'ab';

//NPCDef
hook_npcdef_GetID = 'nc.o';

//Client
hook_static_GroundTiles = 'lm.w'; //getRSGroundArray in RSBot
hook_static_GetInterfaces = 'tc.r'; //getRSInterfaceCache in RSBot
hook_static_ValidInterfaces = 'cg.n'; //getValidRSInterfaceArray in RSBot
hook_static_GetSettings = 'fba.M'; //getSettingArray in RSBot
hook_static_GroundItemCache = 'tu.Md'; //getRSItemNodeCache in RSBot

//RSGround class uaa.
hook_ground_AnimableList = 'k'; //getRSAnimableList in RSBot
hook_ground_WallObject1 = 't'; //getRSObject2_1 in RSBot
hook_ground_WallObject2 = 'l'; //getRSObject2_0 in RSBot
hook_ground_WallDecoration1 = 'e'; //getRSObject3_0 in RSBot
hook_ground_WallDecoration2 = 's'; //getRSObject3_1 in RSBot
hook_ground_FloorDecoration = 'r'; //getRSObject1 in RSBot

//AnimableNode class de
hook_AnimableNode_GetAnimable = 'j';
hook_AnimableNode_GetNext = 'h';

//InteractiveObject class pba
hook_InteractiveObject_GetID = 'z';
hook_InteractiveObject_GetID2 = 'H.o'; //instance of ej. is an int.

//WallObjectData class dca
hook_wallobjectdata_GetID = 'N';
hook_wallobjectdata_GetID2 = 'y.o'; //instance of ej. is an int.

//WallDecorationData class ew
hook_WallDecorationData_GetID = 'C';
hook_WallDecorationData_GetID2 = 'z.o'; //instance of ej. is an int.

//FloorDecorationData class rv
hook_FloorDecorationData_GetID = 'O';
hook_FloorDecorationData_GetID2 = 'r.o'; //instance of ej. is an int.

//Interface class ep
hook_interface_GetName = 'hb'; //getComponentName in RSBot
hook_interface_GetUID = 'xb';

//GroundItem crap.
hook_nodecache_GetNodes = 'l'; //getCache in RSBot
hook_nodelistcache_GetNodeList = 'm';

hook_item_GetID = 'q';
hook_item_GetStack = 'k';

//Settings Array
hook_settingarray_GetData = 'k';

Edit:
Just tested with these hooks you can run the basics. Minimap walking, TileToMS and NPC finding, the GetExperiences actually works, heh.

mormonman

2010-06-25 17:43:43

http://updater.rsbot.org/info.dat

masterBB

2010-06-25 17:59:34

I'm able to read that file, but do I have to copy al hooks by hand :(

Narcle

2010-06-25 18:09:02

Yeah mormon, Method linked me earlier been going through it. Made a small extractor but still don't have everything. Some hooks we use they don't the others I'm not sure about.

Here's what I've got so far:
{**
* Copyright 2010 by Benjamin J. Land (a.k.a. BenLand100)
*
* This file is part of the SMART Minimizing Autoing Resource Thing (SMART)
*
* SMART is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* SMART is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with SMART. If not, see <http://www.gnu.org/licenses/>.
*}

const
ClientVersion = 612;

{Static Hooks}
hook_static_LoginIndex = 'ml.i';
hook_static_MyPlayer = 'nn.O';
hook_static_BaseX = 'hda.L';
hook_static_BaseY = 'jh.Lb';
hook_static_NPCIndexArray = 'cm.p';
hook_static_NPCNodes = 'aga.c';
hook_static_NPCCount = 'hu.d';
hook_static_GroundSettingsArray = 'nv.z';
hook_static_LoadedPlane = 'tm.q';
hook_static_PlaneArray = 'bs.g';
hook_static_Toolkit = 'mi.r';
hook_static_MapAngle = 'qda.fb';
hook_static_DestX = 'nn.x';
hook_static_DestY = 'tc.x';
hook_static_MenuOptionCount = 'hq.c';
hook_static_MenuX = 'daa.f';
hook_static_MenuY = 'in.B';
hook_static_MenuOpen = 'ida.i';
hook_static_MenuNodeList = 'ht.D';
hook_static_LoopCycle = 'uca.r';
hook_static_PlayerCount = 'daa.f';
hook_static_PlayerIndexArray = 'in.B';
hook_static_GetPlayers = 'jba.r';
hook_static_GetSkillLevels = 'tt.v';
hook_static_GetSkillExperiences = 'mb.a';
hook_static_GroundTiles = 'jr.b'; //getRSGroundArray in RSBot
hook_static_GetInterfaces = 'nb.k'; //getRSInterfaceCache in RSBot
hook_static_ValidInterfaces = 'de.M'; //getValidRSInterfaceArray in RSBot
hook_static_GetSettings = 'rc.G'; //getSettingArray in RSBot
hook_static_GroundItemCache = 'tu.Md'; //getRSItemNodeCache in RSBot

{Class Animable}
class_Animable = 'fu';
hook_animable_PixelX = 'l';
hook_animable_PixelY = 'r';
hook_animable_Plane = 'i';

{Class Player}
class_Player = 'pi';
hook_player_GetLevel = 'bd';
hook_player_GetName = 'ud';
hook_player_PlayerDef = 'Oc';

{Class Character}
class_Character = 'fp';
hook_character_GetHitDamges = 'A';
hook_character_Animation = 'sb';
hook_character_Motion = 'xc';
hook_character_WalkQueueX = 'Dc';
hook_character_WalkQueueY = 'Bc';
hook_character_GetHeight = 'jb';
hook_character_LoopCycleStatus = 'cb';
hook_character_HPRatio = 'ub';
hook_character_GetInteracting = 'Rb';

{Class NPC}
class_NPC = 'ag';
hook_npc_NPCDef = 'Qc';

{Class NPCDef}
class_NPCDef = 'nc';
hook_npcdef_GetName = 'y';
hook_npcdef_GetActions = 'S';
hook_npcdef_GetLevel = 'c';

{Class NPCNode}
class_NPCNode = 'lda';
hook_npcnode_GetNPC = 'm';

{Class GroundTile}
class_GroundTile = 'ne';

{Class Plane}
class_Plane = 'd';

{Class RSInteractable}
class_RSInteractable = 'fl';

{Class Toolkit}
class_Toolkit = 'oa';

{Class Viewport}
class_Viewport = 'q';

{Class SDViewport}
class_SDViewport = 'aea';
hook_sdviewport_xOff = 'j';
hook_sdviewport_xX = 'r';
hook_sdviewport_xY = 'l';
hook_sdviewport_xZ = 'q';
hook_sdviewport_yOff = 's';
hook_sdviewport_yX = 'i';
hook_sdviewport_yY = 'm';
hook_sdviewport_yZ = 'n';
hook_sdviewport_zOff = 'k';
hook_sdviewport_zX = 'p';
hook_sdviewport_zY = 't';
hook_sdviewport_zZ = 'o';

{Class SDToolkit}
class_SDToolkit = 'uq';
hook_sdtoolkit_xMin = 'db';
hook_sdtoolkit_xMax = 'y';
hook_sdtoolkit_yMin = 'A';
hook_sdtoolkit_yMax = 'gb';
hook_sdtoolkit_zMin = 'E';
hook_sdtoolkit_zMax = 'jb';
hook_sdtoolkit_xScale = 'K';
hook_sdtoolkit_yScale = 'bb';
hook_sdtoolkit_Viewport = 'S';

{Class SDPlane}
class_SDPlane = 'jj';
hook_sdplane_TileHeights = 'm';

{Class NodeList}
class_NodeList = 'mfa';
hook_nodelist_Current = 'p';
hook_nodelist_Head = 'k';

{Class Node}
class_Node = 'mu';
hook_node_Next = 'a';
hook_node_GetID = 'b';//
hook_node_Previous = 'k';

{Class Menu}
class_Menu = 'rt';
hook_menu_Option = 'q';
hook_menu_Action = 'u';

{Class PlayerDef}
class_PlayerDef = 'dea';
hook_playerdef_GetEquipment = 's';//

{Class Interface}
hook_interface_GetActions = 'Wb';
hook_interface_GetX = 'yb';
hook_interface_GetY = 'Rc';
hook_interface_GetWidth = 'Sc';
hook_interface_GetHeight = 'od';
hook_interface_GetText = 'kc';
hook_interface_GetTextureID = 'hb';
hook_interface_GetTextColor = 'Zc';
hook_interface_GetModelID = 'oc';
hook_interface_GetModelZoom = 'ic';
hook_interface_GetName = 'bb'; //getComponentName in RSBot
hook_interface_GetChildren = 'I'; //getComponents in RSBot
hook_interface_GetID = 'ad'; //getComponentID in RSBot
hook_interface_GetStack = 'i'; //getComponentStackSize in RSBot

//RSGround class ne
hook_ground_AnimableList = 'i';
hook_ground_WallObject1 = 'z';
hook_ground_WallObject2 = 's';
hook_ground_WallDecoration1 = 'f';
hook_ground_WallDecoration2 = 'g';
hook_ground_FloorDecoration = 'o';

{
/////////////// HOOKS BELOW HERE ARE OUTDATED AS OF 24 JUNE 2010 (Client 612) ////////////////////////

These hooks all need to be added to the updater.
}

//Character
hook_character_Orientation = 'ab';

//NPCDef
hook_npcdef_GetID = 'nc.o';

//AnimableNode class de
hook_AnimableNode_GetAnimable = 'j';
hook_AnimableNode_GetNext = 'h';

//InteractiveObject class pba
hook_InteractiveObject_GetID = 'z';
hook_InteractiveObject_GetID2 = 'H.o'; //instance of ej. is an int.

//WallObjectData class dca
hook_wallobjectdata_GetID = 'N';
hook_wallobjectdata_GetID2 = 'y.o'; //instance of ej. is an int.

//WallDecorationData class ew
hook_WallDecorationData_GetID = 'C';
hook_WallDecorationData_GetID2 = 'z.o'; //instance of ej. is an int.

//FloorDecorationData class rv
hook_FloorDecorationData_GetID = 'O';
hook_FloorDecorationData_GetID2 = 'r.o'; //instance of ej. is an int.

//Interface class ep
hook_interface_GetUID = 'xb';

//GroundItem crap.
hook_nodecache_GetNodes = 'l'; //getCache in RSBot
hook_nodelistcache_GetNodeList = 'm';

hook_item_GetID = 'q';
hook_item_GetStack = 'k';

//Settings Array
hook_settingarray_GetData = 'k';

masterBB

2010-06-25 18:29:22

getRSAnimable Lorg/rsbot/accessors/RSAnimable; qr e
getNext Lorg/rsbot/accessors/RSAnimableNode; qr c

So those two hooks are e and c, Am I Right?

The Claw

2010-06-27 03:29:50

Are grounditems meant to be working?

Method

2010-06-27 13:17:20

From: The Claw
Are grounditems meant to be working?


I don't think so.

sirlaughsalot

2010-07-02 21:53:33

Is it possible to get the previous rsbot hooks? That way we can compare the ones we dont have to it, to see where to get them from exactly.

pyroryan

2010-07-05 21:11:16

From: sirlaughsalot
Is it possible to get the previous rsbot hooks? That way we can compare the ones we dont have to it, to see where to get them from exactly.


You can email [email]kvnh93@gmail.com[/email] and ask for them. He gave me a few old RSBot hook files. Might have to push him a bit.

Nava2

2010-07-05 23:48:39

http://villavu.com/forum/showthread.php?t=57756