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

Azerus Problem ..

Teddy

SweStream.se
Joined
Oct 2, 2008
Messages
3,797
Reaction score
10
Location
Sweden 172
When i kill Azerus the tp arent there and i get a error
ERROR:
Code:
[14:11:29.625] [Warning - Monster::Monster] Unknown event name - MonsterPortal

[14:12:35.015] [Error - Action Interface]
[14:12:35.015] In a timer event called from:
[14:12:35.015] data/actions/scripts/quests/azerus.lua:onUse
[14:12:35.015] Description:
[14:12:35.015] (luaDoItemSetAttribute) Item not found


SCRIPT
Code:
local m = {
		["Azerus3"] = {
			message = "Escape through the teleport quickly before it closes!",
			cfg = {
				{
					time = 10, -- Seconds until tp closes.
					to = { x = 581, y = 575, z = 10 }, -- Where the tp takes you.
					tp = { x = 581, y = 579, z = 9 } -- Where the tp creates.
				},
			}
		}
	}
	if isPlayer(target) then
		return true
	end
	local monster = m[getCreatureName(target)]
	if monster then
		for i = 1, #monster.cfg do
			local c = monster.cfg[i]
				local function deleteTeleport()
				local teleport = getTileItemById(c.tp, 1387).uid
					if(teleport > 0) then
						doRemoveItem(teleport)
						doSendMagicEffect(c.tp, CONST_ME_POFF)
					end
					return true
				end
			doCreateTeleport(1387, c.to, c.tp)
			doSendMagicEffect(c.tp, CONST_ME_ENERGYAREA)
			addEvent(deleteTeleport, c.time * 1000)
		end
		doCreatureSay(cid, monster.message, TALKTYPE_ORANGE_1)
	end
	return true
end

<event type="kill" name="MonsterPortal" event="script" value="azerus.lua"/>
registerCreatureEvent(cid, "monsterPortal")
<script>
<event name="MonsterPortal"/>
</script>
 
:)
LUA:
local m = {["rat"] = {message = "Escape through the teleport quickly before it closes!",
	             time = 5, -- Seconds until tp closes.
		     to = { x = 1000, y = 1000, z = 7 }, -- Where the tp takes you.
	              tp = { x = 1002, y = 1000, z = 7, stackpos = 1 }} -- Where the tp creates.
					   
}
 function onKill(cid, target)
monster = m[string.lower(getCreatureName(target))]
 if not monster then
   return true
 end
   local function deleteTeleport()
	local teleport = getTileItemById(monster.tp, 1387).uid
	    if(teleport > 0) then
	      doRemoveItem(teleport)
	      doSendMagicEffect(monster.tp, CONST_ME_POFF)
	    end
	return true
        end
			
	doCreateTeleport(1387, monster.to, monster.tp)
	doCreatureSay(cid, monster.message, TALKTYPE_ORANGE_1)
	doSendMagicEffect(monster.tp, CONST_ME_ENERGYAREA)
	addEvent(deleteTeleport, monster.time * 1000)
	return true
end
 
:)
LUA:
local m = {["rat"] = {message = "Escape through the teleport quickly before it closes!",
	             time = 5, -- Seconds until tp closes.
		     to = { x = 1000, y = 1000, z = 7 }, -- Where the tp takes you.
	              tp = { x = 1002, y = 1000, z = 7, stackpos = 1 }} -- Where the tp creates.
					   
}
 function onKill(cid, target)
monster = m[string.lower(getCreatureName(target))]
 if not monster then
   return true
 end
   local function deleteTeleport()
	local teleport = getTileItemById(monster.tp, 1387).uid
	    if(teleport > 0) then
	      doRemoveItem(teleport)
	      doSendMagicEffect(monster.tp, CONST_ME_POFF)
	    end
	return true
        end
			
	doCreateTeleport(1387, monster.to, monster.tp)
	doCreatureSay(cid, monster.message, TALKTYPE_ORANGE_1)
	doSendMagicEffect(monster.tp, CONST_ME_ENERGYAREA)
	addEvent(deleteTeleport, monster.time * 1000)
	return true
end

still no tp.. ?
and 2up the name of that monster is renamed to azblalblabla3
 
tfs? because i have tested on 0.3.5 +
paste this instead of yours donno maybe
Code:
registerCreatureEvent(cid, "[B][I][COLOR="Blue"]M[/COLOR][/I][/B]onsterPortal")
in loging.lua
 
Back
Top