GTE Custom Commands

Results 1 to 6 of 6
  1. #1
    Enthusiast JayCustomDev is offline
    MemberRank
    May 2016 Join Date
    26Posts

    idea GTE Custom Commands

    Hey Ragezone,

    So I have not posted yet on Ragezone but from what I notice usually Ragezone has better help and support for development, and I really want to figure this one out. So I have created a custom command that when you say
    :stack <item ID> <Z>
    It will adjust that item to the Z, and usually I have no problems coding custom commands and I have made a good number of them myself, but I have ran into something I have never done before.

    So when you say something like
    :coins x 500
    It will change x into the the person you have clicked. I would like to make it so that I can say
    :stack y 5
    And it will automatically turn Y or whatever letter I choose into the item ID. I have searched for quite a bit of time now and I can't seem to find it.

    My other solution is , when you are staff you are able to see the Item ID in the description of the furniture, and if I could make it so that normal users can see the ID , then they can just type the ID out. I have also done some immense research on that and have found this in my habbo.swf:
    Code:
    <text x="0" y="260" width="170" height="40" params="16" style="0" name="furni_details_text" caption="Furni%20details">
                      <variables>
                        <var key="text_color" value="0xffffff" type="hex"/>
                        <var key="mouse_wheel_enabled" value="false" type="Boolean"/>
                        <var key="word_wrap" value="true" type="Boolean"/>
                      </variables>
                    </text>
    furni_details_text is the id for the furniture as shown below:


    I have searched for furni_details_text in the external_variables / external_flash_texts + the emulator. Nothing found. It does not appear in any other bin files for the habbo.swf

    I really would prefer to use the y -> item id though because the ID's are already in the hundred thousands.

    Thank You,
    JayCustom


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

    Re: GTE Custom Commands

    And your question is?

  3. #3
    Developer & Designer Francis Joseph is offline
    MemberRank
    Mar 2007 Join Date
    /f282Location
    246Posts

    Re: GTE Custom Commands

    :stack <item_rotation> <item_id>

    You really need to be clearer, what do you want help on?
    I'm assuming you want us to create the command for you? but you originally stated that you created it already.
    When asking for a custom command just state the command, what you need it to do and that's it.

    If in this case you haven't created the command...

    1. You'll need to set two parameters and use int.TryParse so you can convert them properly.
    2. You'll need to call the ItemManager and get the suggested furni using the parameter.
    3. Check if the item is null (unless the method is a boolean and parses it out via a ref).
    4. Either have a switch statement or use if[else] statements to handle the rotation.
    5. Set the rotation of the suggested furni item.
    6. You might need to sent a packet to update the item.


    As for the second thing you asked for, I have no idea in regards to.
    It could quite possibly be sent (toggled) by a packet sent through the emulator.
    But again, I'm not totally sure on this since I don't have GTE currently on my computer.

  4. #4
    The **** Keiz is offline
    MemberRank
    Nov 2015 Join Date
    238Posts

    Re: GTE Custom Commands

    I think I understand the question.
    If I'm not mistaken you ask how to replace :command Y with the furni id you are currently clicking on, right?
    As far as I'm concerned the :command X with the username replacement is a client side action. If you want to replace your custom Y with a furni id, you'd have to do so in the SWF!

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

    Re: GTE Custom Commands

    :something y doesnt work as far as I know. If you want it to work you have to edit the habbo.swf.

  6. #6
    Enthusiast JayCustomDev is offline
    MemberRank
    May 2016 Join Date
    26Posts

    Re: GTE Custom Commands

    Quote Originally Posted by The General View Post
    :something y doesnt work as far as I know. If you want it to work you have to edit the habbo.swf.
    Well no shit I figured that part out. There is a method in there that controls turning the X -> username and I need to create a new method that turns Y -> furni_id but I have never worked with the habbo.swf before this advanced so I am asking for guidance on..

    YES -> The command is already coded I have done that awhile ago



Advertisement