Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: Season8 + Right Click equip and unquip character items  (Visto 2526 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline louis Posteado: March 04, 2020, 06:20:37 AM | Modificado: March 04, 2020, 06:22:13 AM by louis

  • MAESTRO

  • US. DE HONOR

  • LEYENDA

  • C++ Coder
  • +11 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 844
  • Gracias recibida: 36402
  • br
He intentado durante varios días crear la función para equipar un elemento en el personaje en la temporada, pero aparece un error en la función cuando la reescribo y tiene crash el client.

Debajo de la función descompilada, probada y funcionando, mueve el itempero tiene crash.

Stack file:
[SUCCESS] Address: 00AC4A94

Hook:
Code: [Select]
SetCompleteHook(0xE9,0x00982481, &MoveItemTo); //Call 982481 right click move 

Funcition:
Code: [Select]
char MoveItemTo(DWORD a2, void * a3, int a4)
{
int Window = 0;
int TargetSlot = -1;

int X = *(BYTE*)(pGetItemBMD(a3) + 568);
int Y = *(BYTE*)(pGetItemBMD(a3) + 569);

switch ( a4 )
{
case 1:
{
Window = WindowID(_Inventory);
TargetSlot = (*(int (__thiscall**)(int, DWORD, int))(*(DWORD*)Window + 112))(Window, X, Y);

if ( TargetSlot == -1 )
{
Window = WindowID(_ExtensionBag);
TargetSlot = (*(int (__thiscall **)(int, DWORD, int))(*(DWORD *)Window + 112))(Window, X, Y);
}
}
break;
case 9:
{
Window = WindowID(_Warehouse);
TargetSlot = (*(int(__thiscall**)(int, DWORD, int))(*(DWORD*)Window + 112))(Window, X, Y);

if ( TargetSlot == -1 )
{
Window = WindowID(_WarehouseExt);
TargetSlot = (*(int (__thiscall **)(int, DWORD, int))(*(DWORD*)Window + 112))(Window, X, Y);
}
}
break;
case 6:
Window = WindowID(_Trade);
TargetSlot = (*(int (__thiscall **)(int, DWORD, int))(*(DWORD*)Window + 112))(Window, X, Y);
break;
case 4:
Window = WindowID(_MixInventory1);
TargetSlot = (*(int (__thiscall **)(int, DWORD, int))(*(DWORD*)Window + 112))(Window, X, Y);
break;
case 5:
Window = WindowID(_MixInventory2);
TargetSlot = (*(int (__thiscall **)(int, DWORD, int))(*(DWORD *)Window + 112))(Window, X, Y);
break;
case 11:
Window = WindowID(_EventInventory);
TargetSlot = (*(int (__thiscall **)(int, DWORD, int))(*(DWORD *)Window + 112))(Window, X, Y);
break;
case 12:
Window = WindowID(_PetInventory);
TargetSlot = (*(int (__thiscall **)(int, DWORD, int))(*(DWORD *)Window + 112))(Window, X, Y);
break;
}

if ( TargetSlot != -1 && Window )
{
int SourceSlot = sub_9CA225(a2, (int)a3);

if ( sub_9CB0D1(a2, SourceSlot) )
{
sub_9CA557((void*)a2);
*(BYTE*)(WindowID(_Unknown1) + 137) = 1;
(*(void (__thiscall **)(int, int))(*(DWORD*)Window + 152))(Window, TargetSlot);
return 1;
}
}
return 0;
}

Defines.h:
Code: [Select]
enum ObjWindowNew // -> Season 8.3
{
_Caution = 136,
_MainFrame = 140,
_Character = 144,
_Inventory = 148,
_ExtensionBag = 152,
_PersonalStore = 156,
_MixInventory1 = 160,
_MixSel = 164,
_MixGoblinSel = 168,
_MixStone = 172,
_MixInventory2 = 176,
_GensRanking = 180,
_GuildCreate = 184,
_GuildInfo = 188,
_GuildPosition = 192,
_InfoPopup = 196,
_PetInfoPopup = 200,
_Unknown1 = 204,
_QuickCommand = 208,
_Duel = 212,
_DuelWatch = 216,
_Trade = 220,
_PurchaseInv = 224,
_GoldArcher = 228,
_Unknown2 = 232,
_NpcDialogue = 236,
_NpcShop = 240,
_PetInfo = 244,
_Pentagram = 248,
_ArkaResult = 252,
_Warehouse = 256,
_WarehouseExt = 260,
_NpcChangeQuest = 264,
_NpcQuestProgress = 268,
_NpcGateKeeper = 272,
_SystemMenu = 276,
_Option = 280,
_SelectMenu = 284,
_MyQuestInfo = 288,
_ChatWindow = 292,
_MoveCommand = 296,
_HelpWindow = 300,
_EventMapHelper = 304,
_Trainer = 308,
_MapName = 312,
_Notice = 316,
_HeroPosition = 320,
_EnterBC = 324,
_EnterEmpireGuard = 328,
_CommandWindow = 332,
_ArkaBattleReg = 336,
_ArkaBattleProgr = 340,
_ArkaBattleNotice = 344,
_MonsterInfo = 348,
_PlayerInfo = 352,
_BuffFrame = 356,
_EquipDurInfo = 360,
_MacroMain = 364, //helper
_MacroSub = 368,
_Alarm = 372,
_MatchingSelect = 376,
_MatchingGuild = 380,
_MatchingParty = 384,
_Party = 388,
_ItemInfo = 392,
_SnsWindow = 396,
_SMatchMenu = 400,
_SMatchRank = 404,
_SMatchResult = 408,
_SearchPStore = 412,
_MiniGameRummy = 416,
_EventInventory = 420,
_EventInfo = 424,
_CTempleMatchMenu = 428,
_CTempleResult = 432,
_CTempleScore = 436,
_CTempleInfo = 440,
_ListOfMatches = 444,
_EventMapProgInfo = 448,
_EventMapRouCount = 452,
_ProgressFrame = 456,
_Navimap = 460,
_PetInventory = 464,
_EventMapTutorial = 468,
};

import.h
Code: [Select]
#define pWindowThisNew		((int(*)()) 0x936AAC) //S8 OK
#define WindowID(Window) *(DWORD*)(pWindowThisNew() + Window) //S8 OK
#define sub_9CA225 ((int(__thiscall*)(int a1, int a2)) 0x009CA225)
#define sub_9CB0D1 ((char(__thiscall*)(int a1, int a2)) 0x009CB0D1)
#define sub_9CA557 ((void(__thiscall*)(void * a1)) 0x009CA557)

Podemos ayudarnos mutuamente para crear aquello que incluso sirvió para las nuevas seasons (S13 s14 s15)


Update 36 is ready!!!

Gracias:


Offline takumi12 #1 Posteado: March 04, 2020, 06:38:05 AM

  • MAESTRO

  • US. DE HONOR

  • LEYENDA

  • Php Coder
  • +11 puntos por ventas
  • *
  • *
  • Rank: Puto amo
  • Posts: 1.310
  • Gracias recibida: 39656
  • mx
pensarlo parece algo sencillo, pero veo complicaciones, se hará lo que pueda espero poder aportar algo en esto.


Las offset no se crea, ni se destruye, solo se transforma

Gracias:


Offline laulinh2 #2 Posteado: March 04, 2020, 09:46:36 AM

  • 0 puntos por ventas
  • *
  • Rank: Usuario activo
  • Posts: 65
  • Gracias recibida: 12
  • vn

Offline chuckhai #3 Posteado: March 14, 2020, 10:33:51 AM

  • 0 puntos por ventas
  • *
  • Rank: Avanzado
  • Posts: 134
  • Gracias recibida: 1063
  • vn

Offline takumi12 #4 Posteado: April 04, 2020, 03:29:43 AM | Modificado: April 04, 2020, 03:37:39 AM by takumi12

  • MAESTRO

  • US. DE HONOR

  • LEYENDA

  • Php Coder
  • +11 puntos por ventas
  • *
  • *
  • Rank: Puto amo
  • Posts: 1.310
  • Gracias recibida: 39656
  • mx

Las offset no se crea, ni se destruye, solo se transforma

Offline emersonx13 #5 Posteado: April 26, 2020, 11:23:04 PM

  • MAESTRO

  • US. DE HONOR

  • LEYENDA

  • 3D Maker
  • 0 puntos por ventas
  • *
  • *
  • Rank: Puto amo
  • Posts: 523
  • Gracias recibida: 32799
  • br
¿Qué falta para compartir la fuente completa?
Season 6 offset tambien?
No te demores, realmente lo necesito.
Gracias.

Donate for my Work

BTC: 1HnXqN1wAh3EUC2Gi4WVH5Cj8fmihgeQze

Offline emersonx13 #6 Posteado: April 27, 2020, 10:27:30 AM

  • MAESTRO

  • US. DE HONOR

  • LEYENDA

  • 3D Maker
  • 0 puntos por ventas
  • *
  • *
  • Rank: Puto amo
  • Posts: 523
  • Gracias recibida: 32799
  • br
¿Qué falta para compartir la fuente completa?
Season 6 offset tambien?
No te demores, realmente lo necesito.
Gracias.

@louis
@takumi12
@Kapocha33
@NasLy
@Nemesis
@Odisk

¿Qué falta para compartir el código completo?
Estoy ansioso  please

Donate for my Work

BTC: 1HnXqN1wAh3EUC2Gi4WVH5Cj8fmihgeQze

Gracias:


Offline Odisk #7 Posteado: April 27, 2020, 02:21:45 PM

  • Colaborador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 882
  • Gracias recibida: 12308
  • pr
¿Qué falta para compartir la fuente completa?
Season 6 offset tambien?
No te demores, realmente lo necesito.
Gracias.

@louis
@takumi12
@Kapocha33
@NasLy
@Nemesis
@Odisk

¿Qué falta para compartir el código completo?
Estoy ansioso  please

huy si el mismo louis se anda partiendo la cabeza con eso que quedara de nosotro los mortales :'v

one day

Offline dizzys #8 Posteado: July 10, 2020, 06:43:12 AM

  • 0 puntos por ventas
  • *
  • Rank: Dedicado
  • Posts: 37
  • Gracias recibida: 4
  • be

Offline adomit #9 Posteado: April 12, 2021, 11:11:55 AM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 1
  • Gracias recibida: 0
  • cn
can your show me the funtion about:pGetItemBMD(),i do not know where is the funtion and what the funtion is.ths~ :o :o


Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
5 Replies
1475 Views
Last post September 29, 2016, 10:58:25 AM
by ronald15
6 Replies
3260 Views
Last post January 13, 2017, 05:23:52 PM
by ZabiinoOo
33 Replies
4233 Views
Last post April 27, 2020, 02:44:15 PM
by Deidad
1 Replies
398 Views
Last post August 10, 2021, 12:38:16 PM
by c4nhsatcodong
10 Replies
5445 Views
Last post August 01, 2023, 08:40:43 AM
by nhatphai21996vn