Ir para conteúdo

Líderes

Conteúdo Popular

Exibindo conteúdo com a maior reputação em 01/26/23 em todas áreas

  1. No arquivo da pasta actions. -- Está meio crua porem já esta funcionando a healthInfo do pokémon:
  2. Da pra fazer utilizando o módulo daquele pokeinfo, só pegar certinho o opcode usado nele e colocar pra mandar as informações na hora que utiliza o goback.
  3. -- Diiego Liima local posInicio = {x = 5057, y = 3539, z = 7} --pos inicio da sala local posFim = {x = 5078, y = 3562, z = 7}--pos final inicio da sala local posExitTime = {x = 5064, y = 3519, z = 7}-- pos para onde o player vai sair local function verificaPlayers() for x = posInicio.x, posFim.x do for y = posInicio.y, posFim.y do if isPlayer(getThingFromPos({x = x, y = y, z = posInicio.z, stackpos = 253}).uid) then return 1 end end end end local function verificaBoss() for x = posInicio.x, posFim.x do for y = posInicio.y, posFim.y do if isMonster(getThingFromPos({x = x, y = y, z = posInicio.z, stackpos = 253}).uid) then doRemoveCreature(getThingFromPos({x = x, y = y, z = posInicio.z, stackpos = 253}).uid) end end end end local function removePlayersTime() for x = posInicio.x, posFim.x do for y = posInicio.y, posFim.y do local remove, clean = true, true local pos = {x = x, y = y, z = posInicio.z} local m = getTopCreature(pos).uid if m ~= 0 and isPlayer(m) then doTeleportThing(m, posExitTime) end end end doSendMagicEffect(posExitTime, 10) return true end function onUse(cid, item, frompos, item2, topos) -- Lever Boss if item.aid == 5130 then -- action id da alavanca local playerChecked = false local teleportToRoom = false local stoExhaust = 5534241 -- staorage de segurança para exhaust local stoExhaustPlayer = getPlayerStorageValue(cid, stoExhaust) if stoExhaustPlayer > os.time() then doPlayerSendCancel(cid, "You have to wait " .. stoExhaustPlayer - os.time() .. " seconds to try again.") return true end if verificaPlayers() then doPlayerSendCancel(cid, "There are other players inside the room at the moment.") doSendMagicEffect(topos,2) setPlayerStorageValue(cid, stoExhaust, os.time()+5) return true end local config = { [1] = {pos = {x = 5066, y = 3525, z = 7}}, --posições dos pisos [2] = {pos = {x = 5067, y = 3525, z = 7}}, [3] = {pos = {x = 5068, y = 3525, z = 7}}, [4] = {pos = {x = 5069, y = 3525, z = 7}}, [5] = {pos = {x = 5070, y = 3525, z = 7}}, } local storageTime = 5534240 -- storage de tempo for i, v in pairs(config) do if isPlayer(getTopCreature(config[i].pos).uid) then player = getTopCreature(config[i].pos).uid if getPlayerStorageValue(player, storageTime) > os.time() then time = (getPlayerStorageValue(player, storageTime)-os.time())/60 str = "minutes" if time > 60 then time = time/60 str = "hours" end if player == cid then name = "You" else name = getCreatureName(player) end doPlayerSendCancel(cid, name .. " need to wait more " .. math.floor(time+0.5) .. " " .. str .. " to do again.") doSendMagicEffect(topos,2) return true end if player == cid then playerChecked = true end end end if playerChecked then for i, v in pairs(config) do if isPlayer(getTopCreature(config[i].pos).uid) then player = getTopCreature(config[i].pos).uid doSendMagicEffect(getCreaturePosition(player), 2) doTeleportThing(player, {x = 5067, y = 3546, z = 7}) -- posiçao que player vai cair dentro da sala setPlayerStorageValue(player, storageTime, os.time()+72000) -- 20 horas teleportToRoom = true end end if teleportToRoom then stopEvent(ResetArea) verificaBoss() doSendMagicEffect({x = 5067, y = 3549, z = 7}, 10) -- efeito aonde o boss nasce doCreateMonster("Boss", {x = 5067, y = 3549, z = 7}) -- onde o boss nasce ResetArea = addEvent(function() removePlayersTime() end, 20 * 60 * 1000) -- tempo dentro da sala return false end else doPlayerSendCancel(cid, "Wouldn't you like to go too?") doSendMagicEffect(topos,2) end return true end end
  4. Rotworm [Jobs] 10.77

    Kramer reagiu a Pedro. por uma resposta no tópico

    1 ponto
    Categoria: Mapa. Versão: 10.77 Autor: Jobs Download:Rotworm Jobs.rar Scan: VirusTotal Screens;
  5. 1 ponto
    usa as tags no ,xml da vocação <absorb percentAll=""/> <absorb percentElements=""/> <absorb percentMagic=""/> <absorb percentEnergy=""/> <absorb percentFire=""/> <absorb percentPoison=""/> <absorb percentIce=""/> <absorb percentHoly=""/> <absorb percentDeath=""/> <absorb percentLifeDrain=""/> <absorb percentManaDrain=""/> <absorb percentDrown=""/> <absorb percentPhysical=""/> <absorb percentHealing=""/> <absorb percentUndefined=""/> entre as " " coloca 100 você pode usar todas essas tags assim conseguindo dar um bônus de ml pra x vocação ou dar um magicshield permanente pra Y vocação manaShield invisible healthGain/healthTicks manaGain/manaTicks speed -------------- reflect percentAll reflect percentElements reflect percentMagic reflect percentEnergy reflect percentFire reflect percentPoison reflect percentIce reflect percentHoly reflect percentDeath reflect percentLifeDrain reflect percentManaDrain reflect percentDrown reflect percentPhysical reflect percentHealing reflect percentUndefined reflect chanceAll reflect chanceElements reflect chanceMagic reflect chanceEnergy reflect chancetFire reflect chancePoison reflect chanceIce reflect chanceHoly reflect chanceDeath reflect chanceLifeDrain reflect chanceManaDrain reflect chanceDrown reflect chancePhysical reflect chanceHealing reflect chanceUndefined -------------- absorb percentAll absorb percentElements absorb percentMagic absorb percentEnergy absorb percentFire absorb percentPoison absorb percentIce absorb percentHoly absorb percentDeath absorb percentLifeDrain absorb percentManaDrain absorb percentDrown absorb percentPhysical absorb percentHealing absorb percentUndefined -------------- skills fist skills club skills axe skills sword skills distance skills shielding skills fishing skills melee (fist, club, sword y axe) skills weapon (club, sword, axe, dist) skills fistPercent skills clubPercent skills axePercent skills swordPercent skills distancePercent skills shieldingPercent skills fishingPercent skills meleePercent (fist, club, sword y axe) skills weaponPercent (club, sword, axe, dist) -------------- stats maxHealth stats maxMana stats soul stats level stats magLevel stats maxHealthPercent stats maxManaPercent stats soulPercent stats levelPercent stats magLevelPercent -------------- supress poison supress fire supress energy supress physical supress haste supress paralyze supress invisible supress light supress manaShield supress drunk supress drown supress muted
  6. Paralyze Sword

    Kramer reagiu a Garou por uma resposta no tópico

    1 ponto
    Este é um script criado pela Script Factory e pedido pelo membro underewarr. Se você tem um pedido a fazer ou uma ideia de script, não deixe de visitar: Script Factory Crie um arquivo chamado paralyze sword.lua em data/weapons/scripts/ e adicione o conteúdo abaixo: -- Paralyze Weapon -- Script Factory @ TibiaKing local duration = 3 * 1000 local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, true) setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_FORMULA_SKILL, 1, 0, 1, 0) local condition = createConditionObject(CONDITION_PARALYZE) setConditionParam(condition, CONDITION_PARAM_TICKS, duration) setConditionFormula(condition, -0.9, 0, -0.9, 0) setCombatCondition(combat, condition) function onUseWeapon(cid, var) return doCombat(cid, combat, var) end Em weapons.xml, cole essa linha: <melee id="id_da_arma" level="100" unproperly="1" event="script" value="paralyze sword.lua"/> Se houver algum problema relacionado a duplicated item id, você precisará deletar a linha que estiver usando o id atribuido ao script.
Líderes está configurado para São Paulo/GMT-03:00

Informação Importante

Confirmação de Termo