Loop Struct in DLL for load more Items & Textures Main 1.07V+

Results 1 to 16 of 16
  1. #1
    Darkness Member Kiosani is offline
    MemberRank
    Oct 2007 Join Date
    ArgentinaLocation
    1,276Posts

    Loop Struct in DLL for load more Items & Textures Main 1.07V+

    Hello RaGEZONE such friends, I want someone to help me with this, it is not my code, is zemattana... and as HastleGames not have the same knowledge that you here in Rz, wanted to know if someone could help rebuild completely. or to interpret it correctly.

    .h file:

    Code:
    #define LoadItem_Offset (0x0061F39E)//Offset Main 1.07V+ - OK
    #define LoadTexture_Offset (0x0061EDD0)//Offset Main 1.07V+ - OK
    
    #define LoadItem ((void(*)(WORD,char*,char*,WORD)) LoadItem_Offset)
    #define LoadTexture ((void(*)(WORD,char*,int,int,int)) LoadTexture_Offset)
    .cpp file:

    Code:
    void LoadItemFunc(WORD Group, WORD ID)
    {
    LoadItem(...);
    LoadTexture(...);
    }
    
    Despues de esto, el loop:
    LoadItem(7,345);
    
    This will load the item with group 7 and Id 345.
    ps: If anyone understands how to have this load of 512 Items as does zemattana bookstore, please ask us explain... from already thank you very much.

    credits: zemattana & ARIES (HG) for post code
    Last edited by [RCZ]ShadowKing; 13-04-11 at 03:56 PM.


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

    Re: Loop Struct in DLL for load more Items & Textures Main 1.07V+

    Why you posted here if you want help?
    And what you want exactly? A loop to load all items from 0 to 512 group 7?

  3. #3
    Darkness Member Kiosani is offline
    MemberRank
    Oct 2007 Join Date
    ArgentinaLocation
    1,276Posts

    Re: Loop Struct in DLL for load more Items & Textures Main 1.07V+

    I like a loop for load all items of 0 to 512 in all categories (not only in group 7)... you can explain or show me as is this?

  4. #4
    Enthusiast willerson is offline
    MemberRank
    Aug 2008 Join Date
    48Posts

    Re: Loop Struct in DLL for load more Items & Textures Main 1.07V+

    void LoadItemFunc(WORD Group, WORD ID)
    {
    for (int i = 0; i < 512; i++)
    {
    LoadItem(...);
    LoadTexture(...);
    }
    }

    use simple For to do this.

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

    Re: Loop Struct in DLL for load more Items & Textures Main 1.07V+

    Code:
    for(int group = 0; group <= 7; group++)
    {
         for(int id = 0; id < 512; id++)
         {
              LoadItemFunc(group, id);
         }
    }

  6. #6
    Fusion™ |ARIES| is offline
    MemberRank
    Feb 2008 Join Date
    ARGENTINALocation
    410Posts

    Re: Loop Struct in DLL for load more Items & Textures Main 1.07V+

    Quote Originally Posted by [RCZ]ShadowKing View Post
    Code:
    for(int group = 0; group <= 7; group++)
    {
         for(int id = 0; id < 512; id++)
         {
              LoadItemFunc(group, id);
         }
    }
    I really don't understand nothing... T_T
    Of course, this is for c++ programers, but i don't have idea how to insert this on a dll, I want to insert this into RMST dll, so we can load extra items & textures on main 1.07V... if you can do an example more especific will be great!
    Thanks!
    Best Regards.
    Last edited by |ARIES|; 13-04-11 at 05:15 PM.

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

    Re: Loop Struct in DLL for load more Items & Textures Main 1.07V+

    If you understand nothing from those simple loops then you should read some c++ basics from google.
    It is a simple part of code which have to be inserted in the "init" function of your dll(the function which is called from hook).

  8. #8
    Fusion™ |ARIES| is offline
    MemberRank
    Feb 2008 Join Date
    ARGENTINALocation
    410Posts

    Re: Loop Struct in DLL for load more Items & Textures Main 1.07V+

    Quote Originally Posted by [RCZ]ShadowKing View Post
    If you understand nothing from those simple loops then you should read some c++ basics from google.
    It is a simple part of code which have to be inserted in the "init" function of your dll(the function which is called from hook).
    Thanks, i'm gonna try, the problem in this case is not read something on google, i have 4 years studing a lot of stuff, Graphic Design, Visual Basic, Html, and others, and really now my brain and time are really reduced... and, at this time nobody wants to release nothing because of credits, and people talk bulsh**, etc. etc. so is very dificult find a person who wants to help, in my thread on HG, I really thanks to aHelper and zemattana for theirs help, so thanks you for give me a way to follow...
    Sory my bad english.
    Best regards.

  9. #9
    Darkness Member Kiosani is offline
    MemberRank
    Oct 2007 Join Date
    ArgentinaLocation
    1,276Posts

    Re: Loop Struct in DLL for load more Items & Textures Main 1.07V+

    my new prototype struct for the loop (bassed on others structs):

    CPP File:
    Code:
    void LoadItemFunc(DWORD Group, DWORD ID)
    	{
    	for(int Group = 0; Group <= 7; Group++)
    	{
         for(int ID = 0; ID < 512; ID++)
         {
              LoadItemFunc(Group, ID);
         }
    }
    }
    H File:
    Code:
    #define LoadItem_Offset (0x0061F39E)//Offset Main 1.07V+ - OK
    #define LoadTexture_Offset (0x0061EDD0)//Offset Main 1.07V+ - OK
    
    #define LoadItem ((void(*)(WORD,char*,char*,WORD)) LoadItem_Offset)
    #define LoadTexture ((void(*)(WORD,char*,int,int,int)) LoadTexture_Offset)
    typedef short SHORT;
    typedef int BOOL;
    typedef unsigned long DWORD;
    Last edited by Kiosani; 13-04-11 at 07:42 PM.

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

    Re: Loop Struct in DLL for load more Items & Textures Main 1.07V+

    You got the needed help with loops.
    Now if you have something to release do it in release section(if it is complete) or in development section(if it is under development).

    @|ARIES|:
    There are things that you learn by working on them not just following some tutorials or someone else doing it.
    So don't mind me for sending you to google, if you need more help and you lack the needed time send me a private message and I will try to help you as much as I can.

  11. #11
    Darkness Member Kiosani is offline
    MemberRank
    Oct 2007 Join Date
    ArgentinaLocation
    1,276Posts

    Re: Loop Struct in DLL for load more Items & Textures Main 1.07V+

    ARIES: I have compiled a dll model, ie.. The loop here is compiled in a dll you needed separate from that of RMST, see if it works or not..

    LINK: Items.dll (BETA)

    PD: has no process name - No lleva nombre de proceso.

    Credits: zemattana, willerson, ShadowKing, ARIES.
    Last edited by Kiosani; 13-04-11 at 08:13 PM.

  12. #12
    Alpha Member 2009x2014 is offline
    MemberRank
    Dec 2009 Join Date
    2,765Posts

    Re: Loop Struct in DLL for load more Items & Textures Main 1.07V+

    Quote Originally Posted by mauro07 View Post
    ARIES: I have compiled a dll model, ie.. The loop here is compiled in a dll you needed separate from that of RMST, see if it works or not..

    LINK: Items.dll (BETA)

    PD: has no process name - No lleva nombre de proceso.

    Credits: zemattana, willerson, ShadowKing, ARIES and mauro07.
    did u tested limits ??

    add 100 150 custom sets

    then release .dll

    compiled doesn't mean to be working code

    and 0 credits for you compile = 0

  13. #13
    Darkness Member Kiosani is offline
    MemberRank
    Oct 2007 Join Date
    ArgentinaLocation
    1,276Posts

    sad Re: Loop Struct in DLL for load more Items & Textures Main 1.07V+

    Quote Originally Posted by aHelper View Post
    did u tested limits ??

    add 100 150 custom sets

    then release .dll

    compiled doesn't mean to be working code

    and 0 credits for you compile = 0
    aHelper you're right ... sorry people I let go (again) ... right now I take the credit, and I can not test that right now I have no 1.07v + client nor a server installed in this pc where I am, that is a friend not mine.

    ps: but if the compiler could create the dll without problems, it is perhaps because there are no mistakes?, then.. I ask.. that would not work? please someone answer me this question.
    Last edited by Kiosani; 13-04-11 at 08:15 PM.

  14. #14
    Everything is a joke. duracel is offline
    MemberRank
    Sep 2005 Join Date
    442Posts

    Re: Loop Struct in DLL for load more Items & Textures Main 1.07V+

    Quote Originally Posted by mauro07 View Post
    ps: but if the compiler could create the dll without problems, it is perhaps because there are no mistakes?, then.. I ask.. that would not work? please someone answer me this question.
    Well you need to test and see if it works the fuction you made and loads those items..it doesn't matter if it compiled with no problems.

  15. #15
    Alpha Member 2009x2014 is offline
    MemberRank
    Dec 2009 Join Date
    2,765Posts

    Re: Loop Struct in DLL for load more Items & Textures Main 1.07V+

    Quote Originally Posted by mauro07 View Post
    aHelper you're right ... sorry people I let go (again) ... right now I take the credit, and I can not test that right now I have no 1.07v + client nor a server installed in this pc where I am, that is a friend not mine.

    ps: but if the compiler could create the dll without problems, it is perhaps because there are no mistakes?, then.. I ask.. that would not work? please someone answer me this question.
    someone must test this limits

    mauro u can write very nice shit in c++

    compiler will give you info

    0 error 0 warning
    1 build succeeded

    so no, code must be correct to be working with for example mu ^^

  16. #16
    Darkness Member Kiosani is offline
    MemberRank
    Oct 2007 Join Date
    ArgentinaLocation
    1,276Posts

    Re: Loop Struct in DLL for load more Items & Textures Main 1.07V+

    Thanks aHelper, I goes to test the dll thanks again.. :)



Advertisement