Postado Junho 14, 2014 11 anos Em movements adicione essa tag no movements.xml: <movevent type="StepIn" actionid="1510" event="script" value="guildtile.lua"/> E crie um arquivo com o nome guildtile.lua em scripts e cole isso dentro: local position = {x = POSIÇÃO, y = POSIÇÃO, z = POSIÇÃO} function onStepIn(cid, item, pos) if getPlayerGuildId(cid) > 0 then if getPlayerLevel(cid) >=160 then doPlayerSendTextMessage(cid, 27, "Voce entrou, nome da sua guild: "..getPlayerGuildName(cid)..".") return true else doPlayerSendTextMessage(cid, 27, "Voce tem que ser acima de 160 para entrar nessa zona.") doTeleportThing(cid, position) return false end else doPlayerSendTextMessage(cid, 27, "Voce nao possue guild, portanto, nao pode entrar nessa zona.") doTeleportThing(cid, position) return false end end local position = {x = POSIÇÃO, y = POSIÇÃO, z = POSIÇÃO} ----- NESSA LINHA COLOQUE A POSIÇÃO ONDE O PLAYER VOLTARA! créditos: xWhiteWolf Editado Junho 14, 2014 11 anos por kelvin.shirazi (veja o histórico de edições) Ajudei? dá um REP + ↑↑ Projetos: Mapa próprio 8.70.
Postado Junho 14, 2014 11 anos movementes/scripts function onStepIn(cid, item, position, fromPosition) if getPlayerGuildId(cid) > 0 then if getPlayerLevel(cid) >= 160 then doPlayerSendTextMessage(cid,22,"WELCOME!") doSendMagicEffect(getCreaturePosition(cid), 28) else doTeleportThing(cid, fromPosition) doPlayerSendTextMessage(cid,22,"Voce precisa ser level 160 ou superir para passar por este piso.") doSendMagicEffect(getCreaturePosition(cid), 2) end else doTeleportThing(cid, fromPosition) doPlayerSendTextMessage(cid,22,"Voce precisa fazer parte de alguma guild para passar por este piso.") doSendMagicEffect(getCreaturePosition(cid), 2) end return TRUE end movements.xml <movevent type="StepIn" uniqueid="54613" event="script" value="NOME DO SCRIPT.lua" /> ai basta colocar o uniqueID 54613 no piso pelo RME ou outro editor. 16/11/2014 23/11/2014 RIP AnneMotta 21/01/2012 - 15/01/2014 Liga das lendas: DIAMOND É A META
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.