
Tudo que Wakon postou
- Erro Dat Editor
-
Estou com dedicado . Prescisando de um ot !
Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: OTServ > Notícias e OTServ Geral Para: Projetos / Formação de Equipes > OTServ > Formação de Equipes
-
Procurando Equipe
Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: OTServ > Notícias e OTServ Geral Para: Projetos / Formação de Equipes > OTServ > Formação de Equipes
-
Ajuda Script
Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: OTServ > Notícias e OTServ Geral Para: Suporte OTServ > OTServ > Suporte de Scripts
-
Nao Consigo Colocar Meu Poketibia On
Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: OTServ > Notícias e OTServ Geral Para: Suporte OTServ > OTServ > Suporte de OTServ Geral
-
Error
Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: Tibia King > Atendimento Geral Para: Suporte OTServ > OTServ > Suporte de OTServ Geral
- SERVER FECHANDO SOZINHO DPS DE ALGUMAS HORAS
-
(Resolvido)Script infuncional (com e sem erro no distro)
Sim é possível declarar um else para cada if, sobre a função no meio da frase, acho que da maneira que eu coloquei deu a entender errado, coloquei essas aspas para citar o nome do shield na frase, então não é necessário colocar as aspas, você abre o texto utilizando ' ou " e caso queira adicionar uma função no meio você fecha ' ou ", adiciona a .. função .., abre o texto de novo e termina de digitar, no final fecha novamente. Exemplo: doPlayerSendCancel(cid, "Aqui é o texto e fecha ".. função aqui .." abre novamente e fecha.") ou utilizando apenas ' doPlayerSendCancel(cid, 'Aqui é o texto e fecha '.. função aqui ..' abre novamente e fecha.') Agora sobre o addEvent, não, pois o addEvent já é "iniciado" assim que manda a magia, sendo assim target do addEvent será o que você lançou a magia. Espero que tenha entendido, não sou muito bom em explicar.
-
(Resolvido)Script infuncional (com e sem erro no distro)
Fiz um aqui pra você, veja se lhe agrada: local storage, escudo = 40955, 2520 function onCastSpell(cid, var) local slot1, slot2 = getPlayerSlotItem(cid, CONST_SLOT_RIGHT).itemid, getPlayerSlotItem(cid, CONST_SLOT_LEFT).itemid local target, pos = getCreatureTarget(cid), getCreaturePosition if isPlayer(target) then if slot1 == escudo or slot2 == escudo then setPlayerStorageValue(target, storage, 1) doCreatureSay(target, 'Charged!', TALKTYPE_MONSTER) doSendMagicEffect(pos(target), CONST_ME_STUN) addEvent(function() setPlayerStorageValue(target, storage, -1) doCreatureSay(target, 'Charged lost!', TALKTYPE_MONSTER) doSendMagicEffect(pos(target), CONST_ME_MAGIC_GREEN) end, 4000) else doSendMagicEffect(pos(cid), CONST_ME_POFF) return doPlayerSendCancel(cid, 'Você só pode usar esta magia com o escudo "'.. getItemNameById(escudo) ..'" equiipado.') and false end else doSendMagicEffect(pos(cid), CONST_ME_POFF) return doPlayerSendCancel(cid, 'Você só pode usar em jogadores.') and false end return true end
-
Ajuda Aqui
Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: Tibia King > Atendimento Geral Para: Suporte OTServ > OTServ > Suporte de Mapping
- Otserv
-
Gesior Erro
Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: WebSites OTServ > OTServ > Downloads de Websites Para: Suporte OTServ > OTServ > Suporte de WebSites
-
(Resolvido)Talk Criar apenas itens configurados no script
Troque pelo seu createitem: local items = {2160, 2161, 2162, 2163} -- Aqui você coloca os items permitidos. function onSay(cid, words, param, channel) if getPlayerStorageValue(cid, 9909) < 1 then return doPlayerSendCancel(cid, "Você não tem permissão para usar este comando.") and true end if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") return true end local t = string.explode(param, ",") local ret = RETURNVALUE_NOERROR local pos = getCreaturePosition(cid) if t[1] == "list" then local str, n = "Items permitidos:\n\n", "" for v, k in pairs(items) do n = getItemNameById(k) str = str.."".. k .." - ".. n .."\n" end return doShowTextDialog(cid, 1950, str) end local id = tonumber(t[1]) if(not id) then id = getItemIdByName(t[1], false) if(not id) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Item wich such name does not exists.") return true end end if not isInArray(items, id) then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não pode criar este item, para ver a lista de items permitidos digite: /i list") end local amount = 100 if(t[2]) then amount = t[2] end local item = doCreateItemEx(id, amount) if(t[3] and getBooleanFromString(t[3])) then if(t[4] and getBooleanFromString(t[4])) then pos = getCreatureLookPosition(cid) end ret = doTileAddItemEx(pos, item) else ret = doPlayerAddItemEx(cid, item, true) end if(ret ~= RETURNVALUE_NOERROR) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Couldn't add item: " .. t[1]) return true end doDecayItem(item) if(not isPlayerGhost(cid)) then doSendMagicEffect(pos, CONST_ME_MAGIC_RED) end return true end Adicionei também uma lista dos items permitidos, basta digitar /i list. Se der algum problema, me avise.
-
Ajuda
Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: Tibia King > Atendimento Geral Para: Suporte OTServ > OTServ > Suporte de OTServ Geral
-
scprit de sense
Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: Scripting OTServ > OTServ > Sistemas e MODs Para: Suporte OTServ > OTServ > Suporte de Scripts
-
(Resolvido)Comando /i por storage
Troque seu script por esse: function onSay(cid, words, param, channel) if getPlayerAccess(cid) < 4 and getPlayerStorageValue(cid, 9909) < 1 then return doPlayerSendCancel(cid, "Você não tem permissão para usar este comando.") and true end if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") return true end local t = string.explode(param, ",") local ret = RETURNVALUE_NOERROR local pos = getCreaturePosition(cid) local id = tonumber(t[1]) if(not id) then id = getItemIdByName(t[1], false) if(not id) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Item wich such name does not exists.") return true end end local amount = 100 if(t[2]) then amount = t[2] end local item = doCreateItemEx(id, amount) if(t[3] and getBooleanFromString(t[3])) then if(t[4] and getBooleanFromString(t[4])) then pos = getCreatureLookPosition(cid) end ret = doTileAddItemEx(pos, item) else ret = doPlayerAddItemEx(cid, item, true) end if(ret ~= RETURNVALUE_NOERROR) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Couldn't add item: " .. t[1]) return true end doDecayItem(item) if(not isPlayerGhost(cid)) then doSendMagicEffect(pos, CONST_ME_MAGIC_RED) end return true end E no arquivo talkactions.xml, altere o access do /i para 3.
-
(Resolvido)BUG ITENS
Vá em "Data/movements", abra o arquivo movements.xml e procure pelo ID do item desejado, ai é só alterar as vocações e o level para poder usar.
-
Remeres Map Editor 8.60
Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: Tibia King > Atendimento Geral Para: Suporte OTServ > OTServ > Suporte de OTServ Geral
-
[NPC] Reseter com premio
Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: Scripting OTServ > OTServ > Monsters e NPCs Para: Suporte OTServ > OTServ > Suporte de Scripts
- (Resolvido)Comando para remover mana atual do player
-
PRECISO ADICIONAR A MEGA STONE NO MEU SERV
Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: Aprendizagem OTServ > OTServ > Começando seu Servidor Para: Suporte OTServ > OTServ > Suporte de OTServ Geral
-
Baiak MoazOT | V1.1
Tópico aprovado, obrigado por compartilhar. Você recebeu um REP pela contribuição.
-
Pedido de action que dobra a velocidade do Player
Esta é uma mensagem automática, este tópico foi movido para a área correta. Regras do fórum: http://www.tibiaking.com/forum/topic/1281-regras-gerais/#comment-7680 Este tópico foi movido: De: Scripting OTServ > OTServ > Actions e TalkActions Para: Suporte OTServ > OTServ > Suporte de Scripts
-
[AJUDA] Resetar o servidor
@zPerseu, evite reviver tópicos antigos, a não ser que seja algo relacionado ao tópico! Se você está com alguma dúvida, crie um tópico na seção de suporte.
-
(Resolvido)Ring Adicional Mana
Script para aumentar a vida, somente para Knight e Paladin: TAG's: Ring para aumentar mana, somente para mages: TAG's: Se der algum problema, me avise.