Histórico de Curtidas
-
Myshhler deu reputação a xWhiteWolf em tile por hora certaprimeiro passo:
local hour = "16" -- use em string porque a função os.date retorna string
local minute = "38"
-- o callback vem aqui, por ser um piso vc vai usar o callback padrão de movements.
-- um desses dois, dependendo de como vc preferir
Function:
onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
onStepOut(cid, item, position, lastPosition, fromPosition, toPosition, actor)
-- a partir disso nós damos uma pesquisada no manual de Lua para saber as funções que retornam a hora e os minutos.
http://www.lua.org/pil/22.1.html
if os.date("%H") == hour and os.date("%M") == minute then
-- manda mensagem que permitiu e solta um efeitinho
else
-- teleporta pra posição anterior.
doTeleportThing(cid, fromPosition)
return false
end
return true
end
-
Myshhler deu reputação a vankk em [EVENT 0.4] MASSIVE TEAM BATTLEEu tinha esse evento muito tempo aqui no meu Pen Drive (para ser mais específico 4 anos), eu vou mudar ele para 1.2 amanha, entao nao me interessa a versao 0.4 mais. Nao sei se esta funcionando, nao tenho mapa. E nao vou explicar configuracoes, se voce nao souber configurar esse evento, voce nao merece te-lo em seu servidor!! Entao esta ai o code:
login.luaregisterCreatureEvent(cid, "TBEventC") registerCreatureEvent(cid, "TBEventS") registerCreatureEvent(cid, "TBEventO") tb.lualocal config = { base = {{x=121,y=126,z=7}, {x=142,y=149,z=7}}, -- team1 base, team2 base teamStorage = 49595, fragStorage = {49596, 49597} } function addFrag(id) return setGlobalStorageValue(config.fragStorage[id], math.max(1, (getGlobalStorageValue(config.fragStorage[id])+1))) end function getFragsTB(id) return getGlobalStorageValue(config.fragStorage[id]) == -1 and 0 or getGlobalStorageValue(config.fragStorage[id]) end function getTeam(cid) return getPlayerStorageValue(cid, config.teamStorage) == -1 and 0 or getPlayerStorageValue(cid, config.teamStorage) end function onCombat(cid, target, lastHit, flags) if not(isPlayer(cid)) or not(isPlayer(target)) then return true end if getTeam(cid) ~= 0 and getTeam(cid) == getTeam(target) then return doPlayerSendCancel(cid, "You may not attack teammates.") and false end return true end function onStatsChange(cid, attacker, type, combat, value) if combat == COMBAT_HEALING then return true end if not(isPlayer(cid)) or not(isPlayer(attacker)) then return true end if isMonster(attacker) and getTeam(cid) ~= 0 then return false end if isMonster(attacker) then return true end if getTeam(cid) ~= 0 and getTeam(cid) == getTeam(attacker) then return doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You may not attack teammates.") and false elseif getTeam(cid) == 0 then return true end if type ~= STATSCHANGE_HEALTHLOSS then return true end if value >= getCreatureHealth(cid) then doTeleportThing(cid, config.base[getTeam(cid)]) doSendMagicEffect(getThingPos(cid), 10) doCreatureAddHealth(cid, getCreatureMaxHealth(cid)) addFrag(getTeam(attacker)) doPlayerSendTextMessage(attacker, MESSAGE_INFO_DESCR, "You killed ".. getPlayerName(cid) .." and earned a frag for your team. Your team now has ".. getFragsTB(getTeam(attacker)) .. " frags.") doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You were owned by ".. getPlayerName(attacker) ..".") return false end return true end function onOutfit(cid, old, current) if getTeam(cid) ~= 0 then return doPlayerSendCancel(cid, "You cannot change your outfit here.") and false end return true end globalevents
tbevent.lualocal config = { tpPos = {x=92,y=118,z=7}, -- where tp happends tpToPos = {x=130,y=130,z=7}, -- tp p onde minutes = 1, -- minute area = {{x=121,y=126,z=7},{x=142,y=149,z=7}}, -- top left and bottom right corner of fight area waiting = {{x=121,y=126,z=7},{x=142,y=149,z=7}}, -- top left and bottom right corner of waiting arena needed = 2, -- minimum players timeToEnd = 30*1000, -- time to end base = {{x=121,y=126,z=7}, {x=142,y=149,z=7}}, -- team1 base, team2 base names = {"Alliance", "Horde"}, -- team names outfit = {{132, 136, 40},{132, 136, 160}}, -- outfits teamStorage = 49595, fragStorage = {49596, 49597}, fragsToWin = 3, -- frags to win outfitStorage = 49598 } function getFragsTB(id) return getGlobalStorageValue(config.fragStorage[id]) == -1 and 0 or getGlobalStorageValue(config.fragStorage[id]) end function getTeam(cid) return getPlayerStorageValue(cid, config.teamStorage) == -1 and 0 or getPlayerStorageValue(cid, config.teamStorage) end function setTeam(cid, team) local o = getCreatureOutfit(cid) setPlayerStorageValue(cid, config.outfitStorage, "{lookType=" .. o.lookType .. ", lookHead=" .. o.lookHead .. ", lookAddons=" .. o.lookAddons .. ", lookLegs=" .. o.lookLegs .. ", lookBody="..o.lookBody .. ", lookFeet=".. o.lookFeet.."}") doCreatureChangeOutfit(cid, {lookType = config.outfit[team][getPlayerSex(cid)+1], lookHead = config.outfit[team][3], lookAddons = 3, lookLegs = config.outfit[team][3], lookBody = config.outfit[team][3], lookFeet = config.outfit[team][3]}) return setPlayerStorageValue(cid, config.teamStorage, team) end function winner(id) if isInArray({1,2}, id) then doBroadcastMessage(config.names[id] .. " has won the Team Battle event.") for _, cid in pairs(getPlayersOnline()) do if getTeam(cid) == id then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your team has won the Team Battle event.") local rand = math.random(1,3) if rand == 1 then doPlayerAddItem(cid, SOFTBOOTS_ID, 1) elseif rand == 2 then doPlayerAddItem(cid, 2160, 10) else doAddPoints(cid, 5) end else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your team has lost the Team Battle event.") end end else doBroadcastMessage("No one won the Team Battle event. DRAW") end for _, cid in pairs(getPlayersOnline()) do if getTeam(cid) ~= 0 then doTeleportThing(cid, getTownTemplePosition(1)) doSendMagicEffect(getThingPos(cid), 10) setPlayerStorageValue(cid, config.teamStorage, -1) setGlobalStorageValue(5474578, -1) doCreatureChangeOutfit(cid, loadstring("return " .. getPlayerStorageValue(cid, config.outfitStorage))()) end end end function areaPlayers(c) local t = {} for x = c[1].x, c[2].x do for y = c[1].y, c[2].y do for z = c[1].z, c[2].z do local tmp = getThingFromPos({x=x,y=y,z=z,stackpos=253}) if tmp.uid > 0 and (isPlayer(tmp.uid)) then table.insert(t, tmp.uid) end end end end return t end function endTB(z) if z >= config.timeToEnd then local w = getFragsTB(1) == getFragsTB(2) and 3 or getFragsTB(1) > getFragsTB(2) and 1 or 2 return winner(w) elseif getFragsTB(1) ~= getFragsTB(2) then if getFragsTB(1) >= config.fragsToWin then return winner(1) elseif getFragsTB(2) >= config.fragsToWin then return winner(2) end end addEvent(endTB, 25, z+25) end function setTeams(cid, team) local pos = config.base[team] if not(isPlayer(cid)) then return true end doTeleportThing(cid, pos) doSendMagicEffect(pos, 10) setTeam(cid, team) end function startTB() doRemoveItem(getTileItemById(config.tpPos, 1387).uid) local ppl = areaPlayers(config.waiting) for i = 1, #ppl do local level = getPlayerLevel(ppl[i]) if not(level >= 150) then -- LEVEL HERE doTeleportThing(ppl[i], getTownTemplePosition(1)) doSendMagicEffect(getThingPos(ppl[i]), 10) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "To fight here must be level 150.") end end ppl = areaPlayers(config.waiting) if #ppl%2 == 1 then local r = ppl[math.random(#ppl)] doTeleportThing(r, getTownTemplePosition(1)) doSendMagicEffect(getThingPos(r), 10) doPlayerSendTextMessage(r, MESSAGE_INFO_DESCR, "Sorry, but you were kicked from the event for balancement.") end ppl = areaPlayers(config.waiting) if #ppl >= config.needed then for p = 1, #ppl/2 do addEvent(setTeams, 10*1000, ppl[p], 1) for i = 10, 1, -1 do addEvent(doPlayerSendTextMessage, (10-i)*1000, ppl[p], MESSAGE_INFO_DESCR, "Team Battle event will start in " .. i .. " seconds.") end end for p = #ppl/2+1, #ppl do addEvent(setTeams, 10*1000, ppl[p], 2) for i = 10, 1, -1 do addEvent(doPlayerSendTextMessage, (10-i)*1000, ppl[p], MESSAGE_INFO_DESCR, "Team Battle event will start in " .. i .. " seconds.") end end addEvent(endTB, 10*1000, 0) return doBroadcastMessage("Team Battle event started.") end for i = 1, #ppl do doTeleportThing(ppl[i], getTownTemplePosition(1)) doSendMagicEffect(getTownTemplePosition(1), 10) doPlayerSendTextMessage(ppl[i], MESSAGE_INFO_DESCR, "There were not enough players") end doBroadcastMessage("Team Battle failed to start, because there were not enough players.") setGlobalStorageValue(5474578, -1) end function onTime() setGlobalStorageValue(config.fragStorage[1], -1) setGlobalStorageValue(5474578, 1) setGlobalStorageValue(config.fragStorage[2], -1) doBroadcastMessage("Team Battle event will start in " .. config.minutes .. " minutes. The teleporter is open now. ") doCreateTeleport(1387, config.tpToPos, config.tpPos) for m = config.minutes-1, 0, -1 do if m == 0 then addEvent(startTB, config.minutes*60*1000) else addEvent(doBroadcastMessage, (config.minutes-m)*60*1000, "Team Battle event will start in " .. m .. " minutes.") end end return true end Créditos: Desconhecido.
Yours VANKK; -
Myshhler deu reputação a Bagon em Trocar parte do gesiorBasta ir no seu layout.php e procurar um submenu que queira colocar o hot e coloque desta seguinte forma:
<div class='SubmenuitemLabel'>Atendimento <img src="http://i.imgur.com/p2Jz44h.gif" /></div> Neste caso fiz como o do myshller.
-
Myshhler deu reputação a Bruxo Ots em Trocar parte do gesiorC:\xampp\htdocs\layouts\tibiacom\images\loginbox
nome arquivo é "loginbox-textfield-background"
-
Myshhler deu reputação a Bagon em Pet System v1.0 TFS 0.4/0.3Bom, hoje venho trazer á vocês um sistema de Pet System DIFERENCIADO de alguns presentes no fórum. Este sistema tem diversos comandos diferenciados, como:
!pet nomedopet este comando irá sumonar o pet.
!remove irá remover o pet.
!fale eu sou lindo o pet falará "eu sou lindo"
!conversar o pet irá conversar com vc.
Então sem mais delongas vamos ao script.
OBS: SCRIPT TESTADO SOMENTE EM TFS 0.4/0.3, e este script foi feito com a intenção de ser vendido no site do ot ou em poderá usar como quest usando o item selecionado como premio. fique ao seu critério.
Primeiro vá até a pasta talkaction/script e crie um arquivo chamado petsystem.lua, depois coloque o seguinte script:
Agora em talkactions/talkactions.xml adicione a seguinte tag:
<talkaction words="!pet;!remove;!fale;!conversar" event="script" value="petsystem.lua" />
EXPLICAÇÂO:
As partes em Negrito, são os pets. Você pode alterar ou criar monstros para fazer eles como pets. (Recomendo criar um monstro para que seja somente pet.)
Exemplo: ["dog"]= {stor=78552},
Lembrando que é necessário mudar esta parte no script do monstro colocado a cima.
<flag attackable="1" /> para :
<flag attackable="0" />
agora vá em action/script e crie um arquivo chamado pet com o seguinte script:
e vá em action.xml e adiciona a seguinte tag:
<action itemid="10063" script="pet.lua"/> Explicação: Na tag da action o itemid é o item que deverá ser usado para ganhar a storage 78552, e assim podera sumonar o monstro com esta storage.
CRIE UMA ACTION COM A TAG A CIMA PARA CADA MONSTRO COLOCADO NA TALKACTION,
BASTA VC ALTERAR A STORAGE DO SCRIPT DA ACTION
EXEMPLO: em action altere as storage que estão em vermelho, como mostra abaixo
if getPlayerStorageValue(cid, 78552) < 1 then
setPlayerStorageValue(cid, 78552, 1)
aonde tem 78552 altere para 78553 que no caso é a storage do cyclops escolhido lá no script da talkaction
e assim susecivelmente.
CREDITOS:
Mulizeu
Smartbox
Bagon
-
Myshhler deu reputação a Bagon em [Gesior] Shadowcores WebsiteVisualize o website
Downloads
Download Mega
Scan
Créditos: Shadowcores MitSuig, Daniel por disponibilizar (Eu @Bagon não tenho crédito nenhum, somente estou compartilhando para o avanço e melhoria do fórum) -
Myshhler deu reputação a Bagon em Mudar preço aol. char não deslogarbless para level:
vá em seuot/data/creaturescript/script e crie um arquivo chamado levelprotection.luafunction onPrepareDeath(cid, lastHitKiller, mostDamageKiller) local level = 50 if isPlayer(cid) and getPlayerLevel(cid) < level then doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) doCreatureAddHealth(cid, getCreatureMaxHealth(cid), 65535, 256, true) doCreatureAddMana(cid, getCreatureMaxMana(cid)) doRemoveConditions(cid, false) return false end return true end depois vá em creaturescript.xml e adicione esta tag<event type="preparedeath" name="ProtectLevel" event="script" value="levelprotection.lua"/>e no login.lua adicione está tagregisterCreatureEvent(cid, "ProtectLevel")
para o char deslogar seg este topico
http://www.tibiaking.com/forum/topic/18333-resolvendo-exit-trainer/ -
Myshhler deu reputação a Bagon em Source 8.60 (tfs 0.4)Entao cara, essa vídeo aula ensina a compilar o TFS 0.4 do @luanluciano98 ! Com migo funcionou certinho.
https://www.youtube.com/watch?v=iIVJxDFLvlg
Boa Sorte !
-
Myshhler deu reputação a vithenso em Projeto Cavaleiros do Zodiaco GenesisGalera consegui um servidor ai do qual precisa fazer alguns ajutes e correções mais a base ta montada e o projeto em sequencia:
Obs : Equipe Aberta Ainda
Segue a SS do projeto:
-
Myshhler deu reputação a luanluciano93 em [TFS 1.x] Removendo House por Tempo OFFOlá, esse script é usada para que o player que fique offline pelo tempo editado, perca a house automaticamente.
Em globalevents/scripts/ crie um arquivo chamado doCheckHouses.lua e coloque esse código dentro:
-- <globalevent type="startup" name="doCheckHouses" script="doCheckHouses.lua" /> local function doCheckHouses() local dias = 3 local tempo = os.time() - (dias * 24 * 60 * 60) local registros = db.storeQuery("SELECT `houses`.`owner`, `houses`.`id` FROM `houses`,`players` WHERE `houses`.`owner` != 0 AND `houses`.`owner` = `players`.`id` AND `players`.`lastlogin` <= " .. tempo .. ";") if registros ~= false then local count = 0 print('house leave code') repeat count = count + 1 local owner = result.getNumber(registros, "owner") local houseId = result.getNumber(registros, "id") local house = House(houseId) if house and (owner > 0) then print(house:getName()) house:setOwnerGuid(0) end until not result.next(registros) print('house leave house count:' .. count) result.free(registros) end end function onStartup() addEvent(doCheckHouses, 60 * 1000) return true end A tag do globalevents.xml esta no script como comentário, é só adiciona-lá.
Para editar o tempo (em dias) que se o jogador ficar offline ele perderá a house é nessa linha:
local dias = 3 OBS: Esse script é iniciado junto com o servidor, logo após aparecerá na distro as houses removidas e a quantidade total.
Créditos: Luan e Cristofer.
-
Myshhler deu reputação a Wakon em Tile que sumona monstroEm "Data/movements/scripts", nome_desejado.lua:
local config = { gStorage = 34349, monster = "Demodras", time = 5, pos = {x = 158, y = 57, z = 7} } function onStepIn(cid, item, position, fromPosition) if not isPlayer(cid) then return true end if getGlobalStorageValue(config.gStorage) < os.time() then doCreateMonster(config.monster, config.pos) setGlobalStorageValue(config.gStorage, config.time * 60 + os.time()) doCreatureSay(cid, ''..config.monster ..' apareceu!', TALKTYPE_MONSTER) doSendMagicEffect(config.pos, CONST_ME_TELEPORT) doSendMagicEffect(position, 13) else doTeleportThing(cid, fromPosition) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'Aguarde '.. math.ceil((getGlobalStorageValue(config.gStorage) - os.time())/60) ..' minutos para summonar o '.. config.monster ..' novamente.') end return true end Em "Data/movements", no arquivo movements.xml adicione:
<movevent type="StepIn" actionid="XXX" event="script" value="nome_desejado.lua" /> Em XXX coloque a actionID desejada e depois coloque-a no RME.
Se tiver errado ou der alguma problema, me avise.
-
Myshhler deu reputação a Caronte em (Resolvido)[ERRO] Criando monstroé look typeex , e não somente typeex.
ficaria assim:
-
Myshhler deu reputação a Enzo Caue em ERRO SERVER NAMESe não for algum script é a source.
-
Myshhler deu reputação a Caronte em [GLOBALEVENT] Tempo de jogo no seu OTServerTestado em TFS 0.4
Olá pessoal, esse é um sistemazinho de UpTime, ele funciona assim:
OBS: Coloquei interval 5000 para testar, que é 5 segundos, mas você pode alterar na TAG, que eu irei passar, onde tem o 5000, ajuste a gosto.
Para instalar ele é bem simples:
TFS 0.4
TFS 1.2 (Se pega 100% no 1.1 , Confirme no tópico)
É isso, pessoal
-
Myshhler deu reputação a zipter98 em (Resolvido)TILE QUE MOSTRE MENSSAGEMlocal time, storage = 3, 9471 function onStepIn(cid, item, position, fromPosition) if getPlayerStorageValue(cid, storage) > os.time() then doPlayerSendCancel(cid, "Wait "..getPlayerStorageValue(cid, storage) - os.time().." second(s) to pass here again.") doTeleportThing(cid, fromPosition) else local message = getCreatureName(cid).." esta invadindo o castelo." if getPlayerGuildId(cid) > 0 then message = getCreatureName(cid)..", da guild "..getPlayerGuildName(cid)..", esta invadindo o castelo." end for _, pid in pairs(getPlayersOnline()) do if pid ~= cid then doPlayerSendTextMessage(pid, 27, message) end end setPlayerStorageValue(cid, storage, os.time() + time) end return true end
-
Myshhler deu reputação a Wakon em (Resolvido)[PEDIDO] Script vipfree (ex:1,2,3)Esses sistemas de VIP free em baiak, é usado apenas uma storage para identificar.
Em "Data/movements/scripts", crie tilevip1.lua e cole:
local t = { storage = 29000, -- Storage da VIP[1], deve ser a mesma usada no baú!! effect = 13 } function onStepIn(cid, item, position, fromPosition) if not isPlayer(cid) then return true end if getPlayerStorageValue(cid, t.storage) < 1 then doTeleportThing(cid, fromPosition, true) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você não é VIP[1].") doSendMagicEffect(getThingPos(cid), t.effect) return true end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Bem-vindo a área VIP[1].") return true end Em "Data/movements" abra o movements.xml e cole:
<movevent type="StepIn" actionid="25550" event="script" value="tilevip1.lua" /> Agora é só colocar a actionID( pode alterar ) na entrada da VIP[1].
Agora para ganhar acesso clicando no baú, você deve criar uma action:
Em "Data/actions/scripts" crie bauvip1.lua e cole:
local storage = 29000 -- Storage da VIP[1], deve ser a mesma utilizada no tileVIP[1]. function onUse(cid, item, fromPos, itemEx, toPos) if getPlayerStorageValue(cid, storage) < 1 then doPlayerSendTextMessage(cid, 25, "Você agora é VIP[1].") setPlayerStorageValue(cid, storage, 1) else doPlayerSendTextMessage(cid, 25, "Você já é VIP[1].") end return true end Depois em "Data/actions" abra o actions.xml e cole:
<action actionid="39484" script="bauvip1.lua"/> Ai é só colocar a actionID desejada no baú da VIP[1].
Se quiser mais é só ir fazendo o mesmo processo alterando a storage e as actionID id's.
-
Myshhler deu reputação a xWhiteWolf em COMANDO !DODGElocal dodge = 48902 function onSay(cid) if getPlayerStorageValue(cid, dodge) >= 1 then doShowTextDialog(cid, 2175, "Voce possui "..getPlayerStorageValue(cid, dodge).." dodges.") else doPlayerSendCancel(cid,"Voce nao possui dodges.") end return 1 end
-
Myshhler deu reputação a Sanieg em COMANDO !DODGE
-
Myshhler deu reputação a Deadpool em (Resolvido)ADDON PARA ADM [AJUDA]data/xml/outfits.xml, segue o exemplo:
<outfit id="14"> <list gender="0" lookType="320" name="Sudden Death Human"/> <list gender="1" lookType="320" name="Sudden Death Human"/> </outfit> coloque essa tag: access = "5" ficando assim:
<outfit id="14" access = "5"> <list gender="0" lookType="320" name="Sudden Death Human"/> <list gender="1" lookType="320" name="Sudden Death Human"/> </outfit> Looktype= ID da outfi, que pode ser pega na spr e dat do cliente
-
Myshhler deu reputação a Bagon em Ajuda Script ?Ae galera do TK.
Estou precisando de uma ajuda.. Meu ot contém castle 24 horas, para pode-lo dominar precisa andar pela action 16202.
Quero que ao invés de andar pela action, mate um monstro e passe a dominar o castelo. Me ajude se for possível.
Vou deixar o script aqui ..
Grato, desde já !
-- 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] Você não pertence á 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] Você e sua guild estão 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).."] estão no comando do castelo, vá dominar e impedir isso!") end else doSendMagicEffect(pos, 2) doTeleportThing(cid, fromPosition, false) doPlayerSendCancel(cid, "[CoH] Você não 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] Atenção! A guild "..getPlayerGuildName(cid).." está tentando dominar o castelo, preparem-se!") end else doSendMagicEffect(pos, 2) doTeleportThing(cid, fromPosition, false) doPlayerSendCancel(cid, "[CoH] Você não 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] Atenção! A guild "..getPlayerGuildName(cid).." está muito próxima do domínio, ataquem!") end end return true end Up
up
-
Myshhler deu reputação a Bagon em Como tirar falas ao soltar magiaBoa Noite galera do TK.
Estou com duvidas..
estou querendo tirar falas que aparece ao soltar magia por exemplo (MANASHIELD,HEALING,etc..)
gostaria de e ficar so o nome da magia mesmo !
Grato desde já
Exemplo ..
-
Myshhler deu reputação a Sanieg em Configurar ScriptNada qualquer coisa estou aqui rs
-
Myshhler deu reputação a Sanieg em Configurar ScriptConfigurado de acordo com o tibia
-
Myshhler deu reputação a Bagon em (Resolvido)Preciso do Script NPC (teletransportar o player)ta dando erro no remeres. :/
-
Myshhler deu reputação a Bagon em (Resolvido)Preciso do Script NPC (teletransportar o player)Outra duvida, vc sabe como adicionar um level para ser teletransportado. Exemplo: (Level 3500