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
Couldn't figure out right now a way to do as you want.
Some idea I had:
Add this to a function like bool CMover::IsChestPvpZone(CMover* pMover)
FOR_LINKMAP(GetWorld(), GetPos(), pObj, nRange, CObj::linkDynamic, nLayer)
{
if(pObj->GetType() == CHEST)
{
//Set PvP to true or whatever (position coordinates I think). In range return true and not range return false
}
}
END_LINKMAP
Hello back guys, i have some news. Its still not working, and i can't figure out why.
It seems like the client can't get the Chest because if i remove the RETURN FALSE after the if( pObj ) verification, it works but everywhere in map :/
Here is my BOOL CMover::IsWarChestTarget( CMover* pMover )
How to send S->C Value and object packet to client ??? 04/06/2016 - SRO Private Server - 45 Replies Hey guys,
I'm having this issue which is when i send a S->C packet to client it appears only as an object without value ... meaning is when i am inside and send it it appears just like a shape ( client sided only ) but after restarting char it disappears.
so how to send it full with value and its object ???
SRX Client Crashes - [Send Error] 01/27/2012 - SRO Private Server - 2 Replies Hi.
Well, my friend got a problem. I am hosting the Server, everything works fine for me. But when he joins via Hamachi he's getting this error after some minutes.
http://s1.directupload.net/images/111222/egpy3mii .png
Help me & my friend, please! o:
[C# .Net] Need help to Send Login Details to SRO Client 12/19/2011 - SRO Coding Corner - 4 Replies Hello all,
I am trying to send the login ID & password from Windows Form to Silkroad client. But I dont succeed with SendMessage, PostMessage & SendKeys. Can someone please help me send the ID & password to Silkroad client? (I dont need AutoIt/AutoITX).
Thanks in advance.
Regards,
Mahesh
WTF!!!EasyMetin>>Client Send Fail!! 10/09/2010 - Metin2 - 38 Replies Hi,
wie bei mehreren usern geht EasyMetin2 ( die neuste Version ) nicht. Da kommt immer Client Send fail. Ich hab jetzt schon mehrere male gelöscht und wider installiert, aber da geht nichts. Ich komm nicht ma in mein acc rein. manche sagen das sind Wartungsarbeiten, währe dann aber bei alles EasyMetin nutzern diese Meldung?...Gibt ma Pls ne antwort, wäre echt net?!!!!!:handsdown::handsdown::handsdown::handsdo wn::handsdown::handsdown::handsdown::handsdown:
[Question] Hooking send() & recv() works, but recv hiding data for co??? 05/06/2009 - CO2 Programming - 2 Replies Hey guys, I've been making a DLL to allow another program to intercept the packets of conquer using windows pipes. (Then its the job of the main program to decrypt the packets, the DLL only gives a communication channel for the main program)
(winsock functions btw)
- hooking send() works fine for my internet browser
- hooking recv() works fine for my internet browser
- hooking send() works fine for conquer online