SAI实例研究

实例1

creature.id = 15937(smart_script.entryorguid)的SAI设置:

  • 第1条(id = 0) 当 creature 进入战斗后(event_type = 0),creature 对当前目标(target_type = 2)周期性施放Chain Lightning法术(action_type = 11,SpellID = 12058)
  • 第2条(id = 1) 当 creature 进入战斗后(event_type = 0),creature 对当前目标(target_type = 2)周期性施放Frost Shock法术(action_type = 11,SpellID = 21030)
  • 第3条(id = 2) 当 creature 的生命值百分比处于0-50%时(event_type = 2),creature 对自身(target_type = 1)周期性施放Healing Wave法术(action_type = 11,SpellID = 12491)
  • 第4条(id = 3) 当 creature 死亡时(event_type = 6),对 entry = 15668 的 creature 触发 Set Data(action_type = 45
  • 第5条(id = 4) 第4条触发后(event_type = 61),对 entry = 15669 的 creature 触发 Set Data(action_type = 45

creature.id = 15668(smart_script.entryorguid)的SAI设置:

  • 第1条(id = 0) 当 creature Data Set 时(event_type = 38),creature 对自身(target_type = 1)施放Fear法术(action_type = 11,SpellID = 26661)
  • 第2条(id = 1) 当 creature 的生命值百分比处于0-15%时(event_type = 2),creature 会逃跑并寻求同伴协助(action_type = 25)

creature.id = 15669(smart_script.entryorguid)的SAI设置:

  • 第1条(id = 0) 当同伴生命值百分比处于0-50%时(event_type = 74),creature 对同伴(target_type = 7)周期性施放Flash Heal法术(action_type = 11,SpellID = 17137)
  • 第2条(id = 1) 当 creature Data Set 时(event_type = 38),creature 对自身(target_type = 1)施放Fear法术(action_type = 11,SpellID = 26661)
  • 第3条(id = 2) 当 creature 的生命值百分比处于0-15%时(event_type = 2),creature 会逃跑并寻求同伴协助(action_type = 25)

实例2

creature.id = 15402(smart_script.entryorguid)的SAI设置:

  • 共分为0和1两个事件阶段
    • 第0阶段:第1条(id = 0),第2条(id = 1),第3条(id = 2),第4条(id = 3),第9条(id = 8)
      • 第1条(id = 0) 当角色获得任务(QuestID = 8487,被腐蚀的土地)奖励时(event_type = 20),creature 对自身(target_type = 1)触发时间线列表动作( action_type = 80,smart_script.entryorguid = 1540200)
      • 第2条(id = 1) 当角色接到任务(QuestID = 8488,出人意料的结果)时(event_type = 19),将接到任务的队伍(target_type = 16)作为目标列表储存到变量1中(action_type = 64
      • 第3条(id = 2) 在第2条触发后(event_type = 61),creature 对自身(target_type = 1)触发时间线列表动作( action_type = 80,smart_script.entryorguid = 1540201)
      • 第4条(id = 3) 当 creature 进入战斗后(event_type = 0),creature 对自身(target_type = 1)周期性施放Fireball法术(action_type = 11,SpellID = 20811)
      • 第9条(id = 8) 当事件刷新时(event_type = 11),creature 自身(target_type = 1)免疫npc攻击伤害(action_type = 145)
    • 第1阶段:第5条(id = 4),第6条(id = 5),第7条(id = 6),第8条(id = 7)
      • 5条(id = 4) 当 creature 死亡时(event_type = 6),第2条储存的目标列表(target_type = 12)中的角色的任务均失败(action_type = 6
      • 6条(id = 5) 当 COUNTER_SET 时(event_type = 77),第2条储存的目标列表(target_type = 12)中的角色的任务均完成(action_type = 15
      • 7条(id = 6) 在第6条触发后(event_type = 61),creature 对自身(target_type = 1)触发 SET_COUNTERaction_type = 63
      • 8条(id = 7) 在第7条触发后(event_type = 61),creature 对自身(target_type = 1)触发时间线列表动作( action_type = 80,smart_script.entryorguid = 1540202)
        • 标黄部分实际表现为:角色击杀召唤出的怪之后任务完成,具体用法有待核实

 creature.id = 15402,entryorguid = 1540200 的时间线列表动作有3条

  • 第1条(id = 0) 设置 creature 自身(target_type = 1)的 npcflag = 0(action_type = 81)
  • 第2条(id = 1) 当 entryorguid = 1540200 的时间线列表动作触发的10秒后,creature 对自身(target_type = 1)触发说话(action_type = 1)
  • 第3条(id = 2) 设置 creature 自身(target_type = 1)的 npcflag = 2(action_type = 81)
    • npcflag = 2 时,creature 将作为任务给予者,任务未完成时,客户端将看到黄色感叹号(creature_queststarter 表必须有数据)

creature.id = 15402,entryorguid = 1540201 的时间线列表动作有5条

  • 第1条(id = 0) 设置 creature 自身(target_type = 1)的 npcflag = 0(action_type = 81)
  • 第2条(id = 1) 设置 creature 自身(target_type = 1)的 faction = 232(action_type = 2)
  • 第3条(id = 2) 设置 creature 自身(target_type = 1)不能免疫npc攻击伤害(action_type = 145)
  • 第4条(id = 3) 设置 creature 自身(target_type = 1)的事件阶段为1阶段(action_type = 22)
  • 第5条(id = 4) 对 creature 自身(target_type = 1)召唤生物组(action_type = 2)
    • action_param1 对应 creature_summon_groups.groupID 的值
    • creature_summon_groups 字段介绍看:这里

 creature.id = 15402,entryorguid = 1540202 的时间线列表动作有4条

  • 第1条(id = 0) 设置 creature 自身(target_type = 1)的 npcflag = 2(action_type = 81)
  • 第2条(id = 1) 设置 creature 自身(target_type = 1)的 faction = 1604(action_type = 2)
  • 第3条(id = 2) 设置 creature 自身(target_type = 1)免疫npc攻击伤害(action_type = 145)
  • 第4条(id = 3) 设置 creature 自身(target_type = 1)的事件阶段为0阶段(action_type = 22)

相关推荐

最近更新

  1. TCP协议是安全的吗?

    2024-01-21 20:34:02       16 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-01-21 20:34:02       16 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-01-21 20:34:02       15 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-01-21 20:34:02       18 阅读

热门阅读

  1. C# 字符串(String)

    2024-01-21 20:34:02       37 阅读
  2. datasets的一些使用技巧

    2024-01-21 20:34:02       33 阅读
  3. 【智驾未来】低代码开发:加速创新交融的利器

    2024-01-21 20:34:02       30 阅读
  4. C# 程序结构

    2024-01-21 20:34:02       30 阅读
  5. 【工业智能】VSB Power Line Fault Detection-chapter2

    2024-01-21 20:34:02       32 阅读
  6. 生产告警JVM内存使用率超过80%告警问题排查

    2024-01-21 20:34:02       33 阅读
  7. python求解特殊回文数

    2024-01-21 20:34:02       31 阅读
  8. html Canvas粒子文字特效

    2024-01-21 20:34:02       34 阅读
  9. bash 5.2中文修订1

    2024-01-21 20:34:02       33 阅读