Hello guys,
I'm trying to develop a new system. My system works like that : A chest spawn which give some loots. I want to make a certain zone around it PvP, i tried to take the Arena system, it works, but when i want to take the positions of the chests, it can't take it, because client don't have the chest ID.
What i'm asking is how to send the CCtrl m_objid value to the client so it will be able to know which ID have the chest and then allow to take the positions of it ?
I tried to add this :
ar << g_WarChestMng.m_pWarChest->m_objid;
to ObjSerializeOpt.cpp in void CObj::Serialize( CAr & ar ) function, but it only broke my server xD
If you guys could help me there ! Thanks alot
I'm trying to develop a new system. My system works like that : A chest spawn which give some loots. I want to make a certain zone around it PvP, i tried to take the Arena system, it works, but when i want to take the positions of the chests, it can't take it, because client don't have the chest ID.
What i'm asking is how to send the CCtrl m_objid value to the client so it will be able to know which ID have the chest and then allow to take the positions of it ?
I tried to add this :
ar << g_WarChestMng.m_pWarChest->m_objid;
to ObjSerializeOpt.cpp in void CObj::Serialize( CAr & ar ) function, but it only broke my server xD
If you guys could help me there ! Thanks alot