[Help] Custom Dungeon Features

05/01/2020 19:37 OptimalSolution#1
I have incorporated a rebirth system on my test server and was trying to make a rebirth requirement upon entering a dungeon. I've attempted to change the respective .lua files(PartyDungeon/InstanceDungeon), but that has not worked. I was wondering if anyone has ideas or solutions to accomplish this?
05/01/2020 20:56 Naltalah#2
Step 1: Add an attribute to tDungeon in LuaFunc\InstanceDungeonBase.lua
Step 2: Add a function to set that attribute in LucFunc\InstanceDungeonBase.lua
Step 3: Use this function in your PartyDungeon.lua
Step 4: Modify DUNGEON_DATA in InstanceDungeonBase.h to store the minRebirth
Step 5: Read that requirement in CInstanceDungeonBase::LoadScript
Step 6: Check that requirement in CInstanceDungeonBase::CheckClassLevel
05/01/2020 22:06 OptimalSolution#3
I don't see DUNGEON_INFO under the InstanceDungeonBase.h? There's a INSTACNEDUNGEON_INFO though.
05/01/2020 22:22 Naltalah#4
My bad, it's DUNGEON_DATA
05/01/2020 22:36 OptimalSolution#5
I see it now. How would you approach the minRebirth checking? I'm not sure on the logic exactly. For example the if pUser < minLevel or pUser > maxLevel would return false. How would you go about the logic for minRebirth?