HI, great system.. well .. im having the same problem as beastn had about the modal getting town.. im using tfs 1.2 and the changes made are here nothing more..
if player log out after battle time and log again the cuar will be alive ... also the player keep all items, nothing drops, shouldnt the player drop backpack and items? w/o the system it works normal, i mean the losing things...
Code:
local deathStorage = 49898
local deathGroupId = 66
local deathItemRevive = 2151
with your code i get the error
Code:
Lua Script Error: [Main Interface]
in a timer event called from:
(Unknown scriptfile)
data/creaturescripts/scripts/modaldeath.lua:94: attempt to index a nil value
stack traceback:
[C]: in function '__index'
data/creaturescripts/scripts/modaldeath.lua:94: in function 'buildModalWindow'
data/creaturescripts/scripts/modaldeath.lua:55: in function <data/creaturescripts/scripts/modaldeath.lua:48>
and when i add 2, making it like this
Code:
for i = 1,2, #Game.getTowns() do
modal:addChoice(i, Town(i):getName())
end
the error disapear and im able to see the window, but theres only 1 city and i really dont know how to add more, i mean i have 6 cities but only 1 appear in the windows to chose .. im totally noob about.. tried to understand but its too complicated .. at least this one.. could anyone be little more clear about how to add or how to make it work properly?