Help with various fixes

Results 1 to 24 of 24
  1. #1
    Member Chase Bergroth is offline
    MemberRank
    Oct 2013 Join Date
    87Posts

    cool Help with various fixes

    Hello I have a few problems and problems are always coming up so I decided to put all my problems in this thread and hopefully you guys can help :)
    Thanks

    1.Everytime I add furni to my retro, the cata page I put it in disconnects when I look at it, what is the problem
    here?

    2. I cannot plant seeds, I can buy them and place them but they do not plant in the ground.

    3. how to make a votingapi for illumcms?

    I will post anymore problem I come across any help is much appreciated.
    Last edited by Chase Bergroth; 08-11-13 at 05:39 PM.


  2. #2
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,613Posts

    Re: Help with various fixes

    1: probably some incorrect packet header.
    2: DNS gets updated once in a while. Changes arent immediately in effect.
    3: Its not coded.
    4: You need to edit the swf. You can do that with trillix or any other flash decompiler.

  3. #3
    Member Chase Bergroth is offline
    MemberRank
    Oct 2013 Join Date
    87Posts

    Re: Help with various fixes

    1. Any idea on how I would fix this? could I download a nice dice , just the swf and sql?.
    2. Ive waited overnight, it will change and work maybe for a few hours, longest was about 16 hours and then it will revert back to root when I go to the Next Hotel - Make friends, join the fun, get noticed!, when I have it set to my IP it works fine but it says the ip in the address.
    3.would you know anywhere I could find this?
    4.Is that the habbo.swf? I have a decompiler.

  4. #4
    Member Japaojp is offline
    MemberRank
    Nov 2011 Join Date
    BrazilLocation
    95Posts

    Re: Help with various fixes

    [SWIFT] FIX FOR DICE:

    Find it in incoming.cs
    Code:
    Incoming.RunDice = 29;
    And replace for:
    Code:
    Incoming.RunDice = 22;
    And bump! Dices work :D

  5. #5
    Member Chase Bergroth is offline
    MemberRank
    Oct 2013 Join Date
    87Posts

    Re: Help with various fixes

    I have tried this fix and it seemed to do nothing.. I will try it again haha,.

  6. #6
    Gaby is offline
    Grand MasterRank
    Apr 2013 Join Date
    Viva HollandiaLocation
    1,607Posts

    Re: Help with various fixes

    Quote Originally Posted by Chase Bergroth View Post
    I have tried this fix and it seemed to do nothing.. I will try it again haha,.
    You need to debug the emulator with visual c#.

  7. #7
    Member Chase Bergroth is offline
    MemberRank
    Oct 2013 Join Date
    87Posts

    Re: Help with various fixes

    Sounds difficult, how do I go about this? If I have never done it would I be able to do it and how?

  8. #8
    Gaby is offline
    Grand MasterRank
    Apr 2013 Join Date
    Viva HollandiaLocation
    1,607Posts

    Re: Help with various fixes

    Quote Originally Posted by Chase Bergroth View Post
    Sounds difficult, how do I go about this? If I have never done it would I be able to do it and how?
    Open your emulator with visual c#, do Japaojp's fix and then click on debug.

  9. #9
    Member Chase Bergroth is offline
    MemberRank
    Oct 2013 Join Date
    87Posts

    Re: Help with various fixes

    I was trying to use japaojps swfs and db prior to the one im using now and could not get it to work? are you talking about http://forum.ragezone.com/f353/relea...-edits-931655/ ?

  10. #10
    Gaby is offline
    Grand MasterRank
    Apr 2013 Join Date
    Viva HollandiaLocation
    1,607Posts

    Re: Help with various fixes

    Quote Originally Posted by Chase Bergroth View Post
    I was trying to use japaojps swfs and db prior to the one im using now and could not get it to work? are you talking about http://forum.ragezone.com/f353/relea...-edits-931655/ ?
    There's nothing wrong with your swfs and database, you need to edit your emulator. If you still don't understand me, please just use phoenix.

  11. #11
    Member Chase Bergroth is offline
    MemberRank
    Oct 2013 Join Date
    87Posts

    Re: Help with various fixes

    yeah i understand that, just not sure on what japaojps's fix is, the link i posted is labeled swift fixes but its swfs and db thats why i was confused for a minute

  12. #12
    Member Japaojp is offline
    MemberRank
    Nov 2011 Join Date
    BrazilLocation
    95Posts

    Re: Help with various fixes

    My fix is for your emulator.
    Open with visual studio your source project of emulator and find the file incoming.cs
    After, do what I say in the thread. After this, debug, pressing F5!

    I can't explain better than this..

  13. #13
    Member Chase Bergroth is offline
    MemberRank
    Oct 2013 Join Date
    87Posts

    Re: Help with various fixes

    EDIT:ill get back to you soon i didnt see the fix posted earlier sorry.

  14. #14
    Member Chase Bergroth is offline
    MemberRank
    Oct 2013 Join Date
    87Posts

    Re: Help with various fixes

    ok ive opened up the project with visual c# I cant find how to get to incoming.cs in the visual editor unless i open it i have opened it and tried changed what I need, but I cannot debug.

    also how can i make a votingapi for illuminaCMS>

  15. #15
    Member Japaojp is offline
    MemberRank
    Nov 2011 Join Date
    BrazilLocation
    95Posts

    Re: Help with various fixes

    Please, print your errors.

  16. #16
    Member Chase Bergroth is offline
    MemberRank
    Oct 2013 Join Date
    87Posts

    Re: Help with various fixes

    I am not getting any errors, I have opened the source up with visual c#, I opened the incoming.cs to change the dice line, then I went back to visual c# and it wont let me debug it is grayyed out.
    With any changes to the .cs files do you need to debug?

  17. #17
    Member Japaojp is offline
    MemberRank
    Nov 2011 Join Date
    BrazilLocation
    95Posts

    Re: Help with various fixes

    Yes, do you. Grayed? Print it, I can't understand u.

  18. #18
    Member Chase Bergroth is offline
    MemberRank
    Oct 2013 Join Date
    87Posts

    Re: Help with various fixes

    Sorry I was opening the wrong c# file, I have noe debugged and it has gone to opening up my emulator, is this all that needs to be done?

    thankyouvery much I got the gates and dice working now:D

    now I have these problems left at the moment.

    1.Everytime I add furni to my retro, the cata page I put it in disconnects when I look at it, what is the problem
    here?

    2. I cannot plant seeds, I can buy them and place them but they do not plant in the ground.

    3. how to make a votingapi for illumcms?

    4. gifts dont work

  19. #19
    Member Japaojp is offline
    MemberRank
    Nov 2011 Join Date
    BrazilLocation
    95Posts

    Re: Help with various fixes

    1 - IDK
    2 - Not coded
    3 - IDK what are you talking about, but I don't think I know it
    4 - Not coded - I have it, but isn't a good fix

  20. #20
    Member Chase Bergroth is offline
    MemberRank
    Oct 2013 Join Date
    87Posts

    Re: Help with various fixes

    1. any ideas on what could cause this?
    2. do you know anywhere I can get the coding for this? or lost cause?
    3. Voting APIs are for voting for retro lists when you open the client
    4. I have found this fix but in the first lot in catalog.cs I cant find excatly which one he wants me to change i have 2, i have tried them both and they dont seem to work so im not sure what im doing wrong.
    Spoiler:
    In: Catalog.cs Click in "EDIT" -> Go to... and digit: 1144, press Ok.
    Search for: if (IsGift)
    And, replace all if by:
    Spoiler:

    PHP Code:
                                    if (IsGift)                                {                                    int showSender 1;                                    if (isAnonymous == false)                                        showSender 0;                                    GameClient clientByUserID ButterflyEnvironment.GetGame().GetClientManager().GetClientByUserID(userID);                                    string purchaseuser;                                    string BuyerUsername Session.GetHabbo().Username;                                    uint useridtosend Convert.ToUInt32(clientByUserID.GetHabbo().Id);                                    uint num7 0;                                    if (showSender == 0)                                    {                                        purchaseuser "";                                    }                                    else                                    {                                        purchaseuser " - " BuyerUsername ".";                                    }                                    Item giftCase ButterflyEnvironment.GetGame().GetItemManager().GetItemSprite(giftSprite);                                    ButterflyEnvironment.GetGame().GetAchievementManager().ProgressUserAchievement(Session"ACH_GiftGiver"1);                                    ButterflyEnvironment.GetGame().GetAchievementManager().ProgressUserAchievement(clientByUserID"ACH_GiftReceiver"1);
                                        
    UserItem item3 ButterflyEnvironment.getHabboForId(userID).GetInventoryComponent().AddNewItem(0giftCase.ItemId" " giftMessage "" purchaseuser ""truefalse0""useridtosend0);                                                                        using (adapter ButterflyEnvironment.GetDatabaseManager().getQueryreactor())                                    {                                        adapter.setQuery("INSERT INTO user_gifts (gift_id,page_id,item_id,extradata,target_name,message,ribbon,color,gift_sprite,show_sender,rare_id,inventory_id) VALUES " +                                            "(" item3.Id "," PageId "," num8 ",@extradata, @name, @message," giftRibbon "," giftColor "," giftSprite "," showSender "," limitedSelled ",@inventory_id)");                                        adapter.addParameter("name"giftReceiverName);                                        adapter.addParameter("message"giftMessage);                                        adapter.addParameter("extradata"ExtraData);                                        adapter.addParameter("inventory_id"item3.Id);                                        adapter.runQuery();                                    }
                                        if (
    clientByUserID != null)                                    {                                        clientByUserID.SendNotif(LanguageLocale.GetValue("catalog.gift.received") + Session.GetHabbo().Username);                                        clientByUserID.GetHabbo().GetInventoryComponent().SendFloorInventoryUpdate();                                        clientByUserID.GetMessageHandler().GetResponse().Init(Outgoing.SendPurchaseAlert);                                        clientByUserID.GetMessageHandler().GetResponse().AppendInt32(1);                                        clientByUserID.GetMessageHandler().GetResponse().AppendInt32(1);                                        clientByUserID.GetMessageHandler().GetResponse().AppendInt32(1);                                        clientByUserID.GetMessageHandler().GetResponse().AppendInt32(item3.Id);                                        clientByUserID.GetMessageHandler().SendResponse();
                                            
    clientByUserID.GetMessageHandler().GetResponse().Init(Outgoing.UpdateInventary);                                        clientByUserID.GetMessageHandler().SendResponse();
                                            
    /*InventoryComponent inventoryComponent = clientByUserID.GetHabbo().GetInventoryComponent();                                        if (inventoryComponent != null)                                        {                                            inventoryComponent.RunDBUpdate();                                        }*/                                    }                                    Session.SendNotif(LanguageLocale.GetValue("catalog.gift.sent"));                                } 



    Now, in: GameClientMessageHandler.cs,
    Search by: internal void OpenPresent()
    And, replace all void to:
    Spoiler:

    internal void OpenPresent()
    {
    Room room = ButterflyEnvironment.GetGame().GetRoomManager().GetRoom(this.Session.GetHabbo().CurrentRoomId);
    if ((room != null) && room.CheckRights(this.Session, true))
    {
    uint pId = this.Request.PopWiredUInt();
    RoomItem item = room.GetRoomItemHandler().GetItem(pId);
    if (item != null)
    {
    IQueryAdapter adapter;
    item.MagicRemove = true;
    ServerMessage message = new ServerMessage(Outgoing.UpdateItemOnRoom);
    item.Serialize(message, room.OwnerId);
    room.SendMessage(message);
    DataRow row = null;
    using (adapter = ButterflyEnvironment.GetDatabaseManager().getQueryreactor())
    {
    adapter.setQuery("SELECT * FROM user_gifts WHERE gift_id = " + item.Id);
    row = adapter.getRow();


    }
    if (row == null)
    {
    room.GetRoomItemHandler().RemoveFurniture(this.Session, item.Id);
    }
    else
    {
    Item item2 = ButterflyEnvironment.GetGame().GetItemManager().GetItem(Convert.ToUInt32(row["item_id"]));
    if (item2 == null)
    {
    room.GetRoomItemHandler().RemoveFurniture(this.Session, item.Id);
    }
    else if (item2.Type.ToString().ToLower().Equals("s") && (item2.InteractionType != InteractionType.teleport))
    {
    room.GetRoomItemHandler().RemoveFurniture(this.Session, item.Id);


    using (adapter = ButterflyEnvironment.GetDatabaseManager().getQueryreactor())
    {
    adapter.runFastQuery(string.Concat(new object[] { "UPDATE items SET base_id = '", row["item_id"], "' WHERE item_id = ", item.Id }));


    adapter.setQuery(string.Concat(new object[] { "UPDATE items_extradata SET data = '" + row["extradata"] + "' WHERE item_id = " + item.Id }));
    adapter.addParameter("extradata", row["extradata"]);
    adapter.runQuery();


    adapter.runFastQuery("DELETE FROM user_gifts WHERE gift_id = " + item.Id);
    }


    string s = item.GetBaseItem().Type.ToString().ToLower();
    string extraData = row["extradata"].ToString();
    item.BaseItem = Convert.ToUInt32(row["item_id"]);
    item.refreshItem();
    item.ExtraData = extraData;
    if (!room.GetRoomItemHandler().SetFloorItem(this.Session, item, item.GetX, item.GetY, item.Rot, true, false, true))
    {
    this.Session.SendNotif("Failed to create your gift!");
    }
    else
    {
    this.Response.Init(Outgoing.OpenGift);
    this.Response.AppendString(item2.Type.ToString());
    this.Response.AppendInt32(item2.SpriteId);
    this.Response.AppendString(item2.Name);
    this.Response.AppendInt32(item.Id);
    this.Response.AppendString(s);
    this.Response.AppendBoolean(true);
    this.Response.AppendString(extraData);
    this.SendResponse();
    }
    }
    else
    {
    room.GetRoomItemHandler().RemoveFurniture(this.Session, item.Id);
    using (adapter = ButterflyEnvironment.GetDatabaseManager().getQueryreactor())
    {
    adapter.runFastQuery("DELETE FROM user_gifts WHERE gift_id = " + item.Id);
    }
    this.Session.GetMessageHandler().GetResponse().Init(Outgoing.SendPurchaseAlert);
    this.Session.GetMessageHandler().GetResponse().AppendInt32(1);
    int i = 2;
    if (item2.Type.ToString().ToLower().Equals("s"))
    {
    if (item2.InteractionType == InteractionType.pet)
    {
    i = 3;
    }
    else
    {
    i = 1;
    }
    }
    this.Session.GetMessageHandler().GetResponse().AppendInt32(i);
    List<UserItem> list = ButterflyEnvironment.GetGame().GetCatalog().DeliverItems(this.Session, item2, (int)row["amount"], (string)row["extradata"], 0, 0);
    this.Session.GetMessageHandler().GetResponse().AppendInt32(list.Count);
    foreach (UserItem item3 in list)
    {
    this.Session.GetMessageHandler().GetResponse().AppendInt32(item3.Id);
    }
    this.Session.GetMessageHandler().SendResponse();
    this.Session.GetHabbo().GetInventoryComponent().UpdateItems(true);
    //this.Session.GetMessageHandler().GetResponse().Init(Outgoing.UpdateInventary);
    //this.Session.GetMessageHandler().SendResponse();
    }
    }
    }
    }
    this.Session.GetMessageHandler().GetResponse().Init(Outgoing.UpdateInventary);
    this.Session.GetMessageHandler().SendResponse();



    To enable the gift purchase, edit this:
    In Incoming.cs,
    Search by: Incoming.PurchaseGift = 0x0901
    Replace by: Incoming.PurchaseGift = 0x0900




    For the present don't bug stay in inventory and when placing it on the ground, do this:
    In: GameClientMessageHandler.cs, Search by: internal void PlaceItem()
    And, replace all void PlaceItem, by:


    Spoiler:

    internal void PlaceItem()
    {
    Room pRoom = ButterflyEnvironment.GetGame().GetRoomManager().GetRoom(this.Session.GetHabbo().CurrentRoomId);

    if ((pRoom != null) && (pRoom.CheckRights(this.Session)))
    {
    string str = this.Request.PopFixedString();
    string[] strArray = str.Split(new char[] { ' ' });
    uint id = uint.Parse(strArray[0].Replace("-", ""));
    UserItem item = this.Session.GetHabbo().GetInventoryComponent().GetItem(id);
    if (item != null)
    {
    RoomItem item2;
    if (item.GetBaseItem().InteractionType == InteractionType.dimmer)
    {
    MoodlightData moodlightData = pRoom.MoodlightData;
    if ((moodlightData != null) && (pRoom.GetRoomItemHandler().GetItem(moodlightData.ItemId) != null))
    {
    this.Session.SendNotif(LanguageLocale.GetValue("user.maxmoodlightsreached"));
    }
    }


    if (strArray[1].StartsWith(":"))
    {
    try
    {
    WallCoordinate wallCoord = new WallCoordinate(":" + str.Split(new char[] { ':' })[1]);
    item2 = new RoomItem(item.Id, pRoom.RoomId, item.BaseItem, item.ExtraData, wallCoord, pRoom, item.Group_data, item.RareId, item.placedBy);
    if (pRoom.GetRoomItemHandler().SetWallItem(this.Session, item2))
    {
    this.Session.GetHabbo().GetInventoryComponent().RemoveItem(id, true);
    }
    }
    catch
    {
    }
    }
    else
    {
    try
    {
    int x = int.Parse(strArray[1]);
    int y = int.Parse(strArray[2]);
    int rot = int.Parse(strArray[3]);
    if (this.Session.GetHabbo().forceRot > -1)
    {
    rot = this.Session.GetHabbo().forceRot;
    }
    item2 = new RoomItem(item.Id, pRoom.RoomId, item.BaseItem, item.ExtraData, x, y, 0.0, rot, pRoom, item.Group_data, item.RareId, item.placedBy);
    if (pRoom.GetRoomItemHandler().SetFloorItem(this.Session, item2, x, y, rot, true, false, true))
    {
    this.Session.GetHabbo().GetInventoryComponent().RemoveItem(id, true);
    }
    if (WiredUtillity.TypeIsWired(item.GetBaseItem().InteractionType))
    {
    WiredSaver.HandleDefaultSave(item.Id, pRoom);
    }
    }
    catch (Exception ex)
    {
    Logging.LogCriticalException(ex.ToString());
    }
    }
    }
    }
    this.Session.GetMessageHandler().GetResponse().Init(Outgoing.UpdateInventary);
    this.Session.GetMessageHandler().SendResponse();
    }


  21. #21
    Member Japaojp is offline
    MemberRank
    Nov 2011 Join Date
    BrazilLocation
    95Posts

    Re: Help with various fixes

    1. I have no idea.
    2. A programmer need to code it yet...
    3. IDK
    4. Don't use the fix :D

  22. #22
    Member Chase Bergroth is offline
    MemberRank
    Oct 2013 Join Date
    87Posts

    Re: Help with various fixes

    ok I put a few fixes last night now my :tele command isnt working? help please=]
    Last edited by Chase Bergroth; 09-11-13 at 03:46 AM.

  23. #23
    Member Japaojp is offline
    MemberRank
    Nov 2011 Join Date
    BrazilLocation
    95Posts

    Re: Help with various fixes

    Do you have rank for it?

  24. #24
    Member Chase Bergroth is offline
    MemberRank
    Oct 2013 Join Date
    87Posts

    Re: Help with various fixes

    Yes I have it set to rank 7



Advertisement