Source Code of a Little New NPC

Page 1 of 3 123 LastLast
Results 1 to 25 of 56
  1. #1
    Account Upgraded | Title Enabled! Holy is offline
    MemberRank
    Jul 2007 Join Date
    Mov eax, 1Location
    551Posts

    Source Code of a Little New NPC

    Hi guys i am a bit worried here at 0:24 AM so i want to release this simply code xD.

    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
    And you need to hook there:

    Code:
    00405AF6   $ /E9 75541400    JMP gameserv.NPCDeviasGuard
    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 :D.

    You need to be sure to put the NPC in your MonsterSetBase:

    Code:
    247    1    "Xbow Guard"
    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


  2. #2
    Account Upgraded | Title Enabled! Nightwing7 is offline
    MemberRank
    Feb 2007 Join Date
    251Posts

    Re: [Release] Source Code of a Little New NPC

    nice great job holy ^_^

  3. #3
    Enthusiast -=FeliX=- is offline
    MemberRank
    Nov 2006 Join Date
    39Posts

    Re: [Release] Source Code of a Little New NPC

    Very Good. Thanks!

  4. #4
    Account Upgraded | Title Enabled! Kudo^ is offline
    MemberRank
    Jul 2007 Join Date
    PortugalLocation
    425Posts

    Re: [Release] Source Code of a Little New NPC

    Nice one H

  5. #5
    is lovin' it hymen is offline
    MemberRank
    Nov 2005 Join Date
    Santa Barbara,Location
    1,928Posts

    Re: [Release] Source Code of a Little New NPC

    Aha this is great! So much that can be done here, thanks!

  6. #6
    Enthusiast Charles_Ps is offline
    MemberRank
    Oct 2006 Join Date
    46Posts

    Re: [Release] Source Code of a Little New NPC

    Very interesting.

    Well can U make some code for clck into a NPC and reset any char?

    or something like that?

  7. #7
    Account Upgraded | Title Enabled! jorkay_adm is offline
    MemberRank
    Dec 2006 Join Date
    BRAZILLocation
    259Posts

    Re: [Release] Source Code of a Little New NPC

    Screen? ^o):poster_ss

  8. #8
    Akaruz - The Legend [hidden] is offline
    MemberRank
    Jun 2006 Join Date
    ClassifiedLocation
    1,120Posts

    Re: [Release] Source Code of a Little New NPC

    ^^ reminds me of penix's silent map teleport.

  9. #9
    Account Upgraded | Title Enabled! DestructiO is offline
    MemberRank
    Apr 2007 Join Date
    486Posts

    Re: [Release] Source Code of a Little New NPC

    good work 10/10

  10. #10
    Valued Member loberia is offline
    MemberRank
    Jul 2004 Join Date
    VenezuelaLocation
    100Posts

    Re: [Release] Source Code of a Little New NPC

    Great work can use this code for teleport a silent as peni'x server files

  11. #11
    Member Dev-Star is offline
    MemberRank
    Sep 2007 Join Date
    LorenciaLocation
    68Posts

    Re: [Release] Source Code of a Little New NPC

    Yes, you can make it move anymap if you simply change coords and map number.

  12. #12
    Beep! sandbird is offline
    MemberRank
    Dec 2004 Join Date
    Greece, SalonicaLocation
    284Posts

    Re: [Release] Source Code of a Little New NPC

    Nice code man !
    Any way you can port this for flat assembler ? (flat assembler)
    I have some problems with the commands.
    I am not familiar with masm32 :/

  13. #13
    Member Dev-Star is offline
    MemberRank
    Sep 2007 Join Date
    LorenciaLocation
    68Posts

    Re: [Release] Source Code of a Little New NPC

    best if using masm32, icz tuts help you learn it.

  14. #14
    Beep! sandbird is offline
    MemberRank
    Dec 2004 Join Date
    Greece, SalonicaLocation
    284Posts

    Re: [Release] Source Code of a Little New NPC

    i build the damn obj file in masm32, now what :P
    Can someone make a simple guide how to make the obj to dll in masm32 ? I couldnt find any info in their site or forum. I think it will help people here also...not just me :P

  15. #15
    Valued Member k3ops is offline
    MemberRank
    Sep 2006 Join Date
    ARGENTINA!Location
    148Posts

    Re: [Release] Source Code of a Little New NPC

    Very nice job, i need Learn masm32 ^^. Is a god Opportunity.

    Thx

  16. #16
    Member Netzo is offline
    MemberRank
    Jan 2007 Join Date
    United KingdomLocation
    803Posts

    Re: [Release] Source Code of a Little New NPC

    thx

  17. #17
    [MBT]Disconnect Disconnect1 is offline
    MemberRank
    Apr 2006 Join Date
    C:\Windows...Location
    969Posts

    Re: [Release] Source Code of a Little New NPC

    Looks similar with fenix npc teleport from 99.62

  18. #18
    Enthusiast coNsept is offline
    MemberRank
    Oct 2007 Join Date
    39Posts

    Re: [Release] Source Code of a Little New NPC

    gj Holy!
    nice one :P

    and tip, change X, Y, Map value in the gObj offsets too :)...

    btw...

    here is short edition of it :P

    Code:
    NewNPC Proc
     Push 034H
     Push 098H
     Push 0
     Mov Eax, DWord Ptr Ss:[Ebp + 8]
     Mov Eax, DWord Ptr Ds:[Eax]
     Push Eax
     Call gObjTeleport
     Ret
    NewNPC EndP
    Last edited by coNsept; 17-11-07 at 01:18 AM.

  19. #19
    Account Upgraded | Title Enabled! GhostOne is offline
    MemberRank
    Mar 2007 Join Date
    SomeWhereLocation
    251Posts

    Re: [Release] Source Code of a Little New NPC

    i'll test it

  20. #20
    Enthusiast DiliBau is offline
    MemberRank
    Oct 2006 Join Date
    /home/DiliBau/Location
    33Posts

    Re: [Release] Source Code of a Little New NPC

    you can code asm in visual c( # and ++ ) you just need to know how :))

  21. #21
    Account Upgraded | Title Enabled! Holy is offline
    MemberRank
    Jul 2007 Join Date
    Mov eax, 1Location
    551Posts

    Re: [Release] Source Code of a Little New NPC

    Yes i know, but i dont like C++ i prefer full ASM. :D

  22. #22
    Account Upgraded | Title Enabled! SHANG is offline
    MemberRank
    Sep 2006 Join Date
    usaLocation
    444Posts

    Re: [Release] Source Code of a Little New NPC

    But with C++ u can code more things in less lines :)

  23. #23
    Account Upgraded! :P BoneDragoN is offline
    MemberRank
    Apr 2007 Join Date
    Athens (GR)Location
    595Posts

    Re: [Release] Source Code of a Little New NPC

    hello,H

  24. #24
    Apprentice greyshade is offline
    MemberRank
    Jun 2007 Join Date
    12Posts

    Re: [Release] Source Code of a Little New NPC

    nice NPC, good job ! :jester:

  25. #25
    [MBT]Disconnect Disconnect1 is offline
    MemberRank
    Apr 2006 Join Date
    C:\Windows...Location
    969Posts

    Re: [Release] Source Code of a Little New NPC

    [QUOTE=BoneDragoN;2829950]hello,H



Page 1 of 3 123 LastLast

Advertisement