Ir para conteúdo
  • Cadastre-se

Bodak Reborn

Membro
  • Total de itens

    558
  • Registro em

  • Última visita

  • Dias Ganhos

    18

Tudo que Bodak Reborn postou

  1. Do exiva boy... Script do exiva, não anti-exiva
  2. function onAttack(cid, target) if isSummon(target) and getDistanceBetween(getThingPos(target), getThingPos(getCreatureMaster(target))) > 1 then doMonsterSetTarget(cid, getCreatureMaster(target)) elseif isPlayer(target) and #getCreatureSummons(target) > 0 then for _, summon in pairs(getCreatureSummons(target)) do if getDistanceBetween(getThingPos(target), getThingPos(summon)) <= 1 then doMonsterSetTarget(cid, summon) break end end end ret
  3. Erro meu, troca for i = 13941, 13947 do if item.itemid == i then return doPlayerSendCancel (cid, "Você não pode usar este item em um Ditto."), false end end por for i = 13550, 13556 do if item.itemid == i then return doPlayerSendCancel (cid, "Você não pode usar este item em um Ditto."), false end end
  4. Tem duas onCastSpell ai... E que efeito? Que erro..?
  5. Não entendi direito... Não é mais fácil só dar /m nome do boss?
  6. function onCastSpell(cid, var) local parameters = { cid = cid, var = var} if getPlayerStorageValue(cid, 3202) <= os.time() then setPlayerStorageValue(cid, 3202, os.time()+1000) -- 1000 segundos addEvent(onCastSpell1, 100, parameters) addEvent(onCastSpell2, 630, parameters) else doPlayerSendCancel (cid, "You're exhausted.") end return TRUE end
  7. Por storage. Depois de "onCastSpell (cid, var)" local config = { storage = 15624, exhaust = 5, } if getPlayerStorageValue (cid, config.storage) < os.time () then setPlayerStorageValue (cid, config.storage, config.exhaust + os.time()) ~script da spells~ else doPlayerSendCancel (cid, "You're exhausted.") end
  8. Manda o script do exiva. Não entendi em quais SQMs a fumaça vai ficar.
  9. movements/scripts nome_arquivo.lua local walls = { [1] = {pos = {x = 1050, y = 1050, z = 7}, item = 5322}, [2] = {pos = {x = 1051, y = 1051, z = 7}, item = 5322}, [3] = {pos = {x = 1052, y = 1052, z = 7}, item = 5322}, [4] = {pos = {x = 1053, y = 1053, z = 7}, item = 5322}, [5] = {pos = {x = 1054, y = 1054, z = 7}, item = 5322}, [6] = {pos = {x = 1055, y = 1055, z = 7}, item = 5322}, } function onStepIn(cid, item, position, fromPosition) for i = 1, #walls do doCreateItem (walls[i].item, 1, walls[i].pos) end return true end XML: <movevent type="StepIn" actionid="AC
  10. Isso equivale à sete dias. 60 segundos * 60 minutos = 1 hora.
  11. COH_PUSHTIME = 10800 -- Tempo (em segundos) de exhausted para usar o comando !gocastle - Padrão (3 horas) COH_AREA = { [1] = {x = 32512, y = 30862, z = 7}, {x = 32616, y = 30959, z = 7}, [2] = {x = 32512, y = 30862, z = 7}, {x = 32616, y = 30959, z = 7}, [3] = {x = 32512, y = 30862, z = 7}, {x = 32616, y = 30959, z = 7}, } -- Canto superior esquerdo / inferior direito do Castle -- // Não mexa daqui para baixo COH_STATUS = 201320111714 COH_PREPARE1 = 201320111715 COH_PUSHSTOR = 201320111716 COH_PREPARE2 = 201320111717 function doCastleRemoveEnemies() for index, creature in ipairs(getPlayer
  12. function onStepIn(cid, item, position, fromPosition) doCastleRemoveEnemies() return true end
  13. É só dentro da área que você colocar. Para ser dentro e fora do castle, bota a área para cobrir dentro e fora.
  14. Vai formar um quadrado, todos os players que estiverem dentro deste quadrado serão teleportados. from_______ | | | CASTELO | | | |_________to
  15. movements/scripts nome_arquivo.lua local config = { from = {x = 1312, y = 3151, z = 7}, -- canto superior esquerdo da área do castelo. to = {x = 1410, y = 3070, z = 7}, -- canto inferior direito da área do castelo. toPos = {x = 1503, t = 1053, z = 7} -- para onde os jogadores irão. } function onStepIn(cid, item, position, fromPosition) if isPlayer (cid) then for _, pid in ipairs (getPlayersOnline()) do if isInRange (getThingPos(pid), config.from, config.to) then doTeleportThing (pid, config.toPos) end end end return true end XML: <movevent type="StepI
  16. 1º: globalevents/scripts nome_arquivo1.lua function onThink(interval, lastExecution) local config = { tpPos = {x = 1048, y = 1053, z = 7}, -- posição onde o teleport será criado. toPos = {x = 1048, y = 1054, z = 7}, -- posição para onde o jogador será levado. teleportID = 1387 -- ID do teleport. } doCreateTeleport (config.teleportID, config.toPos, config.tpPos) return true end nome_arquivo2.lua function onThink(interval, lastExecution) local tpPos = {x = 1048, y = 1053, z = 7} -- posição onde o teleport será criado. local teleportID = 1387 -- ID do telepor
  17. Era como estava no script. Só trocar a função ali.
  18. local function isMC (cid) for _, pid in ipairs(getPlayersOnline()) do if cid ~= pid and getPlayerIp(cid) == getPlayerIp(pid) then return true end end return false end local exp = 2000000 local item, quant = 2152, 5 function onKill(cid, target, damage, flags) if isPlayer (cid) and isPlayer(target) then if isMC (cid) then doPlayerAddExp(cid, -exp) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Foi detectado o uso de MC você perderá "..exp.." de exp") end doPlayerAddItem(cid, item, quant) end return true end
  19. <globalevent name="removeWall" time="15:00" event="script" value="nome_arquivo.lua"/>
  20. "O arquivo não está no diretório". Você colocou o nome do arquivo errado na tag.
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo