Ir para conteúdo

Bodak Reborn

Membro
  • Registro em

  • Última visita

Tudo que Bodak Reborn postou

  1. Boy, você copiou errado e veio com o link do site. Olha a última linha...
  2. -- Script Feito Por Dark Ownz function onUse(cid, item, fromPosition, itemEx, toPosition) local config={ removeOnUse = "yes" -- remover quando usar ("yes" or "no") } local days = 30 -- coloque os dias que serão a VIP! local daysvalue = days * 24 * 60 * 60 local storageplayer = getPlayerStorageValue(cid,14965) local timenow = os.time() if getPlayerStorageValue(cid, 14965) - os.time() <= 0 then time = timenow + daysvalue else time = storageplayer + daysvalue end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Foram adicionados ".. days .." dias de VIP no seu character.") setPlayerStorageValue(cid, 14965, time) local quantity = math.floor((getPlayerStorageValue(cid, 14965) - timenow)/(24 * 60 * 60)) doSendMagicEffect(getPlayerPosition(cid), math.random(28,30)) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você tem ".. quantity .." dias de VIP restantes.") if (config.removeOnUse == "yes") then doRemoveItem(item.uid, 1) end return TRUE end
  3. Bodak Reborn postou uma resposta no tópico em Suporte Tibia OTServer
    spells function onCastSpell(cid) local exhausted = 30 -- tempo em segundos para usar a skill novamente. if getPlayerStorageValue (cid, 349999) < os.time() then setPlayerStorageValue (cid, 349999, exhausted + os.time()) setPlayerStorageValue (cid, 350000, getThingPos(cid).x) setPlayerStorageValue (cid, 350001, getThingPos(cid).y) setPlayerStorageValue (cid, 350002, getThingPos(cid).z) else doPlayerSendCancel (cid, "You're exhausted.") end return true end creaturescripts/scripts function onStatsChange(cid, attacker, type, combat, value) local percent = 0.3 -- 0.3 = 30%, 0.5 = 50%... etc local effect = 29 if type == STATSCHANGE_HEALTHLOSS and getCreatureMaxHealth (cid) * percent > getCreatureHealth (cid) and getPlayerStorageValue (cid, 350000) > 0 then doTeleportThing (cid, {x = getPlayerStorageValue (cid, 350000), y = getPlayerStorageValue (cid, 350001), z = getPlayerStorageValue (cid, 350002)}) doCreatureAddHealth (cid, getCreatureMaxHealth(cid)) doSendMagicEffect (getThingPos (cid), effect) setPlayerStorageValue (cid, 350000, 0) setPlayerStorageValue (cid, 350001, 0) setPlayerStorageValue (cid, 350002, 0) end return true end XML <event type="statschange" name="Izanagi" event="script" value="nome_arquivo.lua"/> Em login.lua registerCreatureEvent(cid, "Izanagi")
  4. Cara, tenho quase certeza que não é possível sem mexer nas sources. Lembrando que tem como remover o NPC e criar um monstro que seja atacável, caso você queira fazer uma quest assim.
  5. Meu servidor não tem a essa função "doDittoRevert" que aparece no !revert, tem como me passar ela? E outra, verifica se quando você copia um pokémon muito forte (que vai aumentar muito a vida do Ditto) continua o bug.
  6. o mundo ta insano
  7. local pos = {x = 1503, y = 1504, z = 7} if getTopCreature(pos).uid > 0 then
  8. Editei o comentário com o código, tenta de novo.
  9. local config = { percent = 2, --- porcentagem de mana que perde } function onUse(cid, item, fromPosition, itemEx, toPosition) local pos = fromPosition local topos = toPosition local position1 = {x=getPlayerPosition(cid).x, y=getPlayerPosition(cid).y, z=getPlayerPosition(cid).z} local position2 = {x=toPosition.x, y=toPosition.y, z=toPosition.z} local aqui = getPlayerPosition(cid) local vocs = {670, 671, 672, 673, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279} local agua = {4610, 4612, 4611, 4664, 4613, 4666, 4646, 4654, 4609, 4665, 4608, 4625, 4665, 4666, 4645} local parede = {1030, 1029, 1025, 1026, 1027, 1259, 1028, 1032, 1034, 1033, 1536, 1533, 873, 919, 874, 1037, 2700, 2708, 4472, 4475, 4471, 3388, 3373, 3363, 3398, 3408, 3417, 3420, 3407, 3368, 2701, 5130, 6170, 6166, 1596, 3361, 3362, 3363, 3364, 3365, 3366, 3367, 3368, 3369, 3370, 3371, 3372, 3373, 3374, 3375, 3376, 3377, 3378, 3379, 3380, 3381, 3382, 3383, 3384, 3385, 3386, 3387, 3388, 3389, 3390, 3391, 3392, 3393, 3394, 3395, 3396, 3397, 3398, 3399, 3400, 3401, 3402, 3403, 3404, 3405, 3406, 3407, 3408, 3409, 3410, 3411, 3412, 3413, 3414, 3415, 3416, 3417, 3418, 3419, 3420, 3421, 3422} local pedra = {874, 919, 873, 2707, 2784, 2778, 3330, 4471, 4475, 4473, 4472, 4474, 4468, 4478, 4469, 4470, 4479, 2703, 2704, 1534, 2739, 3867, 5324, 5316, 5315, 5317, 1600, 1597, 1601} if getDistanceBetween(aqui, toPosition) >= 8 then doPlayerSendTextMessage(cid, 26, "Não pode usar a tecnica Deus Dragão nesse local.") return true end if not isSightClear(aqui, toPosition, 1) then doPlayerSendTextMessage(cid, 26, "Não pode usar a tecnica Deus Dragão nesse local.") return true end if getTilePzInfo(aqui) then doPlayerSendCancel(cid, "Não pode usar a tecnica Deus Dragão em casas ou areas protegidas.") return true end if getTilePzInfo(toPosition) then doPlayerSendCancel(cid, "Não pode usar a tecnica Deus Dragão em casas ou areas protegidas.") return true end if isInArray(agua, itemEx.itemid) then doPlayerSendTextMessage(cid, 26, "Não pode usar a tecnica Deus Dragão nesse local.") return true end if isInArray(parede, itemEx.itemid) then doPlayerSendTextMessage(cid, 26, "you cannot throw there.") return true end if isInArray(pedra, itemEx.itemid) then doPlayerSendTextMessage(cid, 26, "Não pode usar a tecnica Deus Dragão nesse local.") return true end if not isInArray(vocs, getPlayerVocation(cid)) then return true end if doTeleportThing(cid, toPosition, false) then doSendMagicEffect(position1, 52) doSendMagicEffect(position2, 52) doCreatureSay(cid, "Shunshin", 19) doSendDistanceShoot(pos, toPosition, 52) if isCreature(cid) then if getCreatureMaxMana(cid) then local lifedraw = math.ceil(getCreatureMaxMana(cid) * (config.percent)/100) doCreatureAddMana(cid, -lifedraw, 1) end end end doPlayerSendCancel(cid, "Desculpe nao foi possivel.") return true end
  10. Eu não mudei nada que afetasse a funcionalidade do script. Qual erro que deu?
  11. Colocou aqui? local tapete = { [19457] = {{x = 1050, y = 1053, z = 7}, {x = 1050, y = 1049, z = 7}}, [19458] = {{x = 1051, y = 1053, z = 7}, {x = 1051, y = 1049, z = 7}}, [ACTION_ID] = ... }
  12. function onSay(cid , words, param) local textSay = {"Sim", "Não", "Talves", "Não] intendi vc poderia repetir?"} pet = { ["Verminor"]= {stor=78552}, ["cyclops"]= {stor=78553}, ["lion"]= {stor=78554}, ["wolf"]= {stor=78555}, ["rat"]= {stor=78556}, ["demon"]= {stor=78557}, } param = string.lower(param) if words=="!pet" then if #getCreatureSummons(cid) < 1 and pet[param] and getPlayerStorageValue(cid,pet[param].stor) >= 1 then local x = doSummonCreature(param,getCreaturePosition(cid)) doConvinceCreature(cid, x) doCreatureSay(cid,"Go "..getCreatureName(cid) .."",TALKTYPE_ORANGE_1) else doPlayerSendCancel(cid,"sorry no have pet") end if #getCreatureSummons(cid) > 0 then doRemoveCreature(getCreatureSummons(cid)[1]) doCreatureSay(cid,"!pet "..getCreatureName(cid) .." ",TALKTYPE_ORANGE_1) end elseif words=="!conversar" then if #getCreatureSummons(cid) > 0 then doCreatureSay(cid,textSay[math.random(#texteSay)],TALKTYPE_ORANGE_1) else doPlayerSendCancel(cid,"sorry no have pet summoned") end elseif words=="!fale" then doCreatureSay(getCreatureSummons(cid)[1],param,TALKTYPE_ORANGE_1) end return true end
  13. Tu trocou o action id?
  14. local tapete = { [19457] = {{x = 1050, y = 1053, z = 7}, {x = 1050, y = 1049, z = 7}}, [19458] = {{x = 1051, y = 1053, z = 7}, {x = 1051, y = 1049, z = 7}}, --[ACTION_ID] = {posição que o player tem que estar}, {posição para onde o player irá}, } function onUse(cid, item, fromPosition, itemEx, toPosition) local action = tapete[item.actionid] local player = getTopCreature(action[1]).uid if player > 0 then doTeleportThing(player, action[2]) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) else doPlayerSendCancel(cid, "Você precisa estar em cima do tapete.") end return true end
  15. Mas não é para tirar, é para arrumar. O primeiro parâmetro de um addEvent é uma função, e não existe nenhuma função com o nome "onCastSpell2". Eu não tenho experiência com a essa função, mas tenta trocar para "onCastSpell".
  16. Isso é erro do script em si, não do erro que você mostrou. Não há função nenhuma chamada "onCastSpell2", reveja os nomes das suas funções. addEvent(onCastSpell2, 630, parameters)
  17. São vários players em cima do tapete ou só um?
  18. local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, 134) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -165.2, 1, -165.2, 1) function onCastSpell(cid, var) local position1 = {x=getThingPosition(getCreatureTarget(cid)).x+0, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z} doSendMagicEffect(position1, 245) return doCombat(cid, combat, var) end function onCastSpell(cid, var) local parameters = {cid = cid, var = var} if getPlayerStorageValue (cid, 3206) < os.time () then setPlayerStorageValue(cid, 3206, os.time()+2000) addEvent(onCastSpell2, 630, parameters) else doPlayerSendCancel(cid, "You're exhausted.") end return TRUE end
  19. Cara, o script não está errado, já disse isso. Você está fazendo uma alguma coisa errada. Certamente você não colocou as tags.
  20. if getTopCreature(coordenada do tapete).uid > 0 then doTeleportThing(getTopCreature(coordenada do tapete).uid, coordenada para onde o jogador irá)
  21. Eu testei e está funcionando. Você fez alguma coisa errada.
  22. Le o post..

Informação Importante

Confirmação de Termo