class Game_Party alias _check_item_initialize initialize def initialize _check_item_initialize @salt = rand.inspect @item_hash = item_hash end alias _check_item_gain_item gain_item def gain_item(*args) cheat = check_item _check_item_gain_item(*args) @item_hash = item_hash if !cheat end def item_hash sprintf("%08x%08x", (@salt + @items.inspect).hash, (@items.inspect + 'rpg.blue').hash) end private :item_hash def check_item # 无作弊返回 false,否则返回 true @item_hash != item_hash end end
guoxiaomi 发表于 2017-6-1 00:28
对于防止修改存档,可以手动对一些数据进行验证。比如要检查玩家是否修改了物品等,就验证 $game_party 这 ...
QQ截图7899.jpg (10.66 KB, 下载次数: 28)
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |