DangerousTreasures

Moved

Total Downloads: 3,087 - First Release: May 20, 2017 - Last Update: Jul 20, 2018

5/5, 24 likes
  1. Code:
    Calling hook CanAcceptItem resulted in a conflict between the following plugins: Skins - True (Boolean), DangerousTreasures (CannotAccept (CanAcceptResult))
    Just got this error show up in console :/
     
  2. That's because Skins returns true when it should be returning null
    [DOUBLEPOST=1500117478][/DOUBLEPOST]So just replace:

    Code:
            object CanAcceptItem(ItemContainer container, Item item)
            {
                if (Containers.Exists(c => c.inventory == container && c.status != ContainerStatus.Ready))
                {
                    return false;
                }
                return true;
            }
    with

    Code:
            object CanAcceptItem(ItemContainer container, Item item)
            {
                if (Containers.Exists(c => c.inventory == container && c.status != ContainerStatus.Ready))
                {
                    return false;
                }
                return null;
            }
    in Skins.cs
     
  3. Ah OK will give it a go :) Thank you @nivex
     
  4. Do I need to give the permission to the default group or is it only for admins?
     
  5. dangeroustreasures.use - allows a user to open a new event. Admins do not need this permission. It's not advised to give it to players unless you trust they won't abuse it.

    dangeroustreasures.th - awarded when the map wipes. The plugin gives this out automatically so you don't need to.

    treasurehunter - awarded when the map wipes. The plugin gives this out automatically so you don't need to.
     
  6. One suggestion - Remove the Y coordinates from broadcasting - X and Z are enough, most people don't even use Y coordinates.
     
  7. Anyone else having ghost icons on LustyMap called dtchest '#'? These are being left over and I can't get rid of them.
     
  8. nivex updated Dangerous Treasures with a new update entry:

    0.1.23

     
  9. Hello . It does not work. I only have this message looping every time : "Event failed to start! Unable to obtain a valid position. Please try again"
     
  10. How many entities are on your server? It's because it can't find a position to spawn the event because there are too many entities and not enough retries.

    Open DangerousTreasures.cs file
    Search: int maxRetries = 100;
    Replace 100 with 500
    Save, and install
    Use dtevent
     
    Last edited by a moderator: Jul 22, 2017
  11. Help
    How to add an icon to the map?
    I do not use LastyMap. i use my plugin Map
    I need a path to the icon oxide/data/Map/

    and api
    ApiAddPointUrl(string url, string iconName, Vector3 position) - add icon.
    ApiRemovePointUrl(string url, string iconName, Vector3 position) - remove icon
     
  12. hi. How do you know how many entities are present in the game? I went from 100 to 1000 but still the same error message.
     
  13. What is the link to this plugin? If private then attach it as a file in a private message to me.

    You can view your entity count by looking at the bottom left of your server's console window. I don't think this is the issue since you've increased it to 1000. I don't understand why it wouldn't work then. What is your map size? Can you install it on a fresh test server to see if it works then?
     
  14. Thx. Not sorry, I do not have the ability to test on another server. The size of the card is 3000.
     
  15. I can't reproduce this bug. Delete the plugin, config file and data file then reinstall.

    Are there any other messages in server console?
     
  16. boxes not showing up on lusty map ...
     

    Attached Files:

  17. Update LustyMap
     
  18. I made a different icon but it doesn't look great on the map,
    is it possible to generate the marker name on lustymap with a shortname? I changed the image name in the config to "Treasure" but it still shows the string* number after "Treasure_2" http://i.imgur.com/ml9D2Vd.png the icon got nearly 200 views in 20 minutes some how. lol
     
  19. No, the number is unique to the marker since multiple events can be run at the same time.
     
  20. Is it possible to disable the Events for wipe day? Would be cool to have the first events on second day of wipe