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

Monster problem.

XaTaR

قناص بغداد
Joined
May 20, 2009
Messages
1,280
Reaction score
2
Location
Austria
If i killed the monster it dosent die...
2w56i6v.jpg


waht is the problem?
 
its not workin here is that waht you wanted.
topfrags
Code:
  function onKill(cid, target, lastHit)
if isPlayer(target) then
 db.executeQuery("UPDATE `players` SET `frags` = `frags` + 1 WHERE `id` = " .. getPlayerGUID(cid) .. ";")
end
return true
end

Arenakill
Code:
function onKill(cid, target)
	local room = getArenaMonsterIdByName(getCreatureName(target))
	if room > 0 then
		setPlayerStorageValue(cid, room, 1)
		doPlayerSendTextMessage(cid,MESSAGE_EVENT_DEFAULT,'You can enter next room!')
	end
	return TRUE
end
 
Last edited:
[19:2:31.000] [Error - CreatureScript Interface]
[19:2:31.000] data/creaturescripts/scripts/arenakill.lua:onKill
[19:2:31.000] Description:
[19:2:31.000] data/creaturescripts/scripts/arenakill.lua:2: attempt to call glob
al 'getArenaMonsterIdByName' (a nil value)
[19:2:31.000] stack traceback:
[19:2:31.000] data/creaturescripts/scripts/arenakill.lua:2: in function <data/
creaturescripts/scripts/arenakill.lua:1>


how about this erros?
 
Back
Top