Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: Hi TuserverMU i have problem in source  (Visto 296 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline nujd00 Posteado: February 16, 2021, 11:10:13 PM | Modificado: February 17, 2021, 12:08:47 AM by ZabiinoOo

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 350
  • Gracias recibida: 307
  • ph
i have problem in source.

im using TAKUMI12 source which is up15
https://tuservermu.com.ve/index.php?topic=40110.0

now im adding some custom from kosh emulator source is CustomNPCItems
https://tuservermu.com.ve/index.php?topic=38743.0

but nothing change ingame.

what missing in source to make it work in game?

someone pleaseee








CustomNPC.cpp

Code: [Select]
[quote][table]
[tr]
[td]#include "stdafx.h"
#include "Offset.h"
#include "Import.h"
#include "Defines.h"
#include "Interface.h"
#include "TMemory.h"
#include "CustomNPC.h"
#include "Object.h"
#include "Protect.h"

NPC gNPC;


void NPC::Load() {
if(gProtect.m_MainInfo.CustomElfSoldier == 1){
        SetRange((LPVOID)0x0057FCCF, 5, ASM::NOP);
        SetOp((LPVOID)0x0057FCCF, (LPVOID) this->ElfSoldier, ASM::JMP);
}
if(gProtect.m_MainInfo.CustomMarlon == 1){
        SetRange((LPVOID)0x005842B1, 5, ASM::NOP);
        SetOp((LPVOID)0x005842B1, (LPVOID) this->Marlon, ASM::JMP);
}
if(gProtect.m_MainInfo.CustomChaosCard == 1){
        SetRange((LPVOID)0x005852E4, 5, ASM::NOP);
        SetOp((LPVOID)0x005852E4, (LPVOID) this->ChaosCardMaster, ASM::JMP);
}
if(gProtect.m_MainInfo.CustomGuard1 == 1){
        SetRange((LPVOID)0x00584A4E, 5, ASM::NOP);
        SetOp((LPVOID)0x00584A4E, (LPVOID) this->Guard1, ASM::JMP);
}
if(gProtect.m_MainInfo.CustomGuard2 == 1){
        SetRange((LPVOID)0x00584B82, 5, ASM::NOP);
        SetOp((LPVOID)0x00584B82, (LPVOID) this->Guard2, ASM::JMP);
}
if(gProtect.m_MainInfo.CustomCursedWizard == 1){
SetRange((LPVOID)0x00582FE6, 5, ASM::NOP);
    SetOp((LPVOID)0x00582FE6, (LPVOID) this->CursedWizard, ASM::JMP);
}
}
// ----------------------------------------------------------------------------------------------

Naked(NPC::ElfSoldier) {
   static ObjectPreview * gPreview;
   //----
   _asm {
      MOV ECX, DWORD PTR SS : [EBP + 0x08]
      MOV gPreview, ECX
   }
   // ----
   gPreview->HelmSlot = ITEM2(7, gProtect.m_MainInfo.CustomElfSoldierArmor);
   gPreview->ArmorSlot = ITEM2(8, gProtect.m_MainInfo.CustomElfSoldierArmor);
   gPreview->PantsSlot = ITEM2(9, gProtect.m_MainInfo.CustomElfSoldierArmor);
   gPreview->GlovesSlot = ITEM2(10, gProtect.m_MainInfo.CustomElfSoldierArmor);
   gPreview->BootsSlot = ITEM2(11, gProtect.m_MainInfo.CustomElfSoldierArmor);
   gPreview->WeaponFirstSlot = ITEM2(4, gProtect.m_MainInfo.CustomElfSoldierWeapon1);
   gPreview->WeaponSecondSlot = ITEM2(4, gProtect.m_MainInfo.CustomElfSoldierWeapon2);
   gPreview->WingsSlot = ITEM2(12, gProtect.m_MainInfo.CustomElfSoldierWings);
   // ----
   gPreview->HelmLevel = 15;
   gPreview->ArmorLevel = 15;
   gPreview->PantsLevel = 15;
   gPreview->GlovesLevel = 15;
   gPreview->BootsLevel = 15;
   gPreview->WeaponFirstLevel = 15;
   gPreview->WeaponSecondLevel = 15;
   // ----
   gPreview->HelmExcellent = 1;
   gPreview->ArmorExcellent = 1;
   gPreview->PantsExcellent = 1;
   gPreview->GlovesExcellent = 1;
   gPreview->BootsExcellent = 1;
   gPreview->WeaponFirstExcellent = 1;
   // ----
   _asm {
      MOV ECX, 0x0057FD5B
      JMP ECX
   }
}
// ----------------------------------------------------------------------------------------------

Naked(NPC::Marlon) {
   static ObjectPreview * gPreview;
   //----
   _asm {
      MOV ECX, DWORD PTR SS : [EBP - 0x14]
      MOV gPreview, ECX
   }
   // ----
   gPreview->HelmSlot = ITEM2(7, gProtect.m_MainInfo.CustomMarlonArmor);
   gPreview->ArmorSlot = ITEM2(8, gProtect.m_MainInfo.CustomMarlonArmor);
   gPreview->PantsSlot = ITEM2(9, gProtect.m_MainInfo.CustomMarlonArmor);
   gPreview->GlovesSlot = ITEM2(10, gProtect.m_MainInfo.CustomMarlonArmor);
   gPreview->BootsSlot = ITEM2(11, gProtect.m_MainInfo.CustomMarlonArmor);
   gPreview->WeaponFirstSlot = ITEM2(0, gProtect.m_MainInfo.CustomMarlonWeapon1);
   gPreview->WeaponSecondSlot = ITEM2(0, gProtect.m_MainInfo.CustomMarlonWeapon2);
   gPreview->WingsSlot = ITEM2(12, gProtect.m_MainInfo.CustomMarlonWings);
   // ----
   gPreview->HelmLevel = 15;
   gPreview->ArmorLevel = 15;
   gPreview->PantsLevel = 15;
   gPreview->GlovesLevel = 15;
   gPreview->BootsLevel = 15;
   gPreview->WeaponFirstLevel = 15;
   gPreview->WeaponSecondLevel = 15;
   // ----
   gPreview->HelmExcellent = 1;
   gPreview->ArmorExcellent = 1;
   gPreview->PantsExcellent = 1;
   gPreview->GlovesExcellent = 1;
   gPreview->BootsExcellent = 1;
   gPreview->WeaponFirstExcellent = 1;
   gPreview->WeaponSecondExcellent = 1;
   // ----
   _asm {
      MOV ECX, 0x00584354
      JMP ECX
   }
}
// ----------------------------------------------------------------------------------------------

Naked(NPC::ChaosCardMaster) {
   static ObjectPreview * gPreview;
   //----
   _asm {
      MOV ECX, DWORD PTR SS : [EBP - 0x14]
      MOV gPreview, ECX
   }
   // ----
   gPreview->HelmSlot = ITEM2(7, gProtect.m_MainInfo.CustomChaosCardArmor);
   gPreview->ArmorSlot = ITEM2(8, gProtect.m_MainInfo.CustomChaosCardArmor);
   gPreview->PantsSlot = ITEM2(9, gProtect.m_MainInfo.CustomChaosCardArmor);
   gPreview->GlovesSlot = ITEM2(10, gProtect.m_MainInfo.CustomChaosCardArmor);
   gPreview->BootsSlot = ITEM2(11, gProtect.m_MainInfo.CustomChaosCardArmor);
   gPreview->WeaponFirstSlot = ITEM2(5, gProtect.m_MainInfo.CustomChaosCardWeapon1);
   gPreview->WeaponSecondSlot = ITEM2(6, gProtect.m_MainInfo.CustomChaosCardWeapon2);
   gPreview->WingsSlot = ITEM2(12, gProtect.m_MainInfo.CustomChaosCardWings);
   // ----
   gPreview->HelmLevel = 13;
   gPreview->ArmorLevel = 13;
   gPreview->PantsLevel = 13;
   gPreview->GlovesLevel = 13;
   gPreview->BootsLevel = 13;
   gPreview->WeaponFirstLevel = 13;
   gPreview->WeaponSecondLevel = 13;
   // ----
   gPreview->HelmExcellent = 1;
   gPreview->ArmorExcellent = 1;
   gPreview->PantsExcellent = 1;
   gPreview->GlovesExcellent = 1;
   gPreview->BootsExcellent = 1;
   gPreview->WeaponFirstExcellent = 1;
   gPreview->WeaponSecondExcellent = 1;
   // ----
   _asm {
      MOV ECX, 0x00585390
      JMP ECX
   }
}
// ----------------------------------------------------------------------------------------------

Naked(NPC::Guard1) {
   static ObjectPreview * gPreview;
   //----
   _asm {
      MOV ECX, DWORD PTR SS : [EBP - 0x14]
      MOV gPreview, ECX
   }
   // ----
   gPreview->HelmSlot = ITEM2(7, gProtect.m_MainInfo.CustomGuard1Armor);
   gPreview->ArmorSlot = ITEM2(8, gProtect.m_MainInfo.CustomGuard1Armor);
   gPreview->PantsSlot = ITEM2(9, gProtect.m_MainInfo.CustomGuard1Armor);
   gPreview->GlovesSlot = ITEM2(10, gProtect.m_MainInfo.CustomGuard1Armor);
   gPreview->BootsSlot = ITEM2(11, gProtect.m_MainInfo.CustomGuard1Armor);
   gPreview->WeaponFirstSlot = ITEM2(5, gProtect.m_MainInfo.CustomGuard1Weapon1);
   gPreview->WeaponSecondSlot = ITEM2(6, gProtect.m_MainInfo.CustomGuard1Weapon2);
   gPreview->WingsSlot = ITEM2(12, gProtect.m_MainInfo.CustomGuard1Wings);
   // ----
   gPreview->HelmLevel = 15;
   gPreview->ArmorLevel = 15;
   gPreview->PantsLevel = 15;
   gPreview->GlovesLevel = 15;
   gPreview->BootsLevel = 15;
   gPreview->WeaponFirstLevel = 15;
   gPreview->WeaponSecondLevel = 15;
   gPreview->Class = SoulMaster;
   // ----
   _asm {
      MOV ECX, 0x00584AB7
      JMP ECX
   }
}
// ----------------------------------------------------------------------------------------------

Naked(NPC::Guard2) {
   static ObjectPreview * gPreview;
   //----
   _asm {
      MOV ECX, DWORD PTR SS : [EBP - 0x14]
      MOV gPreview, ECX
   }
   // ----
   gPreview->HelmSlot = ITEM2(7, gProtect.m_MainInfo.CustomGuard2Armor);
   gPreview->ArmorSlot = ITEM2(8, gProtect.m_MainInfo.CustomGuard2Armor);
   gPreview->PantsSlot = ITEM2(9, gProtect.m_MainInfo.CustomGuard2Armor);
   gPreview->GlovesSlot = ITEM2(10, gProtect.m_MainInfo.CustomGuard2Armor);
   gPreview->BootsSlot = ITEM2(11, gProtect.m_MainInfo.CustomGuard2Armor);
   gPreview->WeaponFirstSlot = ITEM2(0, gProtect.m_MainInfo.CustomGuard2Weapon1);
   gPreview->WingsSlot = ITEM2(12, gProtect.m_MainInfo.CustomGuard2Wings);
   // ----
   gPreview->HelmLevel = 15;
   gPreview->ArmorLevel = 15;
   gPreview->PantsLevel = 15;
   gPreview->GlovesLevel = 15;
   gPreview->BootsLevel = 15;
   gPreview->WeaponFirstLevel = 15;
   gPreview->Class = BladeMaster;
   // ----
   _asm {
      MOV ECX, 0x00584BDC
      JMP ECX
   }
}
// ----------------------------------------------------------------------------------------------

Naked(NPC::CursedWizard) {
static ObjectPreview * gPreview;
//----
_asm {
MOV ECX, DWORD PTR SS : [EBP - 0x14]
MOV gPreview, ECX
}
// ----
gPreview->HelmSlot = ITEM2(7, gProtect.m_MainInfo.CustomCursedWizardArmor);
gPreview->ArmorSlot = ITEM2(8, gProtect.m_MainInfo.CustomCursedWizardArmor);
gPreview->PantsSlot = ITEM2(9, gProtect.m_MainInfo.CustomCursedWizardArmor);
gPreview->GlovesSlot = ITEM2(10, gProtect.m_MainInfo.CustomCursedWizardArmor);
gPreview->BootsSlot = ITEM2(11, gProtect.m_MainInfo.CustomCursedWizardArmor);
gPreview->WeaponFirstSlot = ITEM2(5, gProtect.m_MainInfo.CustomCursedWizardWeapon1);
gPreview->WingsSlot = ITEM2(12, gProtect.m_MainInfo.CustomCursedWizardWings);
// ----
   // ----
    gPreview->HelmLevel = 15;
    gPreview->ArmorLevel = 15;
    gPreview->PantsLevel = 15;
    gPreview->GlovesLevel = 15;
    gPreview->BootsLevel = 15;
    gPreview->WeaponFirstLevel = 15;
gPreview->Class = SoulMaster;
// ----
_asm {
MOV ECX, 0x00583099
JMP ECX
}
}[/td]
[/tr]
[/table][/quote]

customNPC.h

Code: [Select]
[quote][table]
[tr]
[td]#pragma once

class NPC {
  public:
    void        Load();
    static void FixShowLevel();
    static void ElfSoldier();
    static void Marlon();
    static void ChaosCardMaster();
    static void Guard1();
    static void Guard2();
static void CursedWizard();
}; extern NPC gNPC;[/td]
[/tr]
[/table][/quote]

NUJD RABAGO

Gracias:


Offline nujd00 #1 Posteado: February 16, 2021, 11:49:58 PM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 350
  • Gracias recibida: 307
  • ph
i was newbie about this coding <3

NUJD RABAGO

Offline nujd00 #2 Posteado: February 17, 2021, 06:18:56 AM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 350
  • Gracias recibida: 307
  • ph
NUJD RABAGO

Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
184 Replies
45457 Views
Last post February 24, 2024, 09:29:50 PM
by BastarDesing
0 Replies
587 Views
Last post January 11, 2019, 01:12:32 PM
by MuOldLife
2 Replies
870 Views
Last post January 15, 2021, 09:32:18 PM
by yuval07
3 Replies
322 Views
Last post July 18, 2023, 09:14:06 PM
by dakosmu
0 Replies
188 Views
Last post July 18, 2023, 06:55:18 PM
by Juninsj22