Most visitors online was 12720 , on 2 May 2024
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature currently requires accessing the site using the built-in Safari browser.
I'm having the same issue.Why doesn't the Room Alerts work?
internal void SetRelationshipsStatus() {
uint requester = this.Request.PopWiredUInt();
uint newStatus = this.Request.PopWiredUInt();
if (this.Session.GetHabbo().GetRelationshipComposer().GetRelationshipList.ContainsKey(requester))
{
if (this.Session.GetHabbo().GetRelationshipComposer().GetRelationshipList[requester] != newStatus)
{
this.Response = this.Session.GetHabbo().GetRelationshipComposer().SerializeRelationshipUpdate(requester, newStatus);
this.SendResponse();
}
}
else if ((!this.Session.GetHabbo().GetRelationshipComposer().GetRelationshipList.ContainsKey(requester)) && (newStatus != 0))
{
this.Response = this.Session.GetHabbo().GetRelationshipComposer().SerializeRelationshipUpdate(requester, newStatus);
this.SendResponse();
}
else
return;
}
internal void RelationshipStatusUpdate(uint targetID, uint newRelationshipStatus) {
if (newRelationshipStatus != 0)
{
if (this.HasRelationshipWith(targetID))
{
using (IQueryAdapter adapter = ButterflyEnvironment.GetDatabaseManager().getQueryreactor())
{
adapter.setQuery("UPDATE user_relationships SET relationshipstatus=@newstatus WHERE requester_id = @sender AND target_id = @target LIMIT 1");
adapter.addParameter("sender", this.UserID);
adapter.addParameter("target", targetID);
adapter.addParameter("newstatus", newRelationshipStatus);
adapter.runQuery();
}
relationshipStatusIndex[composedRelations[targetID] - 1]--;
composedRelations[targetID] = newRelationshipStatus;
relationshipStatusIndex[newRelationshipStatus - 1]++;
}
else
{
using (IQueryAdapter adapter = ButterflyEnvironment.GetDatabaseManager().getQueryreactor())
{
adapter.setQuery("INSERT INTO user_relationships (requester_id,target_id,relationshipstatus) VALUES (@sender,@target,@newstatus)");
adapter.addParameter("sender", this.UserID);
adapter.addParameter("target", targetID);
adapter.addParameter("newstatus", newRelationshipStatus);
adapter.runQuery();
}
relationshipStatusIndex[newRelationshipStatus - 1]++;
this.composedRelations.Add(targetID, newRelationshipStatus);
}
}
else
{
using (IQueryAdapter adapter = ButterflyEnvironment.GetDatabaseManager().getQueryreactor())
{
adapter.setQuery("DELETE FROM user_relationships WHERE requester_id = @sender AND target_id = @target LIMIT 1");
adapter.addParameter("sender", this.UserID);
adapter.addParameter("target", targetID);
adapter.runQuery();
}
relationshipStatusIndex[composedRelations[targetID] - 1]--;
this.composedRelations.Remove(targetID);
}
}
weird the groups worked like good on the old SwiftEMU ehm...
Still thinking why you need to restart your emu for the groups.
Someone a idea?
Yes. It's that Quackster's patch for memory leak. Remove It and groups will work fine. However, it's leaky so I might complete that patch for a full task cycle
@AKllX Can you post a final edition with bots and horse fix thx <3
I use one from Leenster's BCStorm edition + Swift Emu Bots + My Relationships.
// Working on guilds right now. It seems that I got them loading currectly, but not being able to edit them right after creating. Also, must create a system to dispose guilds that have been on Idle State ( a.k.a memory cleaning )