{
[1] = {
pos = Position(961, 1060, 7),
size = 6,
chests = {1740,32151,27531,1746}
}
No, these are not item ids, these arewow man awesome release! thanks for it! im trying to apply it, but im getting a problem, is this configuration ok?
Code:{ [1] = { pos = Position(961, 1060, 7), size = 6, chests = {1740,32151,27531,1746} }
those chests are my 4 different chests
CURSED_CHESTS_CONFIG
table numbers.CURSED_CHESTS_CONFIG = {
[1] = { ... },
[2] = { ... },
[3] = { ... },
...
[49] = { ... },
[50] = { ... }
}
...
...
chests = {1, 2, 50 }
First chest I got was Epic. Did you changeCan u, check if spawn all the Tiers, because for me only Spawn a Legendary tier
chance
values?CURSED_CHESTS_TIER_COMMON = 1
CURSED_CHESTS_TIER_UNCOMMON = 2
CURSED_CHESTS_TIER_RARE = 3
CURSED_CHESTS_TIER_LEGENDARY = 4
CURSED_CHESTS_TIERS = {
{
tier = CURSED_CHESTS_TIER_COMMON,
chance = 50,
text = "Common Cursed Chest",
item = 29564
},
{
tier = CURSED_CHESTS_TIER_UNCOMMON,
chance = 30,
text = "UnCommon Cursed Chest",
item = 30852
},
{
tier = CURSED_CHESTS_TIER_RARE,
chance = 20,
text = "Rare Cursed Chest",
item = 30850
},
{
tier = CURSED_CHESTS_TIER_LEGENDARY,
chance = 10,
text = "Legendary Cursed Chest",
item = 30851
}
}
cursed_chest_spawner.lua
in globalevents
if rarity.chance <= math.random(1, 100) then
and change to if math.random(1, 100) <= rarity.chance then
Can do.Only the player who activated the chest can get the reward.
Can do.If party, leader, or party members can activate and get loot.
True, will change.Random monsters for waves from a list. (Like there's a list 5-6 monsters, randomly spawn 15 of them per wave)
Note: Repetitive waves may get boring. With this addition sometimes chest will be easier sometimes harder, more fun.
Just looked in the code, I'm sure I made it disappear after 5 minutes but now when I look at it, there is no such thing, only when chest is empty. Darn it, had to delete that part when I was rewriting some code and forgot about it. Oh well, added back. So this answers your next questions pretty much.What happens if you dont get the chest reward?
Added, updated in previous post, good catch.Can you make so the monsters can't get to the pz zone
Can you make so the monsters can't get to the pz zone
Oh crap, wrong method, fixed.Not fixed. Just tested
actions
positions =
{
topLeft = Position(x, y, z),
bottomRight = Position(x, y, z)
}
pos = Position(1286, 987, 7),
size = 6,
chests = {1}
}
No need, even worse. Why not just set 1 position and makeThank you mate!
What do you think to add something like this
Code:positions = { topLeft = Position(x, y, z), bottomRight = Position(x, y, z) }
instead of
Code:pos = Position(1286, 987, 7), size = 6, chests = {1} }
size
as big as you want?One use item + random mobs that you don't expect and because of that can die? No, thanks.It will be necessary to use a key [id: 2087] (which will disappear when it is used).
I can do that for you if you want, not gonna make it official tho.There will be a small chance (5%) of opening the chest the reward is direct delivery (without the waves).