Ir para conteúdo

SkyLigh

Lorde
  • Total de itens

    2183
  • Registro em

  • Última visita

  • Dias Ganhos

    23

Tudo que SkyLigh postou

  1. o erro da nos weapons poste seu weapons.xml aki para mim ver
  2. SkyLigh

    Problema Com God

    Verifique com ele assim <?xml version="1.0" encoding="UTF-8"?> <groups> <group id = 1 name="Player"/> <group id = 2 name="Tutor" flags="16809984" customFlags="2" access="1" violationReasons="4" nameViolationFlags="2"/> <group id = 3 name="Senior Tutor" flags="68736352256" customFlags="14" access="2" violationReasons="10" nameViolationFlags="2" statementViolationFlags="63" maxVips="200"/> <group id = 4 name="Gamemaster" flags="3808558964575" customFlags="257215" access="3" violationReasons="19" nameViolationFlags="10" statementViolationFlags="69" depotLimit="3000" maxVips="300" outfit="75"/> <group id = 5 name="Community Manager" flags="3840774348794" customFlags="781823" access="4" violationReasons="23" nameViolationFlags="170" statementViolationFlags="213" depotLimit="4000" maxVips="400" outfit="266"/> <group id = 6 name="God" flags="3845069447162" customFlags="2097151" access="5" violationReasons="23" nameViolationFlags="170" statementViolationFlags="213" depotLimit="5000" maxVips="500" outfit="302"/> </groups>
  3. Obrigado . duvidas so falar
  4. vai no sqlstudio e entra na database do server dps em players / data / account manager / e poem o mouse emcima dele e clika em / for view / e procure por posx e ponha a pos de onde ele nascer e embaixo tem posy & posz e la se completa a pos de onde nascer
  5. Isto e so você querer posso fazer
  6. Obrigado qualquer duvida so falar.
  7. iae galera hoje venho trazer um script que e de uma magia que so pode ser utilizada se o player tiver uma certa quantidade de reset então vamos la irei postar os 2 tipos com storage e sem storage primeiro o com storage no seu script da spell adicione isto no final local reset_storage = 123 -- coloque o storage do seu sistema de reset local quant_reset = 1 -- quantidade de resets para poder passar if (getPlayerStorageValue(cid, reset_storage) < quant_reset) then return true end ou se não for por storage use esse local quant_reset = 1 -- quantidade de resets para poder passar if (getPlayerResets(cid) < quant_reset) then return true end e pronto a sua magia que necessita reset esta pronta ! Créditos Skyligh 90 % (Pela criação e postagem) lugk123 10 % (Pelo pedido do script)
  8. iae galera hoje trago um script que a runa reala por level e da seguinte maneira o player e level 100 ele so podera heala de 200 a 300 e assim vai então vamos la Va em data / script / actions / e crie um arquivo.lua e renomeie para runalvl e add function onUse(cid, item, fromPosition, itemEx, toPosition) local min100 = 200 -- quanto o lvl 100 vai curar no minimo local max100 = 400 -- quanto o lvl 100 vai curar no maximo local min300 = 500 -- quanto o lvl 300 vai curar no minimo local max300 = 700 -- quanto o lvl 300 vai curar no maximo local min400 = 900 -- quanto o lvl 400 vai curar no minimo local max400 = 1100 -- quanto o lvl 400 vai curar no maximo local lvl1,lvl2,lvl3 = 100,300,400 -- modificaçao do level ta de 100 , 300 , 400 dps so mudar local storage = 11548 local exhau = 3 -- quantos segundos pra usar denovo a potion if getPlayerLevel(cid) <= lvl1 and doPlayerAddMana(itemEx.uid, math.random(min100, max100)) then return true elseif getPlayerLevel(cid) <= lvl2 and doPlayerAddMana(itemEx.uid, math.random(min100, max100)) then return true elseif getPlayerLevel(cid) <= lvl3 and doPlayerAddMana(itemEx.uid, math.random(min100, max100)) then return true elseif (getPlayerStorageValue(cid, storage) <= os.time()) then setPlayerStorageValue(cid,config.s,os.time()+exhau) doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE) doCreatureSay(itemEx.uid, "Curado..", TALKTYPE_ORANGE_1) return true end end dps em actions.xml <action itemid="ID DA RUNA" script="runalvl.lua"/> créditos Skyligh 90 % (Pela Criação e postagem) lugk123 10 % (Pelo pedido do script)
  9. SkyLigh

    Magias De Resets.

    o seu sistema de reset e com storage ? se for adicione isto na spell local reset_storage = 123 -- coloque o storage do seu sistema de reset local quant_reset = 3 -- quantidade de resets para poder passar if (getPlayerStorageValue(cid, reset_storage) < quant_reset) then return true end isto no final se nao for por storage adicione isto local quant_reset = 3 -- quantidade de resets para poder passar if (getPlayerResets(cid) < quant_reset) then return true end espero que consiga
  10. qual o script das potion talvez esteja la o problema
  11. Simples no lado do post tem 2 botões um verde e um vermelho o verde se você clicar se da rep + para aquele e o vermelho se você clicar se da rep - mais ele e somente para membros da equipe duvida sanada reportado
  12. To criando um aki para você Edit : Va em data / script / actions / e crie um arquivo.lua e renomeie para runalvl e add function onUse(cid, item, fromPosition, itemEx, toPosition) local min100 = 200 -- quanto o lvl 100 vai curar no minimo local max100 = 400 -- quanto o lvl 100 vai curar no maximo local min300 = 500 -- quanto o lvl 300 vai curar no minimo local max300 = 700 -- quanto o lvl 300 vai curar no maximo local min400 = 900 -- quanto o lvl 400 vai curar no minimo local max400 = 1100 -- quanto o lvl 400 vai curar no maximo local lvl1,lvl2,lvl3 = 100,300,400 -- modificaçao do level ta de 100 , 300 , 400 dps so mudar local storage = 11548 local exhau = 3 -- quantos segundos pra usar denovo a potion if getPlayerLevel(cid) <= lvl1 and doPlayerAddMana(itemEx.uid, math.random(min100, max100)) then return true elseif getPlayerLevel(cid) <= lvl2 and doPlayerAddMana(itemEx.uid, math.random(min100, max100)) then return true elseif getPlayerLevel(cid) <= lvl3 and doPlayerAddMana(itemEx.uid, math.random(min100, max100)) then return true elseif (getPlayerStorageValue(cid, storage) <= os.time()) then setPlayerStorageValue(cid,config.s,os.time()+exhau) doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE) doCreatureSay(itemEx.uid, "Curado..", TALKTYPE_ORANGE_1) return true end end dps em actions.xml <action itemid="ID DA MANA RUNE" script="runalvl.lua"/> dps so colocar o id da mana rune creio que funcione em 8.60
  13. nÃo jA cLiKeI 1 vEz.
  14. tente assim local msgs = {"use ", ""} function doAlertReady(cid, id, movename, n, cd) function onSay(cid, words, param) if not isCreature(cid) then return true end local myball = getPlayerSlotItem(cid, 8) if myball.itemid > 0 and getItemAttribute(myball.uid, cd) == "cd:"..id.."" then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, getPokeballName(myball.uid).." - "..movename.." (m"..n..") is ready!") return true end local p = getPokeballsInContainer(getPlayerSlotItem(cid, 3).uid) if not p or #p <= 0 then return true end for a = 1, #p do if getItemAttribute(p[a], cd) == "cd:"..id.."" then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, getPokeballName(p[a]).." - "..movename.." (m"..n..") is ready!") return true end end end end function onSay(cid, words, param, channel) if param ~= "" then return true end if string.len(words) > 3 then return true end if #getCreatureSummons(cid) == 0 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You need a pokemon to use moves.") return 0 end --alterado v1.5 local mypoke = getCreatureSummons(cid)[1] if getCreatureCondition(cid, CONDITION_EXHAUST) then return true end if getCreatureName(mypoke) == "Evolution" then return true end if getCreatureName(mypoke) == "Ditto" or getCreatureName(mypoke) == "Shiny Ditto" then name = getPlayerStorageValue(mypoke, 1010) --edited else name = getCreatureName(mypoke) end --local name = getCreatureName(mypoke) == "Ditto" and getPlayerStorageValue(mypoke, 1010) or getCreatureName(mypoke) local it = string.sub(words, 2, 3) local move = movestable[name].move1 if getPlayerStorageValue(mypoke, 212123) >= 1 then cdzin = "cm_move"..it.."" else cdzin = "move"..it.."" --alterado v1.5 end if it == "2" then move = movestable[name].move2 elseif it == "3" then move = movestable[name].move3 elseif it == "4" then move = movestable[name].move4 elseif it == "5" then move = movestable[name].move5 elseif it == "6" then move = movestable[name].move6 elseif it == "7" then move = movestable[name].move7 elseif it == "8" then move = movestable[name].move8 elseif it == "9" then move = movestable[name].move9 elseif it == "10" then move = movestable[name].move10 elseif it == "11" then move = movestable[name].move11 elseif it == "12" then move = movestable[name].move12 elseif it == "13" then move = movestable[name].move13 end if not move then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your pokemon doesn't recognize this move.") return true end if getPlayerLevel(cid) < move.level then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You need be atleast level "..move.level.." to use this move.") return true end if getCD(getPlayerSlotItem(cid, 8).uid, cdzin) > 0 and getCD(getPlayerSlotItem(cid, 8).uid, cdzin) < (move.cd + 2) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have to wait "..getCD(getPlayerSlotItem(cid, 8).uid, cdzin).." seconds to use "..move.name.." again.") return true end if getTileInfo(getThingPos(mypoke)).protection then doPlayerSendCancel(cid, "Your pokemon cannot use moves while in protection zone.") return true end if getPlayerStorageValue(mypoke, 3894) >= 1 then return doPlayerSendCancel(cid, "You can't attack because you is with fear") --alterado v1.3 end --alterado v1.6 if (move.name == "Team Slice" or move.name == "Team Claw") and #getCreatureSummons(cid) < 2 then doPlayerSendCancel(cid, "Your pokemon need be in a team for use this move!") return true end --alterado v1.6 if isCreature(getCreatureTarget(cid)) and isInArray(specialabilities["evasion"], getCreatureName(getCreatureTarget(cid))) and math.random(1, 100) <= 10 then local target = getCreatureTarget(cid) if isCreature(getMasterTarget(target)) then --alterado v1.6 doSendMagicEffect(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 v1.6 end end if move.target == 1 then if not isCreature(getCreatureTarget(cid)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You don\'t have any targets.") return 0 end if getCreatureCondition(getCreatureTarget(cid), CONDITION_INVISIBLE) then return 0 end if getCreatureHealth(getCreatureTarget(cid)) <= 0 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your have already defeated your target.") return 0 end if not isCreature(getCreatureSummons(cid)[1]) then return true end if getDistanceBetween(getThingPos(getCreatureSummons(cid)[1]), getThingPos(getCreatureTarget(cid))) > move.dist then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Get closer to the target to use this move.") return 0 end if not isSightClear(getThingPos(getCreatureSummons(cid)[1]), getThingPos(getCreatureTarget(cid)), false) then return 0 end end local newid = 0 if isSleeping(mypoke) or isSilence(mypoke) then --alterado v1.5 doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sorry you can't do that right now.") return 0 else newid = setCD(getPlayerSlotItem(cid, 8).uid, cdzin, move.cd) end doCreatureSay(cid, ""..getPokeName(mypoke)..", "..msgs[math.random(#msgs)]..""..move.name.."!", TALKTYPE_SAY) local summons = getCreatureSummons(cid) --alterado v1.6 addEvent(doAlertReady, move.cd * 1000, cid, newid, move.name, it, cdzin) for i = 2, #summons do if isCreature(summons[i]) and getPlayerStorageValue(cid, 637501) >= 1 then docastspell(summons[i], move.name) --alterado v1.6 end end docastspell(mypoke, move.name) doCreatureAddCondition(cid, playerexhaust) if useKpdoDlls then doUpdateCooldowns(cid) end return 0 end duvida sanada reportado
  15. Ixi , então vo explicar pra ti vai no seu config.lua e troque isto sqlType = "sqlite" sqlHost = "localhost" sqlPort = 3306 sqlUser = "root" sqlPass = "" sqlDatabase = "cdcol" sqlFile = "forgottenserver.s3db" sqlKeepAlive = 0 mysqlReadTimeout = 10 mysqlWriteTimeout = 10 encryptionType = "sha1" Por Isso sqlType = "sqlite" sqlHost = "localhost" sqlPort = 3306 sqlUser = "root" sqlPass = "" sqlDatabase = "theforgottenserver" sqlFile = "forgottenserver.s3db" sqlKeepAlive = 0 mysqlReadTimeout = 10 mysqlWriteTimeout = 10 encryptionType = "plain" creio que ira funcionar
  16. Visite este tópico http://www.xtibia.com/forum/topic/190384-vip-345-ajudem/page__p__1300218#entry1300218
  17. @Fillzy voce usa um script de lvl ou um que sempre quase tem nos servidores e simples so voce por este id na port 1100 - Pode ver que fico o "1" na frente então e so adicionar isso na frente do numero que voce quer q seja o level
  18. O Servidor E Mysql usado com gesior mais talvez este tópico lhe ajude http://www.xtibia.com/forum/topic/134963-sql-lite-por-mysql/
  19. Diogo leia o post acima sempre veja este http://www.xtibia.com/forum/topic/193245-baiak-extreme-otprojects-860-funcionando/page__fromsearch__1 e tudo igual funcionando
  20. Ja Tento ir com o meu pank ? que achoque vai agora
  21. function onUse(cid, item, frompos, item2, topos) local name = "Rat" -- Nick Do Monster local money = 1000 -- Quantos Gp's Ira Remover if item.itemid == 4852 then -- id da lavaca elseif doPlayerRemoveMoney(cid,money) then doPlayerSendCancel(cid,"Sorry you do not have enough money.") return true elseif doSummonCreature(name, getPlayerPosition(cid)) then doPlayerSendTextMessage(cid, 22, "Monster summoned Successfully") return true end end Acho que vai.
  22. Título irregular reportado
  23. Tente Com este function onUse(cid, item, frompos, item2, topos) local name = "Rat" -- Nick Do Monster local money = 1000 -- Quantos Gp's Ira Remover if item.itemid == 4852 then -- id da lavaca elseif doPlayerRemoveMoney(cid,money) then doPlayerSendCancel(cid,"Sorry you do not have enough money.") return true elseif doSummonCreature(name, getThingPos) then doPlayerSendTextMessage(cid, 22, "Monster summoned Successfully") return true end end
  24. Leia Sempre Os Comentários Acima Visite este http://www.xtibia.com/forum/topic/193245-baiak-extreme-otprojects-860-funcionando/page__fromsearch__1
  • Quem Está Navegando   0 membros estão online

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