[ASM] 'Real' GM Shop

Results 1 to 20 of 20
  1. #1
    [MBT]Disconnect Disconnect1 is offline
    MemberRank
    Apr 2006 Join Date
    C:\Windows...Location
    969Posts

    [ASM] 'Real' GM Shop

    Well this is a little code that i allways i wanted to do :D
    This is allows to enter only the GM.
    This was tested on 0.97d and works for all versions!
    First you must choose an NPC seller (ShopX.txt), i`ve choose Shop3.txt (Lorencia Peddler) and then hook it in NpcTalk

    The most important code is:
    Code:
    Mov Edx, DWord Ptr Ds:[Eax + 174H]
    174 means GM CtlCode, in every version differs, you can simply find it in PChatProc or CGMMng::ManagementProc.
    For 1.00.18 is 1C8

    So here it is
    Code:
    .Const
    gObjIsConnected DD 00401AA0H
    MsgOutput DD 00402BBCH
    
    .Data?
    
    .Data
    IsGmShopBuff DB 1 Dup(0)
    Section DB "Common", 0
    Ini1 DB "MBTIsGMShop", 0
    IniFile DB ".\MBT_Common.ini", 0
    IsGMMsg DB "Welcome to GM Shop!", 0
    NotGMMsg DB "Users are not allowed to enter this shop.", 0
    
    
    .Code
    DllEntry Proc hInstDLL:HINSTANCE, reason:DWord, reserved1:DWord
    	Mov Eax, TRUE
    	Ret
    DllEntry EndP
    
    IniOptions Proc
    	Invoke GetPrivateProfileInt, Addr Section, Addr Ini1, 0, Addr IniFile
    	Mov DWord Ptr Ds:[IsGmShopBuff], Eax
    	Ret
    IniOptions EndP
    
    GMShop Proc
    	Local IsGM:DWord
    	Local UserID:DWord
    	Push Ebx
    	Push Esi
    	Push Edi
    	.If Byte Ptr Ds:[IsGmShopBuff] != 1
    		Jmp Finish
    	.EndIf
     	Mov Eax, DWord Ptr Ss:[Ebp + 0CH]
     	Mov Ecx, DWord Ptr Ds:[Eax]
     	Mov UserID, Ecx
    	Push Ecx
     	Call gObjIsConnected
     	Add Esp, 4
     	Test Eax, Eax
     	Je Finish
    	Mov Eax, DWord Ptr Ss:[Ebp + 0CH]
     	Mov Edx, DWord Ptr Ds:[Eax + 174H]
     	Mov IsGM, Edx
     	Add Edx, 1
    	.If Edx == 1
    OnlyGM:
    	Lea Eax, NotGMMsg
    	Push Eax
    	Mov Edx, UserID
    	Push Edx
    	Call MsgOutput
    	Add Esp, 0CH
    	Jmp Finish
    	.EndIf
    WelcomeGM:
    	Lea Eax, IsGMMsg
    	Push Eax
    	Mov Edx, UserID
    	Push Edx
    	Call MsgOutput
    	Add Esp, 0CH
    Finish:
    	Pop Edi
    	Pop Esi
    	Pop Ebx
    	Mov Esp, Ebp
    	Pop Ebp
    	Retn
    GMShop EndP
    
    End DllEntry
    Credits me happy coding :P

    Screenshots:
    Is GameMaster
    Not GameMaster


  2. #2
    Legend MuIsBest is offline
    LegendRank
    Dec 2006 Join Date
    NorwayLocation
    2,144Posts

    Re: [Release] [ASM] 'Real' GM Shop

    Approved, really great!

  3. #3
    Account Upgraded | Title Enabled! jemelm is offline
    MemberRank
    Apr 2005 Join Date
    PhilippinesLocation
    217Posts

    Re: [Release] [ASM] 'Real' GM Shop

    nice one thank you.........

  4. #4
    Enthusiast 556677 is offline
    MemberRank
    Mar 2007 Join Date
    RussiaLocation
    38Posts

    Re: [Release] [ASM] 'Real' GM Shop

    Thank you for the code.

  5. #5
    Kingdom of Shadows [RCZ]ShadowKing is offline
    MemberRank
    Jul 2007 Join Date
    1,644Posts

    Re: [Release] [ASM] 'Real' GM Shop

    good job my friend 10/10!

  6. #6
    Account Upgraded | Title Enabled! RisingKing2010 is offline
    MemberRank
    Feb 2006 Join Date
    loc( 'RisingKing', 'USA' );Location
    1,362Posts

    Re: [Release] [ASM] 'Real' GM Shop

    good job ;)...

  7. #7
    Apprentice ghostdust is offline
    MemberRank
    Dec 2006 Join Date
    17Posts

    Re: [Release] [ASM] 'Real' GM Shop

    Nice work thank you

  8. #8
    Apprentice cocosx is offline
    MemberRank
    Mar 2008 Join Date
    14Posts

    Re: [Release] [ASM] 'Real' GM Shop

    Ro : bravo D/c
    ENG good job disconnect

  9. #9
    Member aniqtmare is offline
    MemberRank
    Jan 2009 Join Date
    57Posts

    Re: [Release] [ASM] 'Real' GM Shop

    where should i put this???

  10. #10
    Proficient Member r3v0lu710n is offline
    MemberRank
    Feb 2006 Join Date
    Where I WantLocation
    188Posts

    Re: [Release] [ASM] 'Real' GM Shop

    great job! keep going

  11. #11
    IGCN Co-Founder drakelv is offline
    MemberRank
    Jun 2006 Join Date
    IGCN HQLocation
    1,002Posts

    Re: [Release] [ASM] 'Real' GM Shop

    for people that code in C++ and dont know how-to do this easy shit.:
    hook-in protocolcore case 0x30

    PHP Code:
    if(lpTargetObj->Class NPCID)
    {
    if(
    lpObj->Authority != 32 || lpObj->Authority !=8)
    {
    MessageOutput(aIndex,"Users are not allowed to enter this shop.");
    return;}
    MessageOutput(aIndex,"Welcome to GM Shop");


  12. #12
    No Pain - No Gain herosotoan is offline
    MemberRank
    Jul 2006 Join Date
    VietnamLocation
    369Posts

    Re: [Release] [ASM] 'Real' GM Shop

    Can you make some screenshot? I'm noob!

  13. #13
    Member dyablows is offline
    MemberRank
    Oct 2007 Join Date
    Romania,IasiLocation
    92Posts

    Re: [Release] [ASM] 'Real' GM Shop

    merci Disconnect (ro)
    Good job d.c

  14. #14
    Account Upgraded | Title Enabled! robscneider is offline
    MemberRank
    Nov 2007 Join Date
    some where outLocation
    275Posts

    Re: [Release] [ASM] 'Real' GM Shop

    great release :)

  15. #15
    Member ivan junior is offline
    MemberRank
    Apr 2007 Join Date
    localhostLocation
    97Posts

    Re: [Release] [ASM] 'Real' GM Shop

    very use full ;
    Thanks a lot ;D

  16. #16
    Novice Casyan2009 is offline
    MemberRank
    Feb 2009 Join Date
    1Posts

    Re: [Release] [ASM] 'Real' GM Shop

    Good job D/c XD !

  17. #17
    Account Upgraded | Title Enabled! JeaN is offline
    MemberRank
    Oct 2007 Join Date
    CyprusLocation
    516Posts

    Re: [Release] [ASM] 'Real' GM Shop

    good job ;)

  18. #18
    King of the bongo Denied is offline
    MemberRank
    Oct 2009 Join Date
    RomaniaLocation
    986Posts

    Re: [Release] [ASM] 'Real' GM Shop

    Great release , u got my thanks :P

  19. #19
    Apprentice filecrackerguy is offline
    MemberRank
    Jun 2005 Join Date
    philippinesLocation
    7Posts

    Re: [Release] [ASM] 'Real' GM Shop

    Good job 10/10

  20. #20
    Valued Member tagegor is offline
    MemberRank
    Nov 2008 Join Date
    Russia/EkaterinLocation
    142Posts

    Re: [Release] [ASM] 'Real' GM Shop

    Necroposters... =)



Advertisement