赞 | 0 |
VIP | 30 |
好人卡 | 4 |
积分 | 1 |
经验 | 6446 |
最后登录 | 2022-4-23 |
在线时间 | 156 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 84
- 在线时间
- 156 小时
- 注册时间
- 2009-8-5
- 帖子
- 533
|
- module DumpWords
-
- def self.start
- mapinfos = load_data("Data/MapInfos.rxdata")
- file = File.open("f.txt","wb")
- @t = Time.now.to_i
- for id in mapinfos.keys
- foldername = sprintf("地图%03d:%s",id,mapinfos[id].name)
- file.write("#{foldername}\n")
- map = load_data(sprintf("Data/Map%03d.rxdata",id))
- for event in map.events.values
- if Time.now.to_i - @t > 5
- @t = Time.now.to_i
- Graphics.update
- end
-
- begin
- text = sprintf("事件%03d:%s(%03d,%03d)",event.id,event.name,event.x,event.y)
- file.write(text)
- for i in 0...event.pages.size
- file.write("★★★第#{i+1}页★★★\n")
- for j in 0...event.pages[i].list.size
- list = event.pages[i].list[j]
- if list.code == 101 or list.code == 401 or list.code == 102
- file.write(list.parameters[0].to_s + "\n")
- end
- end
- end
- end
- end
- end
- file.close
- p 'done!'
- exit
- end
-
- end
- DumpWords.start
复制代码 插入后运行 |
|