![]() |
[0.1.3] [server] ItemGroundSpawner - Printable Version +- Gothic Online Forums (https://archive.gothic-online.com) +-- Forum: Scripting (English) (https://archive.gothic-online.com/forum-11.html) +--- Forum: Resources (https://archive.gothic-online.com/forum-14.html) +---- Forum: Scripts (https://archive.gothic-online.com/forum-17.html) +---- Thread: [0.1.3] [server] ItemGroundSpawner (/thread-2302.html) |
[0.1.3] [server] ItemGroundSpawner - HammelGammel - 28.12.2017 Description: Allows respawning grounditems after a while when picked up. For example: Sticks/rocks on the ground that, when picked up, respawn after 10 minutes. Please report any problems you find here: Issue Tracker Installation:
Code: <!-- Module ItemGroundSpawner --> Usage: Create your itemspawners in the event "onInitItemSpawners" like this. Code: temGroundSpawner.add(itemId, amount, x, y, z, world, intervalInMS) examples: Code: addEventHandler("onInitItemSpawners", function() Constants: Code: TIMESPAN_SHORTEST // -- 100ms Download Repository RE: [0.1.3] [server] ItemGroundSpawner - demor140202 - 05.02.2020 hello. Why doesn't it work? ItemGroundSpawner.add(Items.id("ITMW_2H_AXE_L_01"), 1, -12751, -1124, -3200, "OLDWORLD\\OLDWORLD.ZEN", TIMESPAN_DEFAULT); I want the weapon to spawn) |