Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: MaxVoll Season 6 Elf Skill visual buy  (Visto 688 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline usersa Posteado: October 13, 2022, 01:57:09 PM | Modificado: October 15, 2022, 07:50:38 AM by usersa

  • 0 puntos por ventas
  • *
  • Rank: Liga mayor
  • Posts: 182
  • Gracias recibida: 41
  • gr
Hola guyz,

https://files.fm/f/k7tnqhf8x
I use maxvoll s6 source and for elf, triple shot and ice arrow works with out effect.
All other character's skill works just fine.
Here my Fix.cpp
Code: [Select]
#include "stdafx.h"
#include "Fix.h"
#include "User.h"
#include "Defines.h"
#include "Object.h"
#include "Util.h"
#include "TMemory.h"

static DWORD ATTACK_RET = 0x00550A16;
static WORD CLASS = 0;
static WORD STR_SPEED = 0;
static WORD MAG_SPEED = 0;

__declspec(naked) void FixAttackSpeed()
{
_asm
{
MOV EAX,DWORD PTR DS:[0x8128AC8]
MOVZX ECX,WORD PTR DS:[EAX+0xB]
MOV CLASS,CX
MOVZX ECX,WORD PTR DS:[EAX+0x54]
MOV STR_SPEED,CX
MOVZX ECX,WORD PTR DS:[EAX+0x60]
MOV MAG_SPEED,CX
}
// --------------------------------------------

gObjUser.MagickAttack = gObjUser.GetActiveSkill();

/*if(STR_SPEED > 3276)
{
STR_SPEED = 3276;
}

if(MAG_SPEED > 3276)
{
MAG_SPEED = 3276;
}*/

if( CLASS == DarkWizard || CLASS == SoulMaster || CLASS == GrandMaster )
{
if( gObjUser.MagickAttack == 9 ||
gObjUser.MagickAttack == 8 ||
gObjUser.MagickAttack == 13 ||
gObjUser.MagickAttack == 38 ||
gObjUser.MagickAttack == 39 ||
gObjUser.MagickAttack == 5)
{
if(MAG_SPEED > 450 && MAG_SPEED < 480)
{
MAG_SPEED = 450;
}
else if(MAG_SPEED > 600 && MAG_SPEED < 690)
{
MAG_SPEED = 600;
}
else if(MAG_SPEED > 850 && MAG_SPEED < 1105)
{
MAG_SPEED = 850;
}
else if(MAG_SPEED > 1350 && MAG_SPEED < 2355)
{
MAG_SPEED = 1350;
}
else if(MAG_SPEED > 2850)
{
MAG_SPEED = 2850;
}
}
else if(gObjUser.MagickAttack == 14)
{
if(MAG_SPEED > 3276)
{
MAG_SPEED = 3276;
}
}
}
// -> Elf
if( CLASS == Elf || CLASS == MuseElf || CLASS == HightElf )
{
if(gObjUser.MagickAttack == 52 ||
gObjUser.MagickAttack == 51 ||
gObjUser.MagickAttack == 424 ||
gObjUser.MagickAttack == 416 )
{
if(STR_SPEED > 400)
{
STR_SPEED = 400;
}
}

if(gObjUser.MagickAttack == 24 ||
gObjUser.MagickAttack == 414)
{
if(STR_SPEED > 600)
{
STR_SPEED = 600;
}
}
}
// -> Magic Gladiator
if( CLASS == MagicGladiator || CLASS == DuelMaster )
{
if( gObjUser.MagickAttack == 55 ||
gObjUser.MagickAttack == 490 )
{
if(STR_SPEED > 1368)
{
STR_SPEED = 1368;
}
}
if( gObjUser.MagickAttack == 9 ||
gObjUser.MagickAttack == 8 ||
gObjUser.MagickAttack == 13 ||
gObjUser.MagickAttack == 5 )
{
if(MAG_SPEED > 450 && MAG_SPEED < 480)
{
MAG_SPEED = 450;
}
else if(MAG_SPEED > 600 && MAG_SPEED < 690)
{
MAG_SPEED = 600;
}
else if(MAG_SPEED > 850 && MAG_SPEED < 1105)
{
MAG_SPEED = 850;
}
else if(MAG_SPEED > 1350 && MAG_SPEED < 2355)
{
MAG_SPEED = 1350;
}
else if(MAG_SPEED > 2850)
{
MAG_SPEED = 2850;
}
}
if(gObjUser.MagickAttack == 14)
{
if(MAG_SPEED > 3276)
{
MAG_SPEED = 3276;
}
}
}
// -> Dark Lord
if( CLASS == DarkLord || CLASS == LordEmperor)
{
if(gObjUser.MagickAttack == 78 ||
   gObjUser.MagickAttack == 518 )
{
if(STR_SPEED > 249 && STR_SPEED < 264)
{
STR_SPEED = 249;
}
else if(STR_SPEED > 324 && STR_SPEED < 367)
{
STR_SPEED = 324;
}
else if(STR_SPEED > 449 && STR_SPEED < 575)
{
STR_SPEED = 449;
}
else if(STR_SPEED > 699 && STR_SPEED < 1200)
{
STR_SPEED = 699;
}
else if(STR_SPEED > 1449)
{
STR_SPEED = 1449;
}
}
}
/*FirstMaster*/
/*if( CLASS == Monk || CLASS == 22 )
{
if( gObjUser.MagickAttack == 261 ||
gObjUser.MagickAttack == 490 ||
gObjUser.MagickAttack == 265 ||
gObjUser.MagickAttack == 555 )
{
//if(STR_SPEED > 4476)
//{
// STR_SPEED = 4476;
//}
if(STR_SPEED > 754 && STR_SPEED < 1087)
{
STR_SPEED = 754;
}
}
}*/
// --------------------------------------------
_asm
{
MOVZX ECX,WORD PTR DS:[STR_SPEED]
MOV DWORD PTR SS:[EBP-0x28],ECX
FILD DWORD PTR SS:[EBP-0x28]
FMUL QWORD PTR DS:[0x0D27C88]              ; FLOAT 0.0010007200189989805
FSTP DWORD PTR SS:[EBP-0x10]
MOVZX EAX,WORD PTR DS:[MAG_SPEED]
MOV DWORD PTR SS:[EBP-0x2C],EAX
FILD DWORD PTR SS:[EBP-0x2C]
FMUL QWORD PTR DS:[0x0D27C88]              ; FLOAT 0.0010007200189989805
FSTP DWORD PTR SS:[EBP-0x0C]
MOVZX EDX,WORD PTR DS:[MAG_SPEED]
MOV DWORD PTR SS:[EBP-0x30],EDX
FILD DWORD PTR SS:[EBP-0x30]
FMUL QWORD PTR DS:[0x0D281C0]              ; FLOAT 0.002000000094994903
FSTP DWORD PTR SS:[EBP-0x4]
FLD DWORD PTR SS:[EBP-0x10]

JMP ATTACK_RET
}
}
// --------------------------------------------------------------------------------------------
static DWORD RETURN_attack2 = 0x0055157D;

__declspec(naked) void FixAttackSpeed2()
{
_asm
{
MOVZX EDX,WORD PTR DS:[STR_SPEED]
JMP RETURN_attack2
}
}

void InitAttackSpeed()
{
SetOp((LPVOID)0x005509CE, (LPVOID)FixAttackSpeed, ASM::JMP);
SetOp((LPVOID)0x00551573, (LPVOID)FixAttackSpeed2, ASM::JMP);
}

Any suggestion?

Publicar un anuncio Mu Online gratis - Mu Online Community GRATIS.
Post free Mu Online ads - FREE Mu Online Community
https://www.facebook.com/groups/274190243227367/

Gracias:


Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
1 Replies
1941 Views
Last post May 05, 2017, 12:15:18 PM
by unico
4 Replies
2839 Views
Last post August 21, 2022, 07:21:15 PM
by visionmu
9 Replies
5190 Views
Last post May 25, 2024, 03:28:58 PM
by lavetien
0 Replies
443 Views
Last post August 31, 2022, 10:39:03 AM
by T-LEGENDARY
8 Replies
2050 Views
Last post March 02, 2024, 02:38:49 PM
by T-LEGENDARY