Project1

标题: 如何自动刷怪 [打印本页]

作者: wapwb520pwb    时间: 2008-7-2 17:09
标题: 如何自动刷怪
如何自动刷怪? [LINE]1,#dddddd[/LINE]版务信息:本贴由楼主自主结贴~
作者: 松谷修三    时间: 2008-7-2 17:25
{/hx}
  1. #==========================================
  2. #  简单的刷怪 By 绿发的Eclair
  3. #  事件脚本中使用 respawn 可以让这个事件位置回到原来的地方^^
  4. #  不只是用来刷怪哦,不过NPC Ms用处不大的样子。
  5. #  刷怪事件的制作方法看那只幽灵就好了。
  6. #  冲突性非常低。
  7. #==========================================
  8. class Game_Event < Game_Character
  9.   attr_accessor :ori_x
  10.   attr_accessor :ori_y
  11.   alias initialize_respawn :initialize
  12.    def initialize(map_id, event)
  13.     initialize_respawn(map_id, event)
  14.     @ori_x = @event.x
  15.     @ori_y = @event.y
  16.   end
  17. end
  18. class Game_map
  19.   attr_accessor :events
  20. end
  21. def respawn
  22.   $game_map.events[@event_id].moveto($game_map.events
  23. [@event_id].ori_x,$game_map.events[@event_id].ori_y)
  24. end
  25. #=======================================
  26. #本脚本来自66RPG By绿发的Eclair
  27. #=======================================
复制代码

到站上找的,按Insert插到main [LINE]1,#dddddd[/LINE]系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1