Welcome!

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!

[RELEASE] Swift Emulator - Fixes / Edits

Status
Not open for further replies.
Experienced Elementalist
Joined
Nov 26, 2011
Messages
294
Reaction score
17
@Dokotrs

Effects goes in users rentables inventory, which isn't coded as far as I know. This quests thing can be changed by replacing your
public void ActiveEndQuest(GameClient Session) with this one:

Code:
public void ActiveEndQuest(GameClient Session)        {
            int id = Session.GetHabbo().LastQuestId + 1;
            QuestManager questById = ButterflyEnvironment.GetGame().GetQuestManager().GetQuestById(Session.GetHabbo().LastQuestId);
            QuestManager manager2 = ButterflyEnvironment.GetGame().GetQuestManager().GetQuestById(id);
            if ((manager2 != null) && (questById.Category == manager2.Category))
            {
                IQueryAdapter adapter;
                Session.GetHabbo().ActiveQuestNow = true;
                Session.GetHabbo().QuestActivate = manager2.Id;
                if (!Session.GetHabbo().QuestsStates.ContainsKey(manager2.Id))
                {
                    Session.GetHabbo().QuestsStates.Add(manager2.Id, 0);
                    Habbo habbo = Session.GetHabbo();
                    object questsS = habbo.QuestsS;
                    habbo.QuestsS = string.Concat(new object[] { questsS, manager2.Id, "-", 0, ";" });
                    using (adapter = ButterflyEnvironment.GetDatabaseManager().getQueryreactor())
                    {
                        adapter.runFastQuery(string.Concat(new object[] { "UPDATE users SET queststates = '", Session.GetHabbo().QuestsS, "' WHERE id = '", Session.GetHabbo().Id, "'" }));
                    }
                }
                manager2.UsersId.Add(Session.GetHabbo().Id);
                manager2.UsersActivate = manager2.UsersActivate + Session.GetHabbo().Id + ";";
                using (adapter = ButterflyEnvironment.GetDatabaseManager().getQueryreactor())
                {
                    adapter.runFastQuery(string.Concat(new object[] { "UPDATE quests SET usersactivate = '", manager2.UsersActivate, "' WHERE id = '", manager2.Id, "'" }));
                }
                this.LoadQuests(Session);
                ServerMessage message = new ServerMessage(Outgoing.ActivateQuest);
                message.AppendString(manager2.Category);
                message.AppendInt32(ButterflyEnvironment.GetGame().GetQuestManager().MyQuestsCompleted(manager2.Category, Session.GetHabbo()).Count);
                message.AppendInt32(ButterflyEnvironment.GetGame().GetQuestManager().QuestsInCategory(manager2.Category).Count);
                message.AppendInt32(manager2.Id);
                message.AppendBoolean(ButterflyEnvironment.GetGame().GetQuestManager().IsActivated(manager2.Id, Session.GetHabbo()));
                message.AppendString(manager2.Type);
                message.AppendString(manager2.ExtraValue);
                message.AppendString(manager2.SecondType);
                if (Session.GetHabbo().QuestsStates.ContainsKey(manager2.Id))
                {
                    message.AppendInt32(Session.GetHabbo().QuestsStates[manager2.Id]);
                }
                else
                {
                    message.AppendInt32(0);
                }
                message.AppendInt32(manager2.CountFurnis);
                message.AppendInt32(ButterflyEnvironment.GetGame().GetQuestManager().GetIntValue(manager2.Category));
                message.AppendString("set_kuurna");
                message.AppendString("MAIN_CHAIN");
                message.AppendBoolean(true);
                Session.SendMessage(message);
            }
        }

Achievements button is now handled by some other way in Sulake's latest hotels so I can't packetlog it to fix. I get only the event handler logger when I click the button :
3450: [0][0][0]%z[0][6]MeMenu[0][5]click[0][12]achievements[0][0][0][0][0][0]
I would have to reverse the .swf to code it, which doesn't worth the effort .

If this code need to be replaced in Butterfly->Habbo Hotel-> Quests-> Quests.cs , then it's not working.

:/
 
Experienced Elementalist
Joined
Nov 26, 2011
Messages
294
Reaction score
17
Who needs Habbo Way? Yeah it could be useful but I wouldn't add it even if I had all the code laid out for me :p

In this way can make someone to read some info which I can write there. And I like that client looks exactly the same as Habbo.

2
 
Newbie Spellweaver
Joined
Jun 6, 2013
Messages
11
Reaction score
2
Bug :

- When we click on "Habbo Club Join", a windows open and when we click on "Buy", the subscribtion doesn't work.

a - [RELEASE] Swift Emulator - Fixes / Edits - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Newbie Spellweaver
Joined
Jan 19, 2012
Messages
47
Reaction score
1
here is a another swf

are organized
 
Newbie Spellweaver
Joined
Jun 6, 2013
Messages
11
Reaction score
2
Anyone know where I can change the default selection category of navigator where I login into the client?

I want to change Promoted by Publics..

2 - [RELEASE] Swift Emulator - Fixes / Edits - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Skilled Illusionist
Joined
Aug 16, 2007
Messages
343
Reaction score
263
I'm now taking sugestions for revision 5. Make a list and order it by priority. Broken stuff before new stuff.
 
Newbie Spellweaver
Joined
Jun 6, 2013
Messages
11
Reaction score
2
I'm now taking sugestions for revision 5. Make a list and order it by priority. Broken stuff before new stuff.


  • Change the default category selected (Promoted) on navigator by "Public".
  • Correct the bug when user click on "Buy" at "Habbo Club Join" down "Duckets".
  • Correct "My effects" because effects doesn't work
  • Correct the bug when user click on the heart on Room Info for add the room at favorite. (A message says : You'r list is full ....)

I know my english is a little bit bad, sorry I'm from another country :junglejane:
 
Newbie Spellweaver
Joined
Apr 18, 2013
Messages
56
Reaction score
3
Ehm here some bugss that i couldn't fix..


- Horses (Think about Saddles , Tints and Add ons)
- Monster Plants (Would be wonderfull if it's going to work at the next revision )
- Would be cool if the superban command will work :)
- Quests are not fully coded you still need to reload the room for the result.


Also look at the buggs that posted by Kapowz


Also found an other weird bugg on LTD (Limited Edition).
If you by one it's like you buy of every LTD one furni.


Looking forward to the next revision.
 
Experienced Elementalist
Joined
Nov 26, 2011
Messages
294
Reaction score
17
Maybe in future you can make this emu work with newest habbo.swf?

2
 
R.I.P Millercent
Loyal Member
Joined
Nov 6, 2012
Messages
2,230
Reaction score
314
To add in R5:

- Remove all things that aren't coded fully/necessary
- Look into common bugs that people are getting (Monster plants not working, buy habbo club problem)
- Room promotions
All I can think of so far :p
 
Run, but I'll find you.
Joined
Jan 29, 2011
Messages
777
Reaction score
327
Ability to add furni to the Rentables area in the inventory :D
 
Status
Not open for further replies.
Back
Top