Ir para conteúdo

Pesquisar na Comunidade

Mostrando resultados para as tags ''duvida''.

  • 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. SkyDarkyes

    Potions

    Galera gostaria de saber como colocar para o potion healar MANA E VIDA Gostaria de saber como eu add para a healar mana e vida,mas apenas oque eu escolher local config = { removeOnUse = "yes", usableOnTarget = "yes", -- can be used on target? (fe. healing friend) splashable = "no", realAnimation = "no", -- make text effect visible only for players in range 1x1 healthMultiplier = 1.0, manaMultiplier = 1.0 } config.removeOnUse = getBooleanFromString(config.removeOnUse) config.usableOnTarget = getBooleanFromString(config.usableOnTarget) config.splashable = getBooleanFromString(config.splashable) config.realAnimation = getBooleanFromString(config.realAnimation) local POTIONS = { [2150] = {empty = 7478, splash = 2, health = {5000, 5000}}, -- heal potion [2151] = {empty = 7478, splash = 2, health = {20000, 20000}}, -- heal strong potion [2144] = {empty = 7478, splash = 7, mana = {5000, 5000}}, -- strong mana potion [2149] = {empty = 7478, splash = 7, mana = {15000, 15000}}, -- great mana potion } local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100)) function onUse(cid, item, fromPosition, itemEx, toPosition) local potion = POTIONS[item.itemid] if(not potion) then return false end if(not isPlayer(itemEx.uid) or (not config.usableOnTarget and cid ~= itemEx.uid)) then if(not config.splashable) then return false end if(toPosition.x == CONTAINER_POSITION) then toPosition = getThingPos(item.uid) end doDecayItem(doCreateItem(2016, potion.splash, toPosition)) doTransformItem(item.uid, potion.empty) return TRUE end if(hasCondition(cid, CONDITION_EXHAUST_HEAL)) then doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED) return TRUE end if(((potion.level and getPlayerLevel(cid) < potion.level) or (potion.vocations and not isInArray(potion.vocations, getPlayerVocation(cid)))) and not getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES)) then doCreatureSay(itemEx.uid, "Only " .. potion.vocStr .. (potion.level and (" of level " .. potion.level) or "") .. " or above may drink this fluid.", TALKTYPE_ORANGE_1) return TRUE end local health = potion.health if(health and not doCreatureAddHealth(itemEx.uid, math.ceil(math.random(health[1], health[2]) * config.healthMultiplier))) then return false end local mana = potion.mana if(mana and not doPlayerAddMana(itemEx.uid, math.ceil(math.random(mana[1], mana[2]) * config.manaMultiplier))) then return false end doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE) if(not realAnimation) then doCreatureSay(itemEx.uid, "I feel better!", TALKTYPE_ORANGE_1) else for i, tid in ipairs(getSpectators(getCreaturePosition(cid), 1, 1)) do if(isPlayer(tid)) then doCreatureSay(itemEx.uid, "I feel better!", TALKTYPE_ORANGE_1, false, tid) end end end doAddCondition(cid, exhaust) if(not potion.empty or config.removeOnUse) then doRemoveItem(item.uid, 1) return TRUE end doRemoveItem(item.uid, 0) doPlayerAddItem(cid, potion.empty, 0) doPlayerRemoveItem(cid, potion.empty, getPlayerItemCount(cid, potion.empty)) doPlayerAddItem(cid, potion.empty, getPlayerItemCount(cid, potion.empty)) return TRUE end Tambem gostaria de saber para que serve local config = { removeOnUse = "yes", usableOnTarget = "yes", -- can be used on target? (fe. healing friend) splashable = "no", realAnimation = "no", -- make text effect visible only for players in range 1x1 healthMultiplier = 1.0, manaMultiplier = 1.0 }
  2. Sei lá, usar plain em mysql é arriscado pq tem como acessarem seu database online e roubarem as contas, mas em sqile será q tem algum problema? Tirando se alguem descobrir a senha do dedicado n sei como
  3. Tenho vários scripts aqui,gostaria de saber pra que eles servem 1-: function onAdvance(cid, skill, oldLevel, newLevel) local config = { [20] = {item = 2160, count = 2}, [50] = {item = 2160, count = 5}, [100] = {item = 2160, count = 10}, [150] = {item = 2160, count = 15}, [200] = {item = 2160, count = 20}, [250] = {item = 2160, count = 30}, [300] = {item = 2160, count = 50}, [350] = {item = 2160, count = 70}, [400] = {item = 2160, count = 100}, } if skill == 8 then for level, info in pairs(config) do if newLevel >= level and (getPlayerStorageValue(cid, 30700) == -1 or not (string.find(getPlayerStorageValue(cid, 30700), "'" .. level .. "'"))) then doPlayerAddItem(cid, info.item, info.count) doPlayerSendTextMessage(cid, 27, "Parabéns Guerreiro você atingiu o level "..newLevel.." e ganhou "..info.count.." "..getItemNameById(info.item)..".") local sat = getPlayerStorageValue(cid, 30700) == -1 and "Values: '" .. level .. "'" or getPlayerStorageValue(cid, 30700) .. ",'" .. level .. "'" setPlayerStorageValue(cid, 30700, sat) end end end return TRUE end 2 local config = { idleWarning = getConfigValue('idleWarningTime'), idleKick = getConfigValue('idleKickTime') } function onThink(cid, interval) if(getTileInfo(getCreaturePosition(cid)).nologout or getCreatureNoMove(cid) or getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_ALLOWIDLE)) then return true end local idleTime = getPlayerIdleTime(cid) + interval doPlayerSetIdleTime(cid, idleTime) if(config.idleKick > 0 and idleTime > config.idleKick) then doRemoveCreature(cid) elseif(config.idleWarning > 0 and idleTime == config.idleWarning) then local message = "You have been idle for " .. math.ceil(config.idleWarning / 60000) .. " minutes" if(config.idleKick > 0) then message = message .. ", you will be disconnected in " local diff = math.ceil((config.idleWarning - config.idleKick) / 60000) if(diff > 1) then message = message .. diff .. " minutes" else message = message .. "one minute" end message = message .. " if you are still idle" end doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, message .. ".") end return true end 3 function onPrepareDeath(cid, lastHitKiller, mostDamageKiller) if (getCreatureSkullType(cid) >= 4) then doSendAnimatedText(getCreaturePosition(cid),"PROTECTED!",math.random(1,255)) doSendMagicEffect(getCreaturePosition(cid),40) if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 12635) then doCreatureSetDropLoot(cid, false) end return true end return true end 4 function onLogin(cid) if getPlayerLevel(cid) < 8 then doPlayerAddExperience(cid, (getExperienceForLevel(8) - getPlayerExperience(cid))) end return TRUE end
  4. Alguém pode explicar o que a função os.clock() faz e dar um exemplo de algum script que usa ela? rep+
  5. Eu achei um anti cloner na internet, na verdade achei varios, mas esse é o unico eficaz ao meu ver (em sqile) porque não adianta falarem que é só deixar o server online, ninguem ta 100% defendido de ataques e kicks, e clonners podem ferrar com seu server, então achei um que salva seu char a cada 30 segs, me falaram que não daria lag pq salva de char em char, não é um global save, se alguem souber um modo melhor por favor me fale... Mas tem um problema ta dando esse erro: [Error - GlobalEvents::think] Couldn't execute event: saveplayer <globalevent name="saveplayer" interval="30000" event="script" value="saveplayer.lua"/>
  6. Já baixei uns 4 OT aqui para testar e nenhum funciona. Já tive um OT mas desde que troquei para um PC novo com Windows 8 não consigo mais colocar nenhum OT on. Eu já liberei as portas coloquei IP no config.lua e tudo. Eu executo para colocar o OT on e aparece que ele ficou online, aparece até as message que aparece quando você ta no OT mas eu dou enter e não consigo entrar, nem eu mesmo nem ninguém. Alguém poderia me ajudar?
  7. Eu queria fazer tipo uma anihi, só que pelo RME sem script. Uma que só dê pra escolher um baú. Não sei se é possivel. Se for alguém pode me dizer como fazer?
  8. bom estou com um mapa 8.0 porém gostaria de abrir ele em um servidor 8.54.. o cliente está tudo igual o 8.0 porém é 8.54.. tem como abrir o mapa 8.0 no 8.54? REP+
  9. Não consigo usurá as extensões que eu baixei... como faço para usá-las?
  10. kaizy536

    Tirar Pz

    Boa noite povo do xtibia, entao, eu queria pedir uma coisa, pode ate pareçer besta pra quem entende, mais pra min nao é kkkk, porque to com isso a uns 3 dias e nao sei oque fazer, entao recori a postar aki minha duvida.. Enfim, vamos ao problema/duvida.. Eu criei uma zona no meu server, a principio eu botei a zona como PZ Tool e como No Pvp Tool, porem depois me arrependi, porque agora eu quero por monstro naquela area, agora vem minha duvida: Como eu faço pra tirar essa bendita PZ Tool, pra poder criar spawns na area? PS: Nao posso simplesmente dar Ctrl Z, pois ja tinha salvo o mapa. Obrigado
  11. Boa noite, gostaria de adicionar algumas paredes automaticas em meu rme, tentei copiar outra wall mas bugou as duas, então alguém poderia me ensinar?
  12. Como eu faço para retirar aquilo que mostra os itens de todos player? meu characters.php: characters.php
  13. local combatx = createCombatObject() local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_EFFECT, 255) setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 30) local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE) setCombatParam(combat2, COMBAT_PARAM_EFFECT, 39) setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -1.3, -30, -1.6, 0) local combat3 = createCombatObject() setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE) setCombatParam(combat3, COMBAT_PARAM_EFFECT, 39) setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -1.3, -30, -1.6, 0) local combat4 = createCombatObject() setCombatParam(combat4, COMBAT_PARAM_EFFECT, 255) setCombatParam(combat4, COMBAT_PARAM_DISTANCEEFFECT, 35) local arr1 = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0}, {0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0}, {0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0}, {0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0}, {0, 0, 1, 0, 1, 3, 1, 0, 1, 0, 0}, {0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0}, {0, 0, 0, 0, 1,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, 0}, {0, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0}, {0, 1, 0, 1, 1, 3, 1, 1, 0, 1, 0}, {0, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0}, {0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 0}, {0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, } local area1 = createCombatArea(arr1) local area2 = createCombatArea(arr2) local area3 = createCombatArea(arr3) local area4 = createCombatArea(arr4) local areax = createCombatArea(arr1) local areax = createCombatArea(arr2) setCombatArea(combatx, area1) setCombatArea(combatx, area2) setCombatArea(combat1, area1) setCombatArea(combat2, area2) setCombatArea(combat3, area3) function onTargetTile(cid, pos) doCombat(cid,combat1,positionToVariant(pos)) end setCombatCallback(combatx, CALLBACK_PARAM_TARGETTILE, "onTargetTile") local function onCastSpell1(parameters) doCombat(parameters.cid, combatx, parameters.var) end local function onCastSpell2(parameters) doCombat(parameters.cid, combat2, parameters.var) end local function onCastSpell3(parameters) doCombat(parameters.cid, combat3, parameters.var) end local function onCastSpell4(parameters) doCombat(parameters.cid, combatx, parameters.var) end function onCastSpell(cid, var) local parameters = { cid = cid, var = var} addEvent(onCastSpell1, 100, parameters) addEvent(onCastSpell2, 1000, parameters) addEvent(onCastSpell3, 100, parameters) addEvent(onCastSpell4, 1000, parameters) end A MAGIA ACIMA NÃO ESTÁ APARECENDO O NOME AO SER USADA, E TAMBÉM ESTÁ SEM EXHAUSTED. AGRADECERIA QUEM PUDESSE ARRUMA-LA.
  14. Aew Galera! Estou editando um OT 8.60 aew tem alguns itens no Map Editor que são diferentes no jogo aew tenhu q ficar procurando o id e pondo outro aew eu qria saber se tem como alguem me ajudar a arrumar isso Vlw
  15. Bom galera, eu to tentando por meu otserv online, minha net é compartilhada, porem ja fiz tudo certo.. abri as portas do firewall, do modem, ta tudo certinho, ate no site do brazil otserv list, consta que meu otserv ta online, porem quando alguem tenta entrar no meu ot, ele da como offline, simplesmente nao entra, por favor, alguem me ajuda.. O que eu preciso fazer?
  16. Então, eu tava tentando criar um server de war X-Dream (Friday 13 War) porém me encontrei com um problema no sistema de war do server. Eu coloquei 1000 como o level iniciante para o jogar, porém quando o personagem morre, ele desce para o level 990. Como fazer para fixar o level mínimo como 1000?! Exemplo, quando o personagem level 1000 morrer, ele volta para o 1000? Valeu desde já! Meu config.lua aqui para darem uma olhada:
  17. Olá Xtibianos.... então eu andei dando uma "caçada" por ai atras de tutorais de como add novas spells no PDA, eu achei o tutorial do Slicer porem não entendi muito bem... será que alguem com bom coração poderia me ajudar me dando algum link ou postando o tutorial mesmo.... OBS: Na hora de fazer o tutorial que seja passo á passo do 0 OBS2: Não precisa ser como adicionar no Dat editor essas coisas. eu so quero saber a parte de script tudo certinho.. OBS3: De Preferencia sem Abreviaçõespra eu entender melhor. Agradecido desde já xD'
  18. Salve salve galera do Xtibia to aqui para fazer uma pergunta queria saber qual server, é cliente usar nesse mapa rep+ pra quem mi ajuda xD Link: http://www.xtibia.com/forum/topic/189350-pokemon-kpdo-full-edited-gablei/ Obrigado pela atençãp
  19. Erickrusha

    Healing

    Galera fiz uma boots (tipo boots vip) e ta tudo certo arm,descriçao etc.., mais o heal n ta pegando e n sei oq esta errado.. esta assim : <item id="12625" article="a" name="demoniac boots"> <attribute key="weight" value="500" /> <attribute key="slotType" value="feet" /> <attribute key="description" value="The best boots, used by gods" /> <attribute key="armor" value="5" /> <attribute key="healthGain" value="10" /> <attribute key="healthTicks" value="2000" /> <attribute key="manaGain" value="5" /> <attribute key="manaTicks" value="1000" /> </item> Look da boots no jogo : 00:15 You see a demoniac boots (Arm:5). It weighs 5.00 oz. The best boots, used by gods
  20. Bem meu servidor é o pda 1.9 do Slicer, e a taunt system é 80% por conta daquele bug na taunt do psycraft. Então eu gostaria de tirar a taunt system, implantando os outfits velhos do rank 5.
  21. Bom é o seguinte.. eu adicionei Shiny Magmar no meu servidor até ai tudo bem... porem eu tenho uma duvida como faço pra adicionar a lava-eletricity, que é a passive dele.. OBS: Ja tenho a sprite add no Cliente e tudo. OBS2: Lembrando que a passive dele a sprite é diferente.. Alguem poderia fazer 1 tutorial como adicionar a passive dele ? ficaria grato (: OBS3: Se tiver em sessão errada peço que movam. ( acredito que não esteja)
  22. Estou usando servidor de base o mysterion, portanto tem alguns problemas chatos.. A velocidade pra taca o revive é lenta, assim como quando vc joga a ball pro slot ela demora ir , e quando tira o poke da ball ele demora sair, além disso o move está lento , alguem sabe me tirar essas duvidas? ou alguma delas? obrigado!
  23. Galera Tenho Um server PDA Mais quero tirar CATH de lendarios Como fasso isso? Ajudem rep+
  24. Bom, eu queria saber como colocar shiny no nome dos pokemons shinyes, porque geralmente eles tem o mesmo nome dos pokemons normais. Rep+ ae pra quem ajudar.
×
×
  • Criar Novo...