• 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!

[CreatureScript] :/

DiZzyMaN

YouTalkinToMe?!
Joined
Jun 24, 2012
Messages
57
Reaction score
2
Hello everyone in my ot i made a custom monster and i think i kinda messed it up.. i was wondering if there was a way to solve this error

Code:
[22/07/2012 11:43:00] [Error - CreatureScript Interface] 
[22/07/2012 11:43:00] buffer:onKill
[22/07/2012 11:43:00] Description: 
[22/07/2012 11:43:00] (luaGetMonsterInfo) Monster not found

I Think it is something to do with this Onkill.lua

REP+ To anyone can Even Try and Help :)

Thanks
 
This is my onkill.lua

Code:
dofile("./arena.lua")
dofile("./GuildWar.lua")
dofile("./bounty.lua")

local PZ = createConditionObject(CONDITION_INFIGHT)
setConditionParam(PZ, CONDITION_PARAM_TICKS, getConfigInfo('pzLocked'))

function onKill(cid, target)
	if isPlayer(cid) == TRUE and isPlayer(target) == TRUE then
		local myGuild = getPlayerGuildId(cid)
		local enemyGuild = getPlayerGuildId(target)
		if myGuild ~= 0 and enemyGuild ~= 0 then
			if enemyGuild == getGuildWarInfo(myGuild).With then
				removeFrag(cid)
				doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "This Frag will not count") --Remove this if you wish
				doAddCondition(cid, PZ)
				registerDeath(myGuild, enemyGuild, cid, target)
			end
		end
		local Target = getPlayerGUID(target)
		if IsHunted(Target) == TRUE then
			if isKilled(Target) == FALSE then
				doPlayerAddMoney(cid, GetReward(Target))
				doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"Congratulations you received " .. GetReward(Target) .. " GPs for killing "..getCreatureName(target)..".")
				UpdateKiller(getPlayerGUID(target), getPlayerGUID(cid))
			end
		end
	end
	if getPlayerStorageValue(cid, isIN) == 1 then
		local Room = getArenaMonsterIdByName(getCreatureName(target))
		if Room ~= 0 then
			setPlayerStorageValue(cid, Room, 1)
			doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, Cancel[8])
		end
	end
	return TRUE
end
 
I don't see any error in your script
what monster.xml are use?
wanna paste xml file your monster.. and creaturescripts.xml line..
and have in login.lua add function?
 
Maybe you have a configured event in the monster xml file example (Ferumbras.xml), search for the bugged creature and search for a line <event></event> and delete it
 
hmm kk ty i will give it atry :)

- - - Updated - - -

Ohh Nvm i got it i had afew Bugged monsters ;) thanks everyone i will rep :)
 
Back
Top