I translate in English cause my stupid compatriot clearly didn't pay attention in school
I'll answer him in english and french (obviously he won't understand the english answer ^^)
French:
Voici quelques infos :
- Crée un nouveau champ dans gameobjct, creator de type UNSIGNED INT(10)
- Fichier Level2.cpp, fonction HandleGameobjectAddCommand : juste avant pGameObj->SaveToDB, il faut définir le créateur du gameobject. Tu n'as qu'à utiliser : pGameObj->SetOwnerGUID(chr->GetGUID());
- Fichier GameObject.cpp, fonction SaveToDB. Tu devrais voir la requête qui insère le gobject dans la BDD : INSERT INTO gameobject VALUES ...
- A la fin de cette requête il faut que tu rajoutes le créateur du gameobject :
<< uint64(GetOwnerGUID()) << ")";
English :
A few tips
- Create a new field in gameobject, creator UNSIGNED INT(10)
- File Level2.cpp, function HandleGameobjectAddCommand : just before pGameObj->SaveToDB, you must define the go's creator. You may use: pGameObj->SetOwnerGUID(chr->GetGUID());
- File GameObject.cpp, function SaveToDB. You should see the SQL request that insert the go in DB : INSERT INTO gameobject VALUES ...
- At the end of this request you must add the go's creator :
<< uint64(GetOwnerGUID()) << ")";