Ir para conteúdo

Featured Replies

Postado
local playerPositions = {
Position(33603, 32394, 11),

}						
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
    if target.itemid == 22634 then
        for i = 1, #playerPositions do
            if Tile(playerPositions[i]):getTopCreature() then
                if not Tile(playerPositions[i]):getTopCreature():isPlayer() then
		      player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "You do not have any unjustified kill.")
                    return true
                end
            else
                        doPlayerSendTextMessage(cid,19,"You need 1 players to do this quest.")
                return true
            end
        end
          doRemoveItem(item.uid, 1)
        for x=1, #playerPositions do
            Tile(playerPositions[x]):getTopCreature():teleportTo(Position(33533, 32414, 12), false)
        end
    end
	return true
end

Iae galerinha , gostaria que vocês me ajuda-se nessa action ao usa esse script criar um monstro em X Posição . REP+ vlw

 

 

Editado por ysy (veja o histórico de edições)

Postado

MMHUCMQ.png  Esta é uma mensagem automática, este tópico foi movido para a área correta.
  Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680

Este tópico foi movido:
De: Scripting OTServ > OTServ > Actions e TalkActions
Para: Suporte OTServ > OTServ > Suporte de Scripts

Summonar Demon na position 23,94,7.

Game.createMonster("Demon", Position(23, 94, 7), false, true)

 

Postado

By the way.. Qual objetivo disso, explique melhor..

 

local playerPositions = {
	Position(33603, 32394, 11),
}						
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
    if target.itemid == 22634 then
        for i = 1, #playerPositions do
            if Tile(playerPositions[i]):getTopCreature() then
                if not Tile(playerPositions[i]):getTopCreature():isPlayer() then
					player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "You do not have any unjustified kill.")
                    return true
                end
            else
				player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "You need 1 players to do this quest.")
                return true
            end
        end
        doRemoveItem(item.uid, 1)
        for x=1, #playerPositions do
            Tile(playerPositions[x]):getTopCreature():teleportTo(Position(33533, 32414, 12), false)
			Game.createMonster("Demon", Position(23, 94, 7), false, true)
        end
    end
	return true
end

 

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo