Ir para conteúdo

GabrielSv

Membro
  • Registro em

  • Última visita

Tudo que GabrielSv postou

  1. GabrielSv postou uma resposta no tópico em Suporte Websites
    cade o erro
  2. GabrielSv postou uma resposta no tópico em Suporte Websites
    vai na sua database, la em cima vai ta escrito SQL, coloca o codigo e executa.
  3. GabrielSv postou uma resposta no tópico em Suporte Websites
    vc usa mysql ou sqlite?
  4. GabrielSv postou uma resposta no tópico em Suporte Websites
    executa essa sql na sua database CREATE TABLE IF NOT EXISTS `news` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(150) DEFAULT '', `body` text, `time` int(11) DEFAULT '0', PRIMARY KEY (`id`) );
  5. ALTER TABLE `player_autoloot` ADD `count_id` INT(11) DEFAULT 0; nao sei se vai te ajudar mas nao custa tentar executa essa query na sua database
  6. qual versãodo distro vc esta usando ?
  7. Voce tem algum script pronto?
  8. Esse erro da por que esta faltando alguma biblioteca, ou seja o arquivo precisa da mesma para abrir. Tenta seguir o tutorial oficial https://github.com/otland/forgottenserver/wiki/Compiling MSVC 2015?
  9. local bag = getPlayerItemById(cid, false, 1988).uid doAddContainerItem(container, 12267, 1) doAddContainerItem(container, 12266, 1) doAddContainerItem(container, 12264, 1) doAddContainerItem(container, 12265, 1) doAddContainerItem(container, 12263, 1) doAddContainerItem(container, 12262, 1) doAddContainerItem(container, 12261, 1) doAddContainerItem(container, 12260, 1) tenta trocar e me fala
  10. Nao sei se era isso que vc queria, testado em 0.3.6 Spells/scripts/attack/vampiric touch.lua local combat = createCombatObject() local config = { spellName = "Vampiric Touch", -- NOME DA SPELL. NAO SAO AS PALAVRAS QUE VC VAI USAR PRA CASTAR. storage = 1401, timeStorage = 1402, cooldown = 240, -- COLDOWN DA MAGIA, PARA SER CASTADA DNV skillTime = 180, -- O TEMPO QUE A MAGIA VAI FICAR ATIVA } function onCastSpell(cid, var) if not exhaustion.get(cid, config.storage) then exhaustion.set(cid, config.storage, config.cooldown) exhaustion.set(cid, config.timeStorage, config.skillTime) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_RED) doCreatureSay(cid, "VAMPIRIC TOUCH!", TALKTYPE_ORANGE_1) else doPlayerSendCancel(cid, config.spellName .. " is still on " .. exhaustion.get(cid, config.storage) .. " seconds cooldown!") doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) return false end doCombat(cid, combat, var) return true end Spells/spells.xml <instant name="Vampiric touch" words="utori con" lvl="75" mana="320" prem="1" selftarget="1" exhaustion="1000" needlearn="0" event="script" value="attack/vampiric touch.lua"> <vocation id="3"/> <vocation id="4"/> <vocation id="7"/> <vocation id="8"/> </instant> AQUI SIM VC CONFIGURA OQUE O PLAYER IRA DIZER PARA USAR A MAGIA EM "words" Creaturescripts/scripts/vampiric touch.lua local config = { spellName = "Vampiric Touch", storage = 1401, timeStorage = 1402, lifeStealPercent = 50, -- Porcentagem de dano que voce da, voce ira receber em life. } function onStatsChange(cid, attacker, type, combat, value) if type == COMBAT_PHYSICALDAMAGE then if exhaustion.get(attacker, config.storage) then doCreatureAddHealth(attacker, math.ceil(value * (config.lifeStealPercent / 100))) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_RED) doSendMagicEffect(getPlayerPosition(attacker), CONST_ME_MAGIC_RED) doSendAnimatedText(getPlayerPosition(attacker), "+" .. math.ceil(value * (config.lifeStealPercent / 100)) .. " HP", TEXTCOLOR_RED) doPlayerSendTextMessage(attacker, MESSAGE_STATUS_DEFAULT, "You stole " .. math.ceil(value * (config.lifeStealPercent / 100)) .. " health from " .. getPlayerName(cid) .. "\n" .. config.spellName .. " will last for " .. exhaustion.get(attacker, config.timeStorage) .. " seconds more.") end end return true end Creaturescripts/creaturescripts.xml <event type="statschange" name="vampiricTouch" event="script" value="vampiric touch.lua"/> Creaturescripts/scripts/login.lua registerCreatureEvent(cid, "vampiricTouch")
  11. doTargetCombatHealth(cid, playerTarget, COMBAT_PHYSICALDAMAGE, -dmgMin, -dmgMax, 10, COMBAT_PARAM_HITCOLOR, 5) tenta ae
  12. Seu servidor nao esta conseguindo se comunicar com o servidor do pagseguro, pode ser o firewall, ou instabilidade de algum dos dois servidores. tenta desativar o firewall e teste.
  13. so tem esse script nao tem outros
  14. .Qual servidor ou website você utiliza como base? TFS 1.2 Qual o motivo deste tópico? AJUDA Está surgindo algum erro? Se sim coloque-o aqui. Ele nao possui erros, so acho que estou colocando em lugar errado Você tem o código disponível? Se tiver publique-o aqui: function sendRandom(r) return math.random(-r, r) end local version = 860 -- you can put these in global ORB_TIME = 16 ORB_INCREMENTS = 1000 -- function cashRandom(min, max) return math.random(min, max) end function comma_value(amount) local formatted = amount while true do formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2') if (k==0) then break end end return formatted end function getExpForLevel(level) level = level - 1 return ((50 * level * level * level) - (150 * level * level) + (400 * level)) / 3 end function giveMoney(m) local g = m local nug, cc, plat, gold, t = 1000000, 10000, 100, 1, {} while(m ~= 0) do if m >= nug then local c = m / nug m = m - (c * nug) table.insert(t, {2157, c}) -- nuggets elseif m >= cc then local c = math.floor(m / cc) m = m - (c * cc) table.insert(t, {2160, c}) -- crystal coin elseif m >= plat then local c = math.floor(m / plat) m = m - (c * plat) table.insert(t, {2152, c}) -- plat coins elseif m >= gold then local c = math.floor(m / gold) m = m - (c * gold) table.insert(t, {2148, c}) -- gold coins end end return t, g end function sendOrbEffect(cid, tier) local player = Player(cid) if not player then return false end local colors = {5,30,35,95,108,129,143,155,180,198,210,215} local xp = player:getExperience() local exp = getExpForLevel(player:getLevel() + 1) local orbs = { { type_ = "cash", name = "~* gold *~", symbol = "$$", itemid = function(x) local tier = x or 1 local cash = 0 local min_coin = (tier * 5) local max_coin = (tier * 50) return cashRandom(min_coin, max_coin) end }, { type_ = "loot", name = "~* loot *~", symbol = "fri itens plx!", itemid = function(n) local t = { [1] = { {6433, 1}, {2503, 1}, {2504, 1}, {2641, 1}, {2542, 1}, {6301, 1}, {2184, 1}, {2406, 1}, {2423, 1}, {2393, 1}, {2415, 1}, {5907, 1} }, [2] = { {2457, 1}, {2463, 1}, {2647, 1}, {2645, 1}, {2532, 1}, {2213, 1}, {8910, 1}, {2403, 1}, {7432, 1}, {7449, 1}, {2387, 1}, {2414, 1} }, [3] = { {2496, 1}, {2505, 1}, {2469, 1}, {3982, 1}, {2517, 1}, {2121, 1}, {2181, 1}, {8209, 1}, {8927, 1}, {2419, 1}, {3962, 1}, {8856, 1} } } n = n > 3 and 3 or n return t[n][math.random(#t[n])] end, }, { type_ = "xp", name = "~* exp *~", symbol = "Free XP!", itemid = function(n) return exp - xp end, } } local effects = {2, 5, 6, 7, 11, 12, 16, 18, 19, 20,27,37, 38} local loot = orbs[math.random(#orbs)] local msg = '' local p = player:getPosition() for i = 1, ORB_TIME do p.x = p.x + sendRandom(1) p.y = p.y + sendRandom(1) addEvent(function(x, n, cid, t) local player = Player(cid) if player then x:sendMagicEffect(effects[math.random(#effects)]) if player:getPosition() == x then if version == 860 then -- uncomment to use in otx3 8.6 --Game.sendAnimatedText(loot.symbol, x, colors[math.random(#colors)]) else player:say(loot.symbol, TALKTYPE_MONSTER_SAY, false, nil, x) end player:getPosition():sendMagicEffect(40) local items = loot.itemid(t) if loot.type_ == "loot" then local id = items[1] local name = ItemType(id):getName() local amount = 1 if #items > 2 then amount = math.random(items[2], items[3]) else amount = items[2] end player:addItem(id, amount) msg = "You've siphoned "..((amount == 1 and loot.type_ == "loot") and "" or amount).." "..name.." from the orb!" elseif loot.type_ == "cash" then local c, amount = giveMoney(items) for k, v in pairs(c) do player:addItem(v[1], v[2]) end msg = "You've siphoned $"..comma_value(amount).. " gold from the orb!" else local comma = comma_value(items) player:addExperience(items, false) msg = "You siphoned "..comma.." experience from the orb!" end player:sendTextMessage(MESSAGE_INFO_DESCR, msg) else if version == 860 then -- uncomment to use in otx3 8.6 --Game.sendAnimatedText(loot.name, x, colors[math.random(#colors)]) else player:say(loot.name, TALKTYPE_MONSTER_SAY, false, nil, x) end end end end, i * ORB_INCREMENTS, p, 31, cid, tier ) end end function onDeath(creature, corpse, killer, mostDamageKiller, lastHitUnjustified, mostDamageUnjustified) if killer:isPlayer() then local chance = 25 local roll = math.random(100) killer:sendTextMessage(MESSAGE_INFO_DESCR, "you rolled a "..roll) if chance > roll then local times = math.random(1, 3) for h = 1, times do sendOrbEffect(killer:getId(), 3) end end end return true end Boa tarde a todos, é o seguinte eu tenho esse script, que no caso, tem X chance de quando o mostros morrer ele spawna um Loot Orb. eu coloquei esse script em CreatureScripts e no XML do monster eu coloqueo <event name="OrbSystem"/> so que nada acontece eu mato 1000 e nd de spawnar, minha duvida é se esta faltando algo ou eu que estou fazendo algo errado
  15. Fala galera estou editando um projeto, e hoje fui abrir um teste para uns amigos, e toda vez que botava o server online com meu ip, o tfs crashava entao me sugeriram a compilar a source usando o visual studio que o erro parava, eu tentei aqui mais nao obtive sucesso, como faz anos que nao mexo com otserv e recentemente voltei, eu to perdido nessa area, agradeço desde a ajuda. .Qual servidor ou website você utiliza como base? Tfs 0.4 Qual o motivo deste tópico? AJUDA PARA COMPILAR EM VISUAL STUDIO ALGUEM CONSEGUIRIA COMPILAR ELA PRA MIM OBS: TEM QUE SER COMPILADA EM VISUAL STUDIO #EDIT; EU LI A RESPEITO, QUE COMPILANDO EM 64x O ERRO PARA, se alguem conseguir compilar pra mim irei ficar mt grato Source.7z
  16. GabrielSv postou uma resposta no tópico em Suporte & Pedidos
    claro q é neh cara
  17. GabrielSv postou uma resposta no tópico em ElfBot NG
    to jogando um otserv que tem reset, queria saber se desse pra criar uma hotkey que reseta sozinha tipo eu chego lvl 717217 e ele fala !reborn é possivel?
  18. GabrielSv postou uma resposta no tópico em Playground (Off-topic)
    cara tbm quero isso que voce usou amigo
  19. foi a 1 coisa que veio na minha mente, saopksaoskoasaops
  20. GabrielSv postou uma resposta no tópico em Playground (Off-topic)
    nao sei se voces ja viram, pqp to rindo ate agora https://youtu.be/-O8Iejyu1Qg
  21. a v2 ja saiu a muito tempo so que no falecido tibiaking, nao sei oque aconteceu com ele, vou tenta procurar em alguma conta minha de hospedagem pra ver se consigo recuperar até.
  22. se

    GabrielSv postou uma resposta no tópico em Playground (Off-topic)
    ChaDeErvaDoce e MohChavoso
  23. FALA GALERA, HJ VOU DISPONIBILIZAR MEU OTSERV DE POKEMON, ESSE É MEU PRIMEIRO OTSERV DE POKEMON QUE EU EDITEI, ERA UM PROJETO AI COMO DEU UM ERRO CHATO, E EU TO SEM TEMPO PRA ARRUMAR VOU DISPONIBILIZAR PRA VOCÊS. • Menu: ├ Informações; ├ Ediçoes; ├ Prints; ├ Oque falta fazer; ├ Erros; ├ Download; └ Creditos. • Informações Basicas • •Senha do god: god/god. •Mapa com hunts kanto. •Server Sem System de level !. •Clan System (PDA Slicer). •Alguns bugs corrigidos. •Pokemons da 1° até a 2° geração. •Taunt System, para todos os clan rank 5, e algumas outfits. •novas paredes, pisos, e itens PxG. •Npc De itens de task de clãns. •Shinys Espalhado pelo mapa. •novos outfits, que nao tem a ver com Pokemon, mas há um bom divertimento com elas. •Duel System. •Golden arena. •Moves system (m1 a m12). •Maximo 6 pokemonsna bag. •Order 100%. • Edições / Ajustes Por Min • •Primeiramente eu nao editei o Mapa, Apenas o Templo. •Adicionado 32 Novos Lendarios (contendo normais e shinys) •Adicionado 2 Novas Stones (Green Stone e Rare Stone) •Adicionado Nova Box (Lendario Box +1) •Todos Os Lendarios tem suas respectivas Corpses e Portrait •Adicionado Black Articuno e Black Celebi •Reformulada a Quest Dos Lendarios (Moltres,Celebi e Suicune) •Segundo Andar Do Templo Expandido. •Adicionado Respawn De Alguns Shiny's. • PrintScreen • •Novos Lendarios • •Novos Lendarios Shiny • • Green Stone • • Rare Stone • • Oque falta fazer • • Falta Arrumar os moves e balanciar os novos lendarios. • Erros Do Servidor • O Unico erro que eu nao consigo arrumar é o que os novos lendarios nao estao atakando. (os lendarios que voce sumona pelo /m , da pokebola ataka normal) Pela minha falta de conhecimento pois este é meu 1 server de poketibia. Entao se voce achar a soluçao me fale que assim na V2.0. ja esta arrumado. • Download's • Server. PokéHouse v1.0 Client. PokéHouse Client v1.0 • Scan • Se Alguem Fizer Agradeço. • Creditos • Eu (Por Adicionar os lendarios e editar) Slicer (pelo servidor) Brun123 (por alguns scripts, e por criar o pda) Stylo Maldoso (pelo mapa) Bolz (por editar) Xtibia (por alguns scripts) • Oque vem pra V2.0 • Quando eu tiver tempo, vou terminar de adicionars os pokemon porque ainda falta • Deoxys,Speed Deoxys,Attack Deoxys e Defense Deoxys (normais e shinys). • Shiny Zekrom e Shiny Renshinran • Novos Respawn's • Pokemons Ancient. Entre Outras Coisas.
  24. GabrielSv postou uma resposta no tópico em Playground (Off-topic)
    :poop:

Informação Importante

Confirmação de Termo