[FUN] Citizens v2.0.11 - Human NPCs for Bukkit [1.7.2]

Discussion in 'Archived: Plugin Releases' started by Citizens, Mar 5, 2011.

  1. Offline

    Citizens

    Citizens - Human NPCs for Bukkit
    Version: 2.0.11
    Authors: @fullwall and @aPunch
    Source: Citizens on GitHub

    Citizens is now on BukkitDev

    This thread will no longer be updated. We encourage you to use our page on BukkitDev. You can find information, links to our wiki and website, and the download page there.

    Showing Your Support

    We work hard to maintain Citizens. We've been working on Citizens2 around the clock on new and exciting features. A little motivation never hurts, so feel free to donate to us - fullwall and aPunch.

    If you can't donate, we appreciate a "hello" every now and then. Stop by the IRC channel #citizens on irc.esper.net to discuss Citizens and give thanks!
     
  2. Offline

    Scandragon

    Try that
     
    Nibelton likes this.
  3. Offline

    Nibelton

    thnx,it works now
     
  4. Offline

    SubLexx

    i has try to use dev builds from the homepage and re-download it for more times but always get i this error:

    error.png

    MC 1.8.1
    CB 1240
     
  5. Offline

    skotyyy


    watch and sub plz
     
  6. Offline

    fullwall

    @Waffletastic - No, it's not currently possible to give things on quest acceptance. finishhere: true
    To all - due to the fixing of the name conflict issue in current dev builds, aiming to push out a new version soon. Before that happens, I'd like to track down the memory leak issues a few have been experiencing and fix those first. To do that though, I need profiling data. If you have been experiencing high memory usage with Citizens, it'd be *really* helpful if you could use a profiler such as JProfiler and JProbe and report which objects are using up the memory.
     
  7. Offline

    spudy121

    can you change the skins on the NPC's
     
  8. Offline

    Scandragon

    You'd need something like citizensspout for that.
    And only players with spoutcraft would see the skins


    On another node, a permission node.
    Those who can't get traders to work
    The node is citizens.trader.use.trade
     
  9. Offline

    Soryo

    I was hoping I could get some help with the questers. I've spent 3 hours trying to get this done right, but I can't figure it out.

    I want to make a quest that essentially has the user visit a location and come back. Every time I try to do anything with the quest YML file, it says an error in my console that something went wrong and it's sending it to the developers.
    Are there any in-game commands that lead you through the quest creation? That way I can't screw it up.. -_-

    Also, when I type /location in-game to figure out my coordinates it gives me
    "-22 N, 22 E, 8 H"
    N = x
    E = y
    H = z
    Is that right? I've never been good with anything requiring brainpower... :'(

    Code:
    {}
    Ruins:
        text:
            description:[QUEST] That island looks like a ruins, why don't you go explore it?
            completion: At least you were able to get out!
            acceptance: Okay, I'll see you later.
        repeats: 0
        objectives:
            '0':
                type: move location
                location:
                x: -22
                y: 22
                z: 8
                world: 'world'
                
    what am I doing wrong? :(
     
  10. Offline

    Dragonslife

    @fullwall - i am still having this error that occurs..... what to do? or can you fix this within the plugin?
    Code:
    2011-10-08 23:16:52 [WARNING] Task of 'Citizens' generated an exception
    java.lang.IllegalArgumentException: n must be positive
        at java.util.Random.nextInt(Unknown Source)
        at net.citizensnpcs.resources.npclib.creatures.DefaultSpawner.getRandomInt(DefaultSpawner.java:86)
        at net.citizensnpcs.resources.npclib.creatures.DefaultSpawner.spawn(DefaultSpawner.java:38)
        at net.citizensnpcs.resources.npclib.creatures.CreatureTask.spawnCreature(CreatureTask.java:47)
        at net.citizensnpcs.resources.npclib.creatures.CreatureTask.run(CreatureTask.java:39)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:441)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
     
  11. Offline

    Neero

    If not using economy mod, how do you pay for NPC's etc? Can you use items as money?
     
  12. Offline

    Hryniu

    Could you make them not to spawn inside each other, when created more than one with the same name, thats very anoying.
     
  13. Offline

    Aeron

    @fullwall
    Suggestion: Add global sell/buy values configurable for traders in one flat configuration file, so that you don't have to add sell/buy prices to each trader you create. but if you specify with commands /trader buy/sell a value, it will be with a higher priority than the default values set in the configuration file and the trader will use those values instead of default values, that way the only thing for an admin/player would be simply to add items to the trader's inventory without the hassle of typing for each trader buy/sell values!
     
  14. Been reading through the posts. It's amazing to me how anyone can have the patiens to do a plugin and keep it updated like this. A plugin like Citizen that's so much more complicated than most other plugins I've seen must be like hell to keep up with since the more awesome the plugin is, the more questions fills up here.
    How do you manage helping everyone AND work on the plugin? You're truly a hero!
     
    Exidous likes this.
  15. Offline

    Hryniu

    And for the Wizards, should be an option to set what ever price you want for each teleport, or each mobspawn.. And stuff.
     
  16. Offline

    Elifdas

    Is this version compatible with 1.8.1?
     
  17. Offline

    Hryniu

    Yes, it is.. But if you wanna use Citizens 1.1.2, you should download Bukkit 1240. As on the 1185, npcs will disappear.
     
  18. Offline

    aufdemrand

    @fullwall

    Could a feature be added like... /npc talkchance %?

    I sometimes find it overwhelming for the NPCs to say something every time you come close to them. Making them talk 50%, or even 10% of the time could be a good addition.
     
  19. Offline

    Shadow771

    Hey, thinking about trying the plugin, though I have a question. Do traders support daily stock? EG: Players can only buy 1024 arrows per 24 hours from the trader.
     
  20. Offline

    Aeron

    @Shadow771
    Not really, you either have traders, that sell items that you add in their inventory as the owner of that npc trader or you toggle the npc with unlimited stock.

    By the way, if anyone is interested, I just finished a list of values for each item, that I want for my traders to sell on my server (the prices were calculated each with formula based on what items it requires to be crafted from general items that are in the game, such as cobblestone, logs, ore. Each crafting step adds up a multiplyer 10% and 0,25 to the price, each smelting step adds 20% and 0,50 to the price value of the item, farming - 30% and 0,75 addition to the price (wheat mainly); coal is worth 3x cobblestone, iron is worth 3x coal, gold is worth 3x iron, diamond is worth 4x iron).

    P.S. If you are planning to use these prices, giving credit for me would be nice ;)

    EDIT:
    I have converted the data in the first text file, so it matches the pattern, that Citizens use to save data about trader's stocks and I have added a converted data text file too!

    Where to paste it in:
    1) Find and open Citizens folder under Plugins directory and find file called: npc-profiles.yml
    2) Find the desired trader you wish to edit, here is an example:
    Code:
    '3':
        basic:
            text: Don't try to steal anything!;Come, look! Don't go!;I need supplies, have anything to sell?;Hello :);Be my guest! Take a look at my wares.;Are you interesting in buying something?
            look-when-close: 'true'
            location: planet_ori,-38.49237517796414,63.5,58.558267904405284,257.38947,0.0
            items: 0:0,0:0,299:0,0:0,301:0,
            color: '15'
            inventory: 268/1/0,271/1/0,270/1/0,269/1/0,290/1/0,298/1/0,299/1/0,300/1/0,301/1/0,346/1/0,359/1/0,261/1/0,262/16/0,50/64/0,365/1/0,366/1/0,367/16/0,352/16/0,260/1/0,368/1/0,341/4/0,263/16/0,334/8/0,349/1/0,350/1/0,287/16/0,329/1/0,362/16/0,361/16/0,295/16/0,297/16/0,323/1/0,12/16/0,3/16/0,4/16/0,5/16/0,
            name: Hunter_John
            owner: Voldzito
            talk-when-close: 'true'
        trader:
            balance: 1.0060582E7
            stock: 1/10/0/,41.0,true,;2/10/0/,25.0,true,;3/10/0/,20.0,true,;4/10/0/,30.0,true,;5/10/0/,14.0,true,;6/10/0/,20.0,true,;6/10/1/,20.0,true,;6/10/2/,20.0,true,;12/10/0/,20.0,true,;13/10/0/,30.0,true,;14/10/0/,810.0,true,;15/10/0/,270.0,true,;16/10/0/,90.0,true,;17/10/0/,40.0,true,;17/10/1/,40.0,true,;17/10/2/,40.0,true,;18/10/0/,10.0,true,;19/10/0/,270.0,true,;20/10/0/,25.0,true,;21/10/0/,270.0,true,;22/10/0/,448.0,true,;23/1/0/,77.0,true,;24/10/0/,91.0,true,;25/1/0/,30.0,true,;26/1/0/,15.0,true,;27/10/0/,6638.0,true,;28/10/0/,2452.0,true,;29/10/0/,890.0,true,;30/10/0/,90.0,true,;31/10/3/,10.0,true,;32/10/0/,10.0,true,;33/10/0/,717.0,true,;35/10/0/,30.0,true,;35/10/1/,61.0,true,;35/10/2/,70.0,true,;35/10/3/,78.0,true,;35/10/4/,56.0,true,;35/10/5/,105.0,true,;35/10/6/,62.0,true,;35/10/7/,75.0,true,;35/10/8/,71.0,true,;35/10/9/,119.0,true,;35/10/10/,77.0,true,;35/10/11/,85.0,true,;35/10/12/,212.0,true,;35/10/13/,133.0,true,;35/10/14/,56.0,true,;35/10/15/,80.0,true,;37/10/0/,30.0,true,;38/10/0/,30.0,true,;39/10/0/,90.0,true,;40/10/0/,90.0,true,;41/10/0/,9675.0,true,;42/10/0/,3260.0,true,;43/10/0/,95.0,true,;43/10/1/,204.0,true,;43/10/2/,35.0,true,;43/10/3/,71.0,true,;43/10/4/,1104.0,true,;43/10/5/,110.0,true,;44/10/0/,48.0,true,;44/10/1/,102.0,true,;44/10/2/,17.0,true,;44/10/3/,36.0,true,;44/10/4/,552.0,true,;44/10/5/,55.0,true,;45/10/0/,500.0,true,;46/1/0/,559.0,true,;47/10/0/,846.0,true,;48/10/0/,180.0,true,;49/10/0/,180.0,true,;50/10/0/,72.0,true,;53/10/0/,25.0,true,;54/1/0/,12.0,true,;56/10/0/,1080.0,true,;57/10/0/,12882.0,true,;58/1/0/,6.0,true,;61/1/0/,27.0,true,;65/10/0/,79.0,true,;66/10/0/,2185.0,true,;67/10/0/,52.0,true,;69/1/0/,5.0,true,;70/10/0/,93.0,true,;72/10/0/,32.0,true,;76/1/0/,19.0,true,;77/1/0/,9.0,true,;78/10/0/,20.0,true,;79/10/0/,270.0,true,;80/10/0/,201.0,true,;81/10/0/,70.0,true,;82/10/0/,894.0,true,;84/1/0/,155.0,true,;85/10/0/,68.0,true,;86/10/0/,270.0,true,;87/10/0/,20.0,true,;88/10/0/,30.0,true,;89/10/0/,90.0,true,;91/1/0/,34.0,true,;96/1/0/,5.0,true,;98/10/0/,48.0,true,;98/10/1/,48.0,true,;98/10/2/,48.0,true,;101/10/0/,817.0,true,;102/10/0/,12.0,true,;103/1/0/,89.0,true,;106/10/0/,40.0,true,;107/1/0/,8.0,true,;108/10/0/,827.0,true,;109/10/0/,81.0,true,;256/1/0/,39.0,true,;257/1/0/,111.0,true,;258/1/0/,111.0,true,;259/1/0/,40.0,true,;260/10/0/,270.0,true,;261/1/0/,33.0,true,;262/10/0/,90.0,true,;263/10/0/,113.0,true,;263/10/1/,53.0,true,;264/1/0/,130.0,true,;265/10/0/,329.0,true,;266/10/0/,977.0,true,;267/1/0/,74.0,true,;268/1/0/,4.0,true,;269/1/0/,4.0,true,;270/1/0/,7.0,true,;271/1/0/,7.0,true,;272/1/0/,8.0,true,;273/1/0/,6.0,true,;274/1/0/,12.0,true,;275/1/0/,12.0,true,;276/1/0/,288.0,true,;277/1/0/,146.0,true,;278/1/0/,432.0,true,;279/1/0/,432.0,true,;280/10/0/,10.0,true,;281/1/0/,5.0,true,;282/1/0/,25.0,true,;283/1/0/,216.0,true,;284/1/0/,110.0,true,;285/1/0/,325.0,true,;286/1/0/,325.0,true,;287/10/0/,90.0,true,;288/10/0/,40.0,true,;289/10/0/,1000.0,true,;290/1/0/,5.0,true,;291/1/0/,9.0,true,;292/1/0/,75.0,true,;293/1/0/,289.0,true,;294/1/0/,217.0,true,;295/10/0/,60.0,true,;296/10/0/,86.0,true,;297/10/0/,285.0,true,;298/1/0/,33.0,true,;299/1/0/,53.0,true,;300/1/0/,46.0,true,;301/1/0/,27.0,true,;302/1/0/,200.0,true,;303/1/0/,320.0,true,;304/1/0/,280.0,true,;305/1/0/,160.0,true,;306/1/0/,181.0,true,;307/1/0/,290.0,true,;308/1/0/,254.0,true,;309/1/0/,145.0,true,;310/1/0/,716.0,true,;311/1/0/,1145.0,true,;312/1/0/,1002.0,true,;313/1/0/,573.0,true,;314/1/0/,538.0,true,;315/1/0/,860.0,true,;316/1/0/,753.0,true,;317/1/0/,430.0,true,;318/10/0/,30.0,true,;319/10/0/,40.0,true,;320/10/0/,53.0,true,;321/1/0/,12.0,true,;322/1/0/,890.0,true,;323/1/0/,10.0,true,;324/1/0/,9.0,true,;325/1/0/,109.0,true,;326/1/0/,115.0,true,;327/1/0/,118.0,true,;328/1/0/,181.0,true,;329/1/0/,50.0,true,;330/1/0/,217.0,true,;331/10/0/,160.0,true,;332/10/0/,20.0,true,;333/1/0/,8.0,true,;334/10/0/,60.0,true,;335/1/0/,118.0,true,;336/10/0/,113.0,true,;337/10/0/,90.0,true,;338/10/0/,60.0,true,;339/10/0/,69.0,true,;340/10/0/,229.0,true,;341/10/0/,90.0,true,;342/1/0/,213.0,true,;343/1/0/,229.0,true,;344/10/0/,40.0,true,;345/1/0/,163.0,true,;346/1/0/,23.0,true,;347/1/0/,448.0,true,;348/10/0/,30.0,true,;349/10/0/,40.0,true,;350/10/0/,53.0,true,;351/10/0/,40.0,true,;351/10/1/,19.0,true,;351/10/2/,89.0,true,;351/10/3/,160.0,true,;351/10/4/,45.0,true,;351/10/5/,38.0,true,;351/10/6/,76.0,true,;351/10/7/,32.0,true,;351/10/8/,36.0,true,;351/10/9/,24.0,true,;351/10/10/,63.0,true,;351/10/11/,19.0,true,;351/10/12/,39.0,true,;351/10/13/,31.0,true,;351/10/14/,23.0,true,;351/10/15/,21.0,true,;352/10/0/,50.0,true,;353/10/0/,69.0,true,;354/1/0/,437.0,true,;355/1/0/,15.0,true,;356/1/0/,58.0,true,;357/10/0/,48.0,true,;359/1/0/,73.0,true,;360/10/0/,90.0,true,;361/10/0/,77.0,true,;362/10/0/,102.0,true,;363/10/0/,40.0,true,;364/10/0/,53.0,true,;365/10/0/,30.0,true,;366/10/0/,41.0,true,;367/10/0/,40.0,true,;368/1/0/,9.0,true,;2256/1/0/,100.0,true,;2257/1/0/,100.0,true,;1/10/0/,51.0,false,;2/10/0/,31.0,false,;3/10/0/,25.0,false,;4/10/0/,38.0,false,;5/10/0/,17.0,false,;6/10/0/,25.0,false,;6/10/1/,25.0,false,;6/10/2/,25.0,false,;12/10/0/,25.0,false,;13/10/0/,38.0,false,;14/10/0/,1013.0,false,;15/10/0/,338.0,false,;16/10/0/,113.0,false,;17/10/0/,50.0,false,;17/10/1/,50.0,false,;17/10/2/,50.0,false,;18/10/0/,13.0,false,;19/10/0/,338.0,false,;20/10/0/,31.0,false,;21/10/0/,338.0,false,;22/10/0/,560.0,false,;23/1/0/,97.0,false,;24/10/0/,113.0,false,;25/1/0/,37.0,false,;26/1/0/,18.0,false,;27/10/0/,8297.0,false,;28/10/0/,3065.0,false,;29/10/0/,1113.0,false,;30/10/0/,113.0,false,;31/10/3/,13.0,false,;32/10/0/,13.0,false,;33/10/0/,896.0,false,;35/10/0/,38.0,false,;35/10/1/,77.0,false,;35/10/2/,87.0,false,;35/10/3/,98.0,false,;35/10/4/,71.0,false,;35/10/5/,131.0,false,;35/10/6/,78.0,false,;35/10/7/,94.0,false,;35/10/8/,89.0,false,;35/10/9/,149.0,false,;35/10/10/,96.0,false,35/10/11/,106.0,false,;35/10/12/,264.0,false,;35/10/13/,167.0,false,;35/10/14/,71.0,false,;35/10/15/,99.0,false,;37/10/0/,38.0,false,;38/10/0/,38.0,false,;39/10/0/,113.0,false,;40/10/0/,113.0,false,;41/10/0/,12094.0,false,;42/10/0/,4075.0,false,;43/10/0/,119.0,false,;43/10/1/,255.0,false,;43/10/2/,43.0,false,;43/10/3/,89.0,false,;43/10/4/,1380.0,false,;43/10/5/,137.0,false,;44/10/0/,60.0,false,;44/10/1/,128.0,false,;44/10/2/,22.0,false,;44/10/3/,44.0,false,;44/10/4/,690.0,false,;44/10/5/,69.0,false,;45/10/0/,625.0,false,;46/1/0/,699.0,false,;47/10/0/,1057.0,false,;48/10/0/,225.0,false,;49/10/0/,225.0,false,;50/10/0/,90.0,false,;53/10/0/,31.0,false,;54/1/0/,15.0,false,;56/10/0/,1350.0,false,;57/10/0/,16103.0,false,;58/1/0/,8.0,false,;61/1/0/,33.0,false,;65/10/0/,99.0,false,;66/10/0/,2731.0,false,;67/10/0/,65.0,false,;69/1/0/,6.0,false,;70/10/0/,116.0,false,;72/10/0/,40.0,false,;76/1/0/,24.0,false,;77/1/0/,12.0,false,;78/10/0/,25.0,false,;79/10/0/,338.0,false,;80/10/0/,251.0,false,;81/10/0/,88.0,false,;82/10/0/,1117.0,false,;84/1/0/,194.0,false,;85/10/0/,85.0,false,;86/10/0/,338.0,false,;87/10/0/,25.0,false,;88/10/0/,38.0,false,;89/10/0/,113.0,false,;91/1/0/,43.0,false,;96/1/0/,6.0,false,;98/10/0/,60.0,false,;98/10/1/,60.0,false,;98/10/2/,60.0,false,;101/10/0/,1021.0,false,;102/10/0/,15.0,false,;103/1/0/,112.0,false,;106/10/0/,50.0,false,;107/1/0/,9.0,false,;108/10/0/,1034.0,false,;109/10/0/,101.0,false,;256/1/0/,48.0,false,;257/1/0/,139.0,false,;258/1/0/,139.0,false,;259/1/0/,50.0,false,;260/10/0/,338.0,false,;261/1/0/,42.0,false,;262/10/0/,113.0,false,;263/10/0/,141.0,false,;263/10/1/,66.0,false,;264/1/0/,163.0,false,;265/10/0/,411.0,false,;266/10/0/,1221.0,false,;267/1/0/,92.0,false,;268/1/0/,5.0,false,;269/1/0/,5.0,false,;270/1/0/,9.0,false,;271/1/0/,9.0,false,;272/1/0/,10.0,false,273/1/0/,7.0,false,;274/1/0/,15.0,false,;275/1/0/,15.0,false,;276/1/0/,359.0,false,;277/1/0/,182.0,false,;278/1/0/,540.0,false,;279/1/0/,540.0,false,;280/10/0/,12.0,false,;281/1/0/,6.0,false,;282/1/0/,32.0,false,;283/1/0/,270.0,false,;284/1/0/,137.0,false,;285/1/0/,406.0,false,;286/1/0/,406.0,false,;287/10/0/,113.0,false,;288/10/0/,50.0,false,;289/10/0/,1250.0,false,;290/1/0/,7.0,false,;291/1/0/,11.0,false,;292/1/0/,94.0,false,;293/1/0/,361.0,false,;294/1/0/,272.0,false,;295/10/0/,75.0,false,;296/10/0/,107.0,false,;297/10/0/,356.0,false,;298/1/0/,42.0,false,;299/1/0/,66.0,false,;300/1/0/,58.0,false,;301/1/0/,33.0,false,;302/1/0/,250.0,false,;303/1/0/,400.0,false,;304/1/0/,350.0,false,;305/1/0/,200.0,false,;306/1/0/,227.0,false,;307/1/0/,362.0,false,;308/1/0/,317.0,false,;309/1/0/,181.0,false,;310/1/0/,895.0,false,;311/1/0/,1431.0,false,;312/1/0/,1253.0,false,;313/1/0/,716.0,false,;314/1/0/,672.0,false,;315/1/0/,1075.0,false,;316/1/0/,941.0,false,;317/1/0/,538.0,false,;318/10/0/,38.0,false,;319/10/0/,50.0,false,;320/10/0/,66.0,false,;321/1/0/,15.0,false,;322/1/0/,1112.0,false,;323/1/0/,13.0,false,;324/1/0/,11.0,false,;325/1/0/,136.0,false,;326/1/0/,144.0,false,;327/1/0/,147.0,false,;328/1/0/,227.0,false,;329/1/0/,63.0,false,;330/1/0/,272.0,false,;331/10/0/,200.0,false,;332/10/0/,25.0,false,;333/1/0/,10.0,false,;334/10/0/,75.0,false,;335/1/0/,147.0,false,;336/10/0/,141.0,false,;337/10/0/,113.0,false,;338/10/0/,75.0,false,;339/10/0/,86.0,false,;340/10/0/,286.0,false,;341/10/0/,113.0,false,;342/1/0/,266.0,false,;343/1/0/,286.0,false,;344/10/0/,50.0,false,;345/1/0/,203.0,false,;346/1/0/,29.0,false,;347/1/0/,560.0,false,;348/10/0/,38.0,false,;349/10/0/,50.0,false,;350/10/0/,66.0,false,;351/10/0/,50.0,false,;351/10/1/,24.0,false,;351/10/2/,111.0,false,;351/10/3/,200.0,false,;351/10/4/,56.0,false,;351/10/5/,47.0,false,;351/10/6/,95.0,false,;351/10/7/,41.0,false,;351/10/8/,45.0,false,;351/10/9/,31.0,false,;351/10/10/,79.0,false,;351/10/11/,24.0,false,;351/10/12/,48.0,false,;351/10/13/,39.0,false,;351/10/14/,29.0,false,;351/10/15/,26.0,false,;352/10/0/,63.0,false,;353/10/0/,86.0,false,;354/1/0/,546.0,false,;355/1/0/,18.0,false,;356/1/0/,72.0,false,;357/10/0/,60.0,false,;359/1/0/,91.0,false,;360/10/0/,113.0,false,;361/10/0/,96.0,false,;362/10/0/,127.0,false,;363/10/0/,50.0,false,;364/10/0/,66.0,false,;365/10/0/,38.0,false,;366/10/0/,51.0,false,;367/10/0/,50.0,false,;368/1/0/,11.0,false,;2256/1/0/,125.0,false,;2257/1/0/,125.0,false,
            toggle: 'true'
            unlimited: 'true'
    3) Look closer in the code and the longest line is where I added the converted values of the trading, which means, that this trader now buys EVERYTHING in that list and will sell items, that you add in his inventory without the need to add price values ;)

    So that's basically a temporary solution until there can be set up global buy/sell values for npcs, of which I already added a suggestion:
    With those values added (to add them you have to stop the server), the trader now has 27 pages of buy and sell items:
    2011-10-09_07.30.02.jpg
     

    Attached Files:

  21. Offline

    Exidous

    @fullwall can a quest contain a objective to kill another npc?
     
  22. Offline

    Scandragon

    Indentation, indentation, indentation
     
  23. Offline

    (AVE(N)GER)

    exactly...
    maybe the guards could send players that pvp in public areas or where ever to pre-set jails .. with eco they could do it if u don't have enough money ;p although it would be a matter of sending u to prison when u died or to ur set spawn if u can pay the fee (as the guard will attack u not ask if u want to pay) anyway ;p ...

    yes this is a brilliant plug in and has massive potential
     
  24. Offline

    Soryo

    I copied and pasted your fixed version but it still gave me an error and the server crashed =/

    Code:
    00:23:21 [SEVERE] Could not pass event CUSTOM_EVENT to Citizens
    java.lang.ExceptionInInitializerError
            at net.citizensnpcs.questers.listeners.QuesterCitizensListen.onCitizensE
    nable(QuesterCitizensListen.java:18)
            at net.citizensnpcs.api.event.citizens.CitizensListener.onCustomEvent(Ci
    tizensListener.java:30)
            at net.citizensnpcs.questers.listeners.QuesterCitizensListen.onCustomEve
    nt(QuesterCitizensListen.java:35)
            at org.bukkit.plugin.java.JavaPluginLoader$93.execute(JavaPluginLoader.j
    ava:897)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.jav
    a:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:338)
            at net.citizensnpcs.Citizens$2.run(Citizens.java:141)
            at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(C
    raftScheduler.java:137)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:439)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: expected '<document start>', but found BlockMappingStart
     in "<reader>", line 2, column 1:
        Ruins:
        ^
    
            at org.yaml.snakeyaml.parser.ParserImpl$ParseDocumentStart.produce(Parse
    rImpl.java:233)
            at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
            at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
            at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:108)
    
            at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseCons
    tructor.java:124)
            at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
            at org.bukkit.util.config.Configuration.load(Configuration.java:82)
            at net.citizensnpcs.properties.ConfigurationHandler.load(ConfigurationHa
    ndler.java:32)
            at net.citizensnpcs.properties.ConfigurationHandler.<init>(Configuration
    Handler.java:26)
            at net.citizensnpcs.questers.data.QuestProperties.<clinit>(QuestProperti
    es.java:9)
            ... 11 more
    00:23:21 [INFO] [Citizens] An error has occurred, please wait while it is sent t
    o the developers...
    Oh well, it's not that important to have the questers :p. Thanks for your help anyway though. I'll wait till the next update and hope my problem goes away with it.
     
  25. Offline

    Scandragon

    I should have mentioned, I'm on the iPad at the moment.. Might introduce bad formatting in text.
    Just insert the extra 4 space indentation and the amount (the block leeway, but this is optional)

    @fullwall - Request for additional objective type: talk to npc
    Go to the npc specified and left/right click it.
    Tthere would be no amount node for it..
    There are curreently two ways you can do this.. move location and delivery, but delivery isn't the best, as you'll need to be given something to deliver first and need to hold it in your hand..
    move location isn't perfect either, as you won't be actually talking to the npc

    And I had another request while I was fixing my breakfast, but I've forgotten it now
     
  26. Offline

    DJTza

    Morning.

    My basic NPCs keep following the people that they are named after ever since I updated to 1240 and citizens 1.1.2. Does anyone know how to fix this? they even follow you if you fly. It is really annoying and I might have to rollback the server to previous RB :( I also can't right click them to remove them so I ended up having to look in the config files for their IDs.

    Thanks in advance. Love this plugin :)
    Dj
     
  27. Offline

    Scandragon

    Update to the latest dev build of citizens. http://ci.citizensnpcs.net
     
    MindEngineer likes this.
  28. Offline

    fullwall

  29. Offline

    Regulus123

    Any example of quest format?
     
  30. Offline

    Scandragon

    Now I remember my other request!
    In messages, we can add new lines and colors..
    How about a way to pause the text for x amount of ticks, then continue?

    As Cryptite mentioned, when doing quests and npcs say multiple lines, you should be able to add delays..
    It'd make the whole thing much more userfriendly :)
     
  31. Offline

    nateskywalker

    QUEST EXAMPLE 90Sec. Google Lazy Bone :p:
    -------------------------------------------------------------------------------------------------------------------------------------
    -------------------------------------------------------------------------------------------------------------------------------------
    -------------------------------------------------------------------------------------------------------------------------------------
    example:
    #Title of quest
    texts:
    #basically like a category for descriptions, etc.
    description: A build quest
    #The description of the quest (appears in text bar). Should probably tell the player what they need to do, because, this is what is shown when a player views a quest before accepting
    completion: <g>You win! Here's some stone.
    #What appears in the text bar after the quest is complete
    acceptance: <g>Challenge <y>accepted<g>.
    #What appears in the text bar after the quest is accepted
    requirements:
    #What requirements does the player need to do this quest? This whole section can be deleted, if anyone can
    '0':
    #Everything is numerical (I think) like 0, 1, 2, 3, 4, ...
    type: rank
    #rank - Make your quest available for people only of a certain rank (I'm pretty sure rank is currently the only available requirement thing)
    rank: 'your-rank-here'
    #rank specified.
    repeats: -1
    #-1 = unlimited repeat of quests, 1 = once (per player I think...)
    objectives:

    '0':

    '0':

    type: build
    #build type of quest. See below for more types
    materialid: 1
    #ID of object need to be put down (in this case stone)
    amount: 3
    #amount of object needs to be put down (in this case 3; 3 stone)
    message: Built. Now come back here!
    #Message given to you once objective completed
    rewards:
    #Rewards upon completion
    '0':
    #that numbering thing again!
    type: item
    #types of rewards below
    id: 1
    #ID of reward (in this case stone)
    amount: 64
    #amount of material given
    take: false
    #take: false means that it will be given to player. take: true means that it will be given to the player.
    -------------------------------------------------------------------------------------------------------------------------------------
    -------------------------------------------------------------------------------------------------------------------------------------
    -------------------------------------------------------------------------------------------------------------------------------------

    Awsomme Plugin Grezz nate
     

Share This Page