item mall buy problem !

09/10/2020 21:01 Trapezun#1
Hello friends, I left silkroad for a long time and I came back again I have new works but I am facing some problems I have fixed the window, but the item does not shop, I observed that there was a package error in my review results.


[Only registered and activated users can see links. Click Here To Register...]
09/12/2020 02:56 Goosxc#2
how you maked the old itemmall ?
09/12/2020 04:37 Trapezun#3
just hang the buy window asm dude
09/12/2020 09:40 NorseGodTyr#4
Quote:
Originally Posted by Goosxc View Post
how you maked the old itemmall ?
change in Media/resinfo/ginterface.txt
Quote:
#ifdef NEW_ITEMMALL
Section = NewItemMall,"0,0,0,0","0"
{
GDR_RENEWAL_ITEM_MALL:CIFNewItemMall
{
ClientRect=RECT,"0,0,0,0"
Color=COLOR,"255,255,255,255"
DDJ=STRING,"interface\\frame\\mall_wnd_"
FontColor=COLOR,"255,255,255,255"
FontIndex=INTEGER,"0"
HAlign=INTEGER,"1"
ID=INTEGER,"167"
Rect=RECT,"0,0,800,600"
Style=INTEGER,"0"
SubSection=STRING,""
Text=STRING,"UIIT_STT_SILKMALL"
UV_LB=POINT,"0,1"
UV_LT=POINT,"0,0"
UV_RB=POINT,"1,1"
UV_RT=POINT,"1,0"
VAlign=INTEGER,"0"
}
}
to
Quote:
#ifdef NEW_ITEMMALL
Section = NewItemMall,"0,0,0,0","0"
{
GDR_ITEM_MALL:CIFItemMall
{
ClientRect=RECT,"0,0,0,0"
Color=COLOR,"255,255,255,255"
DDJ=STRING,"interface\\frame\\mall_wnd_"
FontColor=COLOR,"255,255,255,255"
FontIndex=INTEGER,"0"
HAlign=INTEGER,"1"
ID=INTEGER,"167"
Rect=RECT,"0,0,800,600"
Style=INTEGER,"0"
SubSection=STRING,""
Text=STRING,"UIIT_STT_SILKMALL"
UV_LB=POINT,"0,1"
UV_LT=POINT,"0,0"
UV_RB=POINT,"1,1"
UV_RT=POINT,"1,0"
VAlign=INTEGER,"0"
}
}
09/12/2020 15:30 Goosxc#5
Quote:
Originally Posted by NorseGodTyr View Post
change in Media/resinfo/ginterface.txt

to
crash after i buying ?
09/12/2020 19:37 NorseGodTyr#6
Quote:
Originally Posted by Goosxc View Post
crash after i buying ?
its normal you have to edit your sro_client.exe
09/12/2020 20:29 Goosxc#7
Quote:
Originally Posted by NorseGodTyr View Post
its normal you have to edit your sro_client.exe
no more crash but what about i can't buy anything ?
09/12/2020 20:48 NorseGodTyr#8
Quote:
Originally Posted by Goosxc View Post
no more crash but what about i can't buy anything ?
like i say you have to edit sro_client.exe if you buy will get crash^^
09/12/2020 21:42 Goosxc#9
Quote:
Originally Posted by NorseGodTyr View Post
like i say you have to edit sro_client.exe if you buy will get crash^^
Nah I don’t get crash only that item mall stack no crash
10/07/2020 15:48 qq909047432#10
Quote:
Originally Posted by Goosxc View Post
Nah I don’t get crash only that item mall stack no crash
You need to change 0x7034[61] in SR_GameServer to the old 0x7034[22],
If you can solve it, you will succeed
10/08/2020 07:26 Goosxc#11
Quote:
Originally Posted by qq909047432 View Post
You need to change 0x7034[61] in SR_GameServer to the old 0x7034[22],
If you can solve it, you will succeed
how i can find this ? with dbg or ghidra ?
01/13/2022 22:57 Judgelemental#12
Any updates?
01/14/2022 22:32 Trapezun#13
const DWORD BuyItemHookAddr = 0x00799600; // vsro 0x00799600
const DWORD Jmp= 0x0079960F; // vsro 0x0079960F
const DWORD CallAddr = 0x8B51F0; // vsro 0x8B51F0

__declspec(naked) void ASM_OnItemMallBuy()
{
__asm
{
PUSH 1;
PUSH 0xA7;
ADD ECX, 0x36C;
CALL CallAddr;
jmp Jmp;
}
}

MemoryHelper:: Detour(false, reinterpret_cast<void*>(BuyItemHookAddr ), ASM_OnItemMallBuy);
01/27/2022 02:04 nemo08#14
It stuck after buying , any clue ?
02/01/2022 00:27 Rekcuz#15
@ norse, does it work to exclude new itemmall from define too?