Ir para conteúdo

Artigo

Campones
  • Total de itens

    69
  • Registro em

  • Última visita

Tudo que Artigo postou

  1. cara o seu script estava necessitando de um 'end' simplesmente o adicionei veja se vai funcionar function onCastSpell(cid, var) local pos = getPlayerPosition(cid) doSendMagicEffect({x = pos.x+1, y = pos.y+1, z = pos.z}, 87) local position, match = getCreaturePosition(cid) for x = (position.x - 3), (position.x + 3) do for y = (position.y - 3), (position.y + 3) do local tmp = {x = x, y = y, z = position.z} if isInArray(WATER_TILES, getThingFromPos(tmp).itemid) then doCreatureAddMana(cid, 1) else doCreatureAddMana(cid, -1) return doCombat(cid, combat, var) end end return doCombat(cid, combat, var) end end
  2. cara isso e uma arvore nunca vai sumir a não ser que você edite no teu ot mais ia bugar seu ot todo pq deve haver muitas platinhas dessa pelo mapa recomendo usar o script assim local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_NONE) setCombatParam(combat1, COMBAT_PARAM_CREATEITEM, 1499) local arr1 = { {0, 0, 1, 1, 1, 0, 0}, {0, 0, 1, 0, 1, 0, 0}, {0, 0, 1, 1, 1, 0, 0}, {0, 0, 1, 2, 1, 0, 0}, {0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0} } local area1 = createCombatArea(arr1) setCombatArea(combat1, area1) local function onCastSpell1(parameters) doCombat(parameters.cid, parameters.combat1, parameters.var) end function onCastSpell(cid, var) local parameters = { cid = cid, var = var, combat1 = combat1 } addEvent(onCastSpell1, 100, parameters) end que funciona 100 % vai ficar 45 segundos de trap ou se não voce corta com destroy field
  3. achei um do vodkart . em data / creaturescripts / scripts . function onDeath(cid, corpse, deathList) local config = { onlypremium = true, -- se precisa ser premium para não perder nada exp = true, -- se ao morrer o jogador irá perder exp skills = false, -- se ao morrer vai perder skills magic = false, -- se vai perder magic level loot = false, -- se ao morrer o jogador irá perder o loot level = 700000 -- até que level irá proteger o player } if isPlayer(cid) and getPlayerLevel(cid) <= config.level then if config.onlypremium == true and not isPremium(cid) then return TRUE end if config.loot == false then doCreatureSetDropLoot(cid, false) end if config.magic == false then doPlayerSetLossPercent(cid, PLAYERLOSS_MANA, 0) end if config.skills == false then doPlayerSetLossPercent(cid, PLAYERLOSS_SKILLS, 0) end if config.exp == false then doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 0) end return TRUE end return TRUE end em creaturescripts.xml <event type="death" name="ProtectLevel" event="script" value="levelprotection.lua"/> creaturescripts / scripts / login.lua adicione registerCreatureEvent(cid, "ProtectLevel") agora divirta-se
  4. Qual a versão do seu sv ?
  5. Que autor original meu filho? EU JÁ DISSE QUE PEGUEI SEM CRÉDITOS, APENAS COM O NOME "PORTSAFE.EXE" , -.-' Cara isso e um programa sem nenhuma autoria sua . se você pego em um ot poste os créditos pelo - do cara que posto akele ot e ponha outro crédito como desconhecido .
  6. ainda bem que se sabe
  7. So pesquisar . http://www.4shared.com/rar/Tpg0CO0x/Portsafe.htm http://www.4shared.com/rar/8Omd6-P9/Portsafe_Anti-Nuker_.htm
  8. @gears Eu peguei ela assim http://www.wallsave....tic-402224.html e fiz uma edição e adicionei a escritura.
  9. Reportado por ripping este programa nem é seu ja encontrei em vários otservs
  10. Peguei um fundo do google fiz uma modificação no fundo e escrevi flw.
  11. Isto deu nos 2 ? no meu e do dele ?
  12. Artigo

    Galeria Artigo

    Vlw ai pelos tutoriais mais nem pretendo ir muito pra frente com isso so to querendo ver oq eu consigo . Enquanto ao fundo eu peguei na net sim . mais pra frente se eu continuar com isso pretendo fazer alguns fundos própios nem totalmente exemplo pega um na net fazer umas modificações como , efeito , adicionar novas imagens nele e outras coisas
  13. local quant_hit = 6 -- quantidade de hit's que ira dar no target local timeHit = 0.5 -- segundos de diferença para cada hit local quant_sqm = 2 -- sqms que ira empurrar o target local sqmTime = 0.01 -- segundos para empurrar após hitar, exemplo de meio segundo. local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1) setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatFormula(combat, COMBAT_FORMULA_SKILL, 60, 0, 1, 0) local condition = createConditionObject(CONDITION_PARALYZE) setConditionParam(condition, CONDITION_PARAM_TICKS, -1) setConditionParam(condition, CONDITION_PARAM_SPEED, 10) setConditionFormula(condition, 0, 0, 0, 0) setCombatCondition(combat, condition) function onCastSpell(cid, var) local target = getCreatureTarget(cid) if target > 0 then local position_target = nil local cont = 0 for i=-1, 1 do for j=-1,1 do position_target = {x=getCreaturePosition(target).x+i, y=getCreaturePosition(target).y+j, z=getCreaturePosition(target).z} if isWalkable(position_target) then cont = cont+1 break end end if cont > 0 then break end position_target = nil end local px = math.random(-1,1) local py = 0 if px == -1 or px == 1 then py = 0 elseif px == 0 then local n = {1,-1} py = n[math.random(1,#n)] end local poscentral = {x=getCreaturePosition(target).x+px, y=getCreaturePosition(target).y+py, z=getCreaturePosition(target).z} if isWalkable(poscentral) then position_target = poscentral end if getDistanceBetween(getCreaturePosition(cid), getCreaturePosition(target)) == 0 then return false end if getTilePzInfo(pos) and not pz then return false end local n = not proj and 3 or 2 for i = 0, 255 do pos.stackpos = i local tile = getTileThingByPos(pos) if tile.itemid ~= 0 and not isCreature(tile.uid) then if hasProperty(tile.uid, n) or hasProperty(tile.uid, 7) then return false end end end return true end function hitTarget2(cid, target) if isCreature(target) and isPlayer(cid) then local effect2 = 1 -- efeito do hit na creatura. doAddCondition(target, condition) doTargetCombatHealth(cid, target, COMBAT_PHYSICALDAMAGE, -getHit2(cid), -getHit2(cid), effect2) end end function getHit2(cid) local hit2 = getPlayerLevel(cid)*5 + getPlayerMagLevel(cid)*5 + math.random(20650,29750) return hit2 end function empurrarTarget(cid, target, tempo) if isPlayer(cid) then doRemoveCondition(cid, CONDITION_PARALYZE) end if isCreature(target) and isPlayer(cid) then local positions = nil doAddCondition(target, condition) if getPlayerLookDir(cid) == 0 then positions = {x=getCreaturePosition(target).x, y=getCreaturePosition(target).y-1, z=getCreaturePosition(target).z} elseif getPlayerLookDir(cid) == 1 then positions = {x=getCreaturePosition(target).x+1, y=getCreaturePosition(target).y, z=getCreaturePosition(target).z} elseif getPlayerLookDir(cid) == 2 then positions = {x=getCreaturePosition(target).x, y=getCreaturePosition(target).y+1, z=getCreaturePosition(target).z} elseif getPlayerLookDir(cid) == 3 then positions = {x=getCreaturePosition(target).x-1, y=getCreaturePosition(target).y, z=getCreaturePosition(target).z} end if positions ~= nil and isWalkable(positions) then doTeleportThing(target, positions) end local tp = sqmTime*1000*(quant_sqm-1)+quant_hit*timeHit*1000 if tempo == tp then doRemoveCondition(target, CONDITION_PARALYZE) end end end function sendEffect2(cid, target) local position1 = {x=getCreaturePosition(cid).x, y=getCreaturePosition(cid).y, z=getCreaturePosition(cid).z} local position2 = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z} if isCreature(target) and isPlayer(cid) then doSendMagicEffect(position1, 190) doSendMagicEffect(position2, 197) end end end
  14. Artigo

    Galeria Artigo

    Falaa galera to aki hoje amostrando o meu trabalho em desinger não sou muito de mecher com photoshop é outros programas mais vou amostrar-los minha primeira sing. Aceito críticas sugestões e bla bla.
  15. Reportado , Para ser movido Motivo : Duvida Sanada
  16. Aprendendo a linguagem lua ja descubri muito sobre ela .
  17. Artigo

    Anti Divulger

    @Tchubaka o seu o serv n abriu ! @Skyserv obrigado mas ja resolvi @SkyLigh O Seu Da Um Erro no console mas pego obrigado rep +
  18. Artigo

    Anti Divulger

    Gente preciso urgente de um script de anti-divulguer meu serv anda ficando mt cheio e os noob's anunciam rep ++ pra quem ajudar
  19. Irei testar quando chegar do trabalho ! vlw ai pela força.
  20. Oi pessoal ! Hoje queria pedir um script de action que o player da use numa chest e ganha mana obrigado e que so pode ir uma vez ! vale rep +
  • Quem Está Navegando   0 membros estão online

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