creature_summon_groups

28 篇文章 0 订阅
8 篇文章 0 订阅

字段介绍

这个表保存了关于临时召唤生物的数据

creature_summon_group

  • summonerId(召唤者ID)
    • summonerType = 0 时,此处为 creature 的 entry
    • summonerType = 1 时,此处为 gameobject 的 entry
    • summonerType = 2 时,此处为地图 ID
  • summonerType(召唤者类别)
ValueTypeComment
0SUMMONER_TYPE_CREATURE生物
1SUMMONER_TYPE_GAMEOBJECT游戏对象
2SUMMONER_TYPE_MAP地图
  • groupId(组编号)
    • 所有具有相同组编号的生物将被同时召唤(刷新)
  • entry
    • 被召唤的 creature 的 entry
  • position_x | position_y | position_z | orientation
    • 被召唤的 creature 刷新时的坐标和朝向
  • summonType(召唤类型)
    • 取值参考源码 ObjectDefines.h 的 TempSummonType 定义
ValueNameComment
1TEMPSUMMON_TIMED_OR_DEAD_DESPAWNDespawns after a specified time OR when the creature disappears
2TEMPSUMMON_TIMED_OR_CORPSE_DESPAWNDespawns after a specified time OR when the creature dies
3TEMPSUMMON_TIMED_DESPAWN召唤的生物在特定时间后消失
4TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT召唤的生物在未进入战斗状态的特定时间后消失
5TEMPSUMMON_CORPSE_DESPAWN召唤的生物死亡后尸体立即消失
6TEMPSUMMON_CORPSE_TIMED_DESPAWN召唤的生物尸体在特定时间后消失
7TEMPSUMMON_DEAD_DESPAWNDespawns when the creature disappears
8TEMPSUMMON_MANUAL_DESPAWNDespawns when UnSummon() is called
  • summonTime
    • 召唤时间与 summonType(召唤类型)有关,单位毫秒

举例

entry =  33280 的召唤生物共设置了0,1,2 三组召唤组

  • 9
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
这段代码运行时显示munmap_chunk(): invalid pointer,应该怎么修改?#include<iostream> #include<string> using namespace std; class Creature { public: Creature(const int& hands, const int& legs):_hands(hands),_legs(legs) {cout << "A Creature has been created!" << endl; cout << "It has " << hands << " hand(s)!" << endl; cout << "It has " << legs << " leg(s)!" << endl;} ~Creature() {cout << "Creature object exiled!" << endl;} int GetHands() const {return _hands;} int GetLegs() const {return _legs;} private: int _hands; int _legs; }; class Beast:virtual public Creature { public: Beast(const int& hands, const int& legs, const string& name) :Creature(hands,legs),_name(name){cout << "Its beast name is " << _name << endl;} ~Beast() {cout << "Beast object exiled!" << endl;} string GetName() const {return _name;} private: string _name; }; class Human:virtual public Creature { public: Human(const int& hands, const int& legs, const string& name):Creature(hands,legs),_name(name) {cout << "Its human name is " << _name << endl;} ~Human() {cout << "Human object exiled!" << endl;} string GetName() const {return _name;} private: string _name; }; class Orc:public Human,public Beast { public: Orc(const int& hands, const int& legs, const string& beast_name, const string& human_name):Creature(hands, legs),Beast(hands,legs,beast_name),Human(hands,legs,human_name){} ~Orc() {cout << "Orc object exiled!" << endl;} string GetBeastName() const {return Beast::GetName();} string GetHumanName() const {return Human::GetName();} };
05-26

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值