Ir para conteúdo

cleitonblink

Membro
  • Registro em

  • Última visita

Tudo que cleitonblink postou

  1. poderia detalhar mais a solução?? passando por isso...
  2. Estou com o mesmo problema, será que alguém poderia, me ajudar (achei melhor postar aqui para não criar um tópico). Me deem um help ae...vamos compartilhar conhecimento kk
  3. Bom Dia, como o titulo já diz preciso de um script que sumona bicho em uma área especifica, venho procurando no fórum e não encontrei nada assim: O player ira passar no teleport, assim sumonando "x" bichos (até aqui tudo bem), ao matar o boss ele ganharia acesso a sala do prêmio (que estará bloqueada com alguma pedra ou coisa do gênero) , mas se morrer o script retira os bichos sumonados deixando a sala limpa pra outros players. é isso, +REP (como de costume) Estarei no aguardo...
  4. Estou com o seguinte problema, estou usando uma action que quando abro a porta e ando ela fecha certinho...Mas quando abro, ficando no title dela e clico pra fechar ela se trasnforma em outra porta com id proximo dela...segue a action usada: function onUse(cid,item,frompos,item2,topos) local storage = 100100 if getPlayerStorageValue(cid, storage) >= 1 then doTransformItem(item.uid,item.itemid+1) doTeleportThing(cid,topos) else doPlayerSendTextMessage(cid, 22, 'sem acesso, repita a quest') return 1 end end Segue tambem o erro que da na distro: [7/6/2015 15:15:50] [Error - Action Interface] [7/6/2015 15:15:50] data/actions/scripts/other/doors.lua:onUse [7/6/2015 15:15:50] Description: [7/6/2015 15:15:50] (luaDoTransformItem) Item not found Se nao tiver ai o problema me avisa que posto...
  5. exatamente isso que queria...Obrigado
  6. Quero ajuda pra colocar um script no teleport, que quando um player passar por ele, ganhara um storage "x" somente isso. creio que seja simples, porem não encontro em forum algum... +REP
  7. Estou com problema na mensagem que deveria ser omitida ao server, de que tal jogador e tal guild, dominaram o castle. Segue o trecho: if getPlayerGuildId(cid) > 0 then if (getGlobalStorageValue(COH_STATUS) ~= getPlayerGuildName(cid)) then doPlayerSendTextMessage(cid, 20, "[Castle of Honor] Voce e sua guild estao no comando, os antigos donos ["..tostring(getGlobalStorageValue(COH_STATUS)).."] podem se vingar!") setGlobalStorageValue(COH_PREPARE1, -1) setGlobalStorageValue(COH_PREPARE2, -1) setGlobalStorageValue(COH_STATUS, getPlayerGuildName(cid)) doCastleRemoveEnemies doBroadcastMessage("[Castle of Honor] O jogador ["..getCreatureName(cid).."] e sua guild ["..getPlayerGuildName(cid).."] estao no comando do castelo, va dominar e impedir isso!") end else doSendMagicEffect(pos, 2) doTeleportThing(cid, fromPosition, false) doPlayerSendCancel(cid, "[CoH] Voce nao possui uma guild.") end return true end e o script inteiro: -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later version. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program. If not, see <http://www.gnu.org/licenses/>. -- // function onStepIn(cid, item, pos, fromPosition) local pos = getThingPos(cid) if item.actionid == 16203 then if not isPlayer(cid) then return true end if getGlobalStorageValue(COH_STATUS) == getPlayerGuildName(cid) then doSendMagicEffect(getThingPos(cid), 14) doSendAnimatedText(pos, "CoH", math.random(1, 255)) else doSendMagicEffect(getThingPos(cid), 2) doTeleportThing(cid, fromPosition, false) doPlayerSendCancel(cid, "[CoH] Voce nao pertence a guild "..getGlobalStorageValue(COH_STATUS)..".") end return true end if item.actionid == 16202 then if not isPlayer(cid) then return true end if getPlayerGuildId(cid) > 0 then if (getGlobalStorageValue(COH_STATUS) ~= getPlayerGuildName(cid)) then doPlayerSendTextMessage(cid, 20, "[Castle of Honor] Voce e sua guild estao no comando, os antigos donos ["..tostring(getGlobalStorageValue(COH_STATUS)).."] podem se vingar!") setGlobalStorageValue(COH_PREPARE1, -1) setGlobalStorageValue(COH_PREPARE2, -1) setGlobalStorageValue(COH_STATUS, getPlayerGuildName(cid)) doCastleRemoveEnemies doBroadcastMessage("[Castle of Honor] O jogador ["..getCreatureName(cid).."] e sua guild ["..getPlayerGuildName(cid).."] estao no comando do castelo, va dominar e impedir isso!") end else doSendMagicEffect(pos, 2) doTeleportThing(cid, fromPosition, false) doPlayerSendCancel(cid, "[CoH] Voce nao possui uma guild.") end return true end if item.actionid == 16200 then if not isPlayer(cid) then return true end if getPlayerGuildId(cid) > 0 then doSendAnimatedText(pos, "CoH", math.random(1, 255)) if (getGlobalStorageValue(COH_PREPARE1) ~= getPlayerGuildName(cid)) and ((getGlobalStorageValue(COH_PREPARE2) ~= getPlayerGuildName(cid))) then setGlobalStorageValue(COH_PREPARE1, getPlayerGuildName(cid)) doBroadcastMessage("[Castle of Honor] Atencao! A guild "..getPlayerGuildName(cid).." esta invadindo o castelo, preparem-se!") end else doSendMagicEffect(pos, 2) doTeleportThing(cid, fromPosition, false) doPlayerSendCancel(cid, " Voce nao possui uma guild.") return true end end if item.actionid == 16201 then if not isPlayer(cid) then return true end doSendAnimatedText(pos, "CoH", math.random(1, 255)) if (getGlobalStorageValue(COH_PREPARE2) ~= getPlayerGuildName(cid)) then setGlobalStorageValue(COH_PREPARE2, getPlayerGuildName(cid)) doBroadcastMessage("[Castle of Honor] Atencao! A guild "..getPlayerGuildName(cid).." esta muito proxima do dominio, ataquem!") end end return true end
  8. Desculpe estar revivendo esse post, mas pra qm esta com o problema atualmente... Data>world (Deixe como o exemplo abaixo) -house RealMap-house RealMap-spawn -spawn ZombieEvent (otbm tbem) RealMap.otbm.otbm (o otbm no caso) ZombieEvent-house ZombieEvent-spawn

Informação Importante

Confirmação de Termo