Ir para conteúdo

KennyConrad

Visconde
  • Total de itens

    470
  • Registro em

  • Última visita

Tudo que KennyConrad postou

  1. vlw mano dei uma editadinha aki e fico do geito que eu queria vlw msm REP + fico assim dps que editei 1 poquinho local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, TRUE) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ETHEREALSPEAR) setCombatFormula(combat, COMBAT_FORMULA_SKILL, 1.4, 0, 1.6, 2) function onCastSpell(cid, var) if getPlayerStorageValue(cid, 20429) > os.time() then doPlayerSendCancel(cid, "Você tem que esperar "..getPlayerStorageValue(cid, 20429) - os.time().." segundos para usar a magia novamente.") return false end return doCombat(cid, combat, var) and setPlayerStorageValue(cid, 20429, os.time() + 10) end
  2. nao meu fi se eu por na tag exhasuted vai dar exhausted nas outras magias tbm e eu n quero isso entende ? quero essa magia como se fosse um cowndow pra combar as magia @edit n fico como queria =( queria igual no exemplo da magia que dei return doPlayerSendCancel(cid, "Você tem que esperar " .. getPlayerStorageValue(cid, storage) - os.time() .. " segundos para usar novamente.") assim ao player usar mostra o tempo que falta 10,9,8,7,6,5,4,3,2,1.
  3. queria colocar um tipo de cowndown diferente nas minhas magias pro meu ot 8.60 exemplo vejam essa runa function onUse(cid, item, frompos, item2, topos) --teleporte Rune By snokiuthu local storage = 11548 -- n mexa local exhausted = 250 -- tempo em segundos if (getPlayerStorageValue(cid, storage) >= os.time()) then return doPlayerSendCancel(cid, "Você tem que esperar " .. getPlayerStorageValue(cid, storage) - os.time() .. " segundos para usar novamente.") end local effect = 10 local message = "You were teleported to "..getTownName(getPlayerTown(cid)).." town." local errormessage = "Sorry, you cannot use this scroll in a battle." local town = getTownTemplePosition(getPlayerTown(cid)) --- if getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, errormessage) end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, message) doTeleportThing(cid,town) doSendMagicEffect(town,effect) setPlayerStorageValue(cid,storage,os.time()+exhausted) return end ai queria colocar pra essa magia abaixo so poder usar de 10 em 10 segundos local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, TRUE) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ETHEREALSPEAR) setCombatFormula(combat, COMBAT_FORMULA_SKILL, 1.4, 0, 1.6, 2) function onCastSpell(cid, var) return doCombat(cid, combat, var) end se alguem puder me ajudar agradeço e dou REP +
  4. deu isso aki no distro agora [25/4/2013 13:11:50] mysql_real_query(): CREATE TABLE `market_history` (`id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `player_id` INT NOT NULL, `sale` TINYINT(1) NOT NULL DEFAULT 0, `itemtype` INT UNSIGNED NOT NULL, `amount` SMALLINT UNSIGNED NOT NULL, `price` INT UNSIGNED NOT NULL DEFAULT 0, `expires_at` BIGINT UNSIGNED NOT NULL, `inserted` BIGINT UNSIGNED NOT NULL, `state` TINYINT(1) UNSIGNED NOT NULL, PRIMARY KEY(`id`), KEY(`player_id`, `sale`), FOREIGN KEY (`player_id`) REFERENCES `players`(`id`) ON DELETE CASCADE) ENGINE = InnoDB; - MYSQL ERROR: Table 'market_history' already exists (1050) se puder ajudar a desativar o market entao ja ajudaria pq nen vai servir pra nada no meu servidor mais nao sei onde que desativa o market.
  5. deu isso Erro consulta SQL: CREATE TABLE `otserv.market_history` ( `id` INT( 11 ) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY , `date` INT( 11 ) NOT NULL , `text` TEXT NOT NULL ) ENGINE = MYISAM Mensagens do MySQL : #1103 - Incorrect table name 'otserv.market_history' <<< up
  6. bom queria um sistema de reset igual a esse aki porem que ao inves de resetar por comando reseta-se pelo site. e queria um rank reset no site também <<< up
  7. me ajudem a arrumar esses erros resolvi criar meu servidor com site e apareceu esses erros no distro quando coloco o servidor on meu ot é versão 9.60 [22/4/2013 17:44:58] > WARNING: MYSQL Lost connection, attempting to reconnect... [22/4/2013 17:44:59] > WARNING: max_allowed_packet might be set too low for binary map storage. [22/4/2013 17:44:59] Use the following query to raise max_allow_packet: SET GLOBAL max_allowed_packet = 16776192; e tem esses aki tbm [22/4/2013 17:45:38] mysql_real_query(): DELETE FROM `market_history` WHERE `inserted` <= 1364071538; - MYSQL ERROR: Table 'otserv.market_history' doesn't exist (1146) [22/4/2013 17:45:38] mysql_real_query(): SELECT `id`, `amount`, `price`, `itemtype`, `player_id` FROM `market_offers` WHERE `sale` = 0 AND `created` <= 1364071538; - MYSQL ERROR: Table 'otserv.market_offers' doesn't exist (1146) [22/4/2013 17:45:38] mysql_real_query(): SELECT `id`, `amount`, `price`, `itemtype`, `player_id` FROM `market_offers` WHERE `sale` = 1 AND `created` <= 1364071538; - MYSQL ERROR: Table 'otserv.market_offers' doesn't exist (1146) [22/4/2013 17:45:38] mysql_real_query(): SELECT `sale`, `itemtype`, COUNT(`price`) AS `num`, MIN(`price`) AS `min`, MAX(`price`) AS `max`, SUM(`price`) AS `sum` FROM `market_history` WHERE `state` = 3 GROUP BY `itemtype`, `sale`; - MYSQL ERROR: Table 'otserv.market_history' doesn't exist (1146) se alguem puder me ajudar agradeço muito e darei REP +
  8. uma duvida o sistema de ban tá funcionando nesse servidor ?
  9. se puder me ajudar nessa spell de uma olhada no meu topico se possivel http://www.xtibia.com/forum/topic/209200-pedido-colocar-essa-spell-pra-bater-de-acordo-com-level-e-magic-level/
  10. testa ae local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH) function getCombatFormulas(cid, lv, maglv) local formula_min = -((lv* 2 + maglv*3) * 1.2 - 30) local formula_max = -((lv* 2 + maglv*3) * 1.6) if(formula_max < formula_min) then local tmp = formula_max formula_max = formula_min formula_min = tmp end return formula_min, formula_max end setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "getCombatFormulas") function onCastSpell(cid, var) return doCombat(cid, combat, var) end
  11. tente colocar 200 ++ o tempo de spaws no rme
  12. poxa eu queria um cliente 9.60 =( se puder fazer pra min versão: 9.60 coloca a imagem do cliente do global mesmo ip:sv5radbr.no-ip.org não tem site.
  13. KennyConrad

    pasta mods

    sim pode criar a pasta
  14. [9/2/2013 13:31:15] [Error - Spell Interface] [9/2/2013 13:31:15] data/spells/scripts/party/drunou support club.lua:onCastSpell [9/2/2013 13:31:15] Description: [9/2/2013 13:31:15] data/spells/scripts/party/drunou support club.lua:16: attempt to call field 'huge' (a number value) [9/2/2013 13:31:15] stack traceback: [9/2/2013 13:31:15] data/spells/scripts/party/drunou support club.lua:16: in function <data/spells/scripts/party/drunou support club.lua:13> resolvido podem fechar o topico eu mesmo consegui modificar a spell e foi tão facil nossa viu resolvi o problema com - de 5 minutos hehe fiz assim local combat = createCombatObject() local area = createCombatArea(AREA_CROSS5X5) setCombatArea(combat, area) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, FALSE) local condition = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition, CONDITION_PARAM_SUBID, 1) setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE) setConditionParam(condition, CONDITION_PARAM_TICKS, 2 * 60 * 1000) setConditionParam(condition, CONDITION_PARAM_SKILL_CLUB, 30) setConditionParam(condition, CONDITION_PARAM_BUFF, true) setCombatCondition(combat, condition) function onCastSpell(cid, var) return doCombat(cid, combat, var) end
  15. deu esse erro [9/2/2013 10:39:52] [Error - Spell Interface] [9/2/2013 10:39:52] data/spells/scripts/party/drunou support club.lua:onCastSpell [9/2/2013 10:39:52] Description: [9/2/2013 10:39:52] data/spells/scripts/party/drunou support club.lua:16: attempt to get length of field 'huge' (a number value) [9/2/2013 10:39:52] stack traceback: [9/2/2013 10:39:52] data/spells/scripts/party/drunou support club.lua:16: in function <data/spells/scripts/party/drunou support club.lua:13>
  16. Lpz não deu erro más continua so podendo usar em party.
  17. poxa alguem ajuda ai da um help aki vodkart
  18. deu esse erro quando usei a magia [8/2/2013 21:59:52] [Error - Spell Interface] [8/2/2013 21:59:52] data/spells/scripts/party/drunou support club.lua:onCastSpell [8/2/2013 21:59:52] Description: [8/2/2013 21:59:53] data/spells/scripts/party/drunou support club.lua:13: bad argument #1 to 'ipairs' (table expected, got nil) [8/2/2013 21:59:53] stack traceback: [8/2/2013 21:59:53] [C]: in function 'ipairs' [8/2/2013 21:59:53] data/spells/scripts/party/drunou support club.lua:13: in function <data/spells/scripts/party/drunou support club.lua:11>
  19. e ai sem mais noticias ? tá pronto ou não ? desistiram ? ou já lançaram e eu não to sabendo diga algo alissown
  20. deu esse erro aki [8/2/2013 0:42:6] [Error - LuaInterface::loadFile] data/spells/scripts/party/drunou support club.lua:40: '<eof>' expected near 'end' [8/2/2013 0:42:6] [Error - Event::checkScript] Cannot load script (data/spells/scripts/party/drunou support club.lua) [8/2/2013 0:42:6] data/spells/scripts/party/drunou support club.lua:40: '<eof>' expected near 'end' alguem ajuda por favor
  21. gostaria de colocar essa spell pra poder usar sem presisar estar em party local combat = createCombatObject() local area = createCombatArea(AREA_CROSS5X5) setCombatArea(combat, area) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, FALSE) local condition = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition, CONDITION_PARAM_SUBID, 1) setConditionParam(condition, CONDITION_PARAM_BUFF, TRUE) setConditionParam(condition, CONDITION_PARAM_TICKS, 2 * 60 * 1000) setConditionParam(condition, CONDITION_PARAM_SKILL_CLUB, 30) function onCastSpell(cid, var) local pos = getCreaturePosition(cid) if(getPlayerParty(cid) == nil) then doPlayerSendDefaultCancel(cid, RETURNVALUE_NOPARTYMEMBERSINRANGE) doSendMagicEffect(pos, CONST_ME_POFF) return LUA_ERROR end local membersList = getPartyMembers(cid) if(type(membersList) ~= 'table' or table.maxn(membersList) <= 1) then doPlayerSendDefaultCancel(cid, RETURNVALUE_NOPARTYMEMBERSINRANGE) doSendMagicEffect(pos, CONST_ME_POFF) return LUA_ERROR end local affectedList = {} for _, pid in ipairs(membersList) do if(getDistanceBetween(getCreaturePosition(pid), pos) <= 36) then table.insert(affectedList, pid) end end local tmp = table.maxn(affectedList) if(tmp <= 1) then doPlayerSendDefaultCancel(cid, RETURNVALUE_NOPARTYMEMBERSINRANGE) doSendMagicEffect(pos, CONST_ME_POFF) return LUA_ERROR end local mana = (tmp * 50) if(getCreatureMana(cid) < mana) then doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTENOUGHMANA) doSendMagicEffect(pos, CONST_ME_POFF) return LUA_ERROR end if(doCombat(cid, combat, var) ~= LUA_NO_ERROR) then doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE) doSendMagicEffect(pos, CONST_ME_POFF) return LUA_ERROR end doCreatureAddMana(cid, -mana, FALSE) doPlayerAddSpentMana(cid, mana) for _, pid in ipairs(affectedList) do doAddCondition(pid, condition) end return LUA_NO_ERROR end tag: <instant name="habilidade para martelos" words="martelos-ja" lvl="32" mana="380" aggressive="0" selftarget="1" exhaustion="1000" groups="3,3000" icon="45" needlearn="0" event="script" value="party/drunou support club.lua"> <vocation id="9"/> <vocation id="10"/> </instant>
  22. <conjure name="Food" words="exevo pan" lvl="14" mana="120" soul="1" exhaustion="1000" groups="3,3000" needlearn="0" event="script" value="support/conjure food.lua"> resolvido podem mover o topico.
  23. fiz isso funcionou perfeitamente porem está com 1 bug não tem exhausted e não tá gastando mana
  • Quem Está Navegando   0 membros estão online

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