-
Total de itens
55 -
Registro em
-
Última visita
Tudo que Alencar522 postou
-
Tem como postar teu shop.lua?
-
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
-
Você deve colocar na source do seu server.
-
Teria como postar a solução caso outra pessoa precise?
-
Só uma pergunta, como você sabe que existem mais de 68 efeitos se eles não aparecem?
-
Que server você usa?
-
Aparece alguma mensagem? Dá algum erro no console?
-
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.
-
Procura isso em config.lua: ghostModeInvisibleEffect e se tiver false põe true.
-
Especifique seu pedido, fale como você quer. Se é de área ou tem algum efeito especial.
-
Lê o que eu editei e tente aprender.
- 13 respostas
-
- rare candy
- otserv
-
(e 2 mais)
Tags:
-
Tenta assim:
- 13 respostas
-
- rare candy
- otserv
-
(e 2 mais)
Tags:
-
Se o que ele falou não funcionar coloque esse script em data/creaturescripts/scripts: Em creaturescripts.xml: Em login.lua:
-
Creio que ele fique on.
-
http://www.xtibia.com/forum/topic/231258-por-favor-como-tirar-a-opcao-de-drop-item-quando-morrer/ Tenta esse.
-
Preciso de Uma Script para não Perder ITENS D:
tópico respondeu ao xMooph de Alencar522 em Lixeira Pública
Área está errada. Tenta esse aqui: http://www.xtibia.com/forum/topic/231258-por-favor-como-tirar-a-opcao-de-drop-item-quando-morrer/ -
Creio que o interval seja por segundos, você terá que calcular para ficar do jeito que você quer.
-
Que que tem o tempo?
-
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.
-
Crie um arquivo.lua em data/globalevents/scripts: De vermelho é onde você põe a mensagem! Em globalevents.xml:
-
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:
-
-
Tenta assim:
-
pedido Player ganha dinheiro ao matar player!
pergunta respondeu ao hadamais de Alencar522 em Scripts
Me adiciona skype que te ajudo. alencar.beaver
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.