Ir para conteúdo

DuuhCarvalho

Conde
  • Total de itens

    988
  • Registro em

  • Última visita

  • Dias Ganhos

    22

Tudo que DuuhCarvalho postou

  1. Tópico movido para Pedidos e dúvidas resolvidos.
  2. DuuhCarvalho

    Premium

    local MIN_HEALTH = 200 local MAX_HEALTH = 600 local MIN_MANA = 110 local MAX_MANA = 390 local EMPTY_POTION = 7635 local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100)) function onUse(cid, item, fromPosition, itemEx, toPosition) if (not isPremium(cid)) then return FALSE end if isPlayer(itemEx.uid) == FALSE then return FALSE end if hasCondition(cid, CONDITION_EXHAUST_HEAL) == TRUE then doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED) return TRUE end if((not(isPaladin(itemEx.uid)) or getPlayerLevel(itemEx.uid) < 80) and getPlayerCustomFlagValue(itemEx.uid, PlayerCustomFlag_GamemasterPrivileges) == FALSE) then doCreatureSay(itemEx.uid, "Only paladins of level 80 or above may drink this fluid.", TALKTYPE_ORANGE_1) return TRUE end if doCreatureAddHealth(itemEx.uid, math.random(MIN_HEALTH, MAX_HEALTH)) == LUA_ERROR or doPlayerAddMana(itemEx.uid, math.random(MIN_MANA, MAX_MANA)) == LUA_ERROR then return FALSE end doAddCondition(cid, exhaust) doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE) doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1) doRemoveItem(item.uid, 1) pot_count = getPlayerItemCount(cid, EMPTY_POTION) doPlayerRemoveItem(cid, EMPTY_POTION, pot_count) doPlayerAddItem(cid, EMPTY_POTION, pot_count) return TRUE end
  3. Acho que tá falando disso : getPlayerSlotItem(cid, slot) Checa que item tem no (slot) do player, getPlayerSlotItem(cid, 1) -- Cabeça getPlayerSlotItem(cid, 2) -- Amuleto getPlayerSlotItem(cid, 3) -- Backpack getPlayerSlotItem(cid, 4) -- Armadura getPlayerSlotItem(cid, 5) -- Mão direita getPlayerSlotItem(cid, 6) -- Mão esquerda getPlayerSlotItem(cid, 7) -- Pernas getPlayerSlotItem(cid, 8) -- Botas getPlayerSlotItem(cid, 9) -- Anel getPlayerSlotItem(cid, 10) -- Slot onde fica a torcha
  4. #Bennyyw. Vlw, qualquer coisa dou um salve #Tonynh. Estou treinando mais algumas ferramentas.. Treinando alguns efeitos também. #Avatar (obs: Meu primeiro avatar) O Tamanho fica perfeito #Assinatura Continuarei treinando, Abraços
  5. <attribute key="slotType" value="feet" /> -- boots <attribute key="slotType" value="body"/> -- armor<attribute key="slotType" value="legs" /> -- legs <attribute key="slotType" value="head" /> -- helmet <attribute key="slotType" value="ring" /> -- ring <attribute key="weaponType" value="shield" /> -- shield <attribute key="weaponType" value="Wand" /> -- wnad <attribute key="weaponType" value="sword" /> -- sword <attribute key="weaponType" value="axe" /> -- axe <attribute key="weaponType" value="club" /> -- club
  6. DuuhCarvalho

    Premium

    posta o script da sua potion, que te ajudo.
  7. Obrigado amigo, Estarei sempre praticando, eu realmente preciso de seu auxilio >< Falaram pra mim que o wallpaper do Xtibia ficou gay 'rrsrs , na hora eu saquei que era por causa dos efeitos. Abraços *--* Obrigado #Edit. Tonynh esqueci de falar , uso photoshop ! pq ?, recomenda outro editor ?
  8. DuuhCarvalho

    DuuhCarvalho [Galeria]

    Bom não sou Designer , mais sou um grande fã de quem é ! Quero muito aprender, acho tudo muito lindo *--*. Estou estudando(treinando) bastante. Nesse tópico estarei mostrando todo os meus "trabalhos". Cometem.. Deixe suas criticas, pois são elas que vão me ajudar. Sempre que possível estarei atualizando o tópico. Minhas primeiras : (01/04/2014) #Wallpapers (1366x768) #1 #2 Fiz essa do Xtibia mais não gostei ;/ #Assinaturas (500x200) #1 É isso, Abraços
  9. function onUse(cid, item, fromPosition, itemEx, toPosition) local ids = {13,14} --Coloque o ID das vocations nesta tabela. local storage = 1234 -- storage local time = 60 -- tempo em minutos if itemEx.uid == cid then return doTransformItem(item.uid, 2106) end local mana = getCreatureMana(itemEx.uid) if getTilePzInfo(getCreaturePosition(cid)) or getTilePzInfo(getCreaturePosition(itemEx.uid)) then return false end if isInArray(ids, getPlayerVocation(cid)) then if getPlayerStorageValue(cid, storage) - os.time() <= 0 then if isPlayer(itemEx.uid) then doCreatureAddMana(itemEx.uid, -mana) doCreatureAddMana(cid, mana) doSendMagicEffect(getCreaturePosition(cid), 11) doSendMagicEffect(getCreaturePosition(itemEx.uid), 12) setPlayerStorageValue(cid, storage, os.time()+1*60) else doPlayerSendCancel(cid, "Você só pode usar o item em players.") end else doPlayerSendCancel(cid, "Você só pode usar o item a cada "..time.." segundos.") end end return true end
  10. Faz assim: em movements coloca esse script : function onStepIn(cid, item, position, fromPosition) local pos1 = {x = 1027, y = 912, z = 5} -- Posicao que sera levado if getPlayerLevel(cid) >= 120 and getPlayerLevel(cid) <= 140 then doTeleportThing(cid, pos1) setPlayerStorageValue(cid, 190983, 1) else doPlayerSendCancel(cid, "Voce nao pode entrar nesse Tp.") doTeleportThing(cid, fromPosition, true) end return true end agora em creaturescripts coloca esse : function onThink(cid, interval) local pos = {x= 1, y= 2, z= 3} -- posição pra onde o player vai if getPlayerLevel(cid) > 140 and getPlayerStorageValue(cid, 190983) >= 1 then if getCreatureCondition(cid, CONDITION_INFIGHT) == FALSE then doTeleportThing(cid, pos) setPlayerStorageValue(cid, 190983, 0) end end return true end com esse script , quando o player passar do level 140, e se ele não tiver com batler o mesmo será teleportado. a tag que vai em login.lua é essa: registerCreatureEvent(cid, "Nome do Evento") e a tag que vai em creaturescripts.xml é essa : <event type="think" name="Nome do Evento" event="script" value="Nome do Arquivo.lua"/>
  11. então responde , ocorreu algum erro ? obs: O player só vai sair da área quando ele deslogar .
  12. Amigo ler o tópico , aqui está a solução. você sabe ler ? não se ele tiver lá dentro , ele ainda fica lá dentro .. pra isso você tem que criar outro script, só que agora em creaturescripts vá em data / creaturescripts / scripts . e coloca isso .. function onLogin(cid) local pos = {x= 160, y= 54, z= 7} -- pos para onde o player será teleportado. if getPlayerLevel(cid) >= 120 and getPlayerLevel(cid) <= 140 then if getPlayerStorageValue(cid, 123987) ~= 1 then setPlayerStorageValue(cid, 123987, 1) end elseif getPlayerLevel(cid) > 140 then if getPlayerStorageValue(cid, 123987) == 1 then doTeleportThing(cid, pos, true) doPlayerSendTextMessage(cid, 22, "Você Passou do Level 140.") setPlayerStorageValue(cid, 123987, 0) end end return true end tag, creaturescript.xml : <event type="login" name="NomeDoEvento" event="script" value="NomeDoArquivo.lua"/> lucas não lembro se funciona da maneira que fez na parte: if getPlayerLevel(cid) >= 120 and <= 140 then creio que o correto seria : if getPlayerLevel(cid) >= 120 and getPlayerLevel(cid) <= 140 then
  13. Tenha paciência amigo , se ninguém ajudou ainda espere , até que alguém tenha o conhecimento e o ajude . O uso de "up" ou "bump" é considerado flood, passível de punição, quando feito em um intervalo menor de 24 (vinte e quatro) horas da criação do tópico de pedido e/ou dúvida e apenas e também, se, o tópico já possuir respostas.
  14. não entendi , doTransformItem ?, o item vai se transformar em quer ?
  15. Tópico movido para Pedidos e dúvidas resolvidos.
  16. function onStepIn(cid, item, position, fromPosition) local pos1 = {x = 1027, y = 912, z = 5} -- Posicao que sera levado if getPlayerLevel(cid) >= 120 and getPlayerLevel(cid) <= 140 then doTeleportThing(cid, pos1) else doPlayerSendCancel(cid, "Voce nao pode entrar nesse Tp.") doTeleportThing(cid, fromPosition, true) end return true end
  17. cara eu falei o erro na minha resposta ;s
  18. Tópico movido para Pedidos e dúvidas resolvidos.
  19. não se ele tiver lá dentro , ele ainda fica lá dentro .. pra isso você tem que criar outro script, só que agora em creaturescripts vá em data / creaturescripts / scripts . e coloca isso .. function onLogin(cid) local pos = {x= 160, y= 54, z= 7} -- pos para onde o player será teleportado. if getPlayerLevel(cid) >= 120 and getPlayerLevel(cid) <= 140 then if getPlayerStorageValue(cid, 123987) ~= 1 then setPlayerStorageValue(cid, 123987, 1) end elseif getPlayerLevel(cid) > 140 then if getPlayerStorageValue(cid, 123987) == 1 then doTeleportThing(cid, pos, true) doPlayerSendTextMessage(cid, 22, "Você Passou do Level 140.") setPlayerStorageValue(cid, 123987, 0) end end return true end tag, creaturescript.xml : <event type="login" name="NomeDoEvento" event="script" value="NomeDoArquivo.lua"/> lucas não lembro se funciona da maneira que fez na parte: if getPlayerLevel(cid) >= 120 and <= 140 then creio que o correto seria : if getPlayerLevel(cid) >= 120 and getPlayerLevel(cid) <= 140 then
  20. QUAL O SEU OBJETIVO AQUI DENTRO? O QUE FALTA NA SUA SEÇÃO FAVORITA? O QUE SERIA UM CONTEÚDO MAIS ATRATIVO? 1 = Meu objetivo é apenas ajudar, faço isso pq gosto 2 = Acho que não falta nada . 3 = Novidades, algo que seja inovador para o fórum .
  21. kkkk' não tipo, é que no que tinha entendido achei que ele queria um script que fizesse usar um talkaction automático. ae o que eu quis dizer que era melhor fazer o creaturescripts, pra falar tal coisa e executar o script no mesmo. entendeu ? ;s
  • Quem Está Navegando   0 membros estão online

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