Gutterboy
-
Posts
4 -
Joined
-
Last visited
-
Days Won
1 -
Donations
0.00 GBP
Content Type
Profiles
Bug Tracker
Wiki
Release Notes
Forums
Downloads
Blogs
Events
Bug Comments posted by Gutterboy
-
-
I didn't feel like trying to figure out why the conversion of ObjectGuid to a UINT32 and then back to an ObjectGuid doesn't work, so instead I just modified this line:
ai->ReceiveAIEvent(AI_EVENT_CUSTOM_C, (Creature *)pGo, pPlayer, pGo->GetGUIDLow());
And this case statement:
case AI_EVENT_CUSTOM_C: // notify me; @TODO inplement normal ObjectGuid transfer between scripts
{
if(GameObject *pGo = (GameObject*)sender)
NotifyMe(invoker, pGo);
/*ObjectGuid guid = ObjectGuid(HIGHGUID_GAMEOBJECT, 0, data);
if (GameObject *pGo = this->m_creature->GetMap()->GetGameObject(guid))
NotifyMe(invoker, pGo);*/
break;
}
Now it works.
-
m_creature->GetMap()->GetGameObject(guid) always returns null
The Endless Hunger (Death Knight Quest) broken
-
-
-
-
-
in Archived Reports (Two)(Resolved issues)
Posted
I'll be the first to admit, it was a hack. I just tested your code and it works. Much better than my hack. I'm not at all familiar with the code and to be honest, it has been over 15 years since I wrote any C++...back in my Baldur's gate modding days. However, at least we got the ball moving on this bug.