Ruafo
Members-
Posts
51 -
Joined
-
Last visited
Never -
Donations
0.00 GBP
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
Ruafo's Achievements
Advanced Member (3/3)
0
Reputation
-
Oh my god... I really must need sleep. I was using the "realm" port... not the SOAP port. Wow! Thank you for your help. I'm sorry about that.
-
Good idea. Not sure why I didn't think of that. will do.
-
Hi Carl! I'm able to run the command with :1 and without from the console... that's what has me confused.
-
As a side note... just to rule it out... I tried changing " to ' and vice versa... which didn't help
-
I have a PHP website that I'm attempting to send commands via SOAP to the core. It has no problem handing commands like resetting password, etc. However when I try and send an item, I get: WorldSocket::handle_input_header: client sent malformed packet size = 20559 , cmd = 790647891 Here is the command string I'm trying to send: send items TestPlayer1 "Items added" "Attached are the items you requested from the website" 2909:1 That SHOULD send 1 Red Wool Bandana Any thoughts?
-
Maybe this has been touched on before, for some reason I remember seeing it the old forums. Is it functionally realistic from a performance perspecitive to operate multiple realms from the same world DB? Obviously you need a separate character DB for each realm. But there isn't really anything being written to the world DB. Am I correct? Thanks
-
by the way, what are you using to embed the code? It looks "prettier" than the normal code embeder here.
-
Nope. Still not exactly right. Here is what I have after I modified what you gave me: //Transmit Achievement to IRC std::string irc_message = ("Player: %s achieved: %s",GetPlayer()->GetName(),achievement->name); std::string channel = std::string("#") + sIRC._irc_chan[sIRC.Status]; sIRC.Send_IRC_Channel(channel, irc_message, irc_message, true); For reference, this is what I wrote for player.cpp to echo the level when someone achieves a new level. Not sure if that will help at all. char plevel [3]; sprintf(plevel, "%u", level); std::string pname = GetName(); std::string channel = std::string("#") + sIRC._irc_chan[sIRC.anchn].c_str(); sIRC.Send_IRC_Channel(channel, "\\00311["+pname+"] : Has Reached Level: "+plevel, true); (Might be hard to believe, but I actually helped to develop MangChat. I'm Shinzon... I started the thread for it when mangos converted over to the new forum.)
-
I'll try it out now. I'll also get you a copy of my mangchat patch.
-
Oh. Certainly: // Send a message to the specified IRC channel void Send_IRC_Channel(std::string sChannel, std::string sMsg, bool NoPrefix = false, std::string nType = "PRIVMSG"); Lillecarl, You like a challenge don't you? Not the first time you've helped me. I have a lot of respect for your coding talents. I'm very strong with PHP, but C++ has always been more of a challenge for me.
-
See above. Apparently I was editing the post while you posted. // broadcast realm first reached WorldPacket data(SMSG_SERVER_FIRST_ACHIEVEMENT, strlen(GetPlayer()->GetName())+1+8+4+4); data << GetPlayer()->GetName(); data << GetPlayer()->GetObjectGuid(); data << uint32(achievement->ID); data << uint32(0); // 1=link supplied string as player name, 0=display plain string //Transmit Achievement to IRC std::string pname = GetPlayer()->GetName(); std::string a_title = achievement->name std::string channel = std::string("#") + sIRC._irc_chan[sIRC.Status]; sIRC.Send_IRC_Channel(channel, "\\00311["+pname+"] : Has Achieved: "+a_title, true); sWorld.SendGlobalMessage(&data);
-
I'm actually trying to output achievements for MangChat. So I am building the string for what will be broadcast into the IRC module. In Visual Studio when I try to get "name" for "achievement" (i.e. achievement->name ) using string I get "no suitable constructor exists". So, I know I'm not assembling it right, I just can't seem to get my head around 'how'. Here is the whole piece of code I'm working with (for reference): // broadcast realm first reached WorldPacket data(SMSG_SERVER_FIRST_ACHIEVEMENT, strlen(GetPlayer()->GetName())+1+8+4+4); data << GetPlayer()->GetName(); data << GetPlayer()->GetObjectGuid(); data << uint32(achievement->ID); data << uint32(0); // 1=link supplied string as player name, 0=display plain string //Transmit Achievement to IRC std::string pname = GetPlayer()->GetName(); std::string a_title = achievement->name std::string channel = std::string("#") + sIRC._irc_chan[sIRC.Status]; sIRC.Send_IRC_Channel(channel, "\\00311["+pname+"] : Has Achieved: "+a_title, true); sWorld.SendGlobalMessage(&data);
-
I am working with AchievementMgr.cpp. This section in particular: // broadcast realm first reached WorldPacket data(SMSG_SERVER_FIRST_ACHIEVEMENT, strlen(GetPlayer()->GetName())+1+8+4+4); data << GetPlayer()->GetName(); data << GetPlayer()->GetObjectGuid(); data << uint32(achievement->ID); data << uint32(0); // 1=link supplied string as player name, 0=display plain string sWorld.SendGlobalMessage(&data); I want to extract the Player's name and the Achievement name as string values. I'm not certain on the code though. Can anyone verify if I'm on the right track? std::string pname = GetPlayer()->GetName(); std::string atitle = achievement->name(); NOTE: I know I am off base on the achievement name... but I think the player name will work. Thoughts?
-
Okay. Here is the patch for the SQL: Uncomment the sections in the IRCCmde.cpp that say "NOT WORKING" http://pastebin.com/cdzTLWk7
-
Yeah, okay. That wasn't hard. You guys are missing part of the Database Structure. LOL! I'll post a patch soon.
Contact Us
To contact us
click here
You can also email us at [email protected]
Privacy Policy | Terms & Conditions
You can also email us at [email protected]
Privacy Policy | Terms & Conditions
Copyright © getMaNGOS. All rights Reserved.
This website is in no way associated with or endorsed by Blizzard Entertainment®
This website is in no way associated with or endorsed by Blizzard Entertainment®