Ir para conteúdo

GabrielSv

Membro
  • Registro em

  • Última visita

  1. Lordoritos reagiu a uma resposta no tópico: Criando instalador para Client
  2. TheNorth reagiu a uma resposta no tópico: [Pedido] Addons Bonus
  3. GabrielSv postou uma resposta no tópico em Suporte Websites
    cade o erro
  4. 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.
  5. GabrielSv postou uma resposta no tópico em Suporte Websites
    vc usa mysql ou sqlite?
  6. 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`) );
  7. 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
  8. qual versãodo distro vc esta usando ?
  9. Voce tem algum script pronto?
  10. 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?
  11. 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
  12. 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")
  13. doTargetCombatHealth(cid, playerTarget, COMBAT_PHYSICALDAMAGE, -dmgMin, -dmgMax, 10, COMBAT_PARAM_HITCOLOR, 5) tenta ae
  14. 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.
  15. so tem esse script nao tem outros
  16. .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

Informação Importante

Confirmação de Termo