Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help: The-Introducer plugin!

Comments in 'Plugin Development' started by PEMapModder, Mar 28, 2014.

  1. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    The-Introducer is an AI plugin that features a bot (to the player that is a player) that is only visible to the player (called "target" below) and does things like talking or (with VIP power or etc.) fight for the player (or whatever you can imagine, the AI thing can be discussed later).

    I made the plugin working now. There is a message "<server> Introducer joined the game" when I join the game. But the bot is not visible to the client, although it is visible in the pause button right bar.

    The source is here.

    As I think, it should be some problems with the SetEntityMotionPacket (instead of the MovePlayerPacket)
    iJoshuaHD likes this.
  2. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,167
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    is it a BOT :O
  3. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Why not?
    iJoshuaHD likes this.
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Another strange thing is, there is no E_NOTICE error echoed on console about undefined property Introducer->x (and y and z)
    iJoshuaHD likes this.
  5. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,167
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    xD
  6. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    I totally forgot why I did $this->x... o_O
    iJoshuaHD likes this.
  7. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    The moment of legendary success!
    [​IMG]
    However, there is still a bug that the player does not move along with you as I expected.
    iJoshuaHD likes this.
  8. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,706
    Plugins:
    22
    Minecraft User:
    Falkirknh
    SetEntityMotion is really annoying :(
    Oh, why do you extend Position for the Introducer class?
    Last edited: Mar 28, 2014
  9. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,167
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    this is so very smexy!!!!!!!!!!!!!!!!!!!! i cant wait for it to be fully working :D

    why dont make the introducer appear and disappear by command. because if there would be no option, players could totally glitch the bot out of the void (if the player is in creative mode)
  10. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    I originally planned to work like the Entity class (yes I finally remember the meaning of $this->x) but I removed it nowm
  11. Falk
    Offline

    Falk Staff Member Global Moderator

    Joined:
    Sep 2, 2013
    Posts:
    1,706
    Plugins:
    22
    Minecraft User:
    Falkirknh
    Oh, I see.
  12. Angelo Vidrio
    Offline

    Angelo Vidrio Active Member Plugin Developer

    Joined:
    Jan 16, 2014
    Posts:
    123
    Plugins:
    5
    Minecraft User:
    LilCrispy45
    This looks great cant wait for him to move!

Share This Page

Advertisement