Dragon [swf] [sql] [c# codes]

Status
Not open for further replies.
Joined
Dec 22, 2007
Messages
160
Reaction score
27
Image (Working in Uber):
klaudio007 - Dragon [swf] [sql] [c# codes] - RaGEZONE Forums


Official Habbo.com:



Download from Mediafire:


Externals:
pet.breed.12.1=Emerald Earth Dragon
pet.breed.12.0=Volcanic Fire Dragon
pet.breed.12.3=Twilight Hunter Dragon
pet.breed.12.2=Bronze Cave Dragon
pet.breed.12.8=Great Golden Dragon
pet.breed.12.9=Dark Demonic Dragon
pet.breed.12.4=Midnight Glider Dragon
pet.breed.12.5=Crystal Cove Dragon
pet.breed.12.6=Pure Ambrosia Dragon
pet.breed.12.7=Subterranean Ice Dragon

SQL:
Code:
insert  into `catalog_items`(`id`,`page_id`,`item_ids`,`catalog_name`,`cost_credits`,`cost_pixels`,`amount`) values (9465,720,'9465','a0 pet12',30,0,1);
insert  into `catalog_pages`(`id`,`parent_id`,`caption`,`icon_color`,`icon_image`,`visible`,`enabled`,`min_rank`,`club_only`,`coming_soon`,`order_num`,`page_layout`,`page_headline`,`page_teaser`,`page_special`,`page_text1`,`page_text2`,`page_text_details`,`page_text_teaser`) values (720,14,'Dragones',1,109,'1','1',1,'0','0',-13,'pets','catalog_pet_headline1_es','','','¡La nueva mascota dragón ya está aquí! Mas rapidos que cualquier otro hotel, les traemos a ustedes la nueva mascota que hara arder tus salas. Habbo Unofficial Hotel (HUH.SYTES.NET)','','','');
insert  into `furniture`(`id`,`public_name`,`item_name`,`type`,`width`,`length`,`stack_height`,`can_stack`,`can_sit`,`is_walkable`,`sprite_id`,`allow_recycle`,`allow_trade`,`allow_marketplace_sell`,`allow_gift`,`allow_inventory_stack`,`interaction_type`,`interaction_modes_count`,`vending_ids`) values (9465,'Dragon','a0 pet12','s',1,1,1,'1','0','0',9465,'1','1','1','1','1','pet',0,'0');


Codes:
in catalog.cs add:
Code:
case "9465":
                                        PetType = 12; // Dragon
                                        break;

in rooms.cs, under:
Code:
if (PetType.Length == 8)
                {
                   
                    if (PetType[7] == '1')
                    {

                        GetResponse().AppendStringWithBreak("a0 pet11");
                        count = 010;
                        petid = 11;
                    }
                }

add:
Code:
if (PetType.Length == 8)
                {

                    if (PetType[7] == '2')
                    {

                        GetResponse().AppendStringWithBreak("a0 pet12");
                        count = 008;
                        petid = 12;
                    }
                }
 
Last edited:
Re: Dragon [swf] [sql]

Aha! Figured someone would beat me to this. Me and Shorty were logging packets and behavior (gestures / speech) of the Dragons all afternoon. They're a rather cool addition. Nice release!

For the information of most:
If you can't get these working, you need to add their ID to your emulator. Look around, other releases show you essentially how to do this. I'm not going to go in-depth with it because I prefer to do it properly, by adding new behaviors to the bot handler.
 
Re: Dragon [swf] [sql]

Added everything need for Dragons (myself) but I cant seem to get them working because it needs to be codded into here but am having difficulty with it,

Code:
private void PetRaces()
        {
            string PetType = Request.PopFixedString();

            int count = 0, petid = 0;
            GetResponse().Init(827);
            if (PetType[6] == '0')
            {
                GetResponse().AppendStringWithBreak("a0 pet0");
                count = 25;
                petid = 0;
            }
            else if (PetType[6] == '1')
            {
                if (PetType.Length == 8)
                {
                    if (PetType[7] == '1')
                    {
                        GetResponse().AppendStringWithBreak("a0 pet11");
                        count = 14;
                        petid = 11;
                    }
                    else
                    {
                        GetResponse().AppendStringWithBreak("a0 pet10");
                        count = 14;
                        petid = 10;
                    }
                }
                else
                {
                    GetResponse().AppendStringWithBreak("a0 pet1");
                    count = 25;
                    petid = 1;
                }
            }
            else if (PetType[6] == '2')
            {
                GetResponse().AppendStringWithBreak("a0 pet2");
                count = 12;
                petid = 2;
            }
            else if (PetType[6] == '3')
            {
                GetResponse().AppendStringWithBreak("a0 pet3");
                count = 7;
                petid = 3;
            }
            else if (PetType[6] == '4')
            {
                GetResponse().AppendStringWithBreak("a0 pet4");
                count = 4;
                petid = 4;
            }
            else if (PetType[6] == '5')
            {
                GetResponse().AppendStringWithBreak("a0 pet5");
                count = 7;
                petid = 5;
            }
            else if (PetType[6] == '6')
            {
                GetResponse().AppendStringWithBreak("a0 pet6");
                count = 13;
                petid = 6;
            }
            else if (PetType[6] == '7')
            {
                GetResponse().AppendStringWithBreak("a0 pet7");
                count = 8;
                petid = 7;
            }
            else if (PetType[6] == '8')
            {
                GetResponse().AppendStringWithBreak("a0 pet8");
                count = 13;
                petid = 8;
            }
            GetResponse().AppendInt32(count);
            for (int i = 0; i < count; i++)
            {
                GetResponse().AppendInt32(petid); // pet id
                GetResponse().AppendInt32(i); // raza id
                GetResponse().AppendInt32(1); // activado
                GetResponse().AppendInt32(0); // desactivado wtf?
            }
            SendResponse();
        }

Code:
            RequestHandlers[3007] = new RequestHandler(PetRaces);

Anyone care to help?

please :)
 
Last edited:
Re: Dragon [swf] [sql]

Added everything need for Dragons (myself) but I cant seem to get them working because it needs to be codded into here but am having difficulty with it,

Code:
 [...]

Anyone care to help?

please :)

Add this ... above: "GetResponse().AppendInt32(count);" :thumbup1:

Code:
            else if (PetType[6] == '12') //Dragon
            {
                GetResponse().AppendStringWithBreak("a0 pet12");
                count = 13;
                petid = 12;
            }
 
Last edited:
Re: Dragon [swf] [sql]

Add this ... :thumbup1:

Code:
            else if (PetType[6] == '12')
            {
                GetResponse().AppendStringWithBreak("a0 pet12");
                count = 13;
                petid = 12;
            }

I've tryed this allready lol it doesnt work because it give an error,

The 12 goes underlined in red and it say this,
"To many characters in character literal"

so dont think I havent tried, I added Frogs, Spiders and chicks into this code its jsut I cant add DRAGONS D:
 
Re: Dragon [swf] [sql]

... oops set it above this
Code:
                    else
                    {
                        GetResponse().AppendStringWithBreak("a0 pet10");
                        count = 14;
                        petid = 10;
                    }


---------- Post added at 06:45 PM ---------- Previous post was at 06:40 PM ----------

i don't read this part; ( if (PetType.Length == 8 ) ... i'm tired.
 
Status
Not open for further replies.
Back