Ir para conteúdo

Alencar522

Campones
  • Total de itens

    55
  • Registro em

  • Última visita

Tudo que Alencar522 postou

  1. Alencar522

    me ajudem pfv

    Tem como postar teu shop.lua?
  2. Tenta assim: local a = { [13769] = {balltype = "ultra", ballid = 11829, pokemons = {"Shiny Charizard"}}, } function onUse(cid, item, frompos, item2, topos) local stor = 213654 if getPlayerStorageValue(cid, stor) == 1 then doPlayerSendCancel(cid, "Você não pode usar novamente!") return true end local b = a[item.itemid] if not b then return true end local pokemon = b.pokemons[math.random(#b.pokemons)] local btype = b.balltype if not pokeballs[btype] then return true end local gender = getRandomGenderByName(pokemon) local happy = 220 local ball = 0 local sendToDepot = false --alterado v1.6 if getCreatureMana(cid) >= 6 or not hasSpaceInContainer(getPlayerSlotItem(cid, 3).uid) then sendToDepot = true ball = doCreateItemEx(b.ballid) --alterado v1.3 else ball = item.uid end doItemSetAttribute(ball, "poke", pokemon) doItemSetAttribute(ball, "hp", 1) doItemSetAttribute(ball, "happy", happy) doItemSetAttribute(ball, "gender", gender) if pokemon == "Hitmonchan" or pokemon == "Shiny Hitmonchan" then doItemSetAttribute(ball, "hands", 0) end doItemSetAttribute(ball, "description", "Contains a "..pokemon..".") doItemSetAttribute(ball, "fakedesc", "Contains a "..pokemon..".") doItemSetAttribute(ball, "boost", 50) local nick = "".. getPlayerName(cid) .."" local description = "Contains a "..getItemAttribute(ball, "poke").."." doItemSetAttribute(ball, "nick", nick) local newdes = description.."\nIt's nickname is: ".. getPlayerName(cid) .."." doItemSetAttribute(ball, "description", newdes) local hp = getItemAttribute(ball, "happy") doItemSetAttribute(ball, "happy", hp + 25) doPlayerSendTextMessage(cid, 27, "You opened a pokemon prize box +"..item.itemid - (11637).."!") doPlayerSendTextMessage(cid, 27, "The prize pokemon was a "..pokemon..", congratulations!") if sendToDepot then doPlayerSendMailByName(getCreatureName(cid), ball, 1) --alterado v1.3 doPlayerSendTextMessage(cid, 27, "You are already holding six pokemons, so your new pokemon was sent to your depot.") setPlayerStorageValue(cid, 85552, os.time () + 9999) doRemoveItem(item.uid) else doTransformItem(ball, pokeballs[btype].on) end setPlayerStorageValue(cid, stor, 1) doSendMagicEffect(getThingPos(cid), 29) return true end
  3. Você deve colocar na source do seu server.
  4. Teria como postar a solução caso outra pessoa precise?
  5. Só uma pergunta, como você sabe que existem mais de 68 efeitos se eles não aparecem?
  6. Que server você usa?
  7. Aparece alguma mensagem? Dá algum erro no console?
  8. Vá em data/talkactions/scripts e abra o arquivo magiceffect.lua, vai estar assim(creio eu): function onSay(cid, words, param, channel) param = tonumber(param) if(not param or param < 0 or param > CONST_ME_LAST) then doPlayerSendCancel(cid, "Numeric param may not be lower than 0 and higher than " .. CONST_ME_LAST .. ".") return true end doSendMagicEffect(getCreaturePosition(cid), param) return true end Mude nesta linha: if(not param or param < 0 or param > CONST_ME_LAST) then Coloque o número máximo de efeitos que você deseja.
  9. Procura isso em config.lua: ghostModeInvisibleEffect e se tiver false põe true.
  10. Especifique seu pedido, fale como você quer. Se é de área ou tem algum efeito especial.
  11. Lê o que eu editei e tente aprender.
  12. Tenta assim:
  13. Se o que ele falou não funcionar coloque esse script em data/creaturescripts/scripts: Em creaturescripts.xml: Em login.lua:
  14. Creio que ele fique on.
  15. http://www.xtibia.com/forum/topic/231258-por-favor-como-tirar-a-opcao-de-drop-item-quando-morrer/ Tenta esse.
  16. Área está errada. Tenta esse aqui: http://www.xtibia.com/forum/topic/231258-por-favor-como-tirar-a-opcao-de-drop-item-quando-morrer/
  17. Creio que o interval seja por segundos, você terá que calcular para ficar do jeito que você quer.
  18. Que que tem o tempo?
  19. Só você criar vários arquivos e copiar esse script e por nele com a mensagem que você quiser, só que você terá que adicionar as tags dos arquivos. Exemplo: Tenho 5 arquivos de mensagens Então tenho que colocar 5 tags no global informando o nome desse arquivo.
  20. Crie um arquivo.lua em data/globalevents/scripts: De vermelho é onde você põe a mensagem! Em globalevents.xml:
  21. Se entendi bem você quer um comando para cada voc ver sua spell? Crie um arquivo.lua na pasta data/talkactions/scripts e coloque isso: Em talkaction.xml:
  22. Tenta assim:
  23. Me adiciona skype que te ajudo. alencar.beaver
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...