- 积分
- 31222
- 威望
- 1
- 魅力
- 0
- 经验
- 30220
- 热心度
- 0
- 注册时间
- 2017-10-20
- 最后登录
- 2025-2-23
- 主题
- 24
- 回帖
- 502
- 精华
- 0
- 阅读权限
- 80
TA的每日心情 | 难过 4 小时前 |
---|
签到天数: 2059 天 连续签到: 5 天 [LV.Master]伴坛终老

8级 Supreme Hero
 
- 积分
- 31222
|

楼主 |
发表于 2017-12-26 17:58:25
|
显示全部楼层
**生物银行被访问后28天以后重设(只针对TE中应用的7种生物银行)
**007提取自WOG原官方脚本并有所修改(请留意注释)
[Daily Timer, only activates once (for first colour)]
!?TM2&$once$=1/$day$>1;
!!UN:U16/-1/?y-4; [地图的生物银行数: y-4]
!!VRv1:S-1; [Initialize v1 to -1 to work with new faster UN:U syntax]
!!DO5405/1/y-4/1&y-4>0:P16/y-4; [历遍所有生物银行]
!!UN:U24/-1/?y-5; [Number of Derelict Ships on map: y-5]
!!VRv1:S-1; [Initialize v1 to -1 to work with new faster UN:U syntax]
!!DO5405/1/y-5/1&y-5>0:P24/y-5; [遍所有弃船]
!!UN:U25/-1/?y-6; [Number of Dragon Utopias on map: y-6]
!!VRv1:S-1; [Initialize v1 to -1 to work with new faster UN:U syntax]
!!DO5405/1/y-6/1&y-6>0:P25/y-6; [Loop through all 龙之阁]
!!UN:U84/-1/?y-7; [Number of Crypts on map: y-7]
!!VRv1:S-1; [Initialize v1 to -1 to work with new faster UN:U syntax]
!!DO5405/1/y-7/1&y-7>0:P84/y-7; [遍所有墓室]
!!UN:U85/-1/?y-8; [Number of Shipwrecks on map: y-8]
!!VRv1:S-1; [Initialize v1 to -1 to work with new faster UN:U syntax]
!!DO5405/1/y-8/1&y-8>0:P85/y-8; [遍所有沉船]
[Loop through all creature banks]
[x1=type of bank, x2=number of banks(这里没使用,但保留)]
!?FU5405;
!!UN:Ux1/-1/-1/1; [Creature Bank coordinates in v1/v2/v3]
!!CBv1/v2/v3:T?y1; [检测该银行是否被访问: y1=1则已被访问]
!!OBv1/v2/v3&x1=16:U?y2; [生物银行的子类型: y2]
!!POv1/v2/v3&y1=1:S?y18; [Read PO:S number for Creature Bank square: y18]用于计算生物银行被访问后经过的天数
!!POv1/v2/v3&y1=1/y18<=0:S14; [Set PO:S number for Creature Bank square to 28: y18] ******打下后14天刷新一次
!!VRy18&y1=1/y18>0:-1; [Subtract one from PO:S number: y18]
!!POv1/v2/v3&y1=1/y18>0:Sy18; [Write new PO:S number: y18]
!!FU|y1<>1/y18<>1:E; [Exit if bank not taken or y18<>1]
[Reset/Restock taken creature banks after 28 days]重设生物银行
!!POv1/v2/v3:S0; [Reset Creature Bank's PO:S number to 0]
!!FU&x1=16/y2>=13/y2<=16:E; [Exit if it's an Emissary building](忽略神的银行)
!!CBv1/v2/v3:T0 V0; [Reset creature bank to "not taken"]
!!UN:J6/2/?y3; [Random Treasure Artifact: y3]007注:原官方脚本写的是UN:J6/4/?y3,应该是错误的
!!UN:J6/4/?y4; [Random Minor Artifact: y4] (-1=随机, 1=没有等级, 2=宝藏, 4=低级宝物, 8=高级宝物, 16=神级宝物)
!!UN:J6/4/?y5 J6/8/?y6 J6/16/?y7 J6/16/?y8; [Random Relics: y5, y6, y7, y8]
[以下还原银行的守卫设置]
[CB:G 守卫位置(0-4)/生物编号/个数]
[CB:M 奖励的生物编号/个数(1-128)]
[CB:R 奖励的资源编号(0-7)/个数]
!!CBv1/v2/v3&x1=24:G0/123/40 G1/123/40 G2/123/40 G3/123/40 G4/123/40; [弃船]
!!CBv1/v2/v3&x1=24:R6/6000 A2/0/y3; [Derelict Ship: 6000 gold, 1 Minor Artifact]6000金+1低级宝物
!!CBv1/v2/v3&x1=85:G0/61/30 G1/61/30 G2/61/30 G3/61/30 G4/61/30; [沉船]
!!CBv1/v2/v3&x1=85:R6/5000 A2/0/y3; [Shipwreck: 5000 gold, 1 Minor Artifact]5000金+1低级宝物
!!CBv1/v2/v3&x1=84:G0/57/2000 G1/59/1200 G2/61/800 G3/63/500; [墓室]
!!VRy17:S146 T8;
!!CBv1/v2/v3&x1=84:R6/20000 A3/y17; [Crypt: 2500 gold, 1 Treasure Artifact, 1 Minor Artifact] 2500金+1个宝藏+1低级宝物 |
|