赞 | 23 |
VIP | 22 |
好人卡 | 18 |
积分 | 608 |
经验 | 44466 |
最后登录 | 2024-11-9 |
在线时间 | 1934 小时 |
Lv6.析梦学徒 Fuzzy Ginkgo Taciturn Knight
- 梦石
- 0
- 星屑
- 60819
- 在线时间
- 1934 小时
- 注册时间
- 2010-6-26
- 帖子
- 1605
|
本帖最后由 orzfly 于 2011-8-25 03:53 编辑
一行版- class RPG::BaseItem;alias __name__ name;def name;[email protected];name.gsub(/<.p\([0-9]*\)>/,'');end;end;module RPG;def self.get_result(regexp,strings);re=strings.map{|str|str[regexp]?Integer($1):0};end;end;class Game_Actor;alias __maxhp__ maxhp;alias __maxmp__ maxmp;def get_all_equips;ary=[$data_weapons[@weapon_id],;$data_armors[@armor1_id],$data_armors[@armor2_id],$data_armors[@armor3_id],$data_armors[@armor4_id]];strings=ary.map{|equip|equip.__name__ rescue ''};end;def maxhp;re=RPG.get_result(/<hp\(([0-9]*)\)>/,get_all_equips);__maxhp__+re.inject(0){|result,item|result+item };end;def maxmp;re=RPG.get_result(/<mp\(([0-9]*)\)>/,get_all_equips);__maxmp__+re.inject(0){|result,item|result+item};end;end
复制代码 精简版- class RPG::BaseItem;alias __name__ name;def name;[email protected];name.gsub(
- /<.p\([0-9]*\)>/,'');end;end;module RPG;def self.get_result(regexp,strings)
- re=strings.map{|str|str[regexp]?Integer($1):0};end;end;class Game_Actor
- alias __maxhp__ maxhp;alias __maxmp__ maxmp;def get_all_equips;ary=[\
- $data_weapons[@weapon_id],;$data_armors[@armor1_id],$data_armors[@armor2_id],
- $data_armors[@armor3_id],$data_armors[@armor4_id]];strings=ary.map{|equip|
- equip.__name__ rescue ''};end;def maxhp;re=RPG.get_result(/<hp\(([0-9]*)\)>/,
- get_all_equips);__maxhp__+re.inject(0){|result,item|result+item };end;def maxmp
- re=RPG.get_result(/<mp\(([0-9]*)\)>/,get_all_equips);__maxmp__+re.inject(0){|\
- result,item|result+item};end;end
复制代码 十六进制版- eval(["636c617373205250473a3a426173654974656d3b616c696173205f5f6e616d655f5f206e616d653b646566206e616d653b6e616d653d406e616d652e6475703b6e616d652e67737562282f3c2e70285b302d395d2a293e2f2c2727293b656e643b656e643b6d6f64756c65205250473b6465662073656c662e6765745f726573756c74287265676578702c737472696e6773293b72653d737472696e67732e6d61707b7c7374727c7374725b7265676578705d3f496e7465676572282431293a307d3b656e643b656e643b636c6173732047616d655f4163746f723b616c696173205f5f6d617868705f5f206d617868703b616c696173205f5f6d61786d705f5f206d61786d703b646566206765745f616c6c5f6571756970733b6172793d5b24646174615f776561706f6e735b40776561706f6e5f69645d2c3b24646174615f61726d6f72735b4061726d6f72315f69645d2c24646174615f61726d6f72735b4061726d6f72325f69645d2c24646174615f61726d6f72735b4061726d6f72335f69645d2c24646174615f61726d6f72735b4061726d6f72345f69645d5d3b737472696e67733d6172792e6d61707b7c65717569707c65717569702e5f5f6e616d655f5f207265736375652027277d3b656e643b646566206d617868703b72653d5250472e6765745f726573756c74282f3c687028285b302d395d2a29293e2f2c6765745f616c6c5f657175697073293b5f5f6d617868705f5f2b72652e696e6a6563742830297b7c726573756c742c6974656d7c726573756c742b6974656d207d3b656e643b646566206d61786d703b72653d5250472e6765745f726573756c74282f3c6d7028285b302d395d2a29293e2f2c6765745f616c6c5f657175697073293b5f5f6d61786d705f5f2b72652e696e6a6563742830297b7c726573756c742c6974656d7c726573756c742b6974656d7d3b656e643b656e64"].pack("H*"))
复制代码 |
|