Anyone has a fix for the poll system in mercury emulator? After clicking on "OK", I disconnect.
Image of the Poll: http://i60.tinypic.com/b5fj8n.png
Printable View
Anyone has a fix for the poll system in mercury emulator? After clicking on "OK", I disconnect.
Image of the Poll: http://i60.tinypic.com/b5fj8n.png
Post the error that you get, i think it is a packet or structure problem
You must be set the error page,
<?php
if(isset($_POST)) {
$client_error_error_cat = $_POST["error_cat"];
$client_error_error_desc = $_POST["error_desc"];
$client_error_error_debug = $_POST["debug"
]; }
?><h1>Hallo!</h1>
<p>Er is een error voorgekomen! Helaas! Dit zijn de error details:</p>
<h3>Error #<?php echo $client_error_error_cat; ?></h3>
<p><?php echo $client_error_error_desc; ?></p>
<p><?php echo $client_error_error_debug; ?></p>
What do you get if you set this in your error page
Dont know exactly where I need to add that line of code, cause this is happening: http://prntscr.com/62mlqp
- - - Updated - - -
I think it is not fully coded yet, this is what I found in the GameClientMessageHandler.cs file:
Code:internal void AcceptPoll() {
uint key = this.Request.PopWiredUInt();
Poll poll = MercuryEnvironment.GetGame().GetPollManager().Polls[key];
ServerMessage serverMessage = new ServerMessage(Outgoing.PollQuestionsMessageComposer);
serverMessage.AppendUInt(poll.Id);
serverMessage.AppendString(poll.PollName);
serverMessage.AppendString(poll.Thanks);
serverMessage.AppendInt32(poll.Questions.Count);
foreach (PollQuestion current in poll.Questions)
{
int questionNumber = checked(poll.Questions.IndexOf(current) + 1);
current.Serialize(serverMessage, questionNumber);
}
this.Response = serverMessage;
this.SendResponse();
}
internal void RefusePoll()
{
uint num = this.Request.PopWiredUInt();
this.Session.GetHabbo().AnsweredPolls.Add(num);
using (IQueryAdapter queryreactor = MercuryEnvironment.GetDatabaseManager().getQueryreactor())
{
queryreactor.setQuery("INSERT INTO user_polldata VALUES (@userid , @pollid , 0 , '0' , '')");
queryreactor.addParameter("userid", this.Session.GetHabbo().Id);
queryreactor.addParameter("pollid", num);
queryreactor.runQuery();
}
}
internal void AnswerPoll()
{
uint num = this.Request.PopWiredUInt();
uint num2 = this.Request.PopWiredUInt();
int num3 = this.Request.PopWiredInt32();
List<string> list = new List<string>();
checked
{
for (int i = 0; i < num3; i++)
{
list.Add(this.Request.PopFixedString());
}
string text = string.Join("\r\n", list);
this.Session.GetHabbo().AnsweredPolls.Add(num);
using (IQueryAdapter queryreactor = MercuryEnvironment.GetDatabaseManager().getQueryreactor())
{
queryreactor.setQuery("INSERT INTO user_polldata VALUES (@userid , @pollid , @questionid , '1' , @answer)");
queryreactor.addParameter("userid", this.Session.GetHabbo().Id);
queryreactor.addParameter("pollid", num);
queryreactor.addParameter("questionid", num2);
queryreactor.addParameter("answer", text);
queryreactor.runQuery();
}
}
}
That link, rember it and go to your client file, then replace this:
"client.fatal.error.url" : "url-of-the-script-that-i-send.com",
"client.connection.failed.url" : "url-of-the-script-that-i-send.com",
Oh, working now! I received this error: http://prntscr.com/62o2yy
Now, put your habbo.swf in as3 sockerer and upload your habboscripts
Then i can search the structure and/or packet
OOoow okay, add my skype then i can speak dutch.
Anyone else got the working code? :/