[SERVICE] - Coding Commands

Page 5 of 5 FirstFirst 12345
Results 101 to 124 of 124
  1. #101
    Only God Can Judge Me Jiozx is offline
    MemberRank
    Nov 2009 Join Date
    Weird WorldLocation
    253Posts

    Re: [SERVICE] - Coding Commands

    Quote Originally Posted by ImNotSatan View Post
    The source has been releassed
    Oh right, but only the source for Phoenix 3.11, I guess.

  2. #102
    DO YOU HAVE THE POWER? Power is offline
    MemberRank
    Aug 2012 Join Date
    Haverhill, SuffLocation
    248Posts

    Re: [SERVICE] - Coding Commands

    Quote Originally Posted by BaasHotel View Post
    DarkPower, I want to almost beg you to help me with something, haha

    The empty command only deletes furniture from the items_users table, while it should also delete it from the items table. I found out that this is the only way the traxplayer won't start to bug after you delete some trax CDs and buy some new ones.

    The empty command makes use of

    PHP Code:
    internal void ClearItems()
    {
        
    using (IQueryAdapter adapter ButterflyEnvironment.GetDatabaseManager().getQueryreactor())
        {
            
    adapter.runFastQuery("DELETE FROM items_users WHERE user_id = " this.UserId);
        }


        
    this.mAddedItems.Clear();
        
    this.mRemovedItems.Clear();
        
    this.floorItems.Clear();
        
    this.wallItems.Clear();
        
    this.discs.Clear();
        
    this.isUpdated true;
        
    this.mClient.GetMessageHandler().GetResponse().Init(Outgoing.UpdateInventary);
        
    this.GetClient().GetMessageHandler().SendResponse();

    But I really don't know how to get the deleted ids and also delete those from the items table.

    Emu? :)

  3. #103
    LETS REACH 666 POSTS?!!!! ImNotSatan is offline
    MemberRank
    Apr 2013 Join Date
    google.devLocation
    573Posts

    Re: [SERVICE] - Coding Commands

    Quote Originally Posted by DarkPower View Post
    Emu? :)
    Baashotel uses SwiftEmu

  4. #104
    DO YOU HAVE THE POWER? Power is offline
    MemberRank
    Aug 2012 Join Date
    Haverhill, SuffLocation
    248Posts

    Re: [SERVICE] - Coding Commands

    Quote Originally Posted by BaasHotel View Post
    DarkPower, I want to almost beg you to help me with something, haha

    The empty command only deletes furniture from the items_users table, while it should also delete it from the items table. I found out that this is the only way the traxplayer won't start to bug after you delete some trax CDs and buy some new ones.

    The empty command makes use of

    PHP Code:
    internal void ClearItems()
    {
        
    using (IQueryAdapter adapter ButterflyEnvironment.GetDatabaseManager().getQueryreactor())
        {
            
    adapter.runFastQuery("DELETE FROM items_users WHERE user_id = " this.UserId);
        }


        
    this.mAddedItems.Clear();
        
    this.mRemovedItems.Clear();
        
    this.floorItems.Clear();
        
    this.wallItems.Clear();
        
    this.discs.Clear();
        
    this.isUpdated true;
        
    this.mClient.GetMessageHandler().GetResponse().Init(Outgoing.UpdateInventary);
        
    this.GetClient().GetMessageHandler().SendResponse();

    But I really don't know how to get the deleted ids and also delete those from the items table.
    i could do this as a command but it might lagg, depening on how many items the user has, i can code you somthing in php? for housekeeping which would be more effective

  5. #105
    En Français? Bjork is offline
    MemberRank
    Apr 2007 Join Date
    854Posts

    Re: [SERVICE] - Coding Commands

    Quote Originally Posted by BaasHotel View Post
    DarkPower, I want to almost beg you to help me with something, haha

    The empty command only deletes furniture from the items_users table, while it should also delete it from the items table. I found out that this is the only way the traxplayer won't start to bug after you delete some trax CDs and buy some new ones.

    The empty command makes use of

    PHP Code:
    internal void ClearItems()
    {
        
    using (IQueryAdapter adapter ButterflyEnvironment.GetDatabaseManager().getQueryreactor())
        {
            
    adapter.runFastQuery("DELETE FROM items_users WHERE user_id = " this.UserId);
        }


        
    this.mAddedItems.Clear();
        
    this.mRemovedItems.Clear();
        
    this.floorItems.Clear();
        
    this.wallItems.Clear();
        
    this.discs.Clear();
        
    this.isUpdated true;
        
    this.mClient.GetMessageHandler().GetResponse().Init(Outgoing.UpdateInventary);
        
    this.GetClient().GetMessageHandler().SendResponse();

    But I really don't know how to get the deleted ids and also delete those from the items table.
    Use JOIN query like:

    PHP Code:
    dbClient.runFastQuery("DELETE items, items_extradata, items_users " +
                                                 
    "FROM items_users " +
                                                 
    "INNER JOIN items ON (items.item_id = items_users.item_id) " +
                                                 
    "LEFT JOIN items_extradata ON (items_extradata.item_id = items.item_id) " +
                                                 
    "WHERE items_users.user_id = " UserId); 
    Not tested, but that's the idea.

  6. #106
    DO YOU HAVE THE POWER? Power is offline
    MemberRank
    Aug 2012 Join Date
    Haverhill, SuffLocation
    248Posts

    Re: [SERVICE] - Coding Commands

    Quote Originally Posted by Bjork View Post
    Use JOIN query like:

    PHP Code:
    dbClient.runFastQuery("DELETE items, items_extradata, items_users " +
                                                 
    "FROM items_users " +
                                                 
    "INNER JOIN items ON (items.item_id = items_users.item_id) " +
                                                 
    "LEFT JOIN items_extradata ON (items_extradata.item_id = items.item_id) " +
                                                 
    "WHERE items_users.user_id = " UserId); 
    Not tested, but that's the idea.
    Brilliant idea! never thought about a join query!
    learn something new everyday!

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

    Re: [SERVICE] - Coding Commands

    Quote Originally Posted by DarkPower View Post
    Brilliant idea! never thought about a join query!
    learn something new everyday!
    Learn some SQL. There is a lot you can do that comes in handy one day.

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

    Re: [SERVICE] - Coding Commands

    Quote Originally Posted by Bjork View Post
    Use JOIN query like:

    PHP Code:
    dbClient.runFastQuery("DELETE items, items_extradata, items_users " +
                                                 
    "FROM items_users " +
                                                 
    "INNER JOIN items ON (items.item_id = items_users.item_id) " +
                                                 
    "LEFT JOIN items_extradata ON (items_extradata.item_id = items.item_id) " +
                                                 
    "WHERE items_users.user_id = " UserId); 
    Not tested, but that's the idea.
    Oh that's brilliant, thank you! I'll be trying it out.

    EDIT:
    It works like a charm!
    Last edited by Gaby; 14-05-14 at 01:20 AM.

  9. #109
    Evil Italian Overlowrd Droppy is offline
    [Internal Coder]Rank
    Feb 2012 Join Date
    /home/droppyLocation
    2,080Posts

    Re: [SERVICE] - Coding Commands

    Quote Originally Posted by ImNotSatan View Post
    The source has been releassed
    Deobfuscated anyway... Ain't the best choice...

  10. #110
    LETS REACH 666 POSTS?!!!! ImNotSatan is offline
    MemberRank
    Apr 2013 Join Date
    google.devLocation
    573Posts

    Re: [SERVICE] - Coding Commands

    Quote Originally Posted by Droppy View Post
    Deobfuscated anyway... Ain't the best choice...
    Yes thats true, they did get a verry good finish of how to managed to get it :p

  11. #111
    Evil Italian Overlowrd Droppy is offline
    [Internal Coder]Rank
    Feb 2012 Join Date
    /home/droppyLocation
    2,080Posts

    Re: [SERVICE] - Coding Commands

    Quote Originally Posted by ImNotSatan View Post
    Yes thats true, they did get a verry good finish of how to managed to get it :p
    For sure! But still some cs files badly cleaned, some of them you may be interested to edit...

  12. #112
    LETS REACH 666 POSTS?!!!! ImNotSatan is offline
    MemberRank
    Apr 2013 Join Date
    google.devLocation
    573Posts

    [SERVICE] - Coding Commands

    [QUOTE=Bjork;8072714]Use JOIN query like:

    PHP Code:
    dbClient.runFastQuery("DELETE items, items_extradata, items_users " +
                                                 
    "FROM items_users " +
                                                 
    "INNER JOIN items ON (items.item_id = items_users.item_id) " +
                                                 
    "LEFT JOIN items_extradata ON (items_extradata.item_id = items.item_id) " +
                                                 
    "WHERE items_users.user_id = " UserId); 
    Wow nice this is sure handy :D
    Last edited by ImNotSatan; 16-05-14 at 10:59 AM.

  13. #113
    Account Upgraded | Title Enabled! PR0 is offline
    MemberRank
    Mar 2007 Join Date
    1,206Posts

    Re: [SERVICE] - Coding Commands

    Quote Originally Posted by DarkPower View Post
    All rights works fine for me *ankka emu*
    Freeze all ill have a look at
    Randomly cant walk on spots never seen that bug
    ill look in to :setmax
    i havent got a gift fix so i cant help there
    the dice thing is easy to fix

    #Threading Main Loops.
    #Esta opcion separa del MainGameLoop cada tarea a ejecutar en un proceso distinto.
    SeparatedTasksInMainLoops.enabled=true


    #Threading GameClientManager Loops.
    #Esta opcion separa del GameClientManager.OnCycle las tareas de forma lógica para aumentar rendimiento.
    SeparatedTasksInGameClientManager.enabled=true and make sure the cycle count is on 6 in the db

    dont touch any wired mate sorry

    working on custom models atm

    Damn.. should have specified. Would you be able to make the :allrights command compatible for PlusEMU please? :)

  14. #114
    Only God Can Judge Me Jiozx is offline
    MemberRank
    Nov 2009 Join Date
    Weird WorldLocation
    253Posts

    Re: [SERVICE] - Coding Commands

    can someone code :emptypets and :emptybots? I use PlusEMU r2. The :emptypets in the emulator doesn't work..

  15. #115
    LETS REACH 666 POSTS?!!!! ImNotSatan is offline
    MemberRank
    Apr 2013 Join Date
    google.devLocation
    573Posts

    Re: [SERVICE] - Coding Commands

    @

    Do you tink you could code an :emptybots and :emptypets

    Atm i got an empypets but it doesnt work really good cuz im a noob xD


    Atm i got this:
    internal void emptypets()
    {
    this.Session.GetHabbo().GetInventoryComponent().ClearPets();
    this.Session.SendNotif("Pets cleaned);
    }

    internal void ClearPets()
    {
    using (IQueryAdapter adapter = ButterflyEnvironment.GetDatabaseManager().getQueryreactor())
    {
    adapter.runFastQuery("DELETE FROM user_pets WHERE user_id = " + UserId + " AND room_id = 0;");
    }
    this.mAddedItems.Clear();
    this.mRemovedItems.Clear();
    this.floorItems.Clear();
    this.wallItems.Clear();
    this.discs.Clear();
    this.InventoryPets.Clear();
    this.isUpdated = true;
    this.mClient.GetMessageHandler().GetResponse().Init(Outgoing.UpdateInventary);
    this.GetClient().GetMessageHandler().SendResponse();
    }

    it works but i need to reload, could u make it so it update's

    Thx :D!!!!
    Last edited by ImNotSatan; 16-05-14 at 11:37 PM.

  16. #116
    En Français? Bjork is offline
    MemberRank
    Apr 2007 Join Date
    854Posts

    Re: [SERVICE] - Coding Commands

    Quote Originally Posted by ImNotSatan View Post
    @DarkPower

    Do you tink you could code an :emptybots and :emptypets

    Atm i got an empypets but it doesnt work really good cuz im a noob xD


    Atm i got this:
    internal void emptypets()
    {
    this.Session.GetHabbo().GetInventoryComponent().ClearPets();
    this.Session.SendNotif("Pets cleaned);
    }

    internal void ClearPets()
    {
    using (IQueryAdapter adapter = ButterflyEnvironment.GetDatabaseManager().getQueryreactor())
    {
    adapter.runFastQuery("DELETE FROM user_pets WHERE user_id = " + UserId + " AND room_id = 0;");
    }
    this.mAddedItems.Clear();
    this.mRemovedItems.Clear();
    this.floorItems.Clear();
    this.wallItems.Clear();
    this.discs.Clear();
    this.InventoryPets.Clear();
    this.isUpdated = true;
    this.mClient.GetMessageHandler().GetResponse().Init(Outgoing.UpdateInventary);
    this.GetClient().GetMessageHandler().SendResponse();
    }

    it works but i need to reload, could u make it so it update's

    Thx :D!!!!
    Try this ?

    Code:
    internal void emptypets()
            {
                   Session.GetHabbo().GetInventoryComponent().ClearPets();
       Session.SendMessage(Session.GetHabbo().GetInventoryComponent().SerializePetInventory());
                   Session.SendNotif("Pets cleaned");
            }

  17. #117
    LETS REACH 666 POSTS?!!!! ImNotSatan is offline
    MemberRank
    Apr 2013 Join Date
    google.devLocation
    573Posts

    Re: [SERVICE] - Coding Commands

    Quote Originally Posted by Bjork View Post
    Try this ?

    Code:
    internal void emptypets()
            {
                   Session.GetHabbo().GetInventoryComponent().ClearPets();
       Session.SendMessage(Session.GetHabbo().GetInventoryComponent().SerializePetInventory());
                   Session.SendNotif("Pets cleaned");
            }
    Thx :D

    should i keep this?

    this.mAddedItems.Clear();
    this.mRemovedItems.Clear();
    this.floorItems.Clear();
    this.wallItems.Clear();
    this.discs.Clear();
    this.InventoryPets.Clear();
    this.isUpdated = true;
    this.mClient.GetMessageHandler().GetResponse().Init(Outgoing.UpdateInventary);
    this.GetClient().GetMessageHandler().SendResponse();

    Elso what should i use for bots?

    EDIT:
    nvm :P

    this.Session.SendMessage(Session.GetHabbo().GetInventoryComponent().SerializeBotInventory();

    EDIT 2:
    totally works now thx :)!


    EDIT3 :

    do you may know how to make a command like

    :reloadroomlist

    (reloads the rooms of a user)
    Last edited by ImNotSatan; 17-05-14 at 12:01 AM.

  18. #118
    Valued Member VabboWorld is offline
    MemberRank
    Oct 2013 Join Date
    FranceLocation
    124Posts

    Re: [SERVICE] - Coding Commands

    Please a transform for Swift/BcStorm ( Sorry i'm french x) ).

  19. #119
    Apprentice Harun9 is offline
    MemberRank
    Dec 2012 Join Date
    7Posts

    Re: [SERVICE] - Coding Commands

    Giveranks to r63

  20. #120
    DO YOU HAVE THE POWER? Power is offline
    MemberRank
    Aug 2012 Join Date
    Haverhill, SuffLocation
    248Posts

    Re: [SERVICE] - Coding Commands

    Quote Originally Posted by VabboWorld View Post
    Please a transform for Swift/BcStorm ( Sorry i'm french x) ).
    i tried to do this a failed terrible <3 i would love this also. and harun9 and what emu if it phoenix no

  21. #121
    LETS REACH 666 POSTS?!!!! ImNotSatan is offline
    MemberRank
    Apr 2013 Join Date
    google.devLocation
    573Posts

    Re: [SERVICE] - Coding Commands

    Quote Originally Posted by DarkPower View Post
    i tried to do this a failed terrible <3 i would love this also. and harun9 and what emu if it phoenix no
    Do you know how to make like :updatemyroomlist

    ?

  22. #122
    DO YOU HAVE THE POWER? Power is offline
    MemberRank
    Aug 2012 Join Date
    Haverhill, SuffLocation
    248Posts

    Re: [SERVICE] - Coding Commands

    there something released online somewhere for swift

  23. #123
    LETS REACH 666 POSTS?!!!! ImNotSatan is offline
    MemberRank
    Apr 2013 Join Date
    google.devLocation
    573Posts

    Re: [SERVICE] - Coding Commands

    Quote Originally Posted by DarkPower View Post
    there something released online somewhere for swift
    On ragezone?

  24. #124
    Proficient Member rockster34 is offline
    MemberRank
    Jan 2013 Join Date
    MarsLocation
    167Posts

    Re: [SERVICE] - Coding Commands

    Fly, Kiss, Lay For GTE ?

    Plz filename to becuz i don't work so much with gte



Page 5 of 5 FirstFirst 12345

Advertisement