Most visitors online was 8830 , on 6 Feb 2024
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!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);
}
}
You must be registered to see links
SWF Pack link is down..
Someone can upload?
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 )