Ir para conteúdo

Skymagnum

Marquês
  • Total de itens

    1025
  • Registro em

  • Última visita

  • Dias Ganhos

    2

Tudo que Skymagnum postou

  1. Tópico movido para a seção de dúvidas e pedidos resolvidos.
  2. Alêm de estar na área errada esta sem informações irei reportar.
  3. Porquê no explode já não usou o símbolo? aí ficaria mais fácil /calcular 5 ^ 3 /calcular 2 + 1
  4. Skymagnum

    Guerra De Nações

    Tópico movido para a seção de dúvidas e pedidos resolvidos.
  5. Skymagnum

    Erro No Ot

    Tópico movido para a seção de dúvidas e pedidos resolvidos.
  6. Skymagnum

    Modificação SPELL

    local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_WHIRLWINDSWORD) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -4.0, -260, -4.0, 240) local arr = { {1, 1, 1, 1, 1, 1, 1, 1, 1}, {1, 1, 1, 1, 1, 1, 1, 1, 1}, {1, 1, 1, 1, 1, 1, 1, 1, 1}, {1, 1, 1, 1, 1, 1, 1, 1, 1}, {1, 1, 1, 1, 2, 1, 1, 1, 1}, {1, 1, 1, 1, 1, 1, 1, 1, 1}, {1, 1, 1, 1, 1, 1, 1, 1, 1}, {1, 1, 1, 1, 1, 1, 1, 1, 1}, {1, 1, 1, 1, 1, 1, 1, 1, 1}, } local area = createCombatArea(arr) setCombatArea(combat, area) function onTargetTile(cid, pos) doCombat(cid, combat, positionToVariant(pos)) end function onCastSpell(cid, var) setCombatCallback(combat, CALLBACK_PARAM_TARGETTILE, "onTargetTile") return doCombat(cid, combat, var) end
  7. Isso não é uma spell e sim uma action estarei reportando para moverem.
  8. Área errada tenha mais atenção da próxima vez.
  9. Só não copia o tópico dos outros néh? http://www.xtibia.com/forum/topic/199910-otservhost-global-full-970-100/
  10. Tópico sem informações usuário avisado por PM ele terá 24 horas para arrumar o tópico senão o mesmo será fechado!.
  11. Tópico movido para a seção de dúvidas e pedidos resolvidos.
  12. Espere a TFS(The forgotten server) lançar o distro para 9.8 acho que será gratuito.
  13. Não vai funcionar issoae.
  14. Skymagnum

    Templo , Depot

    Área errada movido, área correta Aprovação de Downloads pois não é um mapa contem npc's monstros então é um servidor.
  15. local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_HITBYFIRE) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE) setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 1492) function onCastSpell(cid, var) local out = {188, 180, 181, 182) -- coloque os ids das outfits if not isInArray(out, getCreatureOutfit(cid).lookType) then doPlayerSendCancel(cid, "Você não pode executar está ação.") return true or false end return doCombat(cid, combat, var) end
  16. Free: Thais concerteza. Premmy: Yalahar pelas hunts e tudo mais.
  17. Joga ctz.
  18. tenta assim: function onUse(cid, item, frompos, item2, topos) local pos = {x = 85, y = 55, z = 8} if getCreatureCondition(cid, CONDITION_INFIGHT) then doPlayerSendCancel(cid, "You cannot use this item.") return true end if getPlayerStorageValue(cid, STORAGE) < 1 then doPlayerSendCancel(cid, "You cannot use this item.") return true end doTeleportThing(cid, pos) doSendMagicEffect(pos, 10) doRemoveItem(item.uid, 1) return true end
  19. function onUse(cid, item, frompos, item2, topos) local pos = {x = 85, y = 55, z = 8} if getPlayerStorageValue(cid, STORAGE) < 1 then doPlayerSendCancel(cid, "You cannot use this item.") return true end doTeleportThing(cid, pos) doSendMagicEffect(pos, 10) doRemoveItem(item.uid, 1) return true end function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor) local posTp = {x = 1, y = 2, z = 3} if getPlayerStorageValue(cid, STORAGE) > 0 then doTeleportThing(cid, posTp) end return true end
  20. Tipo: Talkaction. Testado: Foi feito a pedido de um usuário ele falou que funcionou então sim. @Oque Faz?. Ele retorna o nome de todos jogadores que tem promotion no servidor. @Instalando!. Primeiro abra a pasta do seu servidor depois vá em data agora entre na pasta talkactions e agora na pasta scripts duplique um arquivo da extensão .lua renomeie para promotedplayers e adicione o seguinte conteúdo nele: agora volte as pastas e entre em talkactions.xml e adicione essa linha lá: <talkaction words="!promoplayers" script="promotedplayers.lua"/> ele vai aparece só o nome exêmplo: Fulano Vodkartviado PretoJorge. Se vocês saberem alguma função que retorne nome da vocação pelo id favor avisar que aí o script irá ficar melhor. ~~ Créditos ~~ Criador do sistema de rank level. Eu por editar.
  21. Fiz uma cagada bonita agora hueuheu: function onSay(cid, words, param) local str = "" str = "--[ Jogadores que tem promotion no servidor ]--\n\n" local qry = db.getResult("SELECT `name` FROM `players` WHERE `vocation` > 4 ORDER BY `level` DESC;") if (qry:getID() ~= -1) then while true do str = str .. "\n " .. qry:getDataString("name") .. "." if not(qry:next()) then break end end qry:free() end doPlayerSendTextMessage(cid, 27, str) return true end
  22. tô achando que é por causa que é mostro ainda acho que você teria que registrar em todos monstros.
  23. se as voc promo forem 5,6,7,8 use este: function onSay(cid, words, param) local str = "" str = "--[ Jogadores que tem promotion no servidor ]--\n\n" local qry = db.getResult("SELECT `player_id` FROM `players` WHERE `vocation` > 4 ORDER BY `level` DESC;") if (qry:getID() ~= -1) then while true do str = str .. "\n " ..getPlayerNameByGUID(qry:getDataString("player_id")) .. "." if not(qry:next()) then break end end qry:free() end doPlayerSendTextMessage(cid, 27, str) return true end se forem 8 pra cima use este: function onSay(cid, words, param) local str = "" str = "--[ Jogadores que tem promotion no servidor ]--\n\n" local qry = db.getResult("SELECT `player_id` FROM `players` WHERE `vocation` > 8 ORDER BY `level` DESC;") if (qry:getID() ~= -1) then while true do str = str .. "\n " ..getPlayerNameByGUID(qry:getDataString("player_id")) .. "." if not(qry:next()) then break end end qry:free() end doPlayerSendTextMessage(cid, 27, str) return true end
  24. Nunca vi este erro, a conta deve estar errada mais tente aí. function onStatsChange(cid, attacker, type, combat, value) if isSummon(attacker) and getCreatureMaster(attacker) == cid and isMonster(cid) and getPlayerStorageValue(getCreatureMaster(attacker), 17823) >= 1 then if type == STATSCHANGE_HEALTHLOSS then local dano = math.floor(value/100*3) doTargetCombatHealth(attacker, cid, COMBAT_PHYSICALDAMAGE, -dano, -dano, CONST_ME_NONE) doPlayerSendTextMessage(getCreatureMaster(attacker), MESSAGE_STATUS_CONSOLE_ORANGE, "Your's ".. getCreatureName(attacker) .." deals ".. dano .." damage to " .. getCreatureName(cid) .. ".") end end return true end tu registro certin tudo? acho que quando se trata de mostro não tem que registar o evento na xml dele sla.
  • Quem Está Navegando   0 membros estão online

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