BrickEmulator [C#] Pooling Sockets + From Scratch

Page 22 of 38 FirstFirst ... 12141516171819202122232425262728293032 ... LastLast
Results 316 to 330 of 558
  1. #316
    Account Upgraded | Title Enabled! wichard is offline
    MemberRank
    Jul 2009 Join Date
    The NetherlandsLocation
    649Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    Have a look:


  2. #317
    Live Ocottish Sverlord Joopie is offline
    LegendRank
    Jun 2010 Join Date
    The NetherlandsLocation
    2,773Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    Pig: *Owns the floor*
    Rhino: *Owns the floor*
    Frog: *Owns the floor*

  3. #318
    The one and only! Hejula is offline
    MemberRank
    Nov 2008 Join Date
    4,128Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    Looks epic! Will you be coding shells aswell?

  4. #319
    Account Upgraded | Title Enabled! wichard is offline
    MemberRank
    Jul 2009 Join Date
    The NetherlandsLocation
    649Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    Quote Originally Posted by joopie View Post
    Pig: *Owns the floor*
    Rhino: *Owns the floor*
    Frog: *Owns the floor*
    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;
                    }

  5. #320
    The one and only! Hejula is offline
    MemberRank
    Nov 2008 Join Date
    4,128Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    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

  6. #321
    Account Upgraded | Title Enabled! wichard is offline
    MemberRank
    Jul 2009 Join Date
    The NetherlandsLocation
    649Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    Quote Originally Posted by Hejula View Post
    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:


  7. #322
    Proficient Member funkbozza is offline
    MemberRank
    Apr 2007 Join Date
    SwindonLocation
    168Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    Quote Originally Posted by wichard View Post
    Have a look:

    The Lions just casually sniffing the Rhinos backside, oh dear.

  8. #323
    Web Developer Papercup is offline
    MemberRank
    Nov 2009 Join Date
    WalesLocation
    1,607Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    Can't wait for this release!

  9. #324
    Account Upgraded | Title Enabled! wichard is offline
    MemberRank
    Jul 2009 Join Date
    The NetherlandsLocation
    649Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch


  10. #325
    GreenMaX keven007 is offline
    MemberRank
    Jul 2008 Join Date
    The NetherlandsLocation
    275Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    This is nice dude, good job :)

  11. #326
    Account Upgraded | Title Enabled! salah-salah is offline
    MemberRank
    Jan 2009 Join Date
    UndergroundLocation
    716Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    Quote Originally Posted by keven007 View Post
    This is nice dude, good job :)
    Thankyou 'kid' loll3d.

  12. #327
    GreenMaX keven007 is offline
    MemberRank
    Jul 2008 Join Date
    The NetherlandsLocation
    275Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    Quote Originally Posted by salah-salah View Post
    Thankyou 'kid' loll3d.

    why kid?

  13. #328
    hi i'm robbie Roper is offline
    MemberRank
    Oct 2008 Join Date
    /home/roperLocation
    2,283Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    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!

  14. #329
    Account Upgraded | Title Enabled! wichard is offline
    MemberRank
    Jul 2009 Join Date
    The NetherlandsLocation
    649Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    Quote Originally Posted by RobTheLobster View Post
    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!
    Yea by pet Type:





    ;D

  15. #330
    The one and only! Hejula is offline
    MemberRank
    Nov 2008 Join Date
    4,128Posts

    Re: BrickEmulator [C#] Pooling Sockets + From Scratch

    Quote Originally Posted by wichard View Post
    Yea by pet Type:





    ;D
    I love it :) Hopefully Joopie can code something into the housekeeping to add pet speech :D



Advertisement