[INACT][FUN] GeoCacher v1.2 - A Geocaching Plugin for Minecraft | AddOns for Perm and xConomy [953]

Discussion in 'Inactive/Unsupported Plugins' started by Thomas Bucher, Apr 8, 2011.

  1. Offline

    Thomas Bucher

    GeoCacher - The GeoCaching Plugin for Minecraft:
    Version: v1.2
    New in 1.1-1.2:
    • Splitet Plugin / Loot Stuff / xConomy Stuff
    • Just Download the wanted AddOns below, to match your needs.
    • Added a LootEvent, so other Plugins can Hook onto the Log/LootEvent
    • LootEvent(thecache,thefinder,thechest,isitftf,foundcount)
    • Created a FTFLoot Plugin
    • MultiCaches now possible. use /geo hide option and /geo message
    Keep in mind: Dont enable norangecheckforcustoms and give normal user create right, they will certainly build arrays of caches to get mass of loot!!

    MYSQL Support NOT YET available. Work in progress

    iConomy 5.X needed for Version 0.9+

    Like the real Geocaching, You can search for Caches with a Compass.

    You get some Goodies if you find a Cache.
    You dont know Geocaching? Get the Idea here

    Features:
    • Hide GeoCaches
    • Find GeoCaches
    • Autogenerating Caches while Chunkloads
    • Lootable definition Lists
    • Broadcast new Caches
    • Get some Goodies if you find one
    • Auto Fix Boxes on Starting a Search
    • Uses Permissions 2.6 / Works Without (Create is then OP only)
    • iConomy 5.x Support via AddOn
    • BOSEconomy Support via AddOn
    • MultiWorld support
    • Help Support
    • FTF Loot via FTFLootPlugin
    • Loot Support via AddOn Plugins
    • xConomy Support via AddOn Plugins
    • Configfile

    Download The Plugin 1.2 <- Download the Needed AddOns from below.

    OLD:
    Download The Plugin 1.1 <- iConomy 5
    Download The Plugin 1.0a
    Download The Plugin 0.9
    Download The Plugin 0.7g <- iConomy 4

    Source Codes are in the Jars

    Webpage Sources

    The Webpage is written in php and the only file who needs to be modified is config.php, where you have to enter the Path to the Plugindir where the webkeys.txt and the *.gc Files reside in.

    ADDONS: (You need this to get some loot at all!!)
    Default Loot:
    Download the LootPlugin 0.1a <- Needs GeoCacher 1.2
    Download the LootPlugin 0.1 <- Needs GeoCacher 1.2
    FTF Loot:
    Download the FTFLootPlugin 0.1 <- Needs GeoCacher 1.2
    Money:
    For iConomy 5.x
    Download the iConomy5xLootPlugin 0.1 <- Needs GeoCacher 1.2
    For iConomy 4.x
    Download the iConomy4xLootPlugin 0.1 <- Needs GeoCacher 1.2
    For BOSEconomy
    Download the BOSEconomyLootPlugin 0.1 <- Needs GeoCacher 1.2


    Changelog:
    Version 1.2
    • Splitet Plugin / Loot Stuff / xConomy Stuff
    • Just Download the wanted AddOns below, to match your needs.
    • Removed all unneeded Configs from the Configfile
    Version 1.1
    • Added a LootEvent, so other Plugins can Hook onto the Log/LootEvent
      LootEvent(thecache,thefinder,thechest,isitftf,foundcount)
    Version 1.0a
    • Added Hint /geo hint | /geo hint cachename the hint for this cache
    • Added Message /geo message | /geo message cachename the message to set
    • Added Help support 0.2.4.1 /help GeoCacher
    • Added Hide option /geo hide|unhide cachename
    • Added More info options /geo info cachename | /geo info
    • Added /geo find cachename
    • Added delete for name /geo delete cachename
    • Rewritten a lot of Things..
    Version 0.9
    • iConomy 5.x
    • Added Money name Variable
    • Add DAO structure for Files
    • Rewritten most of the Code
    • Added Debug Option
    • added Mysqlconfig / DAO (not implemented yet)
    Version 0.7g
    • Fixed chunk null pointer
    Version 0.7f
    • Fixed delete bug, without permissions
    Version 0.7e
    • Removed Dupbug / lootbug
    • Added Underwatercaches (configurable)
    • Added betterhidedeep option
    Version 0.7d
    • Added norangecheckforcustoms to the config for disable Rangechecks
    Version 0.7c
    • Fixed Lootbug if no amount was specified.
    • Fixed Default Lootables
    • Fixed Empty Chest problems
    • Fixed Windows problem with locked Files.. (hopefully)
    Version 0.7
    • Added Loottables amounts
    • Fixed Lootbug with new Autocreated Caches
    • Added Webfrontend Alpha Version (needs a webserver with php)
    • Minor Bugfixes like Searchtool is named etc..
    Version 0.6c
    • Added Broadcastcolor in Config -> broadcastcolor
    • Fixed loottables,loottablesrare -> Format: yml see example config
    • Added Statsize for lootables -> lootstacksize
    • Minor Text corrections / Fixes
    Version 0.6b
    • BOSEconomy Support (Configfile -> useboseconomy: true/false)
    • iConomy Support (Configfile -> useiconomy: true/false)
    • Change to get some money (Configfile -> moneychance: 0-100 %)
    • Minimum of Cash to find (Configfile -> minmoney: value)
    • Maximum Money to add to the Minimum (Configfile -> addmoney: value)
    • Betterhide Option (Configfile -> betterhide: true/false) This will dig the Caches 1-3 Fields deep
    • Betterhide Chance (Configfile -> betterhidechance: 0-100%) Chance to betterhide a Cache
    • Searchtool to use (Configfile -> searchtool: 345) Id of the Searchtool / Defaults to Compass
    • Lot of minor Bugfixes
    • Add /geo webkey <- Gives the User a "Password" to check his Stats on the Webpage
    Version 0.5b
    • Should fix the Multilog / Multiloot bug
    Version 0.5a
    • Fixed the usage of the Plugin without Permission Plugin running
    Version 0.5
    • Fixed Load error if Chunk not Loaded / World not loaded
    • Fixed Error of Cache not able to loot.
    • Upgrade you gc Files with a line
      WORLD=yourworldname
      if you have multiworld, so the Cache now on what world it resides
      Or delete all GC files and Start over
    • Added Compassrightcklick to start search a new Cache if none is selected
    • Added Autolog if you open the Chest
    • Added Config parameters for autolog enabled / autonewcache
    • Added Config parameter for otherthing than a compass to use to search (Worldedit)
      set the searchtool=345 to whatever you like
    Version 0.4
    • Added Broadcast new Caches
    • Added Autogenerated Caches
    • Fixed Display of Decimals
    Version 0.2
    • Added Loottable
    • Added Configparameters
    • Fixed some littles
    • Added delete support
    Version 0.1

    • Initial Version
    Usage:


    Search a GeoCache by type
    /geo find
    or
    /geo find cachename
    Use a Compass (right click) to see how far away you are
    or
    Right Klick with your Compass(Searchtool)
    You can get more infos about the Cache you are hunting by

    /geo info
    or
    /geo info cachename


    If you are in a Range of 3 Blocks write

    /geo log <Your Logmessage for that Cache>
    Now loot the Chest
    or
    Just open the Chest to Autolog it without a message
    you can check the Message leaved on the Box by
    /geo message

    To Create a Cache do
    /geo create CacheName <Cache Description goes here>
    All Commands are listed by
    /help GeoCacher
    or
    /geo
    Delete a unwanted GeoCache
    /geo delete (only OP or Owner of the Cache , if you stay near a Cache)
    /geo delete cachname

    Get a webkey for a Webinterface
    /geo webkey

    Permissions:
    - geocache.create <- Create a new Cache / Delete Owned
    - geocache.search <- Search / Log and get Infos about Caches


    Example Configs:
    GeoCacher:
    Code:
    neededspace: 75
    enableautocaches: true
    autocachechance: 10
    broadcastnew: true
    autologenabled: true
    autogetnewenabled: true
    searchtool: 345
    betterhide: true
    betterhidechance: 70
    broadcastcolor: 2
    norangecheckforcustoms: false
    betterhidedeep: 10
    underwatercaches: true
    debug: false
    usemysql: false
    usehelp: true
    

    GeoCacherLootFTF:
    Code:
    rarechance: 70
    lootstacksize: 20
    thislootonly: true
    debug: true
    ftflootables:
    - 91,5
    - 89,5
    ftflootablesrare:
    - 57,2
    ftfmessage: FTF!! You are the first. You get some Extra Loot!!
    
    GeoCacherLoot:
    Code:
    message: You get some Goodies, open the Box now
    rarechance: 70
    lootstacksize: 20
    debug: true
    lootables:
    - 91,5
    - 89,5
    lootablesrare:
    - 57,2
    
    GeoCacherLootBOSEconomy | GeoCacherLootiConomy:
    Code:
    addmoney: 70
    moneyname: Bucks
    moneyonftf: true
    debug: true
    minmoney: 70
    moneychance: 101
    

    lootables and lootablesrare are:
    - itemnumber,amount
    if no amount is given like
    - itemnumber
    it will default to lootstacksize for lootables
    and 1 to lootablesrare

    Todos:
    Add /geo top <- Rankings
    Add /geo showlog <cachename>
    - New geocache [id] has been placed on world X
    Finish MySQL DAO
    Add Interface for Other Plugins (Trackables / Lootables etc)
    Split the Things up to better Maintain it
    After Hooks are made for Log / Loot
    Rewrite Loot / FTF / Rares -> Make new Plugin
    Essentials Eceonomy
    More than one Normal Loot in box
    Add Multiworld enable / disable Support for Caches / Autocaches
    Add Limits for Autocaches per world (X,Z)

    Ideas:
    • add trackables? (add some interfaces for extensions) -> Will be another AddOn
    You gonna name it ;-)

    You can test it on our Server:
    mc.ktn.ch


    [​IMG]
     
  2. Offline

    mutiny

    currently this mod is broken, we have a remake coming within the next week or so of this plugin on muttsworld
     
  3. Offline

    S4h4rk

    Any chance of the remake being released to the public for other servers?

    Best regards,
    S4h4rk
     
  4. Offline

    mutiny

    ahh i forgot about this, we redid it in CommandHelper, i can share the script if interested
     
  5. Offline

    S4h4rk

    Yes, I'm interested in the script. Thank you. If the script isn't too long, you can private message it to me and/or share it on here for others that might be interested. Otherwise, maybe it can be put someone where for download?

    Best regards,
    S4h4rk
     
  6. Offline

    mutiny

    Code:
    safe:/geocache = >>>
    assign(@location,ploc())
    assign(@randomx,rand(500,1000))
    assign(@randomz,rand(500,1000))
    assign(@random, rand(0,1))
    assign(@currentx, @location[0])
    assign(@currentz, @location[2])
    ifelse(gt(@random,0),
    assign(@newx, add(@currentx, @randomx))
    assign(@newz, add(@currentz, @randomz)),
    assign(@newx, add(@currentx, @randomx))
    assign(@newz, add(@currentz, @randomz)))
    assign(@player,player())
    array_set(@location,0, @newx)
    array_set(@location,2, @newz)
    store_value(concat(geo,@player),@location)
    set_compass_target(@player, @location)
    msg('Now use your compass and ',color(YELLOW),'/geofind ',color(WHITE),'to find the treasure!')
    
    <<<
    
    ###
    safe:/geofind = >>>
    assign(@won,0)
    assign(@currentgeo,get_value(concat(geo,player())))
    assign(@currentloc,ploc())
    assign(@player, player())
    assign(@distance,sqrt(add(pow(subtract(@currentloc[0],@currentgeo[0]),2),pow(subtract(@currentloc[2],@currentgeo[2]),2)))\
    )
    ifelse(gt(@distance,20),msg(concat('keep going ', round(@distance), 'meters more to go')),assign(@won,1))
    if(equals(@won,1),msg('YouWin!! Have some mums! Now use them on the AuctionHouse! http://muttsworldmine.com/Auction') cle\
    ar_value(concat(geo,@player)) make_effect(ploc(),DOOR_TOGGLE) acc_add(player(),65) broadcast(concat(color(GOLD),@player,c\
    olor(WHITE),' found a GeoCache! You can too! ', color(GREEN), '/geocache ', color(WHITE), 'to start!')))
    <<<
    ###
    
    
    I guarantee this is definetely not the most efficient way to do this, and it only pays out a set amount of money, but it works. Commands are /geocache and /geofind You need commandhelper.. http://dev.bukkit.org/server-mods/commandhelper/

    good plugin.
     

Share This Page