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

Status
Not open for further replies.
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.

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;
                    }
                }
 
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.

mmm..

klaudio007 - Dragon [swf] [sql] [c# codes] - RaGEZONE Forums
 
Fixed it I just make some changes :)

Code:
if (PetType.Length == 8)
                {
                    if (PetType[7] == '1')
                    {
                        GetResponse().AppendStringWithBreak("a0 pet11");
                        count = 14;
                        petid = 11;
                    }
                    else if (PetType[7] == '2')
                    {
                        GetResponse().AppendStringWithBreak("a0 pet12");
                        count = 14;
                        petid = 12;
                    }
                    else
                    {
                        GetResponse().AppendStringWithBreak("a0 pet10");
                        count = 14;
                        petid = 10;
                    }
                }
 
Iv got frogs,chicken,spider Could it be the SQL i used?

i got this error, #1048 - Column 'is_arrow' cannot be null so i changed it to 0
 
Iv got frogs,chicken,spider Could it be the SQL i used?

i got this error, #1048 - Column 'is_arrow' cannot be null so i changed it to 0

try with

Code:
 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');
 
Last edited:
Status
Not open for further replies.
Back