用户登录  | 
首 页技术文章软件发布广告价格
当前位置:传奇游戏服务端下载站传奇站长论坛资源网站程序技术文章文章资讯传奇架设教程传奇架设技术

禁止在某些地图扔背包物品和交易-转

减小字体 增大字体 作者:佚名  来源:本站整理  发布时间:2014-10-03 09:49:43
把需要限制的地图,在mapinfo里加上 QUIZ 标志
禁止扔背包的物品:
:004C5A87 8B45FC         mov eax, dword ptr [ebp-04]
:004C5A8A 80B81703000000     cmp byte ptr [eax+00000317], 00
:004C5A91 750F          jne 004C5AA2
:004C5A93 8B45FC         mov eax, dword ptr [ebp-04]
:004C5A96 8B80F8020000      mov eax, dword ptr [eax+000002F8]
:004C5A9C 80783000        cmp byte ptr [eax+30], 00
:004C5AA0 7405          je 004C5AA7
:004C5AA2 E9C6000000       jmp 004C5B6D
:004C5AA7 8B45FC         mov eax, dword ptr [ebp-04]
:004C5AAA 8B800C040000      mov eax, dword ptr [eax+0000040C]
:004C5AB0 8B4008         mov eax, dword ptr [eax+08]
:004C5AB3 8945E4         mov dword ptr [ebp-1C], eax
:004C5AB6 48           dec eax
:004C5AB7 85C0          test eax, eax
:004C5AB9 7CE7          jl 004C5AA2
:004C5ABB 33C0          xor eax, eax


:004C5ABD 8945EC         mov dword ptr [ebp-14], eax
查找:
E82018F4FF8B55FC2B82180300003DB80B00000F86CD0000008B45FC8B800C0400008B40084885C00F8CAA000000408945E4C745EC00000000
替换:
8B45FC80B81703000000750F8B45FC8B80F8020000807830007405E9C60000008B45FC8B800C0400008B40088945E44885C07CE733C08945EC


禁止脱下装备(不能扔就行了,这个可以不用修改):
:004DB04E 8B45FC         mov eax, dword ptr [ebp-04]
:004DB051 80B81703000000     cmp byte ptr [eax+00000317], 00
:004DB058 7405          je 004DB05F
:004DB05A E909020000       jmp 004DB268
:004DB05F 8B45FC         mov eax, dword ptr [ebp-04]
:004DB062 8B80F8020000      mov eax, dword ptr [eax+000002F8]
:004DB068 80783000        cmp byte ptr [eax+30], 00
:004DB06C 75EC          jne 004DB05A
:004DB06E 8A45FB         mov al, byte ptr [ebp-05]
:004DB071 2C09          sub al, 09
:004DB073 73E5          jnb 004DB05A
:004DB075 0FB645FB        movzx eax, byte ptr [ebp-05]
:004DB079 8D0440         lea eax, dword ptr [eax+2*eax]
:004DB07C 8B55FC         mov edx, dword ptr [ebp-04]
:004DB07F 6683BCC22404000000   cmp word ptr [edx+8*eax+00000424], 0000
:004DB088 0F86D1010000      jbe 004DB25F
查找:
8B45FC80B817030000000F850A0200008A45FB2C090F83FF01000033C08A45FB8D04408B55FC6683BCC224040000000F86DC01000033C08A45FB8D04408B55FC
替换:
8B45FC80B817030000007405E9090200008B45FC8B80F80200008078300075EC8A45FB2C0973E50FB645FB8D04408B55FC6683BCC224040000000F86D1010000


禁止交易:
:004DD0D2 8B45FC         mov eax, dword ptr [ebp-04]
:004DD0D5 E8B265FEFF       call 004C368C
:004DD0DA 8945F8         mov dword ptr [ebp-08], eax
:004DD0DD 85C0          test eax, eax
:004DD0DF 7405          je 004DD0E6
:004DD0E1 3B45FC         cmp eax, dword ptr [ebp-04]
:004DD0E4 7505          jne 004DD0EB
:004DD0E6 E90E010000       jmp 004DD1F9
:004DD0EB 80B81703000000     cmp byte ptr [eax+00000317], 00
:004DD0F2 750D          jne 004DD101
:004DD0F4 8B45F8         mov eax, dword ptr [ebp-08]
:004DD0F7 E89065FEFF       call 004C368C
:004DD0FC 3B45FC         cmp eax, dword ptr [ebp-04]
:004DD0FF 7405          je 004DD106
:004DD101 E9DA000000       jmp 004DD1E0
:004DD106 8B45FC         mov eax, dword ptr [ebp-04]
:004DD109 80B81703000000     cmp byte ptr [eax+00000317], 00
:004DD110 750C          jne 004DD11E
:004DD112 8B80F8020000      mov eax, dword ptr [eax+000002F8]
:004DD118 80783000        cmp byte ptr [eax+30], 00
:004DD11C 7406          je 004DD124
:004DD11E E9ED000000       jmp 004DD210
查找:
8B45FC80B817030000000F852E0100008B45FCE8A265FEFF8945F8837DF8000F84020100008B45F83B45FC0F84F60000008B45F8E88165FEFF3B45FC0F85CC0000008B45F880B817030000000F85BC000000
替换:
8B45FCE8B265FEFF8945F885C074053B45FC7505E90E01000080B81703000000750D8B45F8E89065FEFF3B45FC7405E9DA0000008B45FC80B81703000000750C8B80F8020000807830007406E9ED00000090

Tags:

作者:佚名

文章评论评论内容只代表网友观点,与本站立场无关!

   评论摘要(共 0 条,得分 0 分,平均 0 分) 查看完整评论
传奇资源网提供最新传奇开区一条龙版本下载,本站声明:只更新最新最好的传奇服务端分享给大家。