![]() |
|
|
#1 |
|
Архивный участник
Join Date: Jun 2005
Posts: 262
|
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 tr UserInfoExmov 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 tr UserInfoExmov 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 tr UserInfoExdec [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. ^^ |
|
|
|
|