SRL Archive - Client Hacking

#617


pyroryan

2010-09-07 15:36:43


{**
* 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 = 617;

{Static Hooks}
hook_static_LoginIndex = 'wv.t'; //617
hook_static_MyPlayer = 'eq.x'; //617
hook_static_BaseX = 'od.n'; //617
hook_static_BaseY = 'ae.v'; //617
hook_static_NPCIndexArray = 'qv.h'; //617
hook_static_NPCNodes = 'gda.j'; //617
hook_static_NPCCount = 'qda.z'; //617
hook_static_GroundSettingsArray = 'dk.i'; //617
hook_static_LoadedPlane = 'mca.g'; //617
hook_static_PlaneArray = 'ec.p'; //617
hook_static_Toolkit = 'hba.t'; //617
hook_static_MapAngle = 'sca.j'; //617
hook_static_DestX = 'mc.H'; //617
hook_static_DestY = 'qj.v'; //617
hook_static_MenuOptionCount = 'li.o'; //617
hook_static_MenuX = 's.E'; //617
hook_static_MenuY = 'mn.U'; //617
hook_static_MenuOpen = 'mf.e'; //617
hook_static_MenuNodeList = 'nga.l'; //617
hook_static_LoopCycle = 'jca.d'; //617
hook_static_PlayerCount = 'ki.g'; //617
hook_static_PlayerIndexArray = 'nr.t'; //617
hook_static_GetPlayers = 'ji.R'; //617
hook_static_GetSkillLevels = 'nw.O'; //617
hook_static_GetSkillExperiences = 'mt.b'; //617
hook_static_GroundTiles = 'lr.a'; //617
hook_static_GetInterfaces = 'rg.c'; //617
hook_static_ValidInterfaces = 'raa.N'; //617
hook_static_GetSettings = 'tn.f'; //617
hook_static_GroundItemCache = 'sm.kb'; //617
hook_static_CamPosX = 's.B'; //617
hook_static_CamPosY = 'vm.f'; //617

{Class Animable}
class_Animable = 'ag'; //617
hook_animable_PixelX = 'n'; //617
hook_animable_PixelY = 'f'; //617
hook_animable_Plane = 'c'; //617

{Class Player}
class_Player = 'st'; //617
hook_player_GetLevel = 'kd'; //617
hook_player_GetName = 'hd'; //617
hook_player_PlayerDef = 'pd'; //not updated

{Class Character}
class_Character = 'vj'; //617
hook_character_GetHitDamges = 'I'; //check?-617
hook_character_Animation = 'T'; //617
hook_character_Motion = 'ic'; //617
hook_character_WalkQueueX = 'jc'; //617
hook_character_WalkQueueY = 'pc'; //617
hook_character_GetHeight = 'G'; //617
hook_character_LoopCycleStatus = 'vb'; //617
hook_character_HPRatio = 'cc'; //617
hook_character_GetInteracting = 'v'; //617
hook_character_Orientation = 'lb'; //617

{Class NPC}
class_NPC = 'hfa'; //617
hook_npc_NPCDef = 'Ic'; //617

{Class NPCDef}
class_NPCDef = 'ci'; //617
hook_npcdef_GetActions = 'c'; //617
hook_npcdef_GetName = 'ab'; //617
hook_npcdef_GetLevel = 'Y'; //617
hook_npcdef_GetID = 'a'; //617

{Class NPCNode}
class_NPCNode = 'vt'; //617
hook_npcnode_GetNPC = 'j'; //617

{Class GroundTile}
class_GroundTile = 'fba'; //617

{Class Plane}
class_Plane = 'd'; //not updated

{Class RSInteractable}
class_RSInteractable = 'ni'; //617

{Class Toolkit}
class_Toolkit = 'oa';

{Class Viewport}
class_Viewport = 'q';

{Class SDViewport}
class_SDViewport = 'pt'; //617
hook_sdviewport_xOff = 'n'; //617
hook_sdviewport_xX = 'k'; //617
hook_sdviewport_xY = 'g'; //617
hook_sdviewport_xZ = 'r'; //617
hook_sdviewport_yOff = 'j'; //617
hook_sdviewport_yX = 'm'; //617
hook_sdviewport_yY = 'i'; //617
hook_sdviewport_yZ = 'h'; //617
hook_sdviewport_zOff = 'l'; //617
hook_sdviewport_zX = 'q'; //617
hook_sdviewport_zY = 'p'; //617
hook_sdviewport_zZ = 'o'; //617

{Class SDToolkit}
class_SDToolkit = 'qe'; //617
hook_sdtoolkit_xMin = 'R'; //617
hook_sdtoolkit_xMax = 'Z'; //617
hook_sdtoolkit_yMin = 'jb'; //617
hook_sdtoolkit_yMax = 'G'; //617
hook_sdtoolkit_zMin = 'z'; //617
hook_sdtoolkit_zMax = 'y'; //617
hook_sdtoolkit_xScale = 'ib'; //617
hook_sdtoolkit_yScale = 'ab'; //617
hook_sdtoolkit_Viewport = 'B'; //617

{Class SDPlane}
class_SDPlane = 'bs'; //617
hook_sdplane_TileHeights = 'x'; //617

{Class NodeList}
class_NodeList = 'gj'; //617
hook_nodelist_Current = 'o'; //617
hook_nodelist_Head = 'n'; //617

{Class Node}
class_Node = 'rc'; //617
hook_node_Next = 'a'; //617
hook_node_Previous = 'b'; //617
hook_node_GetID = 'c'; //617

{Class Menu}
class_Menu = 'fg'; //617
hook_menu_Action = 's'; //617
hook_menu_Option = 'l'; //617

{Class PlayerDef}
class_PlayerDef = 'n'; //couldn't find class
hook_playerdef_GetEquipment = 't'; //couldn't find this hook (n.t) anywhere in #614..

{Class AnimableNode}
class_AnimableNode = 'bo'; //617
hook_AnimableNode_GetAnimable = 'b'; //617
hook_AnimableNode_GetNext = 'a'; //617

{Class ObjectInterface}
class_ObjectInterface = 'gba'; //617
hook_interface_GetActions = 'O'; //617
hook_interface_GetX = 'N'; //617
hook_interface_GetY = 'S'; //617
hook_interface_GetWidth = 'zb'; //617
hook_interface_GetHeight = 'Kb'; //617
hook_interface_GetText = 'sb'; //617
hook_interface_GetTextureID = 'p';
hook_interface_GetTextColor = 'pc';
hook_interface_GetModelID = 'ob'; //not updated
hook_interface_GetModelZoom = 'hb'; //617
hook_interface_GetName = 'tc'; //not updated
hook_interface_GetChildren = 'Rc'; //617
hook_interface_GetID = 'Ac'; //617
hook_interface_GetStack = 'Qb'; //617

{Class Ground}
class_Ground = 'fba'; //617
hook_ground_AnimableList = 'o'; //617
hook_ground_WallObject1 = 'l'; //617
hook_ground_WallObject2 = 'q'; //617
hook_ground_WallDecoration1 = 's'; //617
hook_ground_WallDecoration2 = 'b'; //617
hook_ground_FloorDecoration = 'B'; //617

//GroundItem crap.
//nodecache class jw
hook_nodecache_GetNodes = 'jw.b'; //617

//RSItem class qd
hook_item_GetID = 'qd.m'; //617
hook_item_GetStack = 'qd.n'; //617

//nodelistcache class es
hook_nodelistcache_GetNodeList = 'es.i'; //617

//Settings Array
hook_settingarray_GetData = 'ui.l'; //617

{
/////////////// HOOKS BELOW HERE ARE *OUTDATED* AS OF 14 July 2010 (Client 614) ////////////////////////
These hooks all need to be added to the updater.
}

//Some work actually. You're welcome. Updated as much as I could. (Thanks to TRiLeZ.)

{Class InteractiveObject1}
class_InteractiveObject1 = 'bq'; //617
hook_interactiveobject_GetID = 's'; //617
hook_interactiveobject_getModel = 'B'; //617

{Class InteractiveObject2}
class_InteractiveObject2 = 'uca'; //617
hook_interactiveobject2_getObjectData = 'z'; //617
hook_interactiveobject_GetID2 = 'w.H'; //not updated

{Class SecondLevelObject}
class_SecondLevelObject = 'wc'; //617

//WallObjectData class wda
hook_wallobjectdata_GetID = 'x'; //not updated
hook_wallobjectdata_GetID2 = 'D.H'; //not updated

//WallDecorationData class ew
hook_WallDecorationData_GetID = 'w'; //not updated
hook_WallDecorationData_GetID2 = 'y.H'; //not updated

//FloorDecorationData class rv
hook_FloorDecorationData_GetID = 'z'; //not updated
hook_FloorDecorationData_GetID2 = 'm.H'; //not updated


{**
* 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 = 617;

{Static Hooks}
hook_static_LoginIndex = 'wv.t';
hook_static_MyPlayer = 'eq.x';
hook_static_BaseX = 'od.n';
hook_static_BaseY = 'ae.v';
hook_static_NPCIndexArray = 'qv.h';
hook_static_NPCNodes = 'gda.j';
hook_static_NPCCount = 'qda.z';
hook_static_GroundSettingsArray = 'dk.i';
hook_static_LoadedPlane = 'mca.g';
hook_static_PlaneArray = 'ec.p';
hook_static_Toolkit = 'hba.t';
hook_static_MapAngle = 'sca.j';
hook_static_DestX = 'mc.H';
hook_static_DestY = 'qj.v';
hook_static_MenuOptionCount = 'li.o';
hook_static_MenuX = 's.E';
hook_static_MenuY = 'mn.U';
hook_static_MenuOpen = 'mf.e';
hook_static_MenuNodeList = 'nga.l';
hook_static_LoopCycle = 'jca.d';
hook_static_PlayerCount = 'ki.g';
hook_static_PlayerIndexArray = 'nr.t';
hook_static_GetPlayers = 'ji.R';
hook_static_GetSkillLevels = 'nw.O';
hook_static_GetSkillExperiences = 'mt.b';
hook_static_GroundTiles = 'lr.a';
hook_static_GetInterfaces = 'rg.c';
hook_static_ValidInterfaces = 'raa.N';
hook_static_GetSettings = 'tn.f';
hook_static_GroundItemCache = 'sm.kb';
hook_static_CamPosX = 's.B';
hook_static_CamPosY = 'vm.f';

{Class Animable}
class_Animable = 'ag';
hook_animable_PixelX = 'n';
hook_animable_PixelY = 'f';
hook_animable_Plane = 'c';

{Class Player}
class_Player = 'st';
hook_player_GetLevel = 'kd';
hook_player_GetName = 'hd';
hook_player_PlayerDef = 'pd'; //not updated

{Class Character}
class_Character = 'vj';
hook_character_GetHitDamges = 'I'; //check?-617
hook_character_Animation = 'T';
hook_character_Motion = 'ic';
hook_character_WalkQueueX = 'jc';
hook_character_WalkQueueY = 'pc';
hook_character_GetHeight = 'G';
hook_character_LoopCycleStatus = 'vb';
hook_character_HPRatio = 'cc';
hook_character_GetInteracting = 'v';
hook_character_Orientation = 'lb';

{Class NPC}
class_NPC = 'hfa';
hook_npc_NPCDef = 'Ic';

{Class NPCDef}
class_NPCDef = 'ci';
hook_npcdef_GetActions = 'c';
hook_npcdef_GetName = 'ab';
hook_npcdef_GetLevel = 'Y';
hook_npcdef_GetID = 'a';

{Class NPCNode}
class_NPCNode = 'vt';
hook_npcnode_GetNPC = 'j';

{Class GroundTile}
class_GroundTile = 'fba';

{Class Plane}
class_Plane = 'd'; //not updated

{Class RSInteractable}
class_RSInteractable = 'ni';

{Class Toolkit}
class_Toolkit = 'oa';

{Class Viewport}
class_Viewport = 'q';

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

{Class SDToolkit}
class_SDToolkit = 'qe';
hook_sdtoolkit_xMin = 'R';
hook_sdtoolkit_xMax = 'Z';
hook_sdtoolkit_yMin = 'jb';
hook_sdtoolkit_yMax = 'G';
hook_sdtoolkit_zMin = 'z';
hook_sdtoolkit_zMax = 'y';
hook_sdtoolkit_xScale = 'ib';
hook_sdtoolkit_yScale = 'ab';
hook_sdtoolkit_Viewport = 'B';

{Class SDPlane}
class_SDPlane = 'bs';
hook_sdplane_TileHeights = 'x';

{Class NodeList}
class_NodeList = 'gj';
hook_nodelist_Current = 'o';
hook_nodelist_Head = 'n';

{Class Node}
class_Node = 'rc';
hook_node_Next = 'a';
hook_node_Previous = 'b';
hook_node_GetID = 'c';

{Class Menu}
class_Menu = 'fg';
hook_menu_Action = 's';
hook_menu_Option = 'l';

{Class PlayerDef}
class_PlayerDef = 'n'; //couldn't find class
hook_playerdef_GetEquipment = 't'; //couldn't find this hook (n.t) anywhere in #614..

{Class AnimableNode}
class_AnimableNode = 'bo';
hook_AnimableNode_GetAnimable = 'b';
hook_AnimableNode_GetNext = 'a';

{Class ObjectInterface}
class_ObjectInterface = 'gba';
hook_interface_GetActions = 'O';
hook_interface_GetX = 'N';
hook_interface_GetY = 'S';
hook_interface_GetWidth = 'zb';
hook_interface_GetHeight = 'Kb';
hook_interface_GetText = 'sb';
hook_interface_GetTextureID = 'p';
hook_interface_GetTextColor = 'pc';
hook_interface_GetModelID = 'ob'; //not updated
hook_interface_GetModelZoom = 'hb';
hook_interface_GetName = 'tc'; //not updated
hook_interface_GetChildren = 'Rc';
hook_interface_GetID = 'Ac';
hook_interface_GetStack = 'Qb';

{Class Ground}
class_Ground = 'fba';
hook_ground_AnimableList = 'o';
hook_ground_WallObject1 = 'l';
hook_ground_WallObject2 = 'q';
hook_ground_WallDecoration1 = 's';
hook_ground_WallDecoration2 = 'b';
hook_ground_FloorDecoration = 'B';

//GroundItem crap.
//nodecache class jw
hook_nodecache_GetNodes = 'jw.b';

//RSItem class qd
hook_item_GetID = 'qd.m';
hook_item_GetStack = 'qd.n';

//nodelistcache class es
hook_nodelistcache_GetNodeList = 'es.i';

//Settings Array
hook_settingarray_GetData = 'ui.l';

{
/////////////// HOOKS BELOW HERE ARE *OUTDATED* AS OF 14 July 2010 (Client 614) ////////////////////////
These hooks all need to be added to the updater.
}

//Some work actually. You're welcome. Updated as much as I could. (Thanks to TRiLeZ.)

{Class InteractiveObject1}
class_InteractiveObject1 = 'bq';
hook_interactiveobject_GetID = 's';
hook_interactiveobject_getModel = 'B';

{Class InteractiveObject2}
class_InteractiveObject2 = 'uca';
hook_interactiveobject2_getObjectData = 'z';
hook_interactiveobject_GetID2 = 'w.H'; //not updated

{Class SecondLevelObject}
class_SecondLevelObject = 'wc';

//WallObjectData class wda
hook_wallobjectdata_GetID = 'x'; //not updated
hook_wallobjectdata_GetID2 = 'D.H'; //not updated

//WallDecorationData class ew
hook_WallDecorationData_GetID = 'w'; //not updated
hook_WallDecorationData_GetID2 = 'y.H'; //not updated

//FloorDecorationData class rv
hook_FloorDecorationData_GetID = 'z'; //not updated
hook_FloorDecorationData_GetID2 = 'm.H'; //not updated

traveler

2010-09-07 15:54:50

yay! it works!!

the scripts im using work now, except i get this error

****************TileHight hooks are incorrect.*****************

pyroryan

2010-09-07 16:01:46

From: traveler
yay! it works!!

the scripts im using work now, except i get this error

****************TileHight hooks are incorrect.*****************


I never programmed my updater to get that hook and RSBot does not have it. I suppose I could start on it now, unless someone else has it?

traveler

2010-09-07 16:07:04

ill just wait till the it officially gets updated. i have other working scripts that i can use for now

pyroryan

2010-09-07 16:10:53

Thanks nexus ibot. This is probably the hooks.

{Class SDPlane}
class_SDPlane = 'bs'; //Check?-617
hook_sdplane_TileHeights = 'x'; //Check?-617

Edit:
Updated original post.

JuKKa

2010-09-07 16:17:10

Not sure, seems like "getAnimation" hook is also missing, great job on getting the others.

pyroryan

2010-09-07 16:23:01

From: JuKKa
Not sure, seems like "getAnimation" hook is also missing, great job on getting the others.


Fixed.

JuKKa

2010-09-07 16:31:47

Lol, ur too fast… I had already made a color motion detector… which worked perfectly… oh well.. Good job!

TRiLeZ

2010-09-07 18:49:11


[-------------------TRiBot Updater-------------------]
Client Revision: 617.
Loaded 751 classes from runescape-617.jar in 346 ms.

Class ag implements Animable
» getLocalX() int ag.n
» getLocalY() int ag.f
» getPlane() byte ag.c

Class vj implements Character
» getLoopCycleStatus() int vj.vb
» getAnimation() int vj.T
» getModels() ba[] vj.gc
» getWalkingX() int[] vj.jc
» getWalkingY() int[] vj.pc
» getCurrentWaypoint() int vj.ic
» getWalkingTypes() byte[] vj.qc

Class client implements Client
» getBaseX() int od.n
» getBaseY() int ae.v
» getLoginIndex() int wv.t
» getMyPlayer() st eq.x
» getMinimapScale() int oh.k
» getMinimapSetting() int vf.j
» getMinimapAngle() int pda.g
» getMinimapOffset() float sca.j
» getNpcCount() int qda.z
» getNpcIndices() int[] qv.h
» getNpcNodes() vt[] gda.j
» getPlayerCount() int ki.g
» getPlayerIndices() int[] nr.t
» getPlayers() st[] ji.R
» getLoopCycle() int jca.d
» getUsername() java.lang.String bi.P
» getPassword() java.lang.String md.n
» getPlane() int mca.g
» getPlanes() d[] ec.p
» getMainToolkit() oa hba.t
» getSelectedObjectName() java.lang.String jd.b
» getSelectedActionName() java.lang.String pea.D
» getGroundTiles() fba[][][] lr.a
» getMapWidth() int bh.c
» getMapHeight() int bh.d
» getMenuOptionCount() int li.o
» getIsMenuOpen() boolean mf.e
» getMenuNodeList() gj nga.l
» getMenuHeight() int bfa.a
» getMenuWidth() int dn.f
» getMenuX() int s.E
» getMenuY() int mn.U
» getIsSpellSelected() boolean uba.v
» getSpellTarget() int no.Gc
» getPlayerRights() int uq.N
» getDestX() int mc.H
» getDestY() int qj.v
» getFriendsList() java.lang.String[] li.u
» getFriendWorlds() int[] ba.k
» getValidInterfaces() boolean[] raa.N
» getInterfaces() gba[][] rg.c
» getInterfaceBoundsArray() java.awt.Rectangle[] oga.u
» getFPS() int mb.w
» getItemDefLoader() Broken Hook
» getCameraPitch() int nd.k
» getCameraYaw() int bga.u

Class bq implements InteractiveObject1
» getId() short bq.s

Class uca implements InteractiveObject2
» getData() wc uca.z

Class gba implements Interface
» getParentID() int gba.o
» getChildren() gba[] gba.Rc
» getX() int gba.N
» getY() int gba.S
» getType() int gba.Sc
» getWidth() int gba.zb
» getHeight() int gba.Kb
» getContentType() int gba.zc
» getUID() int gba.cb
» getIsHidden() boolean gba.dd
» getBoundsArrayIndex() int gba.g
» getLastUpdate() int gba.j
» getComponentID() int gba.Ac
» getComponentStack() int gba.Qb
» getTextColor() int gba.pc

Class mfa implements ItemDef
» getName() java.lang.String mfa.nb
» getStackable() int mfa.v

Class fg implements MenuNode
» getOption() java.lang.String fg.l

Class hfa implements Npc
» getDef() ci hfa.Ic

Class vt implements NpcNode
» getNpc() hfa vt.j

Class bd implements ObjectDefinition

Class d implements Plane
» getScale() int d.c
» getXSize() int d.e
» getYSize() int d.h
» getZSize() int d.f

Class st implements Player
» getName() java.lang.String st.hd
» getSkillLevel() int st.Xc
» getLevel() int st.Gc
» getTeam() int st.gd

Class ow implements SDModel
» getPointsX() int[] ow.Lb
» getPointsY() int[] ow.lc
» getPointsZ() int[] ow.bc

Class bs implements SDPlane
» getTileHeights() int[][] bs.x

Class qe implements SDToolkit
» getViewport() pt qe.B
» getXScale() int qe.ib
» getYScale() int qe.ab
» getZMin() int qe.z
» getZMax() int qe.y
» getYMin() int qe.jb
» getYMax() int qe.G
» getXMin() int qe.R
» getXMax() int qe.Z

Class pt implements SDViewport
» getZOff() int pt.l
» getZX() int pt.q
» getZY() int pt.p
» getZZ() int pt.o
» getYOff() int pt.j
» getYX() int pt.m
» getYY() int pt.i
» getYZ() int pt.h
» getXOff() int pt.n
» getXX() int pt.k
» getXY() int pt.g
» getXZ() int pt.r

Hooked: 110/111 hooks in 1120ms.
Took: 1484ms to update.


Aristos

2010-09-10 19:45:04

i get this:
[Error] (1:1): Unexpected end of file at line 0
Compiling failed.

Becks

2010-09-12 14:50:57

yeah im still getting hooks outdated with simba update, svn, and the update above.

Sex

2010-09-12 15:54:12

From: Aristos
i get this:
[Error] (1:1): Unexpected end of file at line 0
Compiling failed.

You don't run includes.

pyroryan

2010-09-13 13:38:33

Updated first post to match my latest revisions.

doublex8

2010-09-27 22:55:09

What is the difference between the top and bottom code?

Dgby714

2010-09-27 23:05:15

From: doublex8
What is the difference between the top and bottom code?


http://simba.ionoone.com/compare/45/44/
All the "//617"'s are gone in the second.

doublex8

2010-09-28 00:20:06

I saw that I just wasn't sure which one I needed to copy n paste

pyroryan

2010-09-28 07:37:57

RS is currently at #621, so you'll want to use hooks from http://villavu.com/forum/showthread.php?t=59095