mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-14 20:22:23 -04:00
Core/SAI: Add a 5th parameter to SAI events
CP of 1c60af6328
By jackpoz
This commit is contained in:
@@ -232,24 +232,26 @@ void SmartAIMgr::LoadSmartAIFromDB()
|
||||
temp.event.raw.param2 = fields[9].GetUInt32();
|
||||
temp.event.raw.param3 = fields[10].GetUInt32();
|
||||
temp.event.raw.param4 = fields[11].GetUInt32();
|
||||
temp.event.param_string = fields[12].GetString();
|
||||
temp.event.raw.param5 = fields[12].GetUInt32();
|
||||
|
||||
temp.action.type = (SMART_ACTION)fields[13].GetUInt8();
|
||||
temp.action.raw.param1 = fields[14].GetUInt32();
|
||||
temp.action.raw.param2 = fields[15].GetUInt32();
|
||||
temp.action.raw.param3 = fields[16].GetUInt32();
|
||||
temp.action.raw.param4 = fields[17].GetUInt32();
|
||||
temp.action.raw.param5 = fields[18].GetUInt32();
|
||||
temp.action.raw.param6 = fields[19].GetUInt32();
|
||||
temp.event.param_string = fields[13].GetString();
|
||||
|
||||
temp.target.type = (SMARTAI_TARGETS)fields[20].GetUInt8();
|
||||
temp.target.raw.param1 = fields[21].GetUInt32();
|
||||
temp.target.raw.param2 = fields[22].GetUInt32();
|
||||
temp.target.raw.param3 = fields[23].GetUInt32();
|
||||
temp.target.x = fields[24].GetFloat();
|
||||
temp.target.y = fields[25].GetFloat();
|
||||
temp.target.z = fields[26].GetFloat();
|
||||
temp.target.o = fields[27].GetFloat();
|
||||
temp.action.type = (SMART_ACTION)fields[14].GetUInt8();
|
||||
temp.action.raw.param1 = fields[15].GetUInt32();
|
||||
temp.action.raw.param2 = fields[16].GetUInt32();
|
||||
temp.action.raw.param3 = fields[17].GetUInt32();
|
||||
temp.action.raw.param4 = fields[18].GetUInt32();
|
||||
temp.action.raw.param5 = fields[19].GetUInt32();
|
||||
temp.action.raw.param6 = fields[20].GetUInt32();
|
||||
|
||||
temp.target.type = (SMARTAI_TARGETS)fields[21].GetUInt8();
|
||||
temp.target.raw.param1 = fields[22].GetUInt32();
|
||||
temp.target.raw.param2 = fields[23].GetUInt32();
|
||||
temp.target.raw.param3 = fields[24].GetUInt32();
|
||||
temp.target.x = fields[25].GetFloat();
|
||||
temp.target.y = fields[26].GetFloat();
|
||||
temp.target.z = fields[27].GetFloat();
|
||||
temp.target.o = fields[28].GetFloat();
|
||||
|
||||
//check target
|
||||
if (!IsTargetValid(temp))
|
||||
|
||||
Reference in New Issue
Block a user