Jump to content

Search the Community

Showing results for tags 'editar script'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • xTibia - Notícias e Suporte
    • Regras
    • Noticias
    • Soluções
    • Projetos Patrocinados
    • Tutoriais para Iniciantes
    • Imprensa
  • OTServ
    • Notícias e Debates
    • OTServlist
    • Downloads
    • Recursos
    • Suporte
    • Pedidos
    • Show-Off
    • Tutoriais
  • OFF-Topic
    • Barzinho do Éks
    • Design
    • Informática

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Sou

Found 2 results

  1. Olá galera.. boa tarde. bom preciso da ajuda de vocês para editar um script pra mim.. ele é o seguinte o player só pode passar nele se tiver guild e level 25 e aparecer a mensagem para todos verem em vermelho tenho a basica dele aqui mais não ta funcionando , preciso que ele só fale a mensagem quando ele entrar pra invadir o castle ao sair não aparecer nada... tipow assim , essa é a foto de um cara invadindo o castle : Script : function onStepIn(cid, item, position, fromPosition) if not isPlayer(cid) then return true end local article = getPlayerSex(cid) == 0 and "A" or "O" if getPlayerGuildId(cid) > 0 then broadcastMessage(article.."O jogador"..article:lower().." "..getCreatureName(cid).." da guild "..getPlayerGuildName(cid).." esta invadindo o castelo, avisar aos donos atuais.") end return true end @up
  2. Galera queria que apenas tal vocation id possa se batizar nessa cidade, e os que nao for dessa vocation id o npc diga a mensagem.. "Apenas humanos podem morar nessa cidade." Script NPC: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if(msgcontains(msg, 'sim')) then doPlayerSetTown(cid, 5) npcHandler:say("Seja bem vindo a Edoras.", cid) talkState[talkUser] = 1 elseif(msgcontains(msg, 'nao')) then npcHandler:say('Adeus Forasteiro..', cid) talkState[talkUser] = 0 end return true end function msgcontains(message, keyword) if(type(keyword) == "table") then return table.isStrIn(keyword, message) end local a, b = message:lower():find(keyword:lower()) if(a ~= nil and b ~= nil) then return true end return false end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
×
×
  • Create New...