Ir para conteúdo

Artur Henrique

Membro
  • Registro em

  • Última visita

Solutions

  1. Artur Henrique's post in (Resolvido)[duvida]pesca was marked as the answer   
    -- My Fat Doll improvisando nos otserver ;~-- Fishing v 1.0 05/04/2013 function onUse(cid, item, fromPosition, itemEx, toPosition) --Config-- local Bait = 3976 -- ID da isca local needBait = TRUE -- Precisa de isca? TRUE/FALSE local FishRate = 1.0 -- Rate de fish local time = 1 -- Tempo pra pescar denovo (em segundos) local NeedLevel = 50000 -- Level pra pescar local fishable = {"Danger blood crab", "Danger massive water elemental", "Danger quara constrictor scout", "Danger quara constrictor", "Danger quara hydromancer scout", "Danger quara hydromancer", "Danger quara mantassin scout", "Danger quara mantassin", "Danger quara pincher scout", "Danger quara pincher", "Danger quara predator scout", "DDanger quara predator", "Danger ice", "Danger water elemental", "Danger quara squicher"} --Pescados local message1 = " você precisa "..getItemNameById(Bait).."de minhocas para pescar!" -- Mensagem se não tiver iscas! local message2 = "Você deve esperar alguns segundos!"  --Mensagem se tiver pescando muito rapido local message3 = "Você não pode pescar no protection zone!" local message4 = "Você precisa ter level "..NeedLevel.." para pescar!"  --Mensagem se não tiver level --Config End-- -- Não mecha -- local storage = 5560 local waterIds = {493, 4608, 4609, 4610, 4611, 4612, 4613, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625} if (getPlayerLevel(cid) >= NeedLevel) then if not getTilePzInfo(getCreaturePosition(cid)) then if needBait == TRUE then if getPlayerItemCount(cid, Bait) > 0 then if exhaustion.get(cid, storage) == FALSE then exhaustion.set(cid, storage, time) doPlayerAddSkillTry(cid, SKILL_FISHING, 1) if isInArray(waterIds, itemEx.itemid) == TRUE then doSendMagicEffect(toPosition, CONST_ME_LOSEENERGY) if itemEx.itemid ~= 493 then if math.random(1, (100 + (getPlayerSkill(cid, SKILL_FISHING) / 10))) <= (getPlayerSkill(cid, SKILL_FISHING)*FishRate) then doPlayerRemoveItem(cid, Bait, 1) doCreateMonster(fishable[math.random(#fishable)], getPlayerPosition(cid)) end end end return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, message2) end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, message1) end return FALSE end if needBait == FALSE then if exhaustion.get(cid, storage) == FALSE then exhaustion.set(cid, storage, time) doPlayerAddSkillTry(cid, SKILL_FISHING, 1) if isInArray(waterIds, itemEx.itemid) == TRUE then doSendMagicEffect(toPosition, CONST_ME_LOSEENERGY) if itemEx.itemid ~= 493 then if math.random(1, (100 + (getPlayerSkill(cid, SKILL_FISHING) / 10))) <= (getPlayerSkill(cid, SKILL_FISHING)*FishRate) then doCreateMonster(fishable[math.random(#fishable)], getPlayerPosition(cid)) end end end return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, message2) end end return FALSE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, message3) end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, message4) end end
  2. Artur Henrique's post in (Resolvido)[PEDIDO] Action de estátua com Lv Min e Lv Maximo Para Teleport was marked as the answer   
    Vê ai se da, se não der avisa.
    function onUse(cid, item) local levelL = 25 local levelH = 50 pos = {x = 944, y = 1828, z = 8} -- aki e pos if (getPlayerLevel(cid) >= levelL) and (getPlayerLevel(cid) >= levelH) then doTeleportThing(cid,pos) doSendMagicEffect(getPlayerPosition(cid), 12) -- efeito se ele for teleportado doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "GoGo Cinnabar Traning ground")-- mensagem se ele for teleportado else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Denied lit only players with level "25" or "50" max can join teleport.") -- mensagem se ele nao for teleportado doSendMagicEffect(getPlayerPosition(cid), 11) -- efeito se ele nao for teleportado end return TRUE end
  3. Artur Henrique's post in (Resolvido)[Erro] 2 scripts was marked as the answer   
    O de pesca sei que deu certo, kk foi eu qm fez haha
    O de mineração, ao meu ver não tem nada de errado nele
    E o de desenterrar, talvez seja porque está duplicando (com o script da shovel de abrir buracos)
     
    Vê se isso aqui da certo:
    actions/scripts/tools/shovel.lua


      E no actions.xml tira essa tag: <action itemid="10515;10511;10513;5710;2554" event="script" value="mortos.lua"/> Deixe só a normal do shovel.lua   Creio eu que dará certo.
  4. Artur Henrique's post in (Resolvido)[PEDIDO] Raids Automaticas was marked as the answer   
    você coloca na pasta Mods que tem antes da pasta data xD
  5. Artur Henrique's post in (Resolvido)[Duvida] Monsters was marked as the answer   
    <immunity Death="100"/> mude pra <immunity Death="1"/>
    E aproveitando, lá nos ataques, mude min="20000" pra min="-20000"
    Porque sem o - ele faz é curar, e não hitar.

Informação Importante

Confirmação de Termo