Walk as alot of animals - Phoenix

Results 1 to 16 of 16
  1. #1
    C# / while (!asleep); N0tis is offline
    MemberRank
    Aug 2011 Join Date
    258Posts

    Walk as alot of animals - Phoenix

    Hey I'm back .

    DarioCat posted a thread with the cat walk but the code was not perfect (I still respect him for the idea tho).

    Ok.. Lets start with the ":allanimals" code. Its like the commands code but the sendnotif is not ("message",2) you can edit that if you want tooooo (the style).

    Go to Roommanager.cs and add:
    PHP Code:
     this.dictionary_4.Add("allanimals"211); 
    And add in the same document:
    PHP Code:
                this.dictionary_4.Add("cat"123);
                
    this.dictionary_4.Add("dog"144);
                
    this.dictionary_4.Add("crocodile"145);
                
    this.dictionary_4.Add("terrier"146);
                
    this.dictionary_4.Add("icebear"147);
                
    this.dictionary_4.Add("pig"148);
                
    this.dictionary_4.Add("lion"149);
                
    this.dictionary_4.Add("rhino"150);
                
    this.dictionary_4.Add("spider"151);
                
    this.dictionary_4.Add("turtle"152);
                
    this.dictionary_4.Add("chicken"153);
                
    this.dictionary_4.Add("frog"154);
                
    this.dictionary_4.Add("dragon"155);
                
    this.dictionary_4.Add("monkey"156);
                
    this.dictionary_4.Add("back"1234); 
    Go to ChatCommandHandler.cs and add as case:
    PHP Code:
      case 211Session.SendNotif("All animal commands:" " \r\n" " :dog " Environment.NewLine " :cat  " Environment.NewLine " :terrier " Environment.NewLine " :icebear " Environment.NewLine " :pig " Environment.NewLine " :lion " Environment.NewLine " :rhino " Environment.NewLine " :spider " Environment.NewLine " :turtle " Environment.NewLine " :chicken " Environment.NewLine " :frog " Environment.NewLine " :dragon " Environment.NewLine " :monkey " Environment.NewLine " (Do you wanna be normal again?) :back  " Environment.NewLine "- Its Nilz I'm out :)");
                                        return 
    true
    Ok thats done...

    Now we are gonna add (alot of) animal commands.

    Add in ChatCommandHandler:
    PHP Code:
      case 123:
                                        
    Session.GetHabbo().PetData "1 0 #fff"// Change this with the animal you want to
                                        
    Session.SendNotif("You are now a cat! Reload the room.");
                                        
    Session.GetHabbo().method_28("Say :back to be a normal Lution again!");
                                        return 
    true;
                                    case 
    144:
                                        
    Session.GetHabbo().PetData "0 0 #fff"// Change this with the animal you want to
                                        
    Session.SendNotif("You are now a dog! Reload the room.");
                                        
    Session.GetHabbo().method_28("Say :back to be a normal Lution again!");
                                        return 
    true;
                                    case 
    145:
                                        
    Session.GetHabbo().PetData "2 0 #fff"// Crocodile is buggy
                                        
    Session.SendNotif("You are now a  crocodile! Reload the room.");
                                        
    Session.GetHabbo().method_28("Say :back to be a normal Lution again!");
                                        return 
    true;
                                    case 
    146:
                                        
    Session.GetHabbo().PetData "3 0 #fff"// Change this with the animal you want to
                                        
    Session.SendNotif("You are now a  terriër! Reload the room.");
                                        
    Session.GetHabbo().method_28("Say :back to be a normal Lution again!");
                                        return 
    true;
                                    case 
    147:
                                        
    Session.GetHabbo().PetData "4 0 #fff"// Change this with the animal you want to
                                        
    Session.SendNotif("You are now a icebear! Reload the room.");
                                        
    Session.GetHabbo().method_28("Say :back to be a normal Lution again!");
                                        return 
    true;
                                    case 
    148:
                                        
    Session.GetHabbo().PetData "5 0 #fff"// Change this with the animal you want to
                                        
    Session.SendNotif("You are now a  pig! Reload the room.");
                                        
    Session.GetHabbo().method_28("Say :back to be a normal Lution again!");
                                        return 
    true;
                                    case 
    149:
                                        
    Session.GetHabbo().PetData "6 0 #fff"// Change this with the animal you want to
                                        
    Session.SendNotif("You are now a lion! Reload the room.");
                                        
    Session.GetHabbo().method_28("Say :back to be a normal Lution again!");
                                        return 
    true;
                                    case 
    150:
                                        
    Session.GetHabbo().PetData "7 0 #fff"// Change this with the animal you want to
                                        
    Session.SendNotif("You are now a rhino! Reload the room.");
                                        
    Session.GetHabbo().method_28("Say :back to be a normal Lution again!");
                                        return 
    true;
                                    case 
    151:
                                        
    Session.GetHabbo().PetData "8 0 #fff"// Change this with the animal you want to
                                        
    Session.SendNotif("You are now a spider! Reload the room.");
                                        
    Session.GetHabbo().method_28("Say :back to be a normal Lution again!");
                                        return 
    true;
                                    case 
    152:
                                        
    Session.GetHabbo().PetData "9 0 #fff"// Change this with the animal you want to
                                        
    Session.SendNotif("You are now a turtle! Reload the room.");
                                        
    Session.GetHabbo().method_28("Say :back to be a normal Lution again!");
                                        return 
    true;
                                    case 
    153:
                                        
    Session.GetHabbo().PetData "10 0 #fff"// Change this with the animal you want to
                                        
    Session.SendNotif("You are now a chicken! Reload the room.");
                                        
    Session.GetHabbo().method_28("Say :back to be a normal Lution again!");
                                        return 
    true;
                                    case 
    154:
                                        
    Session.GetHabbo().PetData "11 0 #fff"// Change this with the animal you want to
                                        
    Session.SendNotif("You are now a frog! Reload the room.");
                                        
    Session.GetHabbo().method_28("Say :back to be a normal Lution again!");
                                        return 
    true;
                                    case 
    155:
                                        
    Session.GetHabbo().PetData "12 0 #fff"// Change this with the animal you want to
                                        
    Session.SendNotif("You are now a dragon! Reload the room.");
                                        
    Session.GetHabbo().method_28("Say :back to be a normal Lution again!");
                                        return 
    true;
                                    case 
    156:
                                        
    Session.GetHabbo().PetData "14 0 #fff"// Change this with the animal you want to
                                        
    Session.SendNotif("You are now a monkey! Reload the room.");
                                        
    Session.GetHabbo().method_28("Say :back to be a normal Lution again!");
                                        return 
    true


    Go to RoomUser.cs

    Search for:
    Message5_0.AppendStringWithBreak( @class.Figure);
    Replace with:
    Message5_0.AppendStringWithBreak( @class.PetData != null ? @class.PetData : @class.Figure);

    Search for:
    Message5_0.AppendInt32(2);
    Message5_0.AppendInt32(1);
    Message5_0.AppendStringWithBreak(@class.Gender.ToLower());
    Message5_0.AppendInt32(-1);
    if (@class.int_0 > 0)
    {
    Message5_0.AppendInt32(@class.int_0);
    }
    else
    {
    Message5_0.AppendInt32(-1);
    }
    Message5_0.AppendInt32(-1);
    Message5_0.AppendStringWithBreak("");
    Message5_0.AppendInt32(@class.AchievementScore);
    Replace with:
    s.PetData != null)
    {
    Message5_0.AppendInt32(4);
    Message5_0.AppendInt32(2);
    Message5_0.AppendInt32(0);
    }
    else
    {
    Message5_0.AppendInt32(2);
    Message5_0.AppendInt32(1);
    Message5_0.AppendStringWithBreak(@class.Gender.ToLower());
    Message5_0.AppendInt32(-1);
    if (@class.int_0 > 0)
    {
    Message5_0.AppendInt32(@class.int_0);
    }
    else
    {
    Message5_0.AppendInt32(-1);
    }
    Message5_0.AppendInt32(-1);
    Message5_0.AppendStringWithBreak("");
    Message5_0.AppendInt32(@class.AchievementScore);
    }

    Habbo.cs
    Add:
    PHP Code:
    public string PetData
    Search for:
    PHP Code:
    public void method_26(bool bool_17GameClient class16_1
    Now look in the void and you will see:
    PHP Code:
    if (class16_1.GetHabbo().Boolean_0
    Add above that:
    PHP Code:
    if (this.PetData == ""
    Ok you can add more animals if you want to!

    How does this works?

    If you want to be a animal you need to use it as a command.
    If you say :dog it will give you a message with "You are a dog now reload the room".
    If you want to be normal again just type :back and reload the room again.

    :allanimals code is a alert with al the animals in it lol.

    Okay thats it for today.

    Here is a screen (dutch)


    Credits to:
    - DarioCat
    - Minixlo
    - Nilz
    - Mertphp
    Last edited by Gies; 28-09-14 at 02:05 PM.


  2. #2
    Apprentice Mertphp is offline
    MemberRank
    Oct 2013 Join Date
    7Posts

    Re: Walk as alot of animals - Phoenix

    Hmm... nice

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

    Re: Walk as alot of animals - Phoenix

    And for MercuryEmulator ? :S

  4. #4
    <cool title> Scresho is offline
    MemberRank
    Jul 2008 Join Date
    HoloWS - GermanLocation
    425Posts

    Re: Walk as alot of animals - Phoenix

    Can someone edit those to get it working on GTE? :/

  5. #5
    Apprentice Bahirsz is offline
    MemberRank
    Sep 2013 Join Date
    10Posts

    Re: Walk as alot of animals - Phoenix

    Hot commands

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

    Re: Walk as alot of animals - Phoenix

    Why not make one command which has a switch for the second param. If you say for example :transform cat, it'll do the cat shit, if you say :transform dog, it'll do the dog shit.

  7. #7
    :joy: Jonteh is offline
    MemberRank
    Apr 2007 Join Date
    New York, USALocation
    3,372Posts

    Re: Walk as alot of animals - Phoenix

    Quote Originally Posted by BaasHotel View Post
    Why not make one command which has a switch for the second param. If you say for example :transform cat, it'll do the cat shit, if you say :transform dog, it'll do the dog shit.
    Like this?

    Code:
    if (Params.Length > 1)
                {
                    Pet = Params[1];
    
    
                    switch (Pet.ToLower())
                    {
                        case "dog":
                            {
                                Data = "0 0 #fff";
                                break;
                            }
                        case "cat":
                            {
                                Data = "1 0 #fff";
                                break;
                            }
                        case "croc":
                        case "crocodile":
                        case "alligator":

  8. #8
    Apprentice sagem57 is offline
    MemberRank
    Jan 2009 Join Date
    16Posts

    Re: Walk as alot of animals - Phoenix

    click is impossible on the pets

    Work click



    Not work:


    how to fix ?

  9. #9
    Member SuklaaVene is offline
    MemberRank
    Jul 2014 Join Date
    85Posts

    Re: Walk as alot of animals - Phoenix

    Using texts table :3 Added new pets? Forgot add some pets? Just simply add them to db, without restart and edit code
    Code:
    int petID = -1;
    string petName = "";
    if (Params.Length > 1)
    {
        if (!int.TryParse(Params[1], out petID))
        {
                if (!int.TryParse(SkywaveEnvironment.smethod_1("cmd_pet_petid_" + Params[1], false), out petID))
                {
                    petID = -1;
                }
        }
    }
    
    
    if (petID < -1)
    {
        Session.SendNotif("Pet ID/name was invalid!");
        return true;
    }
    else
    {
        petName = SkywaveEnvironment.smethod_1("cmd_pet_petname_" + petID, false);
    
    
        if (petName == "cmd_pet_petname_" + petID)
        {
                Session.SendNotif("Pet ID/name was invalid!");
                return true;
        }
    }
    
    
    Session.GetHabbo().PetData = petID + " 0 #fff";
    
    
    Session.SendNotif("You're now a " + (!string.IsNullOrEmpty(petName) ? petName : "pet") + ". Please reload this room to apply this!");
    Last edited by SuklaaVene; 28-10-14 at 07:21 PM.

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

    Re: Walk as alot of animals - Phoenix

    I love how thorough you were to do this. It's the small things like this that I love about servers haha. Thanks bud.

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

    Re: Walk as alot of animals - Phoenix

    Quote Originally Posted by sagem57 View Post
    click is impossible on the pets
    Thats because you're not a real pet.

  12. #12
    Enthusiast Krako Bobbaz is offline
    MemberRank
    Sep 2012 Join Date
    30Posts

    Re: Walk as alot of animals - Phoenix

    Hey, I have this kind of commands since a long time and still have the bug of unclickable, someone has fixed it ?

  13. #13
    C# / while (!asleep); N0tis is offline
    MemberRank
    Aug 2011 Join Date
    258Posts

    Re: Walk as alot of animals - Phoenix

    Quote Originally Posted by BaasHotel View Post
    Why not make one command which has a switch for the second param. If you say for example :transform cat, it'll do the cat shit, if you say :transform dog, it'll do the dog shit.
    I like the idea. I will add it soon ;).

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

    Re: Walk as alot of animals - Phoenix

    Quote Originally Posted by Jonteh View Post
    Like this?

    Code:
    if (Params.Length > 1)
                {
                    Pet = Params[1];
    
    
                    switch (Pet.ToLower())
                    {
                        case "dog":
                            {
                                Data = "0 0 #fff";
                                break;
                            }
                        case "cat":
                            {
                                Data = "1 0 #fff";
                                break;
                            }
                        case "croc":
                        case "crocodile":
                        case "alligator":
    Yeah, that's exactly what I meant!

  15. #15
    Account Upgraded | Title Enabled! AskethZ is offline
    MemberRank
    Jul 2012 Join Date
    232Posts

    Re: Walk as alot of animals - Phoenix

    Any chance of making this for Mercury emu?

  16. #16
    Enthusiast Retro Joshtink is offline
    MemberRank
    Aug 2014 Join Date
    SwedenLocation
    42Posts

    Re: Walk as alot of animals - Phoenix

    Could anyone Send an Phoenix 3.11 Emulator with this? Cuz iam trying to do this and saving and debuging nothing happends in the client.



Advertisement