guid = cPassanger->guid;else{ CreatureDataAddonconst* passAddon; passAddon = ObjectMgr::GetCreatureTemplateAddon(cPassanger->entry);if(passAddon && passAddon->vehicle_id !=0) isVehicle =true;elseguid = sObjectMgr.GenerateLowGuid(HIGHGUID_UNIT); }//CreateitCreature *pPassenger =newCreature;...
WorldDatabase.PExecute("UPDATE creature_addon SET emote=%u WHERE guid=%u",emote,target->GetGUIDLow()); SendSysMessage("Creature_addon emote updated"); }else{ WorldDatabase.PExecute("REPLACE INTO creature_addon (guid, emote) VALUES (%u,%u)",target->GetGUIDLow(),emote); SendSysMessage("...
} owner.LoadCreatureAddon(true); owner.AI()->JustReachedHome();returnfalse; } i_travel_timer -= time_diff;returntrue; } 开发者ID:,项目名称:,代码行数:35,代码来源: 示例6: traveller ▲点赞 1▼ boolHomeMovementGenerator<Creature>::Update(Creature &owner,constuint32& time_diff) {CreatureTr...
# 需要导入模块: from addons.models import AddonCategory [as 别名]# 或者: from addons.models.AddonCategory importcreatured_random[as 别名]defpersonas(request, category=None, template=None):categories, filter, base, category = personas_listing(request, category)# Pass the count from base instead...
uint32 factionId = (uint32) atoi((char*)args);if(!sFactionTemplateStore.LookupEntry(factionId)) { PSendSysMessage(LANG_WRONG_FACTION, factionId);returntrue; } Creature* pCreature =getSelectedCreature();if(!pCreature) { SendSysMessage(LANG_SELECT_CREATURE);returntrue; ...