Ir para conteúdo
  • 0

Preciso De Um Scripting Sobre Talck Actions, Que Remove Pedra


xmaster0

Pergunta

Eu queria um script, quando eu falasse (apenas gm,god) /openmewtwo, uma pedra em tal lugar quebrasse, e quando eu falasse /closemewtwo a pedra retornasse, quem puder ajudar rep++

Link para o comentário
Compartilhar em outros sites

3 respostass a esta questão

Posts Recomendados

  • 0

local position = {x = 180, y = 90, z = 7}
local stone = 1285

function onSay(cid, words, param, channel)
   local item = getTileItemById(position, stone)

   if(words == "/openmewtwo") then
       if(item.uid == 0) then
           doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "The Mewtwo's cave is already opened.")
           return true
       end

       doRemoveItem(item.uid)
       doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "You have opened the Mewtwo's cave.")
   elseif(words == "/closemewtwo") then
       if(item.uid > 0) then
           doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "The Mewtwo's cave is already closed.")
           return true
       end

       doCreateItem(stone, position)
       doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "You have closed the Mewtwo's cave.")
   end
   return true
end

Link para o comentário
Compartilhar em outros sites

  • 0


local position = {x = 180, y = 90, z = 7}
local stone = 1285

function onSay(cid, words, param, channel)
local item = getTileItemById(position, stone)

if(words == "/openmewtwo") then
	if(item.uid == 0) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "The Mewtwo's cave is already opened.")
		return true
	end

	doRemoveItem(item.uid)
	doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "You have opened the Mewtwo's cave.")
elseif(words == "/closemewtwo") then
	if(item.uid > 0) then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "The Mewtwo's cave is already closed.")
		return true
	end

	doCreateItem(stone, position)
	doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "You have closed the Mewtwo's cave.")
end
return true
end

 

mas eu colo isso onde. no talk action, ou no action?

Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...