- Joined
- Jun 23, 2014
- Messages
- 1,853
- Reaction score
- 423
why are you using VS 2013 when at the first post the recommended ones are 2008 and 2010please Go upload Muserver Full Fix!!!!² pls My VS2013 does not work
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!why are you using VS 2013 when at the first post the recommended ones are 2008 and 2010please Go upload Muserver Full Fix!!!!² pls My VS2013 does not work
Solution properties
-> Expand C/C++
-> You'll see at the end a Command Line.
Now add /Zc:auto- inside the box.
btw. Soumyxorp
Do you know the code uhhh.
Like Player1 and Player2 duel in Room 1
and if Player1 wins there would be a pop-up message like
Player1 defeated Player2 in score of 10-0
or just Player 1 defeated Player2 in a duel.
can you show us the code when you get home? tt1:tt1:tt1:Yeah, I have that too. I'll be home around 30 minutes.
Yeah, I have that too. I'll be home around 30 minutes.
void SendAllUserAnyMsg3(LPBYTE lpMsg,int size)
{
for(int i = OBJ_STARTUSERINDEX; i < OBJMAX; i++)
{
if( gObj.Connected == PLAYER_PLAYING &&
gObj.Type == OBJ_USER)
{
DataSend(i,lpMsg,size);
}
}
}
Right before:PMSG_NOTICE pNotice;
TNotice::MakeNoticeMsgEx(&pNotice, 0,lMsg.Get(MSGGET(13,181)), obj.Name, target.Name);
SendAllUserAnyMsg3((BYTE *)&pNotice, pNotice.h.size);
LogAdd("[NewPVP] [%s][%s] Win Duel, Loser [%s][%s]", obj.AccountID, obj.Name, target.AccountID, target.Name);
<message index="181">%s has defeated %s in a duel.</message>
AllSendServerMsg("[Duel Started]");
char Text[256];
ZeroMemory(Text, sizeof(Text));
sprintf(Text, " %s Versus %s ",responsor.Name, requester.Name);
AllSendServerMsg(Text);
Duel Broadcast Message NewPvP.cpp
Find
LogAddTD("[NewPVP] [%s][%s] Duel Started [%s][%s]",responsor.AccountID,responsor.Name,requester.AccountID, requester.Name);
Add this
uhh not quite sure about the score but i think it's requester.m_btDuelScore and responsor.mb_btDuelScore
haven't tested it out yet
Here:
NewPVP.cpp
add this again after include stuff
Add this:
Right before:
Then go to /Data/Message.xml
add this line after the reserved_arka
char Text[256];
ZeroMemory(Text, sizeof(Text));
sprintf(Text, "[%s] Winner %d -- [%s] Loser %d", obj.Name,obj.m_btDuelScore, target.Name,target.m_btDuelScore);
AllSendServerMsg(Text);
Español
1>c:\users\callejero\desktop\proyecto - 1\gameserver\source\newpvp.cpp(566) : error C2601: 'SendAllUserAnyMsg3' : las definiciones de funciones locales no son válidas
ingles
1>c:\users\callejero\desktop\proyecto - 1\gameserver\source\newpvp.cpp(566) : error C2601: 'SendAllUserAnyMsg3' :the definitions of local functions are invalid
Can anyone help with this?
I try to set Duel up to 3 rounds only
broadcast winner and score
Find
LogAdd("[NewPVP] [%s][%s] Win Duel, Loser [%s][%s]", obj.AccountID, obj.Name, target.AccountID, target.Name);
Add this
P.S Just correct me If I'm wrong I'm not pro in C++ just learning as beginner