1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Slapper

Discussion in 'Plugin Help' started by Gilsheys, Apr 24, 2020.

  1. Gilsheys

    Gilsheys Spider Jockey

    Messages:
    37
    GitHub:
    gilsheys
    Hello guys!! uhm how do i setup an npc/slapper and make it talk everytime a player taps/hits it?
    For example:

    I tap the npc that i made which is:
    STUDENT
    Mitsuko

    and when i tap it it will talk/tell me
    "[Mitsuko] : Hello gilsheys! how's your day?"

    like that.. I wish someone could help me with this :D thanks in advance!! :))
     
  2. GamakCZ

    GamakCZ Zombie Pigman

    Messages:
    598
    GitHub:
    GamakCZ
    You have to put some command to it. Without any other plugin you can use /me /msg or /say...

    /slapper edit <eid> addcommand msg {player} Hello there
     
    HimbeersaftLP likes this.
  3. Gilsheys

    Gilsheys Spider Jockey

    Messages:
    37
    GitHub:
    gilsheys
    it says [Console -> gilsheys] [Mitsuko] : Hello there how do i make it to '[Mitsuko] : Hello there" only? i saw other servers like that
     
  4. GamakCZ

    GamakCZ Zombie Pigman

    Messages:
    598
    GitHub:
    GamakCZ
    To display message in your format you need another plugin.
     
  5. Gilsheys

    Gilsheys Spider Jockey

    Messages:
    37
    GitHub:
    gilsheys
    what plugin do i need?
     
  6. GamakCZ

    GamakCZ Zombie Pigman

    Messages:
    598
    GitHub:
    GamakCZ
    I don't know any. Try make a new thread in Request section of forums.
     
  7. esh123cookie

    esh123cookie Baby Zombie

    Messages:
    104
    GitHub:
    esh123cookie
  8. Gilsheys

    Gilsheys Spider Jockey

    Messages:
    37
    GitHub:
    gilsheys
    i already have Broadcaster plugin. what will i do now? what command should i set to the slapper?
     
  9. esh123cookie

    esh123cookie Baby Zombie

    Messages:
    104
    GitHub:
    esh123cookie
    Create slapper
    slapper create {type} {name}
    Edit to add command
    slapper edit {id} addcommand rca {player} {broadcast cmds}
     
  10. esh123cookie

    esh123cookie Baby Zombie

    Messages:
    104
    GitHub:
    esh123cookie
    Might have to be done by console so try without rca as well
     
  11. Gilsheys

    Gilsheys Spider Jockey

    Messages:
    37
    GitHub:
    gilsheys
    The first one didn't work it shows the ''[Broadcaster'' title when u tap
    how 'bout the second one? how will i do it?
     
  12. esh123cookie

    esh123cookie Baby Zombie

    Messages:
    104
    GitHub:
    esh123cookie
    To do it from console its:
    slapper edit {id} addcommand {broadcaster cmd}
     
  13. Gilsheys

    Gilsheys Spider Jockey

    Messages:
    37
    GitHub:
    gilsheys
    it says the command only works in-game
     
  14. esh123cookie

    esh123cookie Baby Zombie

    Messages:
    104
    GitHub:
    esh123cookie
    Well then use the first one, link it to {player} and it'll work
     
  15. Gilsheys

    Gilsheys Spider Jockey

    Messages:
    37
    GitHub:
    gilsheys
    it shows the [Broadcaster] thing and i only want them to see is ''[Mitsuko] : Hello there'' not [Broadcaster] [Mitsuko] : Hello there
     
  16. esh123cookie

    esh123cookie Baby Zombie

    Messages:
    104
    GitHub:
    esh123cookie
    Well for that you're gonna have to learn php, cause to do that you need to sendMessage(""); $sender->getName(); and then make it command
     
  17. Gilsheys

    Gilsheys Spider Jockey

    Messages:
    37
    GitHub:
    gilsheys
    i'm willing to learn and i'll try to understand it but would you help me through this?
     
  18. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    You can replace the command-format in the Broadcaster config with just "{MESSAGE}" then it should only send the message to the player that you actually wrote and nothing else. Note that this also changes the other broadcasts of course.
     
  19. Gilsheys

    Gilsheys Spider Jockey

    Messages:
    37
    GitHub:
    gilsheys
    can you specified where there? because the one that you say isn't there.. or i just don't know where
     
  20. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    Go to the Broadcaster directory inside the plugin data directory, there you'll find a file named config.yml. command-format should be in there
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.