Register for your free account! | Forgot your password?

You last visited: Today at 15:33

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Source] Item Creator

Discussion on [Source] Item Creator within the S4 League Hacks, Bots, Cheats & Exploits forum part of the S4 League category.

Closed Thread
 
Old 10/09/2016, 08:11   #121
 
mortal3540's Avatar
 
elite*gold: 0
Join Date: Apr 2015
Posts: 103
Received Thanks: 148
@ Please video...
mortal3540 is offline  
Old 10/09/2016, 10:31   #122
 
tilouis123's Avatar
 
elite*gold: 0
Join Date: Aug 2015
Posts: 71
Received Thanks: 19
this is that kind of problem

Quote:
Originally Posted by FazeDaFapper View Post
A Little Hint

Code:
	std::vector<Effect>Jacket_Effect;
	Effect_ = new Effect();
	Effect_->EnchantID = 1102303008;
	Jacket_Effect.push_back(*Effect_);

	Effect_ = new Effect();
	Effect_->EnchantID = 1102800001;
	Jacket_Effect.push_back(*Effect_);
	
	Effect_ = new Effect();
	Effect_->EnchantID = 2102304002;
	Jacket_Effect.push_back(*Effect_);

	Effect_ = new Effect();
	Effect_->EnchantID = 2102330002;
	Jacket_Effect.push_back(*Effect_);

	Effect_ = new Effect();
	Effect_->EnchantID = 2102357002;
	Jacket_Effect.push_back(*Effect_);

	Effect_ = new Effect();
	Effect_->EnchantID = 2102358002;
	Jacket_Effect.push_back(*Effect_);

	Create_Item Temp_Item_Clothes_02;
	Temp_Item_Clothes_02.ItemBuffer.UniqueID = 1002;
	Temp_Item_Clothes_02.ItemBuffer.ItemID = 1021144;
	Temp_Item_Clothes_02.ItemBuffer.Color = 1;
	Temp_Item_Clothes_02.ItemBuffer.PriceType = 4;
	Temp_Item_Clothes_02.ItemBuffer.Effects = Jacket_Effect;
	Temp_Item_Clothes_02.ItemBuffer.EsperID = 7012235;

	S4_ItemList.push_back(Temp_Item_Clothes_02.ItemBuffer);
well it is just easy to copy paste in visual studio but where da heck we must put it

Obviously guys its just not a problem of copy paste
you need to add more codes to make it work for your items appears in your inventory

#include <Windows.h>
#include <process.h>
#include <stdio.h>
#include "xmlParser.h"
#include <string>
#include <sstream>

template <typename T>
bool getValueFromString(const std::string & value, T & result) // ~ Credits to xxxx... dont remember his name
{
std::istringstream iss(value);
return !(iss >> result).fail();
}

DWORD dwBaseAddr = (DWORD)GetModuleHandle(0);

void *DetourFunction(BYTE *src, const BYTE *dst, const int len)
{
BYTE *jmp = (BYTE*)malloc(len + 5);
DWORD dwBack;

VirtualProtect(src, len, PAGE_EXECUTE_READWRITE, &dwBack);
memcpy(jmp, src, len);
jmp += len;
jmp[0] = 0xE9;
*(DWORD*)(jmp + 1) = (DWORD)(src + len - jmp) - 5;
src[0] = 0xE9;
*(DWORD*)(src + 1) = (DWORD)(dst - src) - 5;
for (int i = 5; i<len; i++) src[i] = 0x90;
VirtualProtect(src, len, dwBack, &dwBack);
return (jmp - len);
}
void WriteASM(DWORD dwAddy, DWORD dwASM, int len)
{
unsigned long Protection;
VirtualProtect((void*)dwAddy, len, PAGE_EXECUTE_READWRITE, &Protection);
memcpy((void*)dwAddy, (const void*)dwASM, len);
VirtualProtect((void*)dwAddy, len, Protection, NULL);
}

DWORD Item_Create_Loop = dwBaseAddr + 0xB4B7F8;
DWORD Item_Create_Loop_End = Item_Create_Loop + 0x5C;

DWORD Call_01 = dwBaseAddr + 0xB6EEF0;
DWORD Call_02 = dwBaseAddr + 0x6535B0;

unsigned int Item_Looper = 0;
unsigned int Item_Looper_end = 0;

unsigned int ItemList [1000][10];
unsigned int EffectList [1000][100];

XMLNode xMainNode;
XMLNode xEffect_Node;

struct S4_Effect
{
unsigned int effect_id;
unsigned int unknown_1;
unsigned int unknown_2;
unsigned int unknown_3;
unsigned int unknown_4;
unsigned int unknown_5;
};
struct S4_Item
{
unsigned long Unique_Id;
unsigned long Position;
unsigned long Item_Id;
unsigned long unknown_1;
unsigned long Perm_Type;
unsigned long unknown_2;
unsigned long Color_Id;
unsigned long unknown_3;
unsigned long unknown_4;
unsigned long unknown_5;
unsigned long Count_Time;
S4_Effect *Effect_Begin;
S4_Effect *Effect_End;
unsigned long unknown_6;
unsigned long MP_Value;
unsigned long Entchant_Lvl;
unsigned long unknown_7;
unsigned long unknown_8;
};

S4_Item * Item;
S4_Item* Get_Item(int i);


__declspec(naked) void Item_Create_Detour(void)
{
_asm
{
mov [Item_Looper], 00
mov [Item_Looper_end], 00
Reloop:
inc [Item_Looper]
pushad
}
Item_Looper_end = ItemList[0][0];
_asm
{
popad
mov eax,[Item_Looper_end]
cmp[Item_Looper], eax
ja Ende
pushad
}
Item = Get_Item(Item_Looper);
_asm
{
popad
lea edx, [ebp-0x40]
mov [ebp-0x20], edx
mov eax, [ebp-0x20]
mov [eax], 00000000
mov ecx, [ebp-0x20]
mov[ecx+0x04], 00000000
mov edx, [ebp-0x20]
mov[edx+0x08], 00000000
mov[ebp-0x04], 00000000
mov edx, [Item]
lea edx, [edx]
push edx
mov ecx, [ebp+0x0C]
call Call_01
mov[ebp-0x04],0xFFFFFFFF
lea ecx,[ebp-0x40]
call Call_02
jmp Reloop
Ende:
jmp Item_Create_Loop_End

}
}

S4_Item* Get_Item(int i)
{
Item = new S4_Item;
DWORD END;

Item->Unique_Id = ItemList[i][0];
Item->Position = ItemList[i][1];
Item->Item_Id = ItemList[i][2];
Item->Perm_Type = ItemList[i][3];
Item->Count_Time = ItemList[i][4];
Item->Color_Id = ItemList[i][5];
Item->MP_Value = ItemList[i][6];
Item->Entchant_Lvl = ItemList[i][7];

int Effect_Count = EffectList[i][0];

if (Effect_Count != 0)
{
S4_Effect * Effect = new S4_Effect[Effect_Count];
END = (DWORD)&Effect[Effect_Count];

for (int _i = 0; _i != Effect_Count; _i++)
{
Effect[_i].effect_id = EffectList[i][_i+1];
}

Item->Effect_Begin = &Effect[0];
Item->Effect_End = &Effect[Effect_Count];
}
else
{
S4_Effect * Effect = new S4_Effect[0];
END = (DWORD)&Effect[0];

Item->Effect_Begin = &Effect[0];
Item->Effect_End = &Effect[0];
}

Item->unknown_1 = 0;
Item->unknown_2 = 4;
Item->unknown_3 = 0;
Item->unknown_4 = 0;
Item->unknown_5 = 0;
Item->unknown_6 = END;
Item->unknown_7 = 0;
Item->unknown_8 = 0;

return Item;
}


std::string ReplaceAll(std::string str, const std::string& from, const std::string& to) // ~ Credits to xxxx... dont remember his name
{
size_t start_pos = 0;

while ((start_pos = str.find(from, start_pos)) != std::string::npos)
{
str.replace(start_pos, from.length(), to);
start_pos += to.length(); // Handles case where 'to' is a substring of 'from'
}
return str;
}

void Init(void* item)
{
TCHAR Path[255];
GetCurrentDirectory(255, Path);

strcat(Path, "\\FapperDev\\Item_Creator\\ItemBubble.AP");
std::string Path_ = ReplaceAll(Path, "\\","\\\\");

xMainNode = XMLNode:penFileHelper(Path_.c_str(), "Bubble_Struct");

ItemList[0][0] = xMainNode.nChildNode("Item");
int end = ItemList[0][0] + 1;

for (int i = 1; i != end; i++)
{
ItemList[i][0] = i;
ItemList[i][1] = 1;
ItemList[i][2] = atoi(xMainNode.getChildNode("Item", i-1).getAttribute("Item_ID"));
ItemList[i][3] = atoi(xMainNode.getChildNode("Item", i-1).getAttribute("Perm_Type"));
ItemList[i][4] = atoi(xMainNode.getChildNode("Item", i-1).getAttribute("Count_Time"));
ItemList[i][5] = atoi(xMainNode.getChildNode("Item", i-1).getAttribute("Color_ID"));
ItemList[i][6] = atoi(xMainNode.getChildNode("Item", i-1).getAttribute("MP"));
ItemList[i][7] = atoi(xMainNode.getChildNode("Item", i-1).getAttribute("Entchant_Lvl"));

XMLNode xEffect_Node = xMainNode.getChildNode("Item", i-1);
int Effect_Count = xEffect_Node.nChildNode("Effect");

EffectList[i][0] = Effect_Count;

if (Effect_Count != 0)
{
for (int _i = 0; _i != Effect_Count; _i++)
{
getValueFromString((char*)xEffect_Node.getChildNod e("Effect", _i).getAttribute("ID"), EffectList[i][_i + 1]);
}
}
}

DetourFunction((BYTE*)Item_Create_Loop, (BYTE*)Item_Create_Detour, 0x05);
_endthread();
}

BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved)
{
switch (fdwReason)
{
case DLL_PROCESS_ATTACH:
DisableThreadLibraryCalls(hinstDLL);
_beginthread(&Init, 0, 0);
break;

case DLL_THREAD_ATTACH:
break;

case DLL_THREAD_DETACH:
break;

case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
tilouis123 is offline  
Thanks
2 Users
Old 10/09/2016, 11:30   #123

 
TheMokkо's Avatar
 
elite*gold: 111
Join Date: Aug 2016
Posts: 418
Received Thanks: 758
Quote:
Originally Posted by tilouis123 View Post
well it is just easy to copy paste in visual studio but where da heck we must put it

Obviously guys its just not a problem of copy paste
you need to add more codes to make it work for your items appears in your inventory
Wow u just copied this thread of him:

TheMokkо is offline  
Old 10/09/2016, 11:45   #124
 
elite*gold: 0
Join Date: Dec 2014
Posts: 110
Received Thanks: 19
Elementax go skype plz
maman69320 is offline  
Old 10/09/2016, 12:46   #125
 
tilouis123's Avatar
 
elite*gold: 0
Join Date: Aug 2015
Posts: 71
Received Thanks: 19
yes

Quote:
Originally Posted by elementax View Post
Wow u just copied this thread of him:

it would be easier for ppl instead of searching this thread
tilouis123 is offline  
Thanks
1 User
Old 10/09/2016, 13:42   #126
 
elite*gold: 0
Join Date: Mar 2010
Posts: 2,931
Received Thanks: 1,858
Quote:
Originally Posted by DoNotCarII View Post
don't try harder guys since the moment he shared the source aeria games will patch it and that mean it will not work again

if you want share something like that just share the full source with how make it work and stop make people look like dumps

you just release it to keep laugh at others so if that is your reason you've to go and **** your self

it's not hater or something like that it's my personal opinion
yanghack pls
Ⓜiku Ⓗatsune is offline  
Old 10/09/2016, 13:56   #127
 
elite*gold: 0
Join Date: Dec 2014
Posts: 110
Received Thanks: 19
e
maman69320 is offline  
Old 10/09/2016, 21:41   #128
 
mortal3540's Avatar
 
elite*gold: 0
Join Date: Apr 2015
Posts: 103
Received Thanks: 148
Videoo pls man
mortal3540 is offline  
Old 10/10/2016, 21:44   #129
 
elite*gold: 0
Join Date: Mar 2016
Posts: 20
Received Thanks: 1
kann mir wer das machen kann das nicht und mir das dann schicken
Makimama101 is offline  
Old 10/10/2016, 22:37   #130
 
elite*gold: 20
Join Date: Mar 2015
Posts: 2,206
Received Thanks: 759
Quote:
Originally Posted by Makimama101 View Post
kann mir wer das machen kann das nicht und mir das dann schicken
machs dir selbst.
Traumhändler is offline  
Old 10/10/2016, 23:38   #131
 
elite*gold: 0
Join Date: Oct 2016
Posts: 16
Received Thanks: 0
hi...how to use?
Kenfary72 is offline  
Old 10/11/2016, 07:36   #132
 
tilouis123's Avatar
 
elite*gold: 0
Join Date: Aug 2015
Posts: 71
Received Thanks: 19
Post :P

guys stop you just dont see he is making us looks like idiot
he didnt post it full and he just fool you around even if you make this **** work it would be patch after so up to you to be dumb
tilouis123 is offline  
Thanks
1 User
Old 10/11/2016, 09:32   #133
 
elite*gold: 0
Join Date: Nov 2014
Posts: 741
Received Thanks: 2,648
Quote:
Originally Posted by tilouis123 View Post
guys stop you just dont see he is making us looks like idiot
he didnt post it full and he just fool you around even if you make this **** work it would be patch after so up to you to be dumb
I post it full
Unlinking.h isnt important.

Should i upload the project folder ?
RingleRangleRob is offline  
Old 10/11/2016, 10:08   #134
 
tilouis123's Avatar
 
elite*gold: 0
Join Date: Aug 2015
Posts: 71
Received Thanks: 19
Post u mean?

Quote:
Originally Posted by FazeDaFapper View Post
I post it full
Unlinking.h isnt important.

Should i upload the project folder ?
u mean which project folder

anyway it could be patch today maintenance had already started
tilouis123 is offline  
Old 10/11/2016, 10:09   #135
 
elite*gold: 0
Join Date: Nov 2014
Posts: 741
Received Thanks: 2,648
Quote:
Originally Posted by tilouis123 View Post
u mean which project folder

anyway it could be patch today maintenance had already started
Update 2 Addresses isnt hard D:
RingleRangleRob is offline  
Closed Thread


Similar Threads Similar Threads
Item Creator!!!
09/02/2012 - Metin2 Private Server - 5 Replies
Also ich will grade neue Items erstellen :D Mit folgendem dingsbums: YouTube - Broadcast Yourself Ich brauch jetzt einen entpacker für die Item_Proto und anderes. SO Bitte helfen :D^^ Wer mich kennt weiß ich gebe immer THX
Item Creator [3D]
08/05/2012 - Metin2 Private Server - 4 Replies
Hi liebe Com ich habe mich jetz stundenlang damit rumgeschlagen ein Tutorial für den Item creator zu finden, aber nicht ein ganz normales Tutorial sondern ein Tutorial wo auch erklährt wird wie man das mit dem 3D objekt macht also z.b wenn man eine Waffe erstellen will braucht man ja auch eine gr2 Datei und des verstehe ich einfach ned wie das gehen soll. pls hoffe auf schnelle Antwort mfg Shock ps skype : shockwaveii
(S) YouTube Bot Source oder Account Creator Source (B)e*G
03/18/2012 - elite*gold Trading - 6 Replies
^Topic , sollte ne menge funktion haben , zahle demenstprechend.



All times are GMT +1. The time now is 15:35.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.