Monster system

Results 1 to 7 of 7
  1. #1
    Dbo Dev Daneos is offline
    MemberRank
    Sep 2009 Join Date
    GermanyLocation
    933Posts

    Monster system

    Seriously but the monster system is really pissing me.. I cant get that to work...
    I have monster auto move perfectly working but the problem is the spawn and despawn..

    Spawn and despawn should be set into the main game loop but there is no fucking way to get the player sessions into the main-loop..

    I already tryed something like userbroadcast but that shit dont work too.

    Anyone ideas???


  2. #2
    DBO Developer Nicolas321 is offline
    MemberRank
    May 2014 Join Date
    482Posts

    Re: Monster system

    I have Spawn and DeSpawn when i move, why you don't try with that? I made a cube around me, and if Npc.x and Npc.y is in that cube Spawn, and if he not, despawn.

  3. #3
    Dbo Dev Daneos is offline
    MemberRank
    Sep 2009 Join Date
    GermanyLocation
    933Posts

    Re: Monster system

    yea but what happens when you kill a monster? you have to run that he will spawn.. Also tryed with more than 1 account?

  4. #4
    DBO Developer Nicolas321 is offline
    MemberRank
    May 2014 Join Date
    482Posts

    Re: Monster system

    Made a x time in where you kill the mob, and respawn the mob again. Or made a function everysec around the player.

  5. #5
    Dbo Dev Daneos is offline
    MemberRank
    Sep 2009 Join Date
    GermanyLocation
    933Posts

    Re: Monster system

    Quote Originally Posted by Nicolas321 View Post
    Made a x time in where you kill the mob, and respawn the mob again. Or made a function everysec around the player.
    Dont really work because you need player session. Or you respawn the monster for everyone

  6. #6
    DBO Developer Nicolas321 is offline
    MemberRank
    May 2014 Join Date
    482Posts

    Re: Monster system

    Code:
    for(;;)
    {
       function();
       sleep(1000)
    }
    ready, func everysec.

    EDIT: OPS i put bad the ;;

    - - - Updated - - -

    And works? Did you try?

  7. #7
    Dbo Dev Daneos is offline
    MemberRank
    Sep 2009 Join Date
    GermanyLocation
    933Posts

    Re: Monster system

    Nope, you cant run a loop inside session or packets dont send anymore

    - - - Updated - - -

    This is really stupid.. it doesnt matter what I do -> nothing works...



Advertisement