diff --git a/GameplayScripts/__pycache__/actor.cpython-39.pyc b/GameplayScripts/__pycache__/actor.cpython-39.pyc new file mode 100644 index 0000000..5ec4e3d Binary files /dev/null and b/GameplayScripts/__pycache__/actor.cpython-39.pyc differ diff --git a/GameplayScripts/__pycache__/auto_smite.cpython-39.pyc b/GameplayScripts/__pycache__/auto_smite.cpython-39.pyc new file mode 100644 index 0000000..2f00e3a Binary files /dev/null and b/GameplayScripts/__pycache__/auto_smite.cpython-39.pyc differ diff --git a/GameplayScripts/__pycache__/auto_spell.cpython-39.pyc b/GameplayScripts/__pycache__/auto_spell.cpython-39.pyc new file mode 100644 index 0000000..a57ddc6 Binary files /dev/null and b/GameplayScripts/__pycache__/auto_spell.cpython-39.pyc differ diff --git a/GameplayScripts/__pycache__/base_script.cpython-39.pyc b/GameplayScripts/__pycache__/base_script.cpython-39.pyc new file mode 100644 index 0000000..7cf65fd Binary files /dev/null and b/GameplayScripts/__pycache__/base_script.cpython-39.pyc differ diff --git a/GameplayScripts/__pycache__/champ_tracker.cpython-39.pyc b/GameplayScripts/__pycache__/champ_tracker.cpython-39.pyc new file mode 100644 index 0000000..195ec22 Binary files /dev/null and b/GameplayScripts/__pycache__/champ_tracker.cpython-39.pyc differ diff --git a/GameplayScripts/__pycache__/drawings.cpython-39.pyc b/GameplayScripts/__pycache__/drawings.cpython-39.pyc new file mode 100644 index 0000000..b120d9d Binary files /dev/null and b/GameplayScripts/__pycache__/drawings.cpython-39.pyc differ diff --git a/GameplayScripts/__pycache__/execution_notifier.cpython-39.pyc b/GameplayScripts/__pycache__/execution_notifier.cpython-39.pyc new file mode 100644 index 0000000..0dc0fcd Binary files /dev/null and b/GameplayScripts/__pycache__/execution_notifier.cpython-39.pyc differ diff --git a/GameplayScripts/__pycache__/extractor.cpython-39.pyc b/GameplayScripts/__pycache__/extractor.cpython-39.pyc new file mode 100644 index 0000000..7c907a6 Binary files /dev/null and b/GameplayScripts/__pycache__/extractor.cpython-39.pyc differ diff --git a/GameplayScripts/__pycache__/map_awareness.cpython-39.pyc b/GameplayScripts/__pycache__/map_awareness.cpython-39.pyc new file mode 100644 index 0000000..22549ae Binary files /dev/null and b/GameplayScripts/__pycache__/map_awareness.cpython-39.pyc differ diff --git a/GameplayScripts/__pycache__/object_viewer.cpython-39.pyc b/GameplayScripts/__pycache__/object_viewer.cpython-39.pyc new file mode 100644 index 0000000..b163490 Binary files /dev/null and b/GameplayScripts/__pycache__/object_viewer.cpython-39.pyc differ diff --git a/GameplayScripts/__pycache__/orb_walker.cpython-39.pyc b/GameplayScripts/__pycache__/orb_walker.cpython-39.pyc new file mode 100644 index 0000000..680c74f Binary files /dev/null and b/GameplayScripts/__pycache__/orb_walker.cpython-39.pyc differ diff --git a/GameplayScripts/__pycache__/spell_tracker.cpython-39.pyc b/GameplayScripts/__pycache__/spell_tracker.cpython-39.pyc new file mode 100644 index 0000000..81203d2 Binary files /dev/null and b/GameplayScripts/__pycache__/spell_tracker.cpython-39.pyc differ diff --git a/GameplayScripts/__pycache__/tf_card_picker.cpython-39.pyc b/GameplayScripts/__pycache__/tf_card_picker.cpython-39.pyc new file mode 100644 index 0000000..bcef576 Binary files /dev/null and b/GameplayScripts/__pycache__/tf_card_picker.cpython-39.pyc differ diff --git a/GameplayScripts/__pycache__/vision_tracker.cpython-39.pyc b/GameplayScripts/__pycache__/vision_tracker.cpython-39.pyc new file mode 100644 index 0000000..967709b Binary files /dev/null and b/GameplayScripts/__pycache__/vision_tracker.cpython-39.pyc differ diff --git a/GameplayScripts/actor.py b/GameplayScripts/actor.py new file mode 100644 index 0000000..f45748e --- /dev/null +++ b/GameplayScripts/actor.py @@ -0,0 +1,19 @@ +from lview import * + +lview_script_info = { + "script": "Actor", + "author": "MiscellaneousStuff", + "description": "Executes a machine learning model which plays League of Legends." +} + +def lview_load_cfg(cfg): + pass + +def lview_save_cfg(cfg): + pass + +def lview_draw_settings(game, ui): + pass + +def lview_update(game, ui): + pass \ No newline at end of file diff --git a/GameplayScripts/commons/__pycache__/__init__.cpython-39.pyc b/GameplayScripts/commons/__pycache__/__init__.cpython-39.pyc new file mode 100644 index 0000000..321f21e Binary files /dev/null and b/GameplayScripts/commons/__pycache__/__init__.cpython-39.pyc differ diff --git a/GameplayScripts/commons/__pycache__/damage_calculator.cpython-39.pyc b/GameplayScripts/commons/__pycache__/damage_calculator.cpython-39.pyc new file mode 100644 index 0000000..cac2bf6 Binary files /dev/null and b/GameplayScripts/commons/__pycache__/damage_calculator.cpython-39.pyc differ diff --git a/GameplayScripts/commons/__pycache__/items.cpython-39.pyc b/GameplayScripts/commons/__pycache__/items.cpython-39.pyc new file mode 100644 index 0000000..df79f56 Binary files /dev/null and b/GameplayScripts/commons/__pycache__/items.cpython-39.pyc differ diff --git a/GameplayScripts/commons/__pycache__/skills.cpython-39.pyc b/GameplayScripts/commons/__pycache__/skills.cpython-39.pyc new file mode 100644 index 0000000..717a857 Binary files /dev/null and b/GameplayScripts/commons/__pycache__/skills.cpython-39.pyc differ diff --git a/GameplayScripts/commons/__pycache__/targeting.cpython-39.pyc b/GameplayScripts/commons/__pycache__/targeting.cpython-39.pyc new file mode 100644 index 0000000..457ad48 Binary files /dev/null and b/GameplayScripts/commons/__pycache__/targeting.cpython-39.pyc differ diff --git a/LView/ConsoleApplication.exe b/LView/ConsoleApplication.exe new file mode 100644 index 0000000..69d3e05 Binary files /dev/null and b/LView/ConsoleApplication.exe differ diff --git a/LView/ConsoleApplication.exp b/LView/ConsoleApplication.exp new file mode 100644 index 0000000..f678e42 Binary files /dev/null and b/LView/ConsoleApplication.exp differ diff --git a/LView/ConsoleApplication.lib b/LView/ConsoleApplication.lib new file mode 100644 index 0000000..8f589d1 Binary files /dev/null and b/LView/ConsoleApplication.lib differ diff --git a/LView/ConsoleApplication.pdb b/LView/ConsoleApplication.pdb new file mode 100644 index 0000000..a15f4df Binary files /dev/null and b/LView/ConsoleApplication.pdb differ diff --git a/LView/GameObject.cpp b/LView/GameObject.cpp index c0f2922..4983a10 100644 --- a/LView/GameObject.cpp +++ b/LView/GameObject.cpp @@ -116,6 +116,24 @@ void GameObject::LoadFromMem(DWORD base, HANDLE hProcess, bool deepLoad) { memcpy(&movementSpeed, &buff[Offsets::ObjMoveSpeed], sizeof(float)); memcpy(&networkId, &buff[Offsets::ObjNetworkID], sizeof(DWORD)); + // Additional + memcpy(&abilityHaste, &buff[Offsets::ObjAbilityHaste], sizeof(float)); + memcpy(&lethality, &buff[Offsets::ObjLethality], sizeof(float)); + memcpy(&direction, &buff[Offsets::ObjDirection], sizeof(float)); + memcpy(&experience, &buff[Offsets::ObjExperience], sizeof(float)); + memcpy(&manaRegen, &buff[Offsets::ObjManaRegen], sizeof(float)); + memcpy(&healthRegen, &buff[Offsets::ObjHealthRegen], sizeof(float)); + memcpy(&maxMana, &buff[Offsets::ObjMaxMana], sizeof(float)); + memcpy(&mana, &buff[Offsets::ObjMana], sizeof(float)); + memcpy(&transformation, &buff[Offsets::ObjTransformation], sizeof(float)); + memcpy(&isMoving, &buff[Offsets::ObjIsMoving], sizeof(bool)); + memcpy(&targetable, &buff[Offsets::ObjTargetable], sizeof(bool)); + memcpy(&invulnerable, &buff[Offsets::ObjInvulnerable], sizeof(bool)); + memcpy(&recallState, &buff[Offsets::ObjRecallState], sizeof(int)); + memcpy(¤tGold, &buff[Offsets::ObjCurrentGold], sizeof(float)); + memcpy(&totalGold, &buff[Offsets::ObjGoldTotal], sizeof(float)); + memcpy(&attackRange, &buff[Offsets::ObjAtkRange], sizeof(float)); + // Check if alive DWORD spawnCount; memcpy(&spawnCount, &buff[Offsets::ObjSpawnCount], sizeof(int)); diff --git a/LView/GameObject.h b/LView/GameObject.h index e2fd94e..520519c 100644 --- a/LView/GameObject.h +++ b/LView/GameObject.h @@ -82,7 +82,26 @@ class GameObject: MemoryLoadable, SpellInterface { DWORD address; UnitInfo* unitInfo = GameData::UnknownUnit; - + + // Additional + float abilityHaste; + float lethality; + float direction; + float experience; + float manaRegen; + float healthRegen; + float maxMana; + float mana; + float transformation; + bool isMoving; + // bool isDashing; + bool targetable; + bool invulnerable; + int recallState; + float currentGold; + float totalGold; + float attackRange; + protected: static const SIZE_T sizeBuff = 0x4000; static const SIZE_T sizeBuffDeep = 0x1000; diff --git a/LView/Offsets.cpp b/LView/Offsets.cpp index 7904a97..6b53971 100644 --- a/LView/Offsets.cpp +++ b/LView/Offsets.cpp @@ -3,60 +3,60 @@ Offsets::Offsets() {}; // CORRECT! -int Offsets::GameTime = 0x30F07C4; // 12.4 -int Offsets::ObjectManager = 0x185C0C8; // 12.4 -int Offsets::LocalPlayer = 0x30F9734; // 12.4 -int Offsets::UnderMouseObject = 0x30EB740; // 12.4 -int Offsets::ViewProjMatrices = 0x3122BD0; // 12.4 -int Offsets::Renderer = 0x3125A70; // 12.4 +int Offsets::GameTime = 0x310DF84; // 12.5 +int Offsets::ObjectManager = 0x1879830; // 12.5 +int Offsets::LocalPlayer = 0x31168D4; // 12.5 +int Offsets::UnderMouseObject = 0x310A9D8; // 12.5 +int Offsets::ViewProjMatrices = 0x3140F40; // 12.5 +int Offsets::Renderer = 0x3143DE0; // 12.5 // MOSTLY CORRECT! -int Offsets::ObjIndex = 0x20; // 12.4 -int Offsets::ObjTeam = 0x4C; // 12.4 -int Offsets::ObjMissileName = 0x6C; // 12.4 -int Offsets::ObjNetworkID = 0xCC; // 12.4 -int Offsets::ObjPos = 0x1F4; // 12.4 -int Offsets::ObjMissileSpellCast = 0x250; // 12.3 -int Offsets::ObjVisibility = 0x00; // 12.4? // 0x28C; // 12.3 -int Offsets::ObjSpawnCount = 0x2A0; // 12.4 -int Offsets::ObjSrcIndex = 0x02AC; // 12.4 -int Offsets::ObjMana = 0x2B4; // 12.4 -int Offsets::ObjMaxMana = 0x2B4 + 0x10; // 12.4 -int Offsets::ObjRecallState = 0xD78; // 12.4 -int Offsets::ObjHealth = 0xDB4; // 12.4 -int Offsets::ObjMaxHealth = 0xDB4 + 0x10; // 12.4 -int Offsets::ObjAbilityHaste = 0x110C; // 12.4 -int Offsets::ObjLethality = 0x10F4; // 12.4 -int Offsets::ObjArmor = 0x12E4; // 12.4 -int Offsets::ObjBonusArmor = 0x12E4 + 0x04; // 12.4 -int Offsets::ObjMagicRes = 0x12EC; // 12.4 -int Offsets::ObjBonusMagicRes = 0x12EC + 0x04; // 12.4 -int Offsets::ObjBaseAtk = 0x12BC; // 12.4 -int Offsets::ObjBonusAtk = 0x1234; // 12.4 -int Offsets::ObjMoveSpeed = 0x12FC; // 12.4 -int Offsets::ObjSpellBook = 0x27F8; // 12.4 +int Offsets::ObjIndex = 0x20; // 12.5 +int Offsets::ObjTeam = 0x4C; // 12.5 +int Offsets::ObjMissileName = 0x6C; // 12.5 +int Offsets::ObjNetworkID = 0xCC; // 12.5 +int Offsets::ObjPos = 0x1F4; // 12.5 +int Offsets::ObjMissileSpellCast = 0x250; // 12.5 +int Offsets::ObjVisibility = 0x28C; // 12.5 +int Offsets::ObjSpawnCount = 0x2A0; // 12.5 +int Offsets::ObjSrcIndex = 0x02AC; // 12.5 +int Offsets::ObjMana = 0x2B4; // 12.5 +int Offsets::ObjMaxMana = 0x2B4 + 0x10; // 12.5 +int Offsets::ObjRecallState = 0xD78; // 12.5 +int Offsets::ObjHealth = 0xDB4; // 12.5 +int Offsets::ObjMaxHealth = 0xDB4 + 0x10; // 12.5 +int Offsets::ObjAbilityHaste = 0x110C; // 12.5 +int Offsets::ObjLethality = 0x10F4; // 12.5 +int Offsets::ObjArmor = 0x12E4; // 12.5 +int Offsets::ObjBonusArmor = 0x12E4 + 0x04; // 12.5 +int Offsets::ObjMagicRes = 0x12EC; // 12.5 +int Offsets::ObjBonusMagicRes = 0x12EC + 0x04; // 12.5 +int Offsets::ObjBaseAtk = 0x12BC; // 12.5 +int Offsets::ObjBonusAtk = 0x1234; // 12.5 +int Offsets::ObjMoveSpeed = 0x12FC; // 12.5 +int Offsets::ObjSpellBook = 0x27F8; // 12.5 int Offsets::ObjTransformation = 0x3040; // Wrong -int Offsets::ObjName = 0x2BE4; // 12.4 -int Offsets::ObjLvl = 0x33A4; // 12.4 +int Offsets::ObjName = 0x2BE4; // 12.5 +int Offsets::ObjLvl = 0x3394; // 12.5 int Offsets::ObjExpiry = 0x298; // Unknown -int Offsets::ObjCrit = 0x12E0; // 12.4 -int Offsets::ObjCritMulti = 0x12D0; // Unknown -int Offsets::ObjAbilityPower = 0x1244; // 12.4 -int Offsets::ObjAtkSpeedMulti = 0x12B8; // Unknown -int Offsets::ObjAtkRange = 0x1304; // 12.3 -int Offsets::ObjTargetable = 0xD1C; // 12.3 -int Offsets::ObjInvulnerable = 0x3EC; // 12.3 -int Offsets::ObjIsMoving = 0x3638; // Unknown -int Offsets::ObjDirection = 0x1BD8; // 12.4 -int Offsets::ObjItemList = 0x3478; // 0x3478; // 12.2? // 0x33D0; // 12.2? -int Offsets::ObjExperience = 0x3394; // 12.4 +int Offsets::ObjCrit = 0x12E0; // 12.5? +int Offsets::ObjCritMulti = 0x12D0; // 12.5? +int Offsets::ObjAbilityPower = 0x1244; // 12.5? +int Offsets::ObjAtkSpeedMulti = 0x12B8; // 12.5? +int Offsets::ObjAtkRange = 0x1304; // 12.5 +int Offsets::ObjTargetable = 0xD1C; // 12.5? +int Offsets::ObjInvulnerable = 0x3EC; // 12.5? +int Offsets::ObjIsMoving = 0x3638; // 12.5? +int Offsets::ObjDirection = 0x1BD8; // 12.5? +int Offsets::ObjItemList = 0x3478; // 12.5? +int Offsets::ObjExperience = 0x3394; // 12.5 int Offsets::ObjMagicPen = 0x11DC; // Unknown int Offsets::ObjMagicPenMulti = 0x11E4; // Unknown int Offsets::ObjAdditionalApMulti = 0x1248; // 11.20 int Offsets::ObjManaRegen = 0x1150; // 12.2? int Offsets::ObjHealthRegen = 0x12F8; // 12.4 -int Offsets::ObjCurrentGold = 0x1B98; // 12.4 -int Offsets::ObjGoldTotal = 0x1BA8; // 12.4 +int Offsets::ObjCurrentGold = 0x1B98; // 12.5 +int Offsets::ObjGoldTotal = 0x1BA8; // 12.5 // UNKNOWN! int Offsets::ItemListItem = 0xC; @@ -67,29 +67,29 @@ int Offsets::RendererWidth = 0xC; int Offsets::RendererHeight = 0x10; // MOSTLY CORRECT! -int Offsets::SpellSlotLevel = 0x20; // 12.2 -int Offsets::SpellSlotTime = 0x28; // 12.2 -int Offsets::SpellSlotDamage = 0xA0; // 12.2 -int Offsets::SpellSlotSpellInfo = 0x13C; // // 12.2 -int Offsets::SpellInfoSpellData = 0x44; // 12.2 -int Offsets::SpellDataSpellName = 0x6C; // 12.2 -int Offsets::SpellDataMissileName = 0x6C; // 12.2 +int Offsets::SpellSlotLevel = 0x20; // 12.5 +int Offsets::SpellSlotTime = 0x28; // 12.5 +int Offsets::SpellSlotDamage = 0xA0; // 12.5 +int Offsets::SpellSlotSpellInfo = 0x13C; // // 12.5 +int Offsets::SpellInfoSpellData = 0x44; // 12.5 +int Offsets::SpellDataSpellName = 0x6C; // 12.5 +int Offsets::SpellDataMissileName = 0x6C; // 12.5 // CORRECT -int Offsets::ObjectMapCount = 0x2C; // 12.4 -int Offsets::ObjectMapRoot = 0x28; // 12.4 -int Offsets::ObjectMapNodeNetId = 0x10; // 12.4 -int Offsets::ObjectMapNodeObject = 0x14; // 12.4 +int Offsets::ObjectMapCount = 0x2C; // 12.5 +int Offsets::ObjectMapRoot = 0x28; // 12.5 +int Offsets::ObjectMapNodeNetId = 0x10; // 12.5 +int Offsets::ObjectMapNodeObject = 0x14; // 12.5 // CORRECT! -int Offsets::MissileSpellInfo = 0x278; // 12.4 -int Offsets::MissileSrcIdx = 0x2DC; // 12.4 -int Offsets::MissileDestIdx = 0x334; // 12.4 -int Offsets::MissileStartPos = 0x2F4; // 12.4 -int Offsets::MissileEndPos = 0x300; // 12.4 +int Offsets::MissileSpellInfo = 0x278; // 12.5 +int Offsets::MissileSrcIdx = 0x2DC; // 12.5 +int Offsets::MissileDestIdx = 0x334; // 12.5 +int Offsets::MissileStartPos = 0x2F4; // 12.5 +int Offsets::MissileEndPos = 0x300; // 12.5 // Minimap -int Offsets::MinimapObject = 0x30F1D94; // WRONG +int Offsets::MinimapObject = 0x310F288; // 12.5 int Offsets::MinimapObjectHud = 0x110; int Offsets::MinimapHudPos = 0x44; int Offsets::MinimapHudSize = 0x4C; \ No newline at end of file diff --git a/LView/config.ini b/LView/config.ini index 26ed51e..2096798 100644 --- a/LView/config.ini +++ b/LView/config.ini @@ -1,16 +1,16 @@ -::scriptsFolder=F:\Github\LViewLoL\GameplayScripts +::scriptsFolder=C:\Users\win8t\OneDrive\Desktop\projects\tlol-scraper\GameplayScripts Auto Smite::enable_key=41 -Auto Smite::enabled=1 +Auto Smite::enabled=0 Auto Smite::show_smitable=1 Auto Spell::cast_keys={"Q": 2, "W": 3, "E": 4, "R": 5} -Auto Spell::enabled=1 +Auto Spell::enabled=0 Auto Spell::target_jungle=1 Auto Spell::target_minions=1 Auto Spell::targeting_target=1 -Champion Tracker::enabled=1 +Champion Tracker::enabled=0 Champion Tracker::seconds_to_track=15.000000 Drawings::attack_range=1 -Drawings::enabled=1 +Drawings::enabled=0 Drawings::minion_last_hit=1 Drawings::skillshots=1 Drawings::skillshots_max_speed=5000.000000 @@ -19,25 +19,26 @@ Drawings::skillshots_predict=0 Drawings::skillshots_show_ally=1 Drawings::skillshots_show_enemy=1 Drawings::turret_ranges=1 +Extractor::enabled=1 Map Awareness::bound_max=4000.000000 -Map Awareness::enabled=1 -Object Explorer::enabled=1 +Map Awareness::enabled=0 +Object Explorer::enabled=0 Orbwalker::auto_last_hit=1 -Orbwalker::enabled=1 +Orbwalker::enabled=0 Orbwalker::key_attack_move=30 Orbwalker::key_orbwalk=57 Orbwalker::max_atk_speed=2.322000 Orbwalker::targeting_target=1 Orbwalker::toggle_mode=0 -Spell Tracker::enabled=1 +Spell Tracker::enabled=0 Spell Tracker::show_allies=0 Spell Tracker::show_enemies=1 Spell Tracker::show_local_champ=0 -Twisted Fate Card Picker::enabled=1 +Twisted Fate Card Picker::enabled=0 Twisted Fate Card Picker::key_blue=0 Twisted Fate Card Picker::key_red=46 Twisted Fate Card Picker::key_yellow=18 -Vision Tracker::enabled=1 +Vision Tracker::enabled=0 Vision Tracker::show_clones=1 Vision Tracker::show_traps=1 Vision Tracker::show_wards=1 diff --git a/LView/imgui.ini b/LView/imgui.ini index 28fcc59..fedf256 100644 --- a/LView/imgui.ini +++ b/LView/imgui.ini @@ -74,9 +74,9 @@ Size=502,659 Collapsed=0 [Window][Object Viewer] -Pos=129,25 -Size=664,844 -Collapsed=0 +Pos=1272,730 +Size=664,784 +Collapsed=1 [Window][Champion to track] Pos=60,60 @@ -109,9 +109,9 @@ Size=569,442 Collapsed=0 [Window][LVIEW by leryss] -Pos=1138,21 +Pos=1184,126 Size=690,889 -Collapsed=0 +Collapsed=1 [Table][0xBF3CBA1D,3] Column 0 Weight=1.0000