Ir para conteúdo

Featured Replies

Postado

Editei a script do amigo ali, tenta ai:

e em talkactions add essa tag

<talkaction access="1" words="/gohouse" event="script" value="housetpgo.lua"/>

 

basta falar o comando /gohouse q vc vai parar na house

 

 

 

Talkactions/Scripts e cria um arquivo chamado housetpgo.lua

function onSay(cid, words)


if getHouseByPlayerGUID(getPlayerGUID(cid)) then
return doPlayerSendCancel(cid, "You don't have a house.")
elseif getCreatureCondition(cid, CONDITION_INFIGHT) then
return doPlayerSendCancel(cid, "You cannot teleport to your house during a battle.")
elseif getTileInfo(getThingPos(cid)).protection then
return doPlayerSendCancel(cid, "You aren't in a protection zone.")
else
doTeleportThing(cid, getHouseEntry(getHouseByPlayerGUID(getPlayerGUID(cid))))
doPlayerSendTextMessage(cid, 27, "You teleported to your house.")
end
return true
end

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

I helped you ? REP +.

 

Att: Abreu

  • Respostas 7
  • Visualizações 843
  • Created
  • Última resposta

Top Posters In This Topic

  • 8 years later...
Postado
function onSay(cid, words, param, channel)
if getPlayerStorageValue(cid, 13501) < 0 then
    return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, 'Você precisa ser VIP para usar este comando.') and true
    end
  if hasCondition(cid, CONDITION_INFIGHT) then
    return doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "Desculpe, você está em batalha.")
  end

  local house = getHouseByPlayerGUID(getPlayerGUID(cid))
  if house then
    doTeleportThing(cid, getHouseEntry(house))
    return doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "Você foi teleportado para sua casa!")
  else
    local town = getPlayerTown(cid)
    local templePosition = getTownTemplePosition(town)
    doTeleportThing(cid, templePosition)
    return doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "Você não tem uma casa e foi teleportado para o templo.")
  end
end

 

 

 

TFS 0.4

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