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
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?
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?
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.
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);
}
}
Re: Loop Struct in DLL for load more Items & Textures Main 1.07V+
Quote:
Originally Posted by
[RCZ]ShadowKing
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.
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).
Re: Loop Struct in DLL for load more Items & Textures Main 1.07V+
Quote:
Originally Posted by
[RCZ]ShadowKing
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.
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;
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.
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.
Re: Loop Struct in DLL for load more Items & Textures Main 1.07V+
Quote:
Originally Posted by
mauro07
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
Re: Loop Struct in DLL for load more Items & Textures Main 1.07V+
Quote:
Originally Posted by
aHelper
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.
Re: Loop Struct in DLL for load more Items & Textures Main 1.07V+
Quote:
Originally Posted by
mauro07
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.
Re: Loop Struct in DLL for load more Items & Textures Main 1.07V+
Quote:
Originally Posted by
mauro07
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 ^^