First:
Heres my loggs.
Anyone knows how to fix this?
It didnt happend with tfs 0.3.6, but when i uppgraded i had to change some in config.lua and i guess this is the same but i dont know where to change what.
In hope that anyone could help me.
My second: (and third) is aol doesnt work.
It wont delete itself when i die.
And i still lose items..
Heres my Aol>items.xml
Blessings works(a bit): I wont lose any items with blessings, but i lose levels.
Heres my Blessings.lua in both creaturescripts/talkactions
Here's my console
[18/03/2015 20:26:06] [Error - LuaScriptInterface::loadFile] data/actions/scripts/Scroll Magic.lua:20: 'end' expected (to close 'function' at line 7) near '<eof>'
[18/03/2015 20:26:06] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/Scroll Magic.lua)
[18/03/2015 20:26:06] data/actions/scripts/Scroll Magic.lua:20: 'end' expected (to close 'function' at line 7) near '<eof>'
[18/03/2015 20:26:06] [Error - LuaScriptInterface::loadFile] data/actions/scripts/lol.lua:13: 'end' expected (to close 'function' at line 3) near '<eof>'
[18/03/2015 20:26:06] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/lol.lua)
[18/03/2015 20:26:06] data/actions/scripts/lol.lua:13: 'end' expected (to close 'function' at line 3) near '<eof>'
[18/03/2015 20:26:06] [Error - LuaScriptInterface::loadFile] data/talkactions/scripts/equipment.lua:30: 'end' expected (to close 'function' at line 2) near 'function'
[18/03/2015 20:26:06] [Warning - Event::loadScript] Cannot load script (data/talkactions/scripts/equipment.lua)
[18/03/2015 20:26:06] data/talkactions/scripts/equipment.lua:30: 'end' expected (to close 'function' at line 2) near 'function'
[18/03/2015 20:26:06] [Error - LuaScriptInterface::loadFile] data/talkactions/scripts/equipment.lua:30: 'end' expected (to close 'function' at line 2) near 'function'
[18/03/2015 20:26:06] [Warning - Event::loadScript] Cannot load script (data/talkactions/scripts/equipment.lua)
[18/03/2015 20:26:06] data/talkactions/scripts/equipment.lua:30: 'end' expected (to close 'function' at line 2) near 'function'
[18/03/2015 20:26:06] [Warning - Event::loadScript] Event onSay not found (data/talkactions/scripts/blessings.lua)
Heres my loggs.
Anyone knows how to fix this?
It didnt happend with tfs 0.3.6, but when i uppgraded i had to change some in config.lua and i guess this is the same but i dont know where to change what.
In hope that anyone could help me.
My second: (and third) is aol doesnt work.
It wont delete itself when i die.
And i still lose items..
Heres my Aol>items.xml
Code:
</item>
<item id="2173" article="an" name="amulet of loss">
<attribute key="weight" value="420" />
<attribute key="slotType" value="necklace" />
<attribute key="charges" value="1" />
<attribute key="preventDrop" value="1" />
</item>
Blessings works(a bit): I wont lose any items with blessings, but i lose levels.
Heres my Blessings.lua in both creaturescripts/talkactions
Code:
local blessingStorageValue = 12345 -- The storage value you will use to store a players blessings
local blessConfig = {
[0] = { -- Experience Loss
lossPercent = 10, -- % of experience a player will lose when dying WITHOUT blessings
blessPercent = 0 -- % of experience a player will lose when dying WITH blessings
},
[1] = { -- Magic Level Loss
lossPercent = 10, -- % of magic level a player will lose when dying WITHOUT blessings
blessPercent = 0 -- % of magic level a player will lose when dying WITH blessings
},
[2] = { -- Skill Loss
lossPercent = 10, -- % of skills a player will lose when dying WITHOUT blessings
blessPercent = 0 -- % of skills a player will lose when dying WITH blessings
},
[3] = { -- Container Loss
lossPercent = 10, -- % chance to lose backpack WITHOUT blessings
blessPercent = 0 -- % chance to lose backpack WITH blessings
},
[4] = { -- Equipment Loss
lossPercent = 10, -- % chance to lose each individual item equipped on a player WITHOUT blessings
blessPercent = 0 -- % chance to lose each individual item equipped on a player WITH blessings
}
}
function onPrepareDeath(cid, deathList)
for i = 0, 4 do
doPlayerSetLossPercent(cid, i, ((getCreatureStorage(cid, blessingStorageValue) > 0 and blessConfig.blessPercent*0) or blessConfig.lossPercent*10))
end
return true
end
Here's my console
[18/03/2015 20:26:06] [Error - LuaScriptInterface::loadFile] data/actions/scripts/Scroll Magic.lua:20: 'end' expected (to close 'function' at line 7) near '<eof>'
[18/03/2015 20:26:06] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/Scroll Magic.lua)
[18/03/2015 20:26:06] data/actions/scripts/Scroll Magic.lua:20: 'end' expected (to close 'function' at line 7) near '<eof>'
[18/03/2015 20:26:06] [Error - LuaScriptInterface::loadFile] data/actions/scripts/lol.lua:13: 'end' expected (to close 'function' at line 3) near '<eof>'
[18/03/2015 20:26:06] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/lol.lua)
[18/03/2015 20:26:06] data/actions/scripts/lol.lua:13: 'end' expected (to close 'function' at line 3) near '<eof>'
[18/03/2015 20:26:06] [Error - LuaScriptInterface::loadFile] data/talkactions/scripts/equipment.lua:30: 'end' expected (to close 'function' at line 2) near 'function'
[18/03/2015 20:26:06] [Warning - Event::loadScript] Cannot load script (data/talkactions/scripts/equipment.lua)
[18/03/2015 20:26:06] data/talkactions/scripts/equipment.lua:30: 'end' expected (to close 'function' at line 2) near 'function'
[18/03/2015 20:26:06] [Error - LuaScriptInterface::loadFile] data/talkactions/scripts/equipment.lua:30: 'end' expected (to close 'function' at line 2) near 'function'
[18/03/2015 20:26:06] [Warning - Event::loadScript] Cannot load script (data/talkactions/scripts/equipment.lua)
[18/03/2015 20:26:06] data/talkactions/scripts/equipment.lua:30: 'end' expected (to close 'function' at line 2) near 'function'
[18/03/2015 20:26:06] [Warning - Event::loadScript] Event onSay not found (data/talkactions/scripts/blessings.lua)
Last edited: