Have a look:
![]()
Have a look:
![]()
Pig: *Owns the floor*
Rhino: *Owns the floor*
Frog: *Owns the floor*
Looks epic! Will you be coding shells aswell?
Yea lol
Code:PetInfo Info = BrickEngine.GetPetReactor().GetPetInfo(Pet.HabboId); if ((DateTime.Now - Info.LastUpdateWalked).TotalSeconds >= Random.Next(10, 20)) { Pet.UnhandledGoalPoint = GetRandom(); Info.LastUpdateWalked = DateTime.Now; } if ((DateTime.Now - Info.LastUpdateChat).TotalSeconds >= Random.Next(20, 30)) { string[] Chats = new string[] { "*Whizzle*", "*Looks at owner*", "*Owns the floor*", "Raaaawr!" }; SpeechType Speech = Random.Next(1, 3) == 2 ? SpeechType.Shout : SpeechType.Talk; string Chat = Chats[Random.Next(0, Chats.Length - 1)]; Pet.Talk(Chat, Speech, 0, string.Empty); Info.LastUpdateChat = DateTime.Now; }
Mmh can't it be so you can define phrases for the animals in the database? That way you can have dogs saying woof, and rhino's saying my owner is a fag (lol) haha :'). Would be good to have it easily customization :D
Ah, i already made this :D
---------- Post added at 06:16 PM ---------- Previous post was at 05:32 PM ----------
Made system from MySQL
Code:if ((DateTime.Now - Info.LastUpdateChat).TotalSeconds >= Random.Next(20, 30)) { var Speeches = BrickEngine.GetPetReactor().GetSpeechesForType(Info.Type); PetSpeech Speech = Speeches[Random.Next(0, Speeches.Count - 1)]; Pet.Talk(Speech.Speech, Speech.Shout ? SpeechType.Shout : SpeechType.Talk, 0, string.Empty); Info.LastUpdateChat = DateTime.Now; }
---------- Post added at 06:33 PM ---------- Previous post was at 06:16 PM ----------
Respecting Pet:
---------- Post added at 06:53 PM ---------- Previous post was at 06:33 PM ----------
Panel Programmed:
![]()
Can't wait for this release!
This is nice dude, good job :)
Are the pet speeches defined by pet "type" in the db? Can you show us the structure of the pet speeches table please, as i'm very curious!
Thank you wichard!