[17/11/2012 21:24:55] (luaGetThingFromPosition) Tile not found
function onStepIn(cid, item, position, fromPosition)
--Config-->
local queststatus = getPlayerStorageValue(cid, 50001)
local player_pos_entrada = {x = 32784, y = 31177, z = 9} --coloque a pos pra onde o player q pisou no piso vai ser teleportado!
local starting={x = 32775, y = 31156, z = 10}
local ending={x = 32790, y = 31175, z = 10}
local trash= {x=33193, y=31689, z=15}
local players = 0
local total = 0
local monster = {}
--EndConfig-->
if item.actionid == 1974 and queststatus == -1 then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "It seems by defeating Azerus you have stoped this army from entering your world! Better leave this ghastly place forever.")
setPlayerStorageValue(cid, 4765, 1)
return TRUE
end
if item.actionid == 1973 and queststatus == -1 then
for x = starting.x, ending.x do
for y = starting.y, ending.y do
local creature = getThingfromPos({x = x, y = y, z = starting.z, stackpos = 253}).uid
if isPlayer(creature) then players = players+1 end
if isMonster(creature) then monster[total+1] = creature total = total+1 end
end
end
if #monster > 0 and players == 0 then
for i = 1, #monster do
doTeleportThing(monster, trash)
end
end
doTeleportThing(cid, player_pos_entrada)
doSendMagicEffect(player_pos_entrada, 10)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, 'Você já terminou a quest!')
info
Grupo: Barão
Registrado: 23/03/08
Posts: 205
Reputação: +4
Ola, gostaria de pedir ajuda a voces do XTIBIA...
estou com um script que funciona da seguinte forma
quando sobe no teleport todos os monstros da sala no caso yalahar quest é teleportados para que a sala fique limpa e fazer a quest denovo!
so que esta aparecendo um erro toda hora que faz isso...
alguem poderia me ajudar?
dou REP+
ERRO