• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Pet System bug...

kito2

www.masteria.net
Joined
Mar 9, 2009
Messages
3,766
Solutions
1
Reaction score
225
Location
Chile, Santiago
Im using this scripts for a Pet System and says this bug:
Code:
[19:7:16.915] [Error - CreatureScript Interface]
[19:7:16.915] mods/scripts/pet_kill.lua:onKill
[19:7:16.916] Description:
[19:7:16.916] data/lib/APS_lib.lua:10: attempt to perform arithmetic on local 'exp' (a string value)
[19:7:16.916] stack traceback:
[19:7:16.916]   data/lib/APS_lib.lua:10: in function 'addPetExp'
[19:7:16.916]   mods/scripts/pet_kill.lua:52: in function <mods/scripts/pet_kill.lua:5>
Scripts:

pet_kill.lua
Lua:
-- Advanced Pet System By Races
--       scripted by josejunior
--    otland.net / otserv.com.br
--	 especial thanks to TFS!
function onKill(cid, target, lastHit)
	if(isCreature(getPlayerPet(cid)) == false) then
		return true
	end	
	if(getDistanceBetween(getCreaturePosition(getPlayerPet(cid)), getCreaturePosition(target)) > 7) then	
		return true
	end	
	if(isMonster(target) == true) then	
		owner = getCreatureMaster(target)
		if(isPlayer(owner) == true) and (target == getPlayerPet(owner)) and (target ~= getPlayerPet(cid))  then 
			-- Pet-WAR
			if(aps_tools.commands.enablePetWar == true) then
				if(getPetEnemy(cid) == owner) and (getPetEnemy(owner) == cid) then
					stopWar(cid, owner)
					doSendAnimatedText(getCreaturePosition(getPlayerPet(cid)), "WINNER!", math.random(1, 255))
					doSendAnimatedText(getCreaturePosition(target), "LOSER!", math.random(1, 255))
					doSendMagicEffect(getCreaturePosition(getPlayerPet(cid)), 29)
					doSendMagicEffect(getCreaturePosition(target), 32)
					returnMessage(cid, "[Pet-War] Your Pet WIN the duel versus " .. getCreatureName(target) .. "(owner:" .. getPlayerName(owner) .. "), level " .. getPetLvl(owner) ..  " from " .. getRaceNameById(getPetRace(owner)) .. " race.")
					returnMessage(owner, "[Pet-War] Your Pet LOST the duel versus '" .. getCreatureName(getPlayerPet(cid)) .. "'.")
					setPlayerStorageValue(cid, aps_storages.war.win, getPlayerStorageValue(cid, aps_storages.war.win) +1)
					setPlayerStorageValue(owner, aps_storages.war.lost, getPlayerStorageValue(owner, aps_storages.war.lost) +1)
					local storage = getPlayerStorageValue(cid, aps_storages.war.bestEnemy)
					local playerName, playerLvl, petName, petLvl, raceId  = getCreatureName(owner), getPlayerLevel(owner), getCreatureName(getPlayerPet(owner)), getPetLvl(owner), getPetRace(owner)					
					if storage ~= 0 then
						local explode = string.explode(storage, "-")		
						local oldLvl = tonumber(explode[4])
					end	
					if storage == 0 then
						setPlayerStorageValue(cid, aps_storages.war.bestEnemy, playerName .. "-" .. playerLvl .. "-" .. petName .. "-" .. petLvl .. "-" .. raceId)
						returnMessage(cid, "[Pet-War] New best enemy! type /pet-war-stats for more information.")							
					elseif oldLvl and (petLvl > oldLvl) then
						setPlayerStorageValue(cid, aps_storages.war.bestEnemy, playerName .. "-" .. playerLvl .. "-" .. petName .. "-" .. petLvl .. "-" .. raceId)
						returnMessage(cid, "[Pet-War] Your best enemy as been updated.")								
					end	
					if(aps_tools.commands.revivePetAfterWar == true) then
						setPetStats(owner, 0)
					end
				end
			end	
			-- Pet-WAR
			if(aps_tools.commands.petGainExpFromPets == true) then
				addPetExp(cid, getMonsterInfo(getCreatureName(target)).experience * getLvlStage(getPetLvl(cid)) + getPetLvl(owner))
			end	
		else
			if(isSummon(target) == false) then
				doPlayerAddExperience(cid, getMonsterInfo(getCreatureName(target)).experience / 2 * getExperienceStage(getPlayerLevel(cid)))
				addPetExp(cid, getMonsterInfo(getCreatureName(target)).experience / 2 * getLvlStage(getPetLvl(cid)))	
				if(aps_tools.commands.countKilledMonsters == true) then
					local count = getPlayerStorageValue(cid, aps_storages.counter_2)
					setPlayerStorageValue(cid, aps_storages.counter_2, count+1)
				end		
			end
		end	
	elseif(isPlayer(target) == true) then
		if(aps_tools.skulls[2].enable == true) then
			if(getCreatureSkullType(target) == SKULL_NONE) then
				if(getPlayerStorageValue(cid, aps_storages.kill)+1 >= aps_tools.skulls[2].killsToRed) then
					setSkull(cid, 2)
					returnMessage(cid, "[PET-SYSTEM] Your pet killed " .. getCreatureName(target) .. ", now your pet have " .. getPlayerStorageValue(cid, aps_storages.kill)+1 .. " unjustified frags.")					
					setPlayerStorageValue(cid, aps_storages.kill, getPlayerStorageValue(cid, aps_storages.kill) +1)
				end	
			end
		end	
		if(aps_tools.commands.countKilledPlayers == true) then
			local count = getPlayerStorageValue(cid, aps_storages.counter)
			setPlayerStorageValue(cid, aps_storages.counter, count+1)
		end
		if(aps_tools.commands.petGainExpFromPlayers == true) then		
			addPetExp(cid,  getPetLvl(cid) + getPlayerLevel(target) * getLvlStage(getPetLvl(cid)))
		end	
	end	
	return true
end

APS_lib.lua
Lua:
-- Advanced Pet System By Races
--       scripted by josejunior
--    otland.net / otserv.com.br
--	 especial thanks to TFS!
-- Include aps_config.lua
dofile("aps_config.lua")
-- pet statistics/information
function addPetExp(cid, amount)
	local level = getPetLvl(cid) local need, exp, i = getExpForLvl(level + 1), getPetExp(cid), 0
	if(exp+amount  >= need) then
		doCreatureSay(getPlayerPet(cid), string.upper(getCreatureName(getPlayerPet(cid))) .. " grew to LV. " .. level+1, TALKTYPE_ORANGE_1)	
		setPlayerStorageValue(cid, aps_storages.manaMax, getPetMaxMana(cid) +aps_pets[getPetRace(cid)][1].mana)
		setPlayerStorageValue(cid, aps_storages.health, getPetMaxHp(cid) +aps_pets[getPetRace(cid)][1].hp)	
		setCreatureMaxHealth(getPlayerPet(cid), getPetMaxHp(cid) +aps_pets[getPetRace(cid)][1].hp)			
		setPlayerStorageValue(cid, aps_storages.level, level + 1)
		local pet = aps_pets[getPetRace(cid)][getPetId(cid)]
		i = i+1
		if(pet.lvlNext) then
			if(level +1 >= pet.lvlNext) then
				local pos, name = getPetPos(cid), getCreatureName(getPlayerPet(cid)) 
				doRemoveCreature(getPlayerPet(cid))
				setPetId(cid, getPetId(cid) +1)
				doSummonPet(cid, pos)
				returnMessage(cid, "[PET-SYSTEM] '" .. name .. "' - LV. " .. level .. " Envolved into " .. getArticle(getCreatureName(getPlayerPet(cid))) .. " '" .. getCreatureName(getPlayerPet(cid)) .. "' - LV. " .. level + i .. ".")							
			end
		end		
	end
	if(amount > 0) then
		doSendAnimatedText(getPetPos(cid), "+" .. amount, math.random(1, 256))
	end	
	return setPlayerStorageValue(cid, aps_storages.tries.lvl, exp +amount)
end
function getPetExp(cid)
	return getPlayerStorageValue(cid, aps_storages.tries.lvl)
end
function getPetLastHealth(cid)
	return getPlayerStorageValue(cid, aps_storages.lastHealth)
end
function setPetLastHealth(cid, health)
	return setPlayerStorageValue(cid, aps_storages.lastHealth, health)
end
function getPetMaxHp(cid)
	return getPlayerStorageValue(cid, aps_storages.health)
end
function getPetMana(cid)
	return getPlayerStorageValue(cid, aps_storages.mana)
end
function getPetMaxMana(cid)
	return getPlayerStorageValue(cid, aps_storages.manaMax)
end
function addPetMana(cid, amount)
	return setPlayerStorageValue(cid, aps_storages.mana, getPetMana(cid) +amount)
end
function doPetRemoveMana(cid, amount)
	return setPlayerStorageValue(cid, aps_storages.mana, getPetMana(cid) -amount)
end
function getPetLvl(cid)
	return getPlayerStorageValue(cid, aps_storages.level)
end
function addPetLvl(cid, amount)
	local lvl = getPetLvl(cid) local exp = getExpForLvl(lvl + amount)
	setPlayerStorageValue(cid, aps_storages.tries.lvl, exp)
	for i = 1, amount do
		setPlayerStorageValue(cid, aps_storages.manaMax, getPetMaxMana(cid) +aps_pets[getPetRace(cid)][1].mana)
		setPlayerStorageValue(cid, aps_storages.health, getPetMaxHp(cid) +aps_pets[getPetRace(cid)][1].hp)
		setCreatureMaxHealth(getPlayerPet(cid), getPetMaxHp(cid) +aps_pets[getPetRace(cid)][1].hp)	
		local pet = aps_pets[getPetRace(cid)][getPetId(cid)]		
		if(pet.lvlNext) then
			if(lvl+amount >= pet.lvlNext) then
				local pos, name = getPetPos(cid), getCreatureName(getPlayerPet(cid)) 
				doRemoveCreature(getPlayerPet(cid))
				setPetId(cid, getPetId(cid) +1)
				doSummonPet(cid, pos)
				returnMessage(cid, "[PET-SYSTEM] '" .. name .. "' - LV. " .. lvl .. " Envolved into " .. getArticle(getCreatureName(getPlayerPet(cid))) .. " '" .. getCreatureName(getPlayerPet(cid)) .. "' - LV. " .. lvl + amount .. ".")	
			end
		end			
	end	
	if(amount > 0) then
		doSendAnimatedText(getPetPos(cid), "+" .. exp ,  math.random(1, 256))
		doCreatureSay(getPlayerPet(cid), string.upper(getCreatureName(getPlayerPet(cid))) .. " grew to LV. " .. lvl + amount, TALKTYPE_ORANGE_1)			
	end		
	return setPlayerStorageValue(cid, aps_storages.level, lvl + amount)
end
function addPetManaSpend(cid, amount)
	local ml = getPetMl(cid) local need, spend = getReqManaSpend(cid, ml + 1), getPetManaSpend(cid)
	if(spend+amount >= need) then
		doCreatureSay(getPlayerPet(cid), string.upper(getCreatureName(getPlayerPet(cid))) .. " grew to Magic LV. " .. ml + 1, TALKTYPE_ORANGE_1)					
		setPlayerStorageValue(cid, aps_storages.ml, ml + 1)
	end
	return setPlayerStorageValue(cid, aps_storages.tries.ml, spend +amount)	
end
function getPetManaSpend(cid)
	return getPlayerStorageValue(cid, aps_storages.tries.ml)
end
function getPetMl(cid)
	return getPlayerStorageValue(cid, aps_storages.ml)
end
function addPetMl(cid, amount)
	local ml = getPetMl(cid) local manaSpend = getReqManaSpend(cid, ml + amount) setPlayerStorageValue(cid, aps_storages.tries.ml, manaSpend) if(amount > 0) then doCreatureSay(getPlayerPet(cid), string.upper(getCreatureName(getPlayerPet(cid))) .. " grew to Magic LV. " .. ml + amount, TALKTYPE_ORANGE_1) end return setPlayerStorageValue(cid, aps_storages.ml, ml + amount)	
end
function getPetRace(cid)
	return getPlayerStorageValue(cid, aps_storages.race)
end
function getPetId(cid)
	return getPlayerStorageValue(cid, aps_storages.id)
end
function setPetId(cid, pet_id)
	return setPlayerStorageValue(cid, aps_storages.id, pet_id)
end	
function getLvlStage(lvl)
	for i = 1, #aps_tools.stages do
		if(aps_tools.stages[i].maxlevel) then
			for e = aps_tools.stages[i].minlevel, aps_tools.stages[i].maxlevel do
				if(isInArray(e, lvl) == true) then
					ret = aps_tools.stages[i].multiplier
				end
			end
		else
			if(lvl >= aps_tools.stages[i].minlevel) then
				ret = aps_tools.stages[i].multiplier
			end	
		end
	end
	return ret
end
function getExpForLvl(lv)
	lv = lv - 1 return ((50 * lv * lv * lv) - (150 * lv * lv) + (400 * lv)) * 2
end
function getReqManaSpend(cid, magLevel)
	return (20 * magLevel * magLevel * magLevel * 1.5) / aps_pets[getPetRace(cid)][1].multiplier
end
function getRaceNameById(id)
	for k, v in pairs(aps_pets_config) do if(isInArray(v.race_id, id)) then return k end end return nil
end
-- pet statistics
-- call pet, remove, online and dead....
function isPetOnline(cid)
	return getPlayerStorageValue(cid, aps_storages.pet) == 1 and true or false
end
function setPetStats(cid, value) -- 1 = online, 0 = offline
	return setPlayerStorageValue(cid, aps_storages.pet, value)
end
function getPlayerPet(cid)
	return getPlayerStorageValue(cid, aps_storages.uid)
end
function doRemovePet(cid)
	return doRemoveCreature(getPlayerPet(cid))
end
function getPetPos(cid)
	return getCreaturePosition(getPlayerPet(cid))
end
function doSummonPet(cid, pos)
	local peet = aps_pets[getPetRace(cid)][getPetId(cid)] if(pos) then pet = doSummonCreature(peet.pet, pos) else pet = doSummonCreature(peet.pet, getCreaturePosition(cid)) end doCreatureSay(pet, getRamdomThing(aps_texts.voices_call) .. ", " .. string.upper(getCreatureName(cid)) .. "!", TALKTYPE_ORANGE_1) setPlayerStorageValue(cid, aps_storages.uid, pet) setPetStats(cid, 1) setPlayerStorageValue(cid, aps_storages.alert, 0)	 setCreatureMaxHealth(pet, getPetMaxHp(cid))	doCreatureAddHealth(pet, getPetMaxHp(cid)) if(getPetLastHealth(cid) > 1) then doCreatureAddHealth(pet, getPetMaxHp(cid) - getPetLastHealth(cid)) end	doChangeSpeed(pet, getSpeedByLevel(getPetLvl(cid))) doConvinceCreature(cid, pet) doSendMagicEffect(getCreaturePosition(pet), CONST_ME_POFF)
end
function isPetDead(cid)
	return isCreature(getPlayerPet(cid)) == false and isPetOnline(cid) == true or false
end
function doPlayerHavePet(cid)
	return getPlayerStorageValue(cid, aps_storages.race) ~= 0 and true or false
end
function createPet(cid, race_id, hp, mana)
	setPlayerStorageValue(cid, aps_storages.id, 1) setPlayerStorageValue(cid, aps_storages.race, race_id) setPlayerStorageValue(cid, aps_storages.level, 1) setPlayerStorageValue(cid, aps_storages.ml, 1) setPlayerStorageValue(cid, aps_storages.manaMax, mana) setPlayerStorageValue(cid, aps_storages.mana, mana) setPlayerStorageValue(cid, aps_storages.health, hp)	
end	
function doResetPet(cid)
	for i = aps_storages.race, aps_slots[#aps_slots] do setPlayerStorageValue(cid, i, 0) end
end
function getPriceRevive(cid)
	return aps_pets[getPetRace(cid)][getPetId(cid)].priceRevive
end
-- call pet, remove, online and dead...
-- others
function sendWindowsMessage(cid, message)
	if(aps_tools.commands.windowsType.sendInTextDialog == false) then doPlayerPopupFYI(cid, message) else doShowTextDialog(cid, aps_tools.show_item, message)  end	
end
function getItemNameFromSlot(cid, slot)
	local item, count = getPlayerStorageValue(cid, aps_slots[slot]), getPlayerStorageValue(cid, aps_slots[slot]+1) return item == 0 and "**EMPTY**" or "x" .. count .. " " .. getItemNameById(item) .. (count > 1 and "s" or "")
end
function addNpcAutoSay(npc, time, msgs) -- npc = npcid > getNpcId() - time in seconds, msgs = {"msgs1", "msg2"}
	if(getGlobalStorageValue(npc) < os.time()) then 
        addEvent(doCreatureSay, time * 1000, npc, getRamdomThing(msgs), TALKTYPE_YELL)
        setGlobalStorageValue(npc, os.time() +time)
    end		
end
function isExhausted(cid)
	return getPlayerStorageValue(cid, aps_storages.exhaustion.exh) > os.time() and true or false
end
function addExhausted(cid, time) -- time in seconds
	return setPlayerStorageValue(cid, aps_storages.exhaustion.exh, os.time() +time)
end
function getValueInArray (arr, v)
	return arr[v]
end
function petFormula(ml, lvl, maxb, maxa, minb, mina)
	return {maxD = ((lvl * 1 + ml * 2) * 1 * mina + minb), minD = ((lvl * 1 + ml * 2) * 1 * maxa + maxb)}
end
function setSkull(cid, type)
	local skulls = { [1] = {stg = aps_storages.skull_1}, [2] = {stg = aps_storages.skull_2, remove = 1}	}
	local thing = skulls[type]
	if thing then
		if(getPlayerStorageValue(cid, thing.stg) <= 0) then
			doCreatureSetSkullType(getPlayerPet(cid), aps_tools.skulls[type].skull)
			setPlayerStorageValue(cid, thing.stg, 1)
			addEvent(setPlayerStorageValue, aps_tools.skulls[type].time * 1000, cid, thing.stg, 0)
			addEvent(doCreatureSetSkullType, aps_tools.skulls[type].time * 1000, getPlayerPet(cid), SKULL_NONE)
			if thing.remove then
				addEvent(setPlayerStorageValue, aps_tools.skulls[type].time * 1000, cid, aps_storages.kill, 0)
			end
		end
	end	
end	
function isFood(itemid)
	if(isNumber(itemid) == true) and (itemid > 100) then local food = aps_foods[getItemNameById(itemid)] if(food) then return true end end	
	return false
end
function isPotion(itemid)
	if(isNumber(itemid) == true) and (itemid > 100) then local potion = aps_potions[getItemNameById(itemid)] if(potion) then return true end end	
	return false
end
function getRamdomThing(table)
	return table[math.random(1, #table)]
end
function doPetFeed(cid, food) -- food = item_id
	local getFood = aps_foods[getItemNameById(food):lower()]	
	function addHp(cid, hp, mana)
		if(getPlayerStorageValue(cid, aps_storages.exhaustion.exh_eat) == 1) then	
			doCreatureAddHealth(getPlayerPet(cid), hp)
			if(getPlayerStorageValue(cid, aps_storages.mana) < getPlayerStorageValue(cid, aps_storages.manaMax)) then
				addPetMana(cid, mana)
			elseif(getPlayerStorageValue(cid, aps_storages.mana) > getPlayerStorageValue(cid, aps_storages.manaMax)) then
				setPlayerStorageValue(cid, aps_storages.mana, getPlayerStorageValue(cid, aps_storages.manaMax))
			end	
			foodEvent = addEvent(addHp, getFood.ticks * 1000, cid, hp, mana)
			addEvent(setPlayerStorageValue, getFood.time * 1000, cid, aps_storages.exhaustion.exh_eat, 0)
		end	
	end		
	setPlayerStorageValue(cid, aps_storages.exhaustion.exh_eat, 1)		
	addEvent(addHp, 2 * 1000 , cid, getFood.hpAmmount, getFood.manaAmmount)
	setPlayerStorageValue(cid, aps_storages.exhaustion.exh_food, os.time() +getFood.time)	
end
function fixTimer(v)
	local seconds, minutes, hours = v - os.time(), 0, 0
	while seconds >= 60 do minutes = minutes + 1 seconds = seconds - 60 end
	while minutes >= 60 do hours = hours + 1 minutes = minutes - 60 end
	return (hours > 1 and hours .. " hours, " or "") .. (minutes > 1 and minutes .. " minutes and " or "") .. seconds .. " seconds."
end
function isSummon(uid) -- check if master is player, only player.
	return isPlayer(getCreatureMaster(uid))
end
function returnMessage(cid, message)
	return doPlayerSendTextMessage(cid, aps_tools.commands.systemMessageColour, message)
end
function getCreatureLastPosition(cid)
	local lookDiretion, creaturePos, lookDiretions = getCreatureLookDirection(cid), getCreaturePosition(cid), {[0] = {x = 0, y = 1}, [1] = {x = -1, y = 0}, [2] = {x = 0, y = -1}, [3] = {x = 1, y = 0}} return {x = creaturePos.x+lookDiretions[lookDiretion].x, y = creaturePos.y+lookDiretions[lookDiretion].y, z = creaturePos.z}
end
function getSpeedByLevel(level) -- credits tara
    return (220 + (2 * (level - 1)))
end	
-- others
-- Pet-WAR
function isPetInWar(cid)
	return getPlayerStorageValue(cid, aps_storages.war.war) > 0 and true or false
end
function doInviteToWar(cid, enemy)
	setPlayerStorageValue(cid, aps_storages.war.invite, getPlayerName(enemy)) setPlayerStorageValue(enemy, aps_storages.war.invite, getPlayerName(cid))
end
function getPetEnemy(cid)
	return getPlayerByNameWildcard(getPlayerStorageValue(cid, aps_storages.war.enemy))
end
function isInvitedToWar(cid, enemy)
	if(getPlayerStorageValue(cid, aps_storages.war.invite) == getPlayerName(enemy)) and (getPlayerStorageValue(enemy, aps_storages.war.invite) == getPlayerName(cid)) then return true end return false
end
function doStartWar(cid, enemy)
	setPlayerStorageValue(cid, aps_storages.war.war, 1) setPlayerStorageValue(enemy, aps_storages.war.war, 1) setPlayerStorageValue(cid, aps_storages.war.enemy, getPlayerName(enemy)) setPlayerStorageValue(enemy, aps_storages.war.enemy, getPlayerName(cid)) setPlayerStorageValue(cid, aps_storages.war.invite, 0) setPlayerStorageValue(enemy, aps_storages.war.invite, 0)	
end
function leaveWar(cid)
	local enemy = getPetEnemy(cid)
	for i = aps_storages.war.war, aps_storages.war.enemy do
		setPlayerStorageValue(cid, i, 0)
		setPlayerStorageValue(enemy, i, 0)
	end
end	
function stopWar(cid, enemy)
	for i = aps_storages.war.war, aps_storages.war.enemy do setPlayerStorageValue(cid, i, 0) setPlayerStorageValue(enemy, i, 0) end
end
function resetWar(cid)
	for i = aps_storages.war.war, aps_storages.war.enemy do setPlayerStorageValue(cid, i, 0) end
end
-- Pet-WAR
-- haha now pets have guilds too? damn yeah!
-- 				next update!
-- haha now pets have guilds too? damn yeah!
-- PeT-Party
function isInPetParty(cid)
	return getPlayerStorageValue(cid, aps_storages.party) == 1 and true or false
end
function doStartPetParty(cid)
	return setPlayerStorageValue(cid, aps_storages.party, 1)
end
function doLeavePetParty(cid)
	return setPlayerStorageValue(cid, aps_storages.party, 0)
end
-- PeT-Party
 
Code:
[12:44:11.169] [Error - CreatureScript Interface]
[12:44:11.172] mods/scripts/pet_kill.lua:onKill
[12:44:11.174] Description:
[12:44:11.175] (luaGetMonsterInfo) Monster not found

[12:44:14.685] [Error - CreatureScript Interface]
[12:44:14.700] mods/scripts/pet_kill.lua:onKill
[12:44:14.700] Description:
[12:44:14.700] mods/scripts/pet_kill.lua:51: attempt to index a boolean value
[12:44:14.700] stack traceback:
[12:44:14.700]  mods/scripts/pet_kill.lua:51: in function <mods/scripts/pet_kill
.lua:5>

[12:44:42.724] [Error - CreatureScript Interface]
[12:44:42.725] mods/scripts/pet_kill.lua:onKill
[12:44:42.727] Description:
[12:44:42.727] (luaGetMonsterInfo) Monster not found

[12:44:42.727] [Error - CreatureScript Interface]
[12:44:42.727] mods/scripts/pet_kill.lua:onKill
[12:44:42.727] Description:
[12:44:42.727] mods/scripts/pet_kill.lua:51: attempt to index a boolean value
[12:44:42.743] stack traceback:
[12:44:42.743]  mods/scripts/pet_kill.lua:51: in function <mods/scripts/pet_kill
.lua:5>

[12:44:44.625] [Error - CreatureScript Interface]
[12:44:44.634] mods/scripts/pet_kill.lua:onKill
[12:44:44.638] Description:
[12:44:44.640] (luaGetMonsterInfo) Monster not found

[12:44:44.643] [Error - CreatureScript Interface]
[12:44:44.645] mods/scripts/pet_kill.lua:onKill
[12:44:44.646] Description:
[12:44:44.647] mods/scripts/pet_kill.lua:51: attempt to index a boolean value
[12:44:44.650] stack traceback:
[12:44:44.653]  mods/scripts/pet_kill.lua:51: in function <mods/scripts/pet_kill
.lua:5>

[12:44:45.196] [Error - CreatureScript Interface]
[12:44:45.196] mods/scripts/pet_kill.lua:onKill
[12:44:45.196] Description:
[12:44:45.196] (luaGetMonsterInfo) Monster not found

[12:44:45.196] [Error - CreatureScript Interface]
[12:44:45.196] mods/scripts/pet_kill.lua:onKill
[12:44:45.196] Description:
[12:44:45.196] mods/scripts/pet_kill.lua:51: attempt to index a boolean value
[12:44:45.196] stack traceback:
[12:44:45.196]  mods/scripts/pet_kill.lua:51: in function <mods/scripts/pet_kill
.lua:5>

[12:44:45.721] [Error - CreatureScript Interface]
[12:44:45.722] mods/scripts/pet_kill.lua:onKill
[12:44:45.723] Description:
[12:44:45.724] (luaGetMonsterInfo) Monster not found

[12:44:45.725] [Error - CreatureScript Interface]
[12:44:45.726] mods/scripts/pet_kill.lua:onKill
[12:44:45.727] Description:
[12:44:45.727] mods/scripts/pet_kill.lua:51: attempt to index a boolean value
[12:44:45.728] stack traceback:
[12:44:45.729]  mods/scripts/pet_kill.lua:51: in function <mods/scripts/pet_kill
.lua:5>

[12:44:46.221] [Error - CreatureScript Interface]
[12:44:46.222] mods/scripts/pet_kill.lua:onKill
[12:44:46.223] Description:
[12:44:46.224] (luaGetMonsterInfo) Monster not found

[12:44:46.225] [Error - CreatureScript Interface]
[12:44:46.226] mods/scripts/pet_kill.lua:onKill
[12:44:46.227] Description:
[12:44:46.227] mods/scripts/pet_kill.lua:51: attempt to index a boolean value
[12:44:46.228] stack traceback:
[12:44:46.229]  mods/scripts/pet_kill.lua:51: in function <mods/scripts/pet_kill
.lua:5>

[12:44:46.721] [Error - CreatureScript Interface]
[12:44:46.722] mods/scripts/pet_kill.lua:onKill
[12:44:46.723] Description:
[12:44:46.724] (luaGetMonsterInfo) Monster not found

[12:44:46.725] [Error - CreatureScript Interface]
[12:44:46.726] mods/scripts/pet_kill.lua:onKill
[12:44:46.727] Description:
[12:44:46.728] mods/scripts/pet_kill.lua:51: attempt to index a boolean value
[12:44:46.728] stack traceback:
[12:44:46.729]  mods/scripts/pet_kill.lua:51: in function <mods/scripts/pet_kill
.lua:5>

[12:44:47.221] [Error - CreatureScript Interface]
[12:44:47.222] mods/scripts/pet_kill.lua:onKill
[12:44:47.223] Description:
[12:44:47.224] (luaGetMonsterInfo) Monster not found

[12:44:47.226] [Error - CreatureScript Interface]
[12:44:47.227] mods/scripts/pet_kill.lua:onKill
[12:44:47.228] Description:
[12:44:47.228] mods/scripts/pet_kill.lua:51: attempt to index a boolean value
[12:44:47.229] stack traceback:
[12:44:47.230]  mods/scripts/pet_kill.lua:51: in function <mods/scripts/pet_kill
.lua:5>

[12:44:47.721] [Error - CreatureScript Interface]
[12:44:47.722] mods/scripts/pet_kill.lua:onKill
[12:44:47.723] Description:
[12:44:47.724] (luaGetMonsterInfo) Monster not found

[12:44:47.725] [Error - CreatureScript Interface]
[12:44:47.726] mods/scripts/pet_kill.lua:onKill
[12:44:47.727] Description:
[12:44:47.728] mods/scripts/pet_kill.lua:51: attempt to index a boolean value
[12:44:47.729] stack traceback:
[12:44:47.729]  mods/scripts/pet_kill.lua:51: in function <mods/scripts/pet_kill
.lua:5>

[12:44:48.222] [Error - CreatureScript Interface]
[12:44:48.223] mods/scripts/pet_kill.lua:onKill
[12:44:48.224] Description:
[12:44:48.225] (luaGetMonsterInfo) Monster not found

[12:44:48.226] [Error - CreatureScript Interface]
[12:44:48.227] mods/scripts/pet_kill.lua:onKill
[12:44:48.228] Description:
[12:44:48.228] mods/scripts/pet_kill.lua:51: attempt to index a boolean value
[12:44:48.229] stack traceback:
[12:44:48.230]  mods/scripts/pet_kill.lua:51: in function <mods/scripts/pet_kill
.lua:5>
I also have problems with this file ... :ninja:
 
Yeah... this system have alot of bugs.
Try to attack your pet (use pet-party), and return he...
Now, put the pet back. The life is full, right? haha'
 
Back
Top