热点推荐

小喇叭+ 发布

01-16 02:17
01-16 02:04
01-13 17:30
查看: 732|回复: 0

[脚本示例] 禁止在某些地图扔背包物品和交易-转

[复制链接]
avatar

签到天数: 350 天

[LV.8]以坛为家I

7651

主题

255

回帖

31万

积分

司徒主管

Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20

UID
1
司徒币
260203
传世币
3000
元宝
0
在线时间
266 小时

最佳新人灌水之王

QQ
online_admin 发表于 2021-11-29 21:21:38 | 显示全部楼层 |阅读模式
把需要限制的地图,在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]  copyright dedecms
: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]  dedecms.com
: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  dedecms.com

: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

帖子地址: 





上一篇:天时(早晨0白天1黄昏2黑夜3)
下一篇:制做一个会复活的牛魔祭师
回复

使用道具 举报

懒得打字嘛,点击右侧快捷回复 【乱回复灌水将给予禁言处理】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则