How to send items only to online players?

Results 1 to 4 of 4
  1. #1
    Account Upgraded | Title Enabled! Enough is offline
    MemberRank
    Oct 2012 Join Date
    301Posts

    How to send items only to online players?

    Hello friends,

    I wonder how do I send items only to players who are online at the server at that time and for a period of days?


  2. #2
    Alpha Member Chrisss is offline
    MemberRank
    Feb 2012 Join Date
    Ask the Fox!Location
    1,660Posts

    Re: How to send items only to online players?

    I know that Emisands Admin Panel has a function to send coins to all online players so grab that code and edit it to send items.

  3. #3
    Proficient Member Mr_Troy is offline
    MemberRank
    Jun 2007 Join Date
    172Posts

    Re: How to send items only to online players?

    Check the itemlist of a character in the database when the player opens the inventory.

  4. #4
    DRGunZ 2 Creator wesman2232 is offline
    MemberRank
    Jan 2007 Join Date
    Erie, PALocation
    4,872Posts

    Re: How to send items only to online players?

    Quote Originally Posted by Chrisss View Post
    I know that Emisands Admin Panel has a function to send coins to all online players so grab that code and edit it to send items.
    To ALL Players maybe, but I don't remember a function that sent it to all players who were online.

    All that should be done is create a WHERE statement saying that it will only send to players whose LastLoginTime and LastLogoutTime are both less than when you executed the query. Pretty much the same way of doing a Who's Online function to list all players who are online on the server.



Advertisement