Madogear

Wrote new code? Fixed a bug? Want to discuss technical stuff? Feel free to post it here.

Moderator: Moderators

johnny
Noob
Noob
Posts: 9
Joined: 14 Apr 2008, 04:46

Madogear

#1 Post by johnny »

Code: Select all

Index: src/Network/Receive.pm
===================================================================
--- src/Network/Receive.pm	(revision 6845)
+++ src/Network/Receive.pm	(working copy)
@@ -327,7 +327,7 @@
 		'0224' => ['taekwon_rank', 'c x3 c', [qw(type rank)]],
 		'0226' => ['top10_taekwon_rank'],
 		'0227' => ['gameguard_request'],
-		'0229' => ['character_status', 'a4 v3', [qw(ID param1 param2 param3)]],
+		'0229' => ['character_status', 'a4 v2 V', [qw(ID param1 param2 param3)]],
 		'022A' => ['actor_display', 'a4 v4 x2 v8 x2 v a4 a4 v x2 C2 a3 x2 C v',		[qw(ID walk_speed param1 param2 param3 type hair_style weapon shield lowhead tophead midhead hair_color head_dir guildID guildEmblem visual_effects stance sex coords act lv)]],
 		'022B' => ['actor_display', 'a4 v4 x2 v8 x2 v a4 a4 v x2 C2 a3 x2 v',		[qw(ID walk_speed param1 param2 param3 type hair_style weapon shield lowhead tophead midhead hair_color head_dir guildID guildEmblem visual_effects stance sex coords lv)]],
 		'022C' => ['actor_display', 'a4 v4 x2 v5 V v3 x4 a4 a4 v x2 C2 a5 x3 v',	[qw(ID walk_speed param1 param2 param3 type hair_style weapon shield lowhead timestamp tophead midhead hair_color guildID guildEmblem visual_effects stance sex coords lv)]],

Index: skillslooks.txt
===================================================================
--- skillslooks.txt	(revision 6845)
+++ skillslooks.txt	(working copy)
@@ -12,3 +12,4 @@
 2048 Orc Head
 4096 Wedding Sprites
 8192 Ruwach
+4194304 Madogear
\ No newline at end of file
This adds support for the new mechanics madogear (thats how gravity calls it)
Technology
Super Moderators
Super Moderators
Posts: 801
Joined: 06 May 2008, 12:47
Noob?: No

Re: Madogear

#2 Post by Technology »

Thanks for the effort.

Here's some unknown skillslooks.txt entries, i bet they have something to do with RE as well, like mounting the warg and such.
262144 Summer
524288 Riding Dragon
1048576 Support Warg
2097152 Riding Warg
4194304 Madogear
# 8388608 TODO
# 16777216 TODO
# 33554432 TODO
# 67108864 TODO

edit: added more entries
edit2: updated warg/dragon entries
One ST0 to rule them all? One PE viewer to find them!
One ST_kRO to bring them all and in the darkness bind them...

Mount Doom awaits us, fellowship of OpenKore!
johnny
Noob
Noob
Posts: 9
Joined: 14 Apr 2008, 04:46

Re: Madogear

#3 Post by johnny »

well, checked a bit and generated a dummy code.

Code: Select all

int __cdecl DragonStuff__Dismount(int a1)
{
  int result; // eax@1
  int v2; // edi@1
  int v3; // esi@1

  v3 = a1;
  result = (*(int (__thiscall **)(_DWORD))(*(_DWORD *)a1 + 112))(a1);
  v2 = result;
  if ( result & 0x80000 )
    result = (*(int (__thiscall **)(_DWORD, _DWORD))(*(_DWORD *)v3 + 232))(v3, 524288);
  if ( (unsigned int)sub_800000 & v2 )
    result = (*(int (__thiscall **)(_DWORD, _DWORD))(*(_DWORD *)v3 + 232))(v3, sub_800000);
  if ( v2 & 0x1000000 )
    result = (*(int (__thiscall **)(_DWORD, _DWORD))(*(_DWORD *)v3 + 232))(v3, 16777216);
  if ( v2 & 0x2000000 )
    result = (*(int (__thiscall **)(_DWORD, _DWORD))(*(_DWORD *)v3 + 232))(v3, 33554432);
  if ( v2 & 0x4000000 )
    result = (*(int (__thiscall **)(_DWORD, _DWORD))(*(_DWORD *)v3 + 232))(v3, 67108864);
  return result;
}
so yes, seems like they are for Mounting the Worg and Dragons.