Ir para conteúdo

Pesquisar na Comunidade

Mostrando resultados para as tags ''suporte otserv''.

  • Pesquisar por Tags

    Digite tags separadas por vírgulas
  • Pesquisar por Autor

Tipo de Conteúdo


Fóruns

  • xTibia - Notícias e Suporte
    • Regras
    • Noticias
    • Soluções
    • Projetos Patrocinados
    • Tutoriais para Iniciantes
    • Imprensa
  • OTServ
    • Notícias e Debates
    • OTServlist
    • Downloads
    • Recursos
    • Suporte
    • Pedidos
    • Show-Off
    • Tutoriais
  • OFF-Topic
    • Barzinho do Éks
    • Design
    • Informática

Encontrar resultados em...

Encontrar resultados que contenham...


Data de Criação

  • Início

    FIM


Data de Atualização

  • Início

    FIM


Filtrar pelo número de...

Data de Registro

  • Início

    FIM


Grupo


Sou

  1. Iae galera, vir um script chamado paintball igual ao (Snowball War ) na net, so q ele esta todo junto, nao sei como que é, sera q alguem pode me ajudar a montar ele, q parte de colocar tals parte do script onde colocar etc .... Script <?xml version="1.0" encoding="UTF-8"?> <mod name="Paintball event" version="1.0" author="Bogart" contact="otland.net" enabled="yes"> <description> </description> <config name="config"><![CDATA[ t = { main = { tfs_version = "0.3", --0.3 or 0.4 positions = { paintball_spawn_area = { top_left = {x = 970, y = 1040, z = 4}, --Top left pos of spawning area bottom_right = {x = 975, y = 1046, z = 7}--bottom right pos of spawning area }, waiting_room_area = { top_left = {x = 970, y = 1040, z = 7}, --Top left pos of the waiting room bottom_right = {x = 975, y = 1046, z = 7}--bottom right pos of the waiting room }, tp_to_paintball = {x = 985, y = 1052, z = 7}, --pos where the tp will be created event_ending_pos = {x = 985, y = 1052, z = 7} --pos players will be sent after event ending }, storages = { exhaust = 2455, is_in_event = 2460, score = 2465 }, misc = { status = 'on' }, messages = { event_started = "Paintball event has started! there's a teleport near Thais temple!",--Message that will be broadcasted after the event has started event_ended = "Paintball event has ended!" --same but when event ends }, event_config = { event_duration = 15, --minutes, 0 if it's an always-open event infinite_ammo = false, winner_gets_item = true, prize_item_id = 3051, decrease_score_on_death = true, points_per_kill = 1, randomize_player_start_pos = true, ammo_per_point = 100, reset_bullets_on_death = true, min_bullets_on_spawn = 100, start_automatically = false, use_waiting_room = false, waiting_time = 3 --minutes } }, onShoot = { storages = { ammo = 2400 }, misc = { walls_id = {1115,1111,1112,5258,1385,1113}, bullets_exhaust = 500, --in ms bullet_speed = 150 }, vars = { shootdir = 0 } } } ]]></config> <movevent type="StepIn" actionid ="2880" event="script"><![CDATA[ domodlib('config') function onStepIn(cid, item, pos) local t_l = t.main.positions.paintball_spawn_area.top_left local b_r = t.main.positions.paintball_spawn_area.bottom_right doTeleportThing(cid, {x=math.random(t_l.x,b_r.x), y=math.random(t_l.y, b_r.y), z=math.random(t_l.z, b_r.z)}) doPlayerSetStorageValue(cid, t.main.storages.is_in_event,1) doPlayerSetStorageValue(cid, t.onShoot.storages.ammo, t.main.event_config.min_bullets_on_spawn) doPlayerSetStorageValue(cid, t.main.storages.score, 0) doPlayerSendTextMessage(cid,27,"Welcome to paintball, here are the commands:\n!shoot bullet --This will shot a bullet.\n!shoot ammo --This will give you "..t.main.event_config.ammo_per_point.." bullets and take 1 point from your current score (you need at least 1 point to use this command).\n!shoot info --This will show you your current score and ammo, it'll also show the current high score of the event.\nIt is strongly recommended that you bind these commands to your hotkeys.") end ]]></movevent> <globalevent name="StartPaintBall" interval="3600" event="script"><![CDATA[ domodlib('config') function onThink(interval, lastExecution, thinkInterval) if t.main.event_config.start_automatically then doBroadcastMessage(t.main.messages.event_started, MESSAGE_STATUS_WARNING) if t.main.event_config.use_waiting_room then addEvent(moveToEvent, t.main.event_config.waiting_time*1000*60) doCreateTeleport(1387,t.main.positions.waiting_room_area.top_left, t.main.positions.tp_to_paintball) else if t.main.tfs_version == "0.3" then doItemSetAttribute(doCreateItem(1387, t.main.positions.tp_to_paintball), "aid", 2880) else doSetItemActionId(doCreateItem(1387, t.main.positions.tp_to_paintball),2880) end if(t.main.event_config.event_duration > 0) then addEvent(endPaintball, t.main.event_config.event_duration*1000*60) end end end return true end function endPaintball() local score = {} if not t.main.event_config.use_waiting_room then doRemoveItem(getTileItemById(t.main.positions.tp_to_paintball,1387).uid) end for _, pid in ipairs(getPlayersOnline()) do if getPlayerStorageValue(pid, t.main.storages.is_in_event) > 0 then table.insert(score, {getCreatureName(pid), getPlayerStorageValue(pid, t.main.storages.score)}) doPlayerSetStorageValue(pid, t.main.storages.is_in_event, 0) doPlayerSetStorageValue(pid, t.main.storages.score, 0) doPlayerSetStorageValue(pid, t.onShoot.storages.ammo, 0) doTeleportThing(pid, t.main.positions.event_ending_pos) end end table.sort(score, function(a, b) return a[2] > b[2] end) if table.getn(score) > 0 then if t.main.event_config.winner_gets_item then for _, pid in ipairs(getPlayersOnline()) do if getCreatureName(pid) == score[1][1] then doPlayerAddItem(pid, t.main.event_config.prize_item_id) break end end end doBroadcastMessage("Paintball event has ended, "..score[1][1].." won paintball event with "..score[1][2].." points", MESSAGE_STATUS_WARNING) end end local t_l = t.main.positions.paintball_spawn_area.top_left local b_r = t.main.positions.paintball_spawn_area.bottom_right function moveToEvent() for _, pid in ipairs(getPlayersOnline()) do if isInRange(getCreaturePosition(pid), t.main.positions.waiting_room_area.top_left, t.main.positions.waiting_room_area.bottom_right) then doTeleportThing(pid, {x=math.random(t_l.x,b_r.x), y=math.random(t_l.y, b_r.y), z=math.random(t_l.z, b_r.z)}) doPlayerSetStorageValue(pid, t.main.storages.is_in_event,1) doPlayerSetStorageValue(pid, t.onShoot.storages.ammo, t.main.event_config.min_bullets_on_spawn) doPlayerSetStorageValue(pid, t.main.storages.score, 0) doPlayerSendTextMessage(pid,27,"Welcome to paintball, here are the commands:\n!shoot bullet --This will shot a bullet.\n!shoot ammo --This will give you "..t.main.event_config.ammo_per_point.." bullets and take 1 point from your current score (you need at least 1 point to use this command).\n!shoot info --This will show you your current score and ammo, it'll also show the current high score of the event.\nIt is strongly recommended that you bind these commands to your hotkeys.") end end doRemoveItem(getTileItemById(t.main.positions.tp_to_paintball,1387).uid) addEvent(endPaintball, t.main.event_config.event_duration*1000*60) end ]]></globalevent> <talkaction words="!shoot" event="script"><![CDATA[ domodlib('config') function onSay(cid, words, param, channel) local k = string.explode(param, ",") if(k[1] ~= nil) then if(string.upper(k[1]) == 'END') and getPlayerGroupId(cid) >= 3 then endPaintball() end if(string.upper(k[1]) == 'START') and getPlayerGroupId(cid) >= 3 then doBroadcastMessage(t.main.messages.event_started, MESSAGE_STATUS_WARNING) if t.main.event_config.use_waiting_room then addEvent(moveToEvent, t.main.event_config.waiting_time*1000*60) doCreateTeleport(1387,t.main.positions.waiting_room_area.top_left, t.main.positions.tp_to_paintball) else if t.main.tfs_version == "0.3" then doItemSetAttribute(doCreateItem(1387, t.main.positions.tp_to_paintball), "aid", 2880) else doSetItemActionId(doCreateItem(1387, t.main.positions.tp_to_paintball),2880) end if(t.main.event_config.event_duration > 0) then addEvent(endPaintball, t.main.event_config.event_duration*1000*60) end end end if(string.upper(k[1]) == 'INFO') then local score = {} local output = "You have " .. getPlayerStorageValue(cid, t.main.storages.score) .. " points.\nYou have "..getPlayerStorageValue(cid, t.onShoot.storages.ammo).." ammo left.\n------------------\nThe current high score in paintball is:\n" for _, pid in ipairs(getPlayersOnline()) do if getPlayerStorageValue(pid, t.main.storages.is_in_event) then table.insert(score, {getCreatureName(pid), getPlayerStorageValue(pid, t.main.storages.score)}) end end local lx = table.getn(score) if(lx > 3) then lx = 3 end table.sort(score, function(a, b) return a[2] > b[2] end) for k = 1,lx do output = output .. k..". "..score[k][1] .." [".. score[k][2] .."].\n" end doPlayerPopupFYI(cid, output) end if (string.upper(k[1]) == 'AMMO') then if(t.main.event_config.infinite_ammo) then doPlayerSendTextMessage(cid, 27, "Ammo is infinite, there's no need to buy more.") else if getPlayerStorageValue(cid, t.main.storages.score) > 0 then doPlayerSetStorageValue(cid, t.main.storages.score, getPlayerStorageValue(cid, t.main.storages.score)-1) doPlayerSetStorageValue(cid, t.onShoot.storages.ammo, getPlayerStorageValue(cid,t.onShoot.storages.ammo)+t.main.event_config.ammo_per_point) doPlayerSendTextMessage(cid, 27, "You have received " .. t.main.event_config.ammo_per_point .. " bullets and you have lost 1 score point.") doSendMagicEffect(getCreaturePosition(cid),4) else doPlayerSendTextMessage(cid, 27, "You do not have enough score points to buy ammo, you need ".. 1-(getPlayerStorageValue(cid, t.main.storages.score)).. " more.") end end end if (string.upper(k[1]) == 'BULLET') then if(getPlayerStorageValue(cid, t.main.storages.is_in_event) == 1) then if getPlayerStorageValue(cid, t.main.storages.exhaust) <= 1 then if(getPlayerStorageValue(cid, t.onShoot.storages.ammo) > 0) then if t.main.misc.status == 'on' then if(t.main.event_config.infinite_ammo == false) then doPlayerSetStorageValue(cid, t.onShoot.storages.ammo, getPlayerStorageValue(cid, t.onShoot.storages.ammo)-1) end doPlayerSetStorageValue(cid, t.main.storages.exhaust, 2) lineAnimation(getPlayerLookDirection(cid),getCreaturePosition(cid),12,cid,1,0,1,0,0,0,1,0) addEvent(doPlayerSetStorageValue,t.onShoot.misc.bullets_exhaust, cid, t.main.storages.exhaust,1) end else doPlayerSendCancel(cid, "You're out of ammo, exchange ammo for points with !shoot ammo or get killed for a recharge.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) end else doPlayerSendCancel(cid, "Gun is on cooldown") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) end else doPlayerSendCancel(cid, "You need to be in the event.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) end end end return true end function lineAnimation(lookDir,playerPos,effect,cid,fvar,fpos,ffound,fposV,fcheck,fvcid,floopCounter,fvpid, name) local var = fvar local pos = fpos local found = ffound local posV = fposV local check = fcheck local vcid = fvcid local loopCounter = floopCounter local vpid = fvpid local storage = t.main.storages.exhaust if var < 2 then vcid = cid end pos = playerPos if not isInWallArray(convert(lookDir,pos)) then--isInWallArray({x=convert(lookDir,pos).x, y=convert(lookDir,pos).y,z=convert(lookDir,pos).z}) then --isInArray(t.onShoot.misc.walls_id, getThingfromPos({x=convert(lookDir,pos).x, y=convert(lookDir,pos).y,z=convert(lookDir,pos).z, stackpos=0}).itemid) then doSendDistanceShoot(pos, convert(lookDir,pos),effect) pos = convert(lookDir,pos) var=var+1 posV = convertV(lookDir,playerPos) for _, pid in ipairs(getPlayersOnline()) do if (getCreaturePosition(pid).x == pos.x and getCreaturePosition(pid).y == pos.y and getCreaturePosition(pid).z == pos.z) then --if loopCounter > 2 then vpid = pid --end if (vpid ~= vcid) then if var > 2 then if (getCreaturePosition(pid).x == posV.x and getCreaturePosition(pid).y == posV.y and getCreaturePosition(pid).z == posV.z) then killPlayer(pid,pos,getCreatureName(vcid)) if (lookDir == 0) or (lookDir == 2) then var = 6 else var = 8 end end end killPlayer(pid,pos,vcid) if (lookDir == 0) or (lookDir == 2) then var = 6 else var = 8 end end end loopCounter = loopCounter +1 end if (lookDir == 0) or (lookDir == 2) then if var ~= 6 then addEvent(lineAnimation, t.onShoot.misc.bullet_speed, lookDir,pos,effect,nil,var,pos,found,posV,check,vcid,loopCounter,vpid) else var = 1 end else if var ~= 8 then addEvent(lineAnimation, t.onShoot.misc.bullet_speed, lookDir,pos,effect,nil,var,pos,found,posV,check,vcid,loopCounter,vpid) else var = 1 end end else doSendMagicEffect(convert(lookDir,pos),2) var = 1 end end local ret = {} function convert(lookDir,pos) local positions = { [0] = {x = pos.x, y = pos.y-1, z = pos.z}, [1] = {x = pos.x+1, y = pos.y, z = pos.z}, [2] = {x = pos.x, y = pos.y+1, z = pos.z}, [3] = {x = pos.x-1, y = pos.y, z = pos.z} } ret = positions[lookDir] return ret end local ret = {} function convertV(lookDir,pos) local positions = { [0] = {x = pos.x, y = pos.y+1, z = pos.z}, [1] = {x = pos.x-1, y = pos.y, z = pos.z}, [2] = {x = pos.x, y = pos.y-1, z = pos.z}, [3] = {x = pos.x+1, y = pos.y, z = pos.z} } ret = positions[lookDir] return ret end function killPlayer(cid,pos, killer) local t_l = t.main.positions.paintball_spawn_area.top_left local b_r = t.main.positions.paintball_spawn_area.bottom_right doTeleportThing(cid, {x=math.random(t_l.x,b_r.x), y=math.random(t_l.y, b_r.y), z=math.random(t_l.z, b_r.z)}) doSendMagicEffect(pos,2) doPlayerSendTextMessage(cid, 27, "You've been killed by "..getCreatureName(killer)..".") doPlayerSetStorageValue(killer, t.main.storages.score, getPlayerStorageValue(killer, t.main.storages.score)+t.main.event_config.points_per_kill) doPlayerSendTextMessage(killer, 27, "You've killed "..getCreatureName(cid)..".") doBroadcastMessage("[Event] Paintball: "..getCreatureName(killer).." has killed "..getCreatureName(cid)..".", MESSAGE_STATUS_WARNING) if t.main.event_config.decrease_score_on_death then doPlayerSetStorageValue(cid, t.main.storages.score, getPlayerStorageValue(cid, t.main.storages.score)-1) end if t.main.event_config.reset_bullets_on_death then doPlayerSetStorageValue(cid, t.onShoot.storages.ammo, t.main.event_config.min_bullets_on_spawn) end end function isInWallArray(pos) for k = 0, table.getn(t.onShoot.misc.walls_id) do if getTileItemById(pos, t.onShoot.misc.walls_id[k]).itemid == t.onShoot.misc.walls_id[k] then --this doesn't even make sense but tried other ways and it gave errors, so meh 2lazy2search return true end end return false end function endPaintball() local score = {} if not t.main.event_config.use_waiting_room then doRemoveItem(getTileItemById(t.main.positions.tp_to_paintball,1387).uid) end for _, pid in ipairs(getPlayersOnline()) do if getPlayerStorageValue(pid, t.main.storages.is_in_event) > 0 then table.insert(score, {getCreatureName(pid), getPlayerStorageValue(pid, t.main.storages.score)}) doPlayerSetStorageValue(pid, t.main.storages.is_in_event, 0) doPlayerSetStorageValue(pid, t.main.storages.score, 0) doPlayerSetStorageValue(pid, t.onShoot.storages.ammo, 0) doTeleportThing(pid, t.main.positions.event_ending_pos) end end table.sort(score, function(a, b) return a[2] > b[2] end) if table.getn(score) > 0 then if t.main.event_config.winner_gets_item then for _, pid in ipairs(getPlayersOnline()) do if getCreatureName(pid) == score[1][1] then doPlayerAddItem(pid, t.main.event_config.prize_item_id) break end end end doBroadcastMessage("Painball event has ended, "..score[1][1].." won paintball event with "..score[1][2].." points", MESSAGE_STATUS_WARNING) end end local t_l = t.main.positions.paintball_spawn_area.top_left local b_r = t.main.positions.paintball_spawn_area.bottom_right function moveToEvent() for _, pid in ipairs(getPlayersOnline()) do if isInRange(getCreaturePosition(pid), t.main.positions.waiting_room_area.top_left, t.main.positions.waiting_room_area.bottom_right) then doTeleportThing(pid, {x=math.random(t_l.x,b_r.x), y=math.random(t_l.y, b_r.y), z=math.random(t_l.z, b_r.z)}) doPlayerSetStorageValue(pid, t.main.storages.is_in_event,1) doPlayerSetStorageValue(pid, t.onShoot.storages.ammo, t.main.event_config.min_bullets_on_spawn) doPlayerSetStorageValue(pid, t.main.storages.score, 0) doPlayerSendTextMessage(pid,27,"Welcome to paintball, here are the commands:\n!shoot bullet --This will shot a bullet.\n!shoot ammo --This will give you "..t.main.event_config.ammo_per_point.." bullets and take 1 point from your current score (you need at least 1 point to use this command).\n!shoot info --This will show you your current score and ammo, it'll also show the current high score of the event.\nIt is strongly recommended that you bind these commands to your hotkeys.") end end doRemoveItem(getTileItemById(t.main.positions.tp_to_paintball,1387).uid) addEvent(endPaintball, t.main.event_config.event_duration*1000*60) end ]]></talkaction> </mod>
  2. Nao importa quantas vezes eu edite o site ou mude as imagens ele sempre fica do mesmo geito e com as imagens fora do lugar , ja enviei para um cara ver se o problema era no site e pegou normal no pc dele tudo em ordem editado e tals , e pq no meu pc nao ta aparecendo essas ediçoes ? e um bug do Xampp ?
  3. ola entao estou a espera do @zipter98 me dar 1 maozinha com isso é o autoloot que por algum motivo ele esta clonando items que nao sejam STACKABLES qualquer item stackable ele pega de boa sem problemas mas os que NAO SAO ele pega 1, e deixa outro no corpo sendo assim pode abrir e fechar o corpo infinitas veces e ele ira pegar e deixar 1 la no corpo me dixeram q o erro probabelmente esta nessa funçao doChangeTypeItem(itemsToRemove, 0)
  4. Eae Galera blz ? eu tava editando um mapa aki, e quando eu trokei o mapa do meu ots para o meu mapa já editado ta dando esse erro aki Será que alguém poderia min ajudar com isso ae ? @up
  5. To com um script de um NPC de saffari que leva para uma determinado lugar , mas qualquer pessoa pode ir para la , queria que so os vips podessem ir :
  6. Estou com um erro ao abrir o RME para versão 10.90, ele não reconhece os arquivos do tibia, HEEEEEEEEEELP
  7. uma dúvida qual preço para anunciar um servidor na otservlist?
  8. GALERA ALGUÉM MANJA DE PASSIVA no meu serve pelo que vi nos xml config.lua ele ja tem mais quando ligo o game não pega .....nao sei fazer pega
  9. Boa noite, galera to com um problema no TM system no servidor de poketibia aqui. está tudo funcionando normal, porém quando eu vou usar um Move que o pokemon não tem, por exemplo um m12 que o charizard não tem, da o seguinte erro no console. [05/12/2016 21:34:47] [Error - TalkAction Interface] [05/12/2016 21:34:47] data/talkactions/scripts/move1.lua:onSay[05/12/2016 21:34:47] Description: [05/12/2016 21:34:47] data/talkactions/scripts/move1.lua:84: attempt to index local 'move' (a nil value)[05/12/2016 21:34:47] stack traceback:[05/12/2016 21:34:47] data/talkactions/scripts/move1.lua:84: in function <data/talkactions/scripts/move1.lua:24>[05/12/2016 21:35:13] e quando uso um TM que o pokemon não tem. [05/12/2016 21:32:14] [Error - TalkAction Interface] [05/12/2016 21:32:14] data/talkactions/scripts/move1.lua:onSay[05/12/2016 21:32:14] Description: [05/12/2016 21:32:14] data/talkactions/scripts/move1.lua:91: attempt to index field '?' (a nil value)[05/12/2016 21:32:14] stack traceback:[05/12/2016 21:32:14] data/talkactions/scripts/move1.lua:91: in function <data/talkactions/scripts/move1.lua:24> Era para aparecer a mensagem, " Your pokemon doesn't recognize this move. " Eu não sei onde arruma pois não consigo entender o problema. Vou aguardar a ajuda de alguém, aqui está meu script de move1.lua local msgs = {"use ", ""}function doAlertReady(cid, id, movename, n, cd)if not isCreature(cid) then return true endlocal myball = getPlayerSlotItem(cid, 8)if myball.itemid > 0 and getItemAttribute(myball.uid, cd) == "cd:"..id.."" thendoPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, getPokeballName(myball.uid).." - "..movename.." (m"..n..") is ready!")return trueendlocal p = getPokeballsInContainer(getPlayerSlotItem(cid, 3).uid)if not p or #p <= 0 then return true endfor a = 1, #p doif getItemAttribute(p[a], cd) == "cd:"..id.."" thenif isInArray({"m1", "m2", "m3"}, n) thendoPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, getPokeballName(p[a]).." - "..movename.." (t"..n..") is ready!")elsedoPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, getPokeballName(p[a]).." - "..movename.." (m"..n..") is ready!")endreturn trueendendendfunction onSay(cid, words, param, channel)if param ~= "" then return true endif string.len(words) > 3 then return true endif #getCreatureSummons(cid) == 0 thendoPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You need a pokemon to use moves.")return 0end--alterado v2.5local mypoke = getCreatureSummons(cid)[1]if getCreatureCondition(cid, CONDITION_EXHAUST) then return true endif getCreatureName(mypoke) == "Evolution" then return true endlocal name = getCreatureName(mypoke) == "Ditto" or getCreatureName(mypoke) == "Shiny Ditto" or getCreatureName(mypoke) == "Black Ditto" and getPlayerStorageValue(mypoke, 1010) or getCreatureName(mypoke)local it = string.sub(words, 2, 3)local move = movestable[name].move1if getPlayerStorageValue(mypoke, 212123) >= 1 thencdzin = "cm_move"..it..""elsecdzin = "move"..it.."" --alterado v2.5endif it == "2" thenmove = movestable[name].move2elseif it == "3" thenmove = movestable[name].move3elseif it == "4" thenmove = movestable[name].move4elseif it == "5" thenmove = movestable[name].move5elseif it == "6" thenmove = movestable[name].move6elseif it == "7" thenmove = movestable[name].move7elseif it == "8" thenmove = movestable[name].move8elseif it == "9" thenmove = movestable[name].move9elseif it == "10" thenmove = movestable[name].move10elseif it == "11" thenmove = movestable[name].move11elseif it == "12" thenmove = movestable[name].move12elseif it == "13" thenmove = movestable[name].move13elseif it == "m1" thenmove = getItemAttribute(getPlayerSlotItem(cid, 8).uid, "tm1") or falseelseif it == "m2" thenmove = getItemAttribute(getPlayerSlotItem(cid, 8).uid, "tm2") or falseelseif it == "m3" thenmove = getItemAttribute(getPlayerSlotItem(cid, 8).uid, "tm3") or falseendif isInArray({1,2,3,4,5,6,7,8,9,10,11,12,13}, it) thenmLevel = move.levelmCD = move.cdmName = move.namemTarget = move.targetmDist = move.distelsem = getItemAttribute(getPlayerSlotItem(cid, 8).uid, "t"..it.."")mLevel = tmList[m].levelmCD = tmList[m].cdmName = mmTarget = tmList[m].targetmDist = tmList[m].distendif not move thendoPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your pokemon doesn't recognize this move.")return trueend if getPlayerLevel(cid) < move.level then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You need be atleast level "..move.level.." to use this move.") return trueendif getCD(getPlayerSlotItem(cid, 8).uid, cdzin) > 0 and getCD(getPlayerSlotItem(cid, 8).uid, cdzin) < (mCD + 2) thendoPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have to wait "..getCD(getPlayerSlotItem(cid, 8).uid, cdzin).." seconds to use "..mName.." again.")return 0endif getTileInfo(getThingPos(mypoke)).protection thendoPlayerSendCancel(cid, "Your pokemon cannot use moves while in protection zone.")return 0endif getPlayerStorageValue(mypoke, 3894) >= 1 thenreturn doPlayerSendCancel(cid, "You can't attack because you is with fear") --alterado v2.3endif (mName == "Team Slice" or mName == "Team Claw") and #getCreatureSummons(cid) < 2 then --alterado v2.5doPlayerSendCancel(cid, "Your pokemon need be in a team for use this move!")return 0end--alterado v2.6if isCreature(getCreatureTarget(cid)) and isInArray(specialabilities["evasion"], getCreatureName(getCreatureTarget(cid))) and math.random(1, 100) <= 10 thenlocal target = getCreatureTarget(cid)if isCreature(getMasterTarget(target)) then --alterado v2.6 --alterado v2.5doSendMagicEffect(getThingPos(target), 211)doSendAnimatedText(getThingPos(target), "TOO BAD", 215)doTeleportThing(target, getClosestFreeTile(target, getThingPos(mypoke)), false)doSendMagicEffect(getThingPos(target), 211)doFaceCreature(target, getThingPos(mypoke))return true --alterado v2.6endendif mTarget == 1 thenif not isCreature(getCreatureTarget(cid)) thendoPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You don\'t have any targets.")return 0endif getCreatureCondition(getCreatureTarget(cid), CONDITION_INVISIBLE) thenreturn 0endif getCreatureHealth(getCreatureTarget(cid)) <= 0 thendoPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your have already defeated your target.")return 0endif not isCreature(getCreatureSummons(cid)[1]) thenreturn trueendif getDistanceBetween(getThingPos(getCreatureSummons(cid)[1]), getThingPos(getCreatureTarget(cid))) > mDist thendoPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Get closer to the target to use this move.")return 0endif not isSightClear(getThingPos(getCreatureSummons(cid)[1]), getThingPos(getCreatureTarget(cid)), false) thenreturn 0endendlocal newid = 0if isSleeping(mypoke) or isSilence(mypoke) then --alterado v2.5doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sorry you can't do that right now.")return 0elsenewid = setCD(getPlayerSlotItem(cid, 8).uid, cdzin, mCD)enddoCreatureSay(cid, ""..getPokeName(mypoke)..", "..msgs[math.random(#msgs)]..""..mName.."!", TALKTYPE_SAY)local summons = getCreatureSummons(cid) --alterado v2.6addEvent(doAlertReady, mCD * 1000, cid, newid, mName, it, cdzin)for i = 2, #summons doif isCreature(summons[i]) and getPlayerStorageValue(cid, 637501) >= 1 thendocastspell(summons[i], mName) --alterado v2.6endenddocastspell(mypoke, mName)doCreatureAddCondition(cid, playerexhaust)if useKpdoDlls thendoUpdateCooldowns(cid)endreturn 0end
  10. preciso de um script. ao abrir um item (backpack) o player ganha 6 itens ( armor, legs ,boots, helmet, shield e sword) e esses 6 itens.. vao direto para o corpo to personagem. e ao clicar de novo no item(backpack), os itens sumiriam. lembrando que o item(backpack) nao pode sumir.. apenas os 6 itens dados nele. ficaria assim.. clico no item(backpack) ganhou 6 itens set. que iram para o corpo automatico.. clicou denovo e os itens somen. e fica so o item(backpack). preciso muito disso. logo estarei postando um otserver que vai revolucionar nossa comunidade.
  11. Na Base DXP os pokes nao tem força quando seu Wildlvl é aumentado Mas recentemente resolvi um problema mas so aumenta a vida do poke e nao o Ataque , defesa etc... Script >>>>
  12. Preciso de um script que quando o player da use no bau ele faz uma animação tipo o bau de adventure da pxg Ajudaria eu e mais umonte de gente
  13. Galera como assim do nada minha tabela players e apagada do nada pela 2x , e outro dia foi a do player_depotitens surgiram esse erro na minha distro ( uso linux ubutu 12.04 ) , me ajudem ai pfv. Erro Distro :
  14. alguém sabe algum points premium in game que funcione em 0.3.6 (pda open source) por forgottenserver(sql e não mysql) como este
  15. Estou tendo problemas ao editar meu mapa eu tenho uma city nova em si queria coloca as houses a venda e sempre que tento edito la e salvo parece que nao vai eu ligo o server e testo e nada. Eu ja dei uma olhada na script de house mesmo la na pasta world porem nada. Quem puder me da uma ajuda Rep++ ^^
  16. Alguem me ajuda? Bom estou editando a base PLight, porem o script de Surf, Ride e fly esta meio incompleta ta faltando algumas funçoes ex: Se eu tentar descer do fly ou ride no PZ da erro na distro alguem poderia me ajudar? Queria que o player conseguise descer do fly d boa ou do ride! Vou deixar o script e o erro 106 - Fly-Ride-Surf System.lua order.lua 106 - Fly-Ride-Surf System.lua order.lua
  17. entao o @zipter98 me ajudou arrumando o script do return do jeito que eu queria no meu velho pda mas agr estou usando dxp e queria ver se alguem adaptase pra min no PDA o zip deixou ele assim ai no DxP esta assim ele bate msm em pokemon selvagem q em summon if heldName == "X-Return" and isSummon(cid) then -- bloquear alguns ataques local chance = heldReturn[tonumber(heldTier)] if (math.random(1, 100) <= chance) then returnDamage = true returnDamageValue = heldReturn[tonumber(heldTier)] end end alguem poderia adaptar pra min? obg
  18. está dando esse erro no meu servidor em varios monstros e eu nao conseigo resolver [Warning - Monsters::loadMonster] Cant load loot. data/monster/Monstros/giant spider.xml <?xml version="1.0" encoding="UTF-8"?><monster name="giant spider" nameDescription="a giant spider" race="VENOM" experience="900" speed="270" manacost="0"> <health now="1300" max="1300"/> <look type="38" head="0" body="0" legs="0" feet="0" corpse="5977"/> <targetchange interval="5000" chance="8"/> <strategy attack="100" defense="0"/> <flags> <flag summonable="0"/> <flag attackable="1"/> <flag hostile="1"/> <flag illusionable="0"/> <flag convinceable="0"/> <flag pushable="0"/> <flag canpushitems="1"/> <flag canpushcreatures="1"/> <flag targetdistance="1"/> <flag staticattack="90"/> <flag runonhealth="0"/> </flags> <attacks> <attack name="melee" interval="2000" skill="80" attack="75"/> <attack name="poisonfield" interval="1000" chance="13" range="7" radius="1" target="1"> <attribute key="shootEffect" value="poison"/> </attack> <attack name="earth" interval="2000" chance="12" range="7" target="1" min="-40" max="-70"> <attribute key="shootEffect" value="poison"/> </attack> </attacks> <defenses armor="30" defense="30"> <defense name="speed" interval="1000" chance="6" speedchange="290" duration="20000"/> </defenses> <elements> <element firePercent="-10"/> <element energyPercent="20"/> <element icePercent="20"/> </elements> <immunities> <immunity earth="1"/> <immunity invisible="1"/> </immunities> <summons maxSummons="2"> <summon name="poison spider" interval="1000" chance="20" max="2"/> </summons> <loot> <item id="2148" countmax="60" chance1="1000" chancemax="0"/> --Gold <item id="2463" chance="1000"/> <item id="2171" chance="800"/> --P ammy <item id="2459" chance="2000"/> <item id="2148" countmax="50" chance1="1000" chancemax="0"/> --Gold <item id="2476" chance="500"/> --Knight Armor <item id="2477" chance="800"/> --Knight legs <item id="2478" chance="1000"/> --Brass Legs <item id="2169" chance="900"/> --Time ring </loot></monster>
  19. Eu estava tentando por um limite de vocação em um script que acrescenta bônus de hp, só que sempre da erro, e meus conhecimentos em lua beiram a nada. Alguém pode dar uma luz pondo esse limite de vocação, e ver se o limite de uso por dia está certo? Segue o script: local storage = 80777local vocs = {9,10,11,12}function onUse(cid, item, frompos, item2, topos)local value = getCreatureMaxHealth(cid) / 10 if getPlayerLevel(cid) >= 8 and getPlayerVocation(cid, vocs) then setCreatureMaxHealth(cid, math.floor(getCreatureMaxHealth(cid)+ value)) doCreatureAddHealth(cid, getCreatureMaxHealth(cid)) doPlayerSendTextMessage(cid, 22, "You add 10% hp to you health!") doCreatureSetStorage(cid, storage, math.max(0, getCreatureStorage(cid, storage)) + 1) doSendMagicEffect(getCreaturePosition(cid), 30) doRemoveItem(item.uid, 1) end doPlayerSendTextMessage(cid, 27, "You have received "..it[2].." "..getItemNameById(it[1])..". You can take your reward in "..time.." minutes.") setPlayerStorageValue(cid, storage, os.time() + time * 60) else return doPlayerSendCancel(cid, "You have already received your reward for today.") elseif getPlayerVocation(cid, vocs) = false return doPlayerSendCancel(cid, "Your vocation don't use it.") return trueend Agradeço desde já.
  20. Estou com um problema no meu shop a barra de rolagem nao esta funcionando : Barra em Cima: Barra em Baixo:
  21. Olá EKZ, Hoje venho pedir suporte para resolver dois erros no meu distro aparece os erros [28/11/2016 20:51:05] [Error - TalkAction Interface] [28/11/2016 20:51:05] data/talkactions/scripts/tele.lua:onSay [28/11/2016 20:51:05] Description: [28/11/2016 20:51:05] (luaGetThingPosition) Thing not found [27/11/2016 23:18:04] [Error - Action Interface] [27/11/2016 23:18:04] data/actions/scripts/starter.lua:onUse [27/11/2016 23:18:04] Description: [27/11/2016 23:18:04] (luaDoTransformItem) Item not found Eu não sei porque deixarei meus . lua á baixo Meu Tele.lua Meu Starter.lua Quem me Ajudar REP+ @Deadpool se puder me ajudar agradeço
  22. Estou tendo um problema relacionado as houses. Sempre que vou edita o mapa e depois por online sempre da este problema. e pra evita ele sempre eu tenho que ta entrando na script de house na pasta do mapa e apagando estas tag e repondo o server online de novo que ai isso some. queria sabe se tem como arruma isso pra nao ta toda hora que editar o mapa ta sempre fazendo a mesma coisa. Rep+++ Inserir outra mídia Imagens Enviadas
  23. Bom procurei no site e achei como adicionar mais que 68 effects... Coloquei ate o effect 90 (por exemplo) nas source, no const, no tools e tambem em lib tudo certinho. Porem no quando abro o server ele continua ate o 68 apenas... So nao aparece mais a mensagem que vai do 0 ao 68... Mas quando coloco o efeito em alguma magia ou ate mesmo no /z ela nao aparece... Alguem poderia me ajudar?
  24. Eae Galera, blz ? eu queria perguntar para vocês como faço para por que o meu old cliente toque musica, eu já ti uns ots que tem old cliente que fica tocando umas musicas, será que alguém poderia min dizer como é que funciona isso ? e min explicar como por por favor
  25. Olá galera tenho um servidor de Pokémon novo base pokelight só que eu queria sabe como por Pokémon wild por favor poderia me ajudar
×
×
  • Criar Novo...