Postado Janeiro 31, 2016 10 anos resolvido, arrumei nas sources. Spoiler Lua Script Error: [CreatureScript Interface] data/creaturescripts/scripts/rewardchest.lua:onKill data/creaturescripts/scripts/rewardchest.lua:282: attempt to call method 'getCon tentDescription' (a nil value) stack traceback: [C]: in function 'getContentDescription' data/creaturescripts/scripts/rewardchest.lua:282: in function 'doBossRew ard' data/creaturescripts/scripts/rewardchest.lua:300: in function <data/crea turescripts/scripts/rewardchest.lua:295> Lua Script Error: [CreatureScript Interface] data/creaturescripts/scripts/rewardchest.lua:onKill data/creaturescripts/scripts/rewardchest.lua:282: attempt to call method 'getCon tentDescription' (a nil value) stack traceback: [C]: in function 'getContentDescription' data/creaturescripts/scripts/rewardchest.lua:282: in function 'doBossRew ard' data/creaturescripts/scripts/rewardchest.lua:300: in function <data/crea turescripts/scripts/rewardchest.lua:295> As linhas que dão o problema são essas. str = str .. Container(rewardBag):getContentDescription() else str = str .. 'nothing' end else str = str .. 'nothing (due to low stamina)' end player:sendTextMessage(MESSAGE_INFO_DESCR, str .. '.') end end addEvent(doSaveReward, REWARD_CHEST.DECAY[monster:getName():lower()]*1000, corpse:getUniqueId(), MonsterType(monster:getName()):getNameDescription()) end function onKill(creature, target) if (Monster(target) ~= nil) and isInArray(REWARD_CHEST.BOSSES, target:getName():lower()) then local corpse = Item(doCreateItem(MonsterType(target:getName()):getCorpseId(), 1, target:getPosition())) corpse:decay() target:setDropLoot(false) doBossReward(target, corpse) end end Editado Abril 9, 2016 10 anos por sirarcken (veja o histórico de edições)
Postado Fevereiro 1, 2016 10 anos Não existe a função: "getContentDescription ()" Container(rewardBag):getContentDescription()
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.