Sigoles
Discord: @sigoles
- Joined
- Nov 20, 2015
- Messages
- 1,209
- Solutions
- 2
- Reaction score
- 154
Code:
Lua Script Error: [CreatureScript Interface]
data/creaturescripts/scripts/quests/killing in the name of/taskparty.lua:onDeath
...ipts/scripts/quests/killing in the name of/taskparty.lua:30: attempt to call method 'getRealMembers' (a nil value)
stack traceback:
[C]: in function 'getRealMembers'
...ipts/scripts/quests/killing in the name of/taskparty.lua:30: in function <...ipts/scripts/quests/killing in the name of/taskparty.lua:9>
LUA:
function onDeath(creature, corpse, killer, mostDamageKiller, unjustified, mostDamageUnjustified)
if creature:isPlayer() or creature:getMaster() then
return true
end
if not creature then
return true
end
local party = nil
if killer then
if killer:isPlayer() then
party = killer:getParty()
elseif killer:getMaster() then
party = killer:getMaster():getParty()
end
end
if party and party:isSharedExperienceEnabled() then
local killers = {}
local partyMembers = party:getRealMembers()