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

NPC(s)

Comments in 'Plugin Development' started by TryoneLegendZzz, Oct 16, 2015.

  1. TryoneLegendZzz
    Offline

    TryoneLegendZzz Active Member

    Joined:
    May 31, 2015
    Posts:
    201
    Minecraft User:
    SavionLegendZzz
    ok i know there is a plugin called slapper but how can i spawn and a NPC and run a command via it?
  2. amiremad
    Offline

    amiremad Active Member

    Joined:
    Sep 8, 2015
    Posts:
    192
    Minecraft User:
    amir107
    me tooooooooooooooooooooooo
  3. GmWM
    Offline

    GmWM Active Member Plugin Developer

    Joined:
    Sep 8, 2013
    Posts:
    181
    Plugins:
    3
    Why don't you look into its source code?
  4. DunxandMinecraft
    Offline

    DunxandMinecraft Active Member

    Joined:
    Oct 26, 2014
    Posts:
    158
    And, why don't you use Slapper. It's simple
    jojoe77777 likes this.
  5. amiremad
    Offline

    amiremad Active Member

    Joined:
    Sep 8, 2015
    Posts:
    192
    Minecraft User:
    amir107
    someone help me with my thread
  6. amiremad
    Offline

    amiremad Active Member

    Joined:
    Sep 8, 2015
    Posts:
    192
    Minecraft User:
    amir107
  7. Hotshot_9930
    Offline

    Hotshot_9930 Notable Member Plugin Developer

    Joined:
    May 26, 2014
    Posts:
    665
    Plugins:
    2
    Minecraft User:
    HotshotHD
    You should look at Slapper's source code before creating a thread. Its so much easier to learn from another plugin that does exactly what you want than waiting for replies here.
    DunxandMinecraft and jojoe77777 like this.
  8. Muqsit
    Offline

    Muqsit Active Member

    Joined:
    Sep 9, 2015
    Posts:
    175
    Minecraft User:
    Muqsit
    /slapper <mob> <name>
    Eg: slapper bat abcd
    Color: slapper bat {color}2Test

    Add a command to the NPC:
    Assuming your NPC is named 'abc1'

    Go to the config.yml
    Add these lines:
    abcd1:
    - tell {player} Hey, it's me, the fake guy!

    If you used colors for your 'slapper' npc, there's no need to add the § or the {color} tag in the config.
    Suppose your NPC is named: §bFan§eC
    You config.yml must look like this...

    FanC:
    - say command...
  9. MCPEPIG
    Offline

    MCPEPIG Notable Member

    Joined:
    Jun 22, 2014
    Posts:
    349
    Minecraft User:
    MCPEPIG
    He wants code NOT a plugin. He even said he already knows there's a plugin called Slapper, read carefully next time.
    HotFireyDeath likes this.
  10. Muqsit
    Offline

    Muqsit Active Member

    Joined:
    Sep 9, 2015
    Posts:
    175
    Minecraft User:
    Muqsit
    "ok i know there is a plugin called slapper but how can i spawn and a NPC and run a command via it?"
    He used: 'How can I spawn' 'Run A Command' 'VIA it'
    it = Slapper
    VIA it= through slapper
    When he says 'How can I spawn and a NPC and run a command via it", he means,
    "How can I spawn a NPC and run a command through Slapper".

    This is primarily known as English.
    Vaivez66 likes this.
  11. MCPEPIG
    Offline

    MCPEPIG Notable Member

    Joined:
    Jun 22, 2014
    Posts:
    349
    Minecraft User:
    MCPEPIG
    Learn to read CAREFULLY before posting. If he wanted a npc plugin then why would he post it in the Plugin Development section and not the Plugin Request section? He wants code for a Command to Spawn NPCS and Running Commands with Them, not a plugin.
    zombie_Power likes this.
  12. jojoe77777
    Offline

    jojoe77777 Notable Member Plugin Developer

    Joined:
    May 28, 2015
    Posts:
    653
    Plugins:
    1
    Minecraft User:
    jojoe77777
    Have a look at Slapper's source code.
    TryoneLegendZzz likes this.
  13. Gamecrafter
    Offline

    Gamecrafter

    Joined:
    Nov 20, 2014
    Posts:
    978
    Plugins:
    9
    Why not check out Slapper's source code and try to figure it out? o_O
    Off-topic. It's our choice whether we want to help you or completely ignore you. In this case, I'm ignoring you.
    It's no use telling him, for some people it goes in one ear and comes out the other.
    You really think you're helping? He already knows how to use the plugin, he wants to know how to spawn NPC(s), which is a totally different topic.
    For some people, when you tell them something, it goes in one ear and comes out the other. Save your breath(or in this case typing), because they'll repeat that mistake.
    MCPEPIG likes this.
  14. TryoneLegendZzz
    Offline

    TryoneLegendZzz Active Member

    Joined:
    May 31, 2015
    Posts:
    201
    Minecraft User:
    SavionLegendZzz
    jojoe77777 likes this.
  15. TryoneLegendZzz
    Offline

    TryoneLegendZzz Active Member

    Joined:
    May 31, 2015
    Posts:
    201
    Minecraft User:
    SavionLegendZzz
    why tf do you always talk trash? like fr tho
    Muqsit likes this.
  16. Muqsit
    Offline

    Muqsit Active Member

    Joined:
    Sep 9, 2015
    Posts:
    175
    Minecraft User:
    Muqsit
    Ikr....they're lucky idk how they look!

Share This Page

Advertisement