| 赞 | 36 |
| VIP | |
| 好人卡 | |
| 积分 | 46 |
| 经验 | |
| 最后登录 | 2026-2-8 |
| 在线时间 | 570 小时 |
- 梦石
- 0
- 星屑
- 4649
- 在线时间
- 570 小时
- 注册时间
- 2018-11-12
- 回帖
- 120
|
发表于 2023-3-3 22:07:07
|
显示全部楼层
【代码】
[pre lang="javascript"]var _DJGame_Temp_setDestination = Game_Temp.prototype.setDestination;
Game_Temp.prototype.setDestination = function(x, y) {
if ($dataMap.meta.禁止点地移动) {
var id = Number($dataMap.meta.禁止点地移动);
if ($gameMap.regionId(x, y) == id) return;
}
return _DJGame_Temp_setDestination.call(this,x,y);
};[/pre]
【使用说明】
①将上述代码复制粘贴到任意插件最下面;
②在需要禁用点地的地图备注<禁止点地移动:X>
【举例说明】
1号地图备注:<禁止点地移动:6>
作用:该地图涂抹的6号区域无法用鼠标点击移动。
【图片教程】
——————————
希望对你有所帮助。 |
评分
-
查看全部评分
|