Hi guys i am a bit worried here at 0:24 AM so i want to release this simply code xD.
And you need to hook there:
If you compile the DLL and hook in the correct place when you click on the NPCGuard you will get Teleported to Lorencia(152,52). Simply and cool .
You need to be sure to put the NPC in your MonsterSetBase:
Well guys Good Luck to all and Happy Coding. :technolog
PS: Good Night to all too xD.
//EDIT
This works 100% Perfect for any of the 1.00.16 Version Like Endi
Code:
.386
.Model flat , StdCall
Option CaseMap:none
Include \masm32\include\windows.inc
Include \masm32\include\user32.inc
Include \masm32\include\kernel32.inc
Include \masm32\include\masm32.inc
IncludeLib \masm32\lib\user32.lib
IncludeLib \masm32\lib\kernel32.lib
IncludeLib \masm32\lib\masm32.lib
.Const
.Data
gObjTeleport DD 004F6230H
.Data?
.Code
DllEntry Proc hInstDLL:HINSTANCE, reason:DWord, reserved1:DWord
Mov Eax, TRUE
Ret
DllEntry EndP
NewNPC Proc
Local PlayerID:DWord
Local Map:DWord
Local X:DWord
Local Y:DWord
Mov Eax, DWord Ptr Ss:[Ebp + 8]
Mov Edx, DWord Ptr Ds:[Eax]
Mov PlayerID, Edx
Mov Map, 0
Mov X, 98H
Mov Y, 34H
Mov Eax, Y
Push Eax
Mov Ecx, X
Push Ecx
Mov Edx, Map
Push Edx
Mov Eax, PlayerID
Push Eax
Call gObjTeleport
Ret
NewNPC EndP
End DllEntry
Code:
00405AF6 $ /E9 75541400 JMP gameserv.NPCDeviasGuard
You need to be sure to put the NPC in your MonsterSetBase:
Code:
247 1 "Xbow Guard"
PS: Good Night to all too xD.
//EDIT
This works 100% Perfect for any of the 1.00.16 Version Like Endi