![]() |
[Translated!] Recomendation System
thx to ezme
this is a demo,personally i've fixed c4 bug. perfect tattoo, wedding, recommend, big head, etc. all functioning exactly as official. strict case, expliot avoidance, as well as providing very fine patching tool, allowing u to make se. these things, i'll soon release it, together with login system, totally free, without and restriction. everything is written 100% win32 asm, though not the best but better then those who sold for cash... thanks all who supports me ;PacketFormat cd objectID .const szCSMTargetError db 'Recommend target error!',0 szCSMTargetIsMyself db 'Cant recommend myself!',0 szCSMLevelLessThan10 db 'Your level is too low, unable to recommend others!',0 szCSMNoRecommTicket db 'Your vote is used, unable to vote again!',0 szCSMTargetRecommFull db 'Target vote limit reached!',0 szRecommToSomeBody db 'You voted for %S,%d remaining!',0 szRecommedBySomeBody db 'You have been recommended by %S , current level at %d !',0 .code ReqEvaluate proc uses ebx esi edi,_lpPacket,\ _lpstUserObject,_hClientObject local @dwObjectID:dword local @dwMyObjectID:dword local @lpstTargetUserObject:dword local @lpstUserInfo:dword local @lpstUserInfoEx:dword local @lpstTargetUserInfo:dword local @lpstTargetUserInfoEx:dword local @dwIsCreature:dword local @dwLevel:dword local @dwRecommRecv:dword local @dwRecommLeft:dword local @lpszBuffer:dword mov ebx,_lpPacket mov eax,dword ptr [ebx + sizeof byte] mov @dwObjectID,eax ;capture client thread target transaction details mov ebx,_lpstUserObject lea ecx,dword ptr [ebx + OFFSET_USEROBJECT_PEAR_OBJECTID] mov eax,dword ptr [ecx] mov @dwMyObjectID,eax mov eax,FUNC_GetCreatureObject call eax mov @lpstTargetUserObject,eax ;check target is not self mov ebx,@lpstTargetUserObject mov eax,dword ptr [ebx] mov ecx,ebx call dword ptr [eax + OFFSET_USEROBJECT_FUNC_OBJTYPE] movzx eax,al mov @dwIsCreature,eax mov ecx,@dwMyObjectID .if @dwIsCreature != 1 ;make sure target is not self invoke SystemMsg,_hClientObject,offset szCSMTargetError .elseif ecx == @dwObjectID invoke SystemMsg,_hClientObject,offset szCSMTargetIsMyself .else mov ebx,_lpstUserObject mov ebx,dword ptr [ebx + OFFSET_USEROBJECT_USERINFO] mov @lpstUserInfo,ebx mov eax,dword ptr [ebx + OFFSET_USERINFO_STRUCTEX] mov @lpstUserInfoEx,eax mov eax,dword ptr [ebx + OFFSET_USERINFO_LEVEL] mov @dwLevel,eax mov ebx,@lpstUserInfoEx assume ebx:ptr UserInfoEx mov eax,[ebx].RecommLeft mov @dwRecommLeft,eax assume ebx:nothing .if @dwLevel < 10 invoke SystemMsg,_hClientObject,offset szCSMLevelLessThan10 .elseif @dwRecommLeft <=0 invoke SystemMsg,_hClientObject,offset szCSMNoRecommTicket .else mov ebx,@lpstTargetUserObject mov eax,dword ptr [ebx + OFFSET_USEROBJECT_USERINFO] mov @lpstTargetUserInfo,eax invoke GetUserInfoEx,@lpstTargetUserObject mov @lpstTargetUserInfoEx,eax assume eax:ptr UserInfoEx mov ecx,[eax].RecommRecv assume eax:nothing .if ecx >= 255 invoke SystemMsg,_hClientObject,offset szCSMTargetRecommFull .else ;edit database ;edit transaction details mov ebx,@lpstUserInfoEx assume ebx:ptr UserInfoEx dec [ebx].RecommLeft mov eax,[ebx].RecommLeft mov @dwRecommLeft,eax mov ebx,@lpstTargetUserInfoEx inc [ebx].RecommRecv mov eax,[ebx].RecommRecv mov @dwRecommRecv,eax assume ebx:nothing ;notify voter regarding system message invoke GlobalAlloc,GMEM_FIXED or GMEM_ZEROINIT, 200h mov @lpszBuffer,eax mov ebx,@lpstTargetUserInfo lea esi,dword ptr [ebx + OFFSET_USERINFO_NAME] ;target name invoke wsprintf,@lpszBuffer,offset szRecommToSomeBody,\ esi,@dwRecommLeft invoke SystemMsg,_hClientObject,@lpszBuffer ;update UserInfo invoke SendUserInfo,_lpstUserObject ;notify voted regarding system message mov ebx,@lpstTargetUserObject mov edi,dword ptr [ebx + OFFSET_USEROBJECT_CLIENTOBJCT] ;target's ClientObject mov ebx,@lpstUserInfo lea esi,dword ptr [ebx + OFFSET_USERINFO_NAME] ;self name invoke wsprintf,@lpszBuffer,offset szRecommedBySomeBody,\ esi,@dwRecommRecv invoke SystemMsg,edi,@lpszBuffer ;update UserInfo invoke SendUserInfo,@lpstTargetUserObject ;update voted message invoke SendCharInfo,@lpstTargetUserObject invoke GlobalFree,@lpszBuffer .endif .endif .endif ret ReqEvaluate endp Translated by Digital Eanae -> So if anyone wants to crack at this. Plix share plix. ^^ |
very nice share Eanae, and thx to Digital for translating
|
Great Job!
|
Eanae.. here.. take some! ;)
Thank you! Almost forgot.. Thanks Digital for translating! ;) |
n1 Eanae good work... :D
|
Excuse me, what file is necessary to correct with this code, and on what offsets?
Thanks for translate\sharing. |
Quote:
|
It's only for c4 (different packet), or will it work too on c3?
|
Quote:
|
Quote:
|
Quote:
|
damn...
what you asking about? here is Recomendation handler.. call this function on RecomendPacketDetected i do not understand what you want to "crack"? here just ONE function from originator package shows logic, how and what he doing to add recommendation some checks (reclist overflow, level, valid target, etc), then user/char update if all ok |
Quote:
coz who cares how it works - works thats all what interesting... |
Quote:
|
agree! - let`s wait. ^^
|
Quote:
|
Quote:
*but must hide... :D * |
Quote:
I don't want to start a fight, only it's a reflexion, try to learn and contribute. The "engineer spirit" in fact it's how it works. Every admin should act this way, and not only click exe and wait the things to be done alone. PD: humordwarf xD |
Quote:
|
Sorry, it was a misunderstand, that was reflexion, not focused on you (I was generalizing).
|
In the case you didn't know, the dll for this WAS released. This is part of linex.dll. >_>
|
Excuse me for stupid question. Where to insert this code? What file (dll?) to decompile? I'm a newbie but i know i can do this, i need only a place to hook and start researching *) Sry for my english
/rus Народ поясните пожалуйста, откуда плясать? Какой файл декомпилировать, и чем лучше это делать? Я уверен что соображу что к чему, просто отправная точка нужна../rus |
|
Thalone Thx!
I still dont understand where to put this Porcedure (which file, l2server or linex?) and where (and how) to call it (does it needs to be like "If (packet==RecomPacket) Recommend(); " but only in asm?)) |
This code isn't compiled asm code, I think.
And no way to compile it, I was try it 10+ times in different compilers. I'm very stupid in asm. +) |
it's not raw asm, but author wrote his compiler in 1st post...i think
|
FilimoniC:
Quote:
|
| All times are GMT. The time now is 22:56. |