Ir para conteúdo
  • Cadastre-se

MaTTch

Membro
  • Total de itens

    510
  • Registro em

  • Última visita

  • Dias Ganhos

    12

Tudo que MaTTch postou

  1. local pos = {x = 385, y = 759, z = 7} local boss_name = "Nome do Boss" function onStepIn(cid, item, position, fromPosition) if getCreatureName(cid):lower() ~= boss_name:lower() then doTeleportThing(cid, pos) doSendMagicEffect(getThingPos(cid), 10) end return true end
  2. almente o valor para 254 nas sources ou se quiser acima disso pague um C++
  3. Acabei de fazer aqui, mas nao testei: local function doPlayerAddDepotItems(pid, item, count) local result = db.getResult("SELECT `sid` FROM `player_depotitems` WHERE `player_id` = "..pid.." ORDER BY `sid` DESC LIMIT 1;") if (result:getID() ~= -1) then local ls = tonumber(result:getDataInt("sid")) return db.executeQuery("INSERT INTO `player_depotitems` (`player_id`, `sid`, `pid`, `itemtype`, `count`, `attributes`) VALUES ("..pid..", "..(ls+1)..", 101, "..item..", "..count..", '');") end end local config = { --[posiçao do rank] = {premio, quantidade} [1] = {2160,1
  4. Você colocou o script do globalEvents?? e sobre sair mensagem 2 vezes; tente com assim: local storage = 27398 local efeito = 15 local exe = {} function onEquip(cid, item, slot, fromPosition, toPosition) if exe[cid] then exe[cid] = nil return true else exe[cid] = true end local playerpos = getThingPos(cid) local rate = {} if getPlayerLevel(cid) <= 1000 then rate = 2 elseif getPlayerLevel(cid) > 1001 and getPlayerLevel(cid) <= 2000 then rate = 2 elseif getPlayerLevel(cid) > 2001 and getPlayerLevel(cid) <= 3000 then rate = 2 elseif getPlayerLevel(cid
  5. local storage = 27398 local efeito = 15 function onEquip(cid, item, slot, fromPosition, toPosition) local playerpos = getThingPos(cid) local rate = {} if getPlayerLevel(cid) <= 1000 then rate = 2 elseif getPlayerLevel(cid) > 1001 and getPlayerLevel(cid) <= 2000 then rate = 2 elseif getPlayerLevel(cid) > 2001 and getPlayerLevel(cid) <= 3000 then rate = 2 elseif getPlayerLevel(cid) > 3001 and getPlayerLevel(cid) <= 4000 then rate = 2 elseif getPlayerLevel(cid) > 4001 then rate = 2 end doSendMagicEffect(playerpos, efeito) setPlayerStorageValue(cid,
  6. Galera tava com uma duvida se existe alguma maneira de checar se uma espada por exemplo ocupa o slot two-handed e retorna o valor (true ou false).
  7. pode ser... eu testei em TFS 0.3.6 e funcionou perfeitamente
  8. so pra avisa o cid nao é reconhecido antes do function. tenta ae: local time = 2000 local function doEffect(cid) if isCreature(cid) and getPlayerStorageValue(cid, 13540) > 0 then doSendMagicEffect(getThingPos(cid), math.random(10,30)) doSendAnimatedText(getThingPos(cid), "VIP", TEXTCOLOR_DARKRED) addEvent(doEffect, time, cid) end end function onLogin(cid) return doEffect(cid) end
  9. MaTTch

    ooi

    vai ver tomo toddynho sem agitar...
  10. jovem na função onThink nao existe o cid, vai ter de utilizar o getPlayersOnline()
  11. Na verdade é possivel sim: <attribute key="increaseMagicPercent" value="110" /> mas lembre-se que o value deve ser sempre acima de 100 para aumentar a força, e menor de 100 para diminuir. Exemplo: ali esta 110, entao ele da apenas 10% a mais de porcentagem, pois os 100 representao os 100% do poder do player.
  12. ..... local tempo = 400 local distance_effect = 37 local function getPosDirs(p, dir) return dir == 1 and {x=p.x-1, y=p.y+1, z=p.z} or dir == 2 and {x=p.x-1, y=p.y-1, z=p.z} or dir == 3 and {x=p.x+1, y=p.y-1, z=p.z} or dir == 4 and {x=p.x+1, y=p.y+1, z=p.z} or dir == 5 and {x=p.x-1, y=p.y+1, z=p.z} end local f = 1 local function executeEffect(cid) if isCreature(cid) then doSendDistanceShoot(getPosDirs(getThingPos(cid), f), getPosDirs(getThingPos(cid), f+1), distance_effect) if f == 4 then f = 1 else f = f + 1 end addEvent(executeEffect, tempo, cid) end end function on
  13. ambos os 2 scripts prescisaria do creaturescripts para o efeito continuar ao logar.
  14. local tempo = 400 local distance_effect = 37 local function getPosDirs(p, dir) return dir == 1 and {x=p.x-1, y=p.y+1, z=p.z} or dir == 2 and {x=p.x-1, y=p.y-1, z=p.z} or dir == 3 and {x=p.x+1, y=p.y-1, z=p.z} or dir == 4 and {x=p.x+1, y=p.y+1, z=p.z} or dir == 5 and {x=p.x-1, y=p.y+1, z=p.z} end local f = 1 local function executeEffect(cid) if isCreature(cid) then doSendDistanceShoot(getPosDirs(getThingPos(cid), f), getPosDirs(getThingPos(cid), f+1), distance_effect) if f == 4 then f = 1 else f = f + 1 end addEvent(executeEffect, tempo, cid) end end function onCastSpel
  15. onde esta ali por exemplo: { x=pos.x-1, y=pos.y-1, z=pos.z } deixe : { x=getCreaturePosition(cid).x-1, y=getCreaturePosition(cid).y-1, z=getCreaturePosition(cid).z } me referia a isto. eu prefiro encinar do que dar de mao beijada.
  16. MaTTch

    braziu

    Estou pensando nas possibilidades do chaos caso brasil perder
  17. tente removendo o fullmh, se nao dar tente o maxml.
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo