Tudo que iTzBrHue3 postou
-
Balista
.Qual servidor ou website você utiliza como base? otx 2.8 Qual o motivo deste tópico? Eu gostaria de saber como posso criar uma balista que atira uma flecha para frente e para dando dano no primeiro alvo encontrado Está surgindo algum erro? Se sim coloque-o aqui. Você tem o código disponível? Se tiver publique-o aqui: Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
-
erro no utito tempo
.Qual servidor ou website você utiliza como base? otx 2.8 Qual o motivo deste tópico? eu fiz um anel que quando equipa o utito tempo nao aumenta mais os status Está surgindo algum erro? Se sim coloque-o aqui. Você tem o código disponível? Se tiver publique-o aqui: local condition1 = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition1, CONDITION_PARAM_TICKS, -1) setConditionParam(condition1, CONDITION_PARAM_SKILL_CLUB, 16) setConditionParam(condition1, CONDITION_PARAM_SKILL_SWORD, 16) setConditionParam(condition1, CONDITION_PARAM_SKILL_AXE, 16) local condition2 = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition2, CONDITION_PARAM_TICKS, -1) setConditionParam(condition2, CONDITION_PARAM_SKILL_DISTANCE, 24) local condition3 = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition3, CONDITION_PARAM_TICKS, -1) setConditionParam(condition3, CONDITION_PARAM_STAT_MAGICLEVEL, 32) function onEquip(cid, item, slot) local vocation = getPlayerVocation(cid) if vocation > 4 then vocation = vocation - 4 end if vocation == 1 or vocation == 2 then doAddCondition(cid, condition3) elseif vocation == 3 then doAddCondition(cid, condition2) elseif vocation == 4 then doAddCondition(cid, condition1) end return true end function onDeEquip(cid, item, slot) doRemoveCondition(cid, CONDITION_ATTRIBUTES) return true end Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
-
erro movements
.Qual servidor ou website você utiliza como base? otx 2.8 Qual o motivo deste tópico? fiz um script para um anel, mais quando o ek e o rp tentam usar utito tempo a skill não aumenta Está surgindo algum erro? Se sim coloque-o aqui. Você tem o código disponível? Se tiver publique-o aqui: local condition1 = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition1, CONDITION_PARAM_TICKS, -1) setConditionParam(condition1, CONDITION_PARAM_SKILL_CLUB, 16) setConditionParam(condition1, CONDITION_PARAM_SKILL_SWORD, 16) setConditionParam(condition1, CONDITION_PARAM_SKILL_AXE, 16) local condition2 = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition2, CONDITION_PARAM_TICKS, -1) setConditionParam(condition2, CONDITION_PARAM_SKILL_DISTANCE, 24) local condition3 = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition3, CONDITION_PARAM_TICKS, -1) setConditionParam(condition3, CONDITION_PARAM_STAT_MAGICLEVEL, 32) function onEquip(cid, item, slot) local vocation = getPlayerVocation(cid) if vocation > 4 then vocation = vocation - 4 end if vocation == 1 or vocation == 2 then doAddCondition(cid, condition3) elseif vocation == 3 then doAddCondition(cid, condition2) elseif vocation == 4 then doAddCondition(cid, condition1) end return true end function onDeEquip(cid, item, slot) doRemoveCondition(cid, CONDITION_ATTRIBUTES) return true end Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
-
(Resolvido)Erro em spell
Vlw ai mano
-
(Resolvido)Erro em spell
.Qual servidor ou website você utiliza como base? OTX 2.8 Qual o motivo deste tópico? Eu fiz uma magia pra um monstro e da um erro quando ele morre Está surgindo algum erro? Se sim coloque-o aqui. [26/7/2022 11:54:13] [Error - Spell Interface] [26/7/2022 11:54:13] In a timer event called from: [26/7/2022 11:54:13] data/spells/scripts/special/bloody annihilator.lua:onCastSpell [26/7/2022 11:54:13] Description: [26/7/2022 11:54:13] (luaGetThingPosition) Thing not found Você tem o código disponível? Se tiver publique-o aqui: local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE) combat_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, 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, 1, 1, 3, 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, 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, 1, 1,}, } local combat_area = createCombatArea(combat_arr) setCombatArea(combat, combat_area) local function choose(...) local arg = {...} return arg[math.random(1,#arg)] end local function areaEffect(param) local p = getCreaturePosition(param.cid) if isCreature(param.cid) and not getTilePzInfo(p) then for i = 1, 3 do start_pos_1 = {x = p.x+choose(-8, 8), y = p.y+math.random(-6, 6), z = p.z} start_pos_2 = {x = p.x+math.random(-8, 8), y = p.y+choose(-6, 6), z = p.z} final_pos_1 = {x = p.x+(choose(-8, 8)*-1), y = p.y+(math.random(-6, 6)*-1), z = p.z} final_pos_2 = {x = p.x+(math.random(-8, 8)*-1), y = p.y+(choose(-6, 6)*-1), z = p.z} doSendDistanceShoot(start_pos_1, final_pos_1, 35) doSendDistanceShoot(start_pos_2, final_pos_2, 35) end return doCombat(param.cid, combat, param.var) end return true end function onCastSpell(cid, var) local parameters = {cid=cid, var=var} for i = 1, 40 do addEvent(areaEffect, i * 250, parameters) end return true end Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
-
(Resolvido)Adcionar tempo na alavanca
Vlw pela ajuda
-
(Resolvido)Adcionar tempo na alavanca
conseguir fazer assim for i = 1, 4 do if player[i].uid > 0 then if getPlayerStorageValue(player[i].uid, stor) > os.time() then doPlayerSendTextMessage(player[i].uid, 19, os.time() - getPlayerStorageValue(cid, stor)) all_ready = 0 end end end mas como deixa o tempo em segundos no os.time?
-
(Resolvido)Adcionar tempo na alavanca
.Qual servidor ou website você utiliza como base? otx 2.8 Qual o motivo deste tópico? duvida Está surgindo algum erro? Se sim coloque-o aqui. Você tem o código disponível? Se tiver publique-o aqui: function onUse(cid, item, fromPosition, itemEx, toPosition) local room = { ['start'] = {x=2192, y=2543, z=8}, ['end'] = {x=2213, y=2564, z=8} } local boss_name = 'Gravelord' local boss = {x=2203, y=2549, z=8} local kick_pos = {x=2195, y=2583, z=8} local players_pos = { {x=2194, y=2577, z=8, stackpos = 253}, {x=2195, y=2577, z=8, stackpos = 253}, {x=2196, y=2577, z=8, stackpos = 253}, {x=2197, y=2577, z=8, stackpos = 253} } local new_player_pos = {x=2205, y=2564, z=8} local player = {0, 0, 0, 0} local all_ready = 0 if item.itemid == 1945 then for i = 1, 4 do player[i] = getThingfromPos(players_pos[i]) if player[i].itemid > 0 and isPlayer(player[i].uid) then all_ready = 1 end end if all_ready == 1 then doCreateMonster(boss_name, {x=boss.x, y=boss.y, z=boss.z}) for i = 1, 4 do if isPlayer(player[i].uid) then doSendMagicEffect(players_pos[i], 2) doTeleportThing(player[i].uid, new_player_pos, false) doSendMagicEffect(new_player_pos, 10) addEvent(kickFromArea, (10 * 60 * 1000), player[i].uid, room['start'], room['end'], kick_pos) all_ready = 0 end end doTransformItem(item.uid, 1946) end elseif item.itemid == 1946 then local player_room = 0 for x = room['start'].x, room['end'].x do for y = room['start'].y, room['end'].y do for z = room['start'].z, room['end'].z do local pos = {x=x, y=y, z=z, stackpos=253} local thing = getThingfromPos(pos) if thing.itemid > 0 then if isPlayer(thing.uid) == true then player_room = player_room + 1 end end end end end if player_room >= 1 then doPlayerSendTextMessage(cid, 19, "There is already a player in the boss room.") elseif player_room == 0 then for x = room['start'].x, room['end'].x do for y = room['start'].y, room['end'].y do for z = room['start'].z, room['end'].z do local pos = {x=x, y=y, z=z, stackpos=253} local thing = getThingfromPos(pos) if thing.itemid > 0 then doRemoveCreature(thing.uid) end end end end player_room = 0 doTransformItem(item.uid, 1945) end end return true end Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
-
SUMMON CURANDO BOSS
.Qual servidor ou website você utiliza como base? 0.4 TFS Qual o motivo deste tópico? EU FIZ UM BOSS QUE SUMONA UNS BIXOS, QUANDO ESSE BIXO ESTÃO VIVOS O BOSS FICA TRANSFERE O DANO AO SUMON, QUERIA POR SE O BOSS MATASSE O SUMON PELA TRANSFERENCIA DE DANO O BOSS CURASSE, O SCRIPT TA CURANDO COM QUALQUER UM MATANDO. SE POSSIVEL ME AJUDA A COLOCA PRA TRANSFERIR DANO ENTRE TODOS OS SUMONS, SUMONA NO MAXIMO 8 Está surgindo algum erro? Se sim coloque-o aqui. Você tem o código disponível? Se tiver publique-o aqui: local range = 50 function onStatsChange(cid, attacker, type, combat, value) local soulPos = getCreaturePosition(cid) local monsterArea = getSpectators(soulPos, range, range) bossId = nil for i, aid in ipairs(monsterArea) do if getCreatureName(aid) == "Gravelord Servant" then bossId = aid end end if bossId ~= nil then if type > 0 then --dano = math.ceil(value * 0.01) doSendAnimatedText(soulPos, 'Immune', 192) doTargetCombatHealth(attacker, bossId, 1024, -value, -value, 255) doSendDistanceShoot(soulPos, getCreaturePosition(bossId), 37) return false end end return true end SCRIPT DA TRANSFERENCIA DE DANO local range = 50 local bossName = "Gravelord" local perc = 0.25 local effect = 30 function onPrepareDeath(cid, lastHitKiller) local soulPos = getCreaturePosition(cid) local monsterArea = getSpectators(soulPos, range, range) bossId = nil for i, aid in ipairs(monsterArea) do if getCreatureName(aid) == bossName then bossId = aid break end end bossPos = getCreaturePosition(bossId) bossHeal = (getCreatureMaxHealth(bossId) * perc) if bossId ~= nil then -- doCreatureAddHealth(bossId, bossHeal) addEvent(doCreatureAddHealth, 350, bossId, bossHeal) doSendDistanceShoot(soulPos, bossPos, effect) -- doSendMagicEffect(bossPos, 49) addEvent(doSendMagicEffect, 350, bossPos, 49) end return true end SCRIPT DA CURA Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
-
[Novos Atributos] Critical/Dodge/Life e Mana Leech/Life e Mana Absorb
O meu está funcionando mas ao atacar algo com 20 de vida o dano aparece 40, 30 de vida aparece 60 alguem sabe como resolver?
-
Usar utito tempo e utito tempo san com movements
tá a mesma coisa não consigo usar utito tempo e nem utito tempo san
-
Usar utito tempo e utito tempo san com movements
.Qual servidor ou website você utiliza como base? Qual o motivo deste tópico? Está surgindo algum erro? Se sim coloque-o aqui. Você tem o código disponível? Se tiver publique-o aqui: local condition1 = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition1, CONDITION_PARAM_TICKS, -1) setConditionParam(condition1, CONDITION_PARAM_SKILL_CLUB, 50) setConditionParam(condition1, CONDITION_PARAM_SKILL_SWORD, 50) setConditionParam(condition1, CONDITION_PARAM_SKILL_AXE, 50) local condition2 = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition2, CONDITION_PARAM_TICKS, -1) setConditionParam(condition2, CONDITION_PARAM_SKILL_DISTANCE, 75) local condition3 = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(condition3, CONDITION_PARAM_TICKS, -1) setConditionParam(condition3, CONDITION_PARAM_STAT_MAGICLEVEL, 100) function onEquip(cid, item, slot) local vocation = getPlayerVocation(cid) if vocation > 4 then vocation = vocation - 4 end if vocation == 1 or vocation == 2 then doAddCondition(cid, condition3) elseif vocation == 3 then doAddCondition(cid, condition2) elseif vocation == 4 then doAddCondition(cid, condition1) end return true end function onDeEquip(cid, item, slot) doRemoveCondition(cid, CONDITION_ATTRIBUTES) return true end Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
- ? OTC StoneDrake UI by Shiva - [Free Release]
-
Account Manager
Eu fiz um acc manager usando python3, sei que é inútil mas deu pra mim aprender um pouco mais de python Classes.py https://www.virustotal.com/gui/file/08afdfdf485c53e73cdd538f4efb7850575473a33e599c4e38aa7184dd965f7f GUI.py https://www.virustotal.com/gui/file/c25eccae7af0f5ef71c5334ac43acfa4ac7c98f5e433581219a61b5c0add7490 PATH.py https://www.virustotal.com/gui/file/f0a45cf2ddddc71050c946733b167c0a74ce3327e9acf68720382d0cf99b5c1e
- Shinobi Offline [Sprites]
-
Skill Bonus
-- Magic Level -- conditionML = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(conditionML, CONDITION_PARAM_TICKS, -1) setConditionParam(conditionML, CONDITION_PARAM_STAT_MAGICLEVEL, X) <-- eu queria saber como faço pra colocar o número aqui a partir de getPlayerStorageValue setConditionParam(conditionML, CONDITION_PARAM_BUFF, true) setConditionParam(conditionML, CONDITION_PARAM_SUBID, 92) function onLogin(cid) doAddCondition(cid, conditionML) return true end
-
Skill Bonus
eu tentei cria a condition dentro do onLogin mas não deu certo
-
Skill Bonus
.Qual servidor ou website você utiliza como base? OTX 2.8 Qual o motivo deste tópico? Duvida Está surgindo algum erro? Se sim coloque-o aqui. Você tem o código disponível? Se tiver publique-o aqui: -- HP -- conditionHP = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(conditionHP, CONDITION_PARAM_TICKS, -1) setConditionParam(conditionHP, CONDITION_PARAM_STAT_MAXHEALTH, n) setConditionParam(conditionHP, CONDITION_PARAM_BUFF, true) setConditionParam(conditionHP, CONDITION_PARAM_SUBID, 90) -- MANA -- conditionMP = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(conditionMP, CONDITION_PARAM_TICKS, -1) setConditionParam(conditionMP, CONDITION_PARAM_STAT_MAXMANA, 9999) setConditionParam(conditionMP, CONDITION_PARAM_BUFF, true) setConditionParam(conditionMP, CONDITION_PARAM_SUBID, 91) -- Magic Level -- conditionML = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(conditionML, CONDITION_PARAM_TICKS, -1) setConditionParam(conditionML, CONDITION_PARAM_STAT_MAGICLEVEL, 99) setConditionParam(conditionML, CONDITION_PARAM_BUFF, true) setConditionParam(conditionML, CONDITION_PARAM_SUBID, 92) -- MELEE -- conditionMELEE = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(conditionMELEE, CONDITION_PARAM_TICKS, -1) setConditionParam(conditionMELEE, CONDITION_PARAM_SKILL_CLUB, 99) setConditionParam(conditionMELEE, CONDITION_PARAM_SKILL_SWORD, 99) setConditionParam(conditionMELEE, CONDITION_PARAM_SKILL_AXE, 99) setConditionParam(conditionMELEE, CONDITION_PARAM_BUFF, true) setConditionParam(conditionMELEE, CONDITION_PARAM_SUBID, 93) -- Shield -- conditionSHI = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(conditionSHI, CONDITION_PARAM_TICKS, -1) setConditionParam(conditionSHI, CONDITION_PARAM_SKILL_SHIELD, 99) setConditionParam(conditionSHI, CONDITION_PARAM_BUFF, true) setConditionParam(conditionSHI, CONDITION_PARAM_SUBID, 94) -- Dist -- conditionDIST = createConditionObject(CONDITION_ATTRIBUTES) setConditionParam(conditionDIST, CONDITION_PARAM_TICKS, -1) setConditionParam(conditionDIST, CONDITION_PARAM_SKILL_DISTANCE, 99) setConditionParam(conditionDIST, CONDITION_PARAM_BUFF, true) setConditionParam(conditionDIST, CONDITION_PARAM_SUBID, 95) function onLogin(cid) doAddCondition(cid, conditionHP) doAddCondition(cid, conditionMP) doAddCondition(cid, conditionML) doAddCondition(cid, conditionMELEE) doAddCondition(cid, conditionSHI) doAddCondition(cid, conditionDIST) return true end Como eu faço pra adcionar os valores das condition vindo de um storage do player?
-
(Resolvido)Bug ao Remover arma
deu certo arrumou o erro vlw
-
(Resolvido)Bug ao Remover arma
.Qual servidor ou website você utiliza como base? OTX 2.8 Qual o motivo deste tópico? aparece esse erro quando retira a arma no meio da magia Está surgindo algum erro? Se sim coloque-o aqui. Você tem o código disponível? Se tiver publique-o aqui: local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) function onGetFormulaValues(cid, level, skill, attack, element, factor) local levelTotal = level / 5 local skillTotal = skill * attack local min = levelTotal + (skillTotal * 0.005) local max = levelTotal + (skillTotal * 0.015) return -math.ceil(min), -math.ceil(max) end setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues") combat_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, 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, 1, 1, 3, 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, 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, 1, 1,}, } local combat_area = createCombatArea(combat_arr) setCombatArea(combat, combat_area) local function weaponType(cid) local weapons = {[1] = 24, [2] = 26, [3] = 25} return weapons[getItemWeaponType(getPlayerWeapon(cid).uid)] end local function choose(...) local arg = {...} return arg[math.random(1,#arg)] end local function areaEffect(param) if isCreature(param.cid) and not getTilePzInfo(getCreaturePosition(param.cid)) then for i = 1, 3 do start_pos_1 = {x = getCreaturePosition(param.cid).x+choose(-8, 8), y = getCreaturePosition(param.cid).y+math.random(-6, 6), z = getCreaturePosition(param.cid).z} start_pos_2 = {x = getCreaturePosition(param.cid).x+math.random(-8, 8), y = getCreaturePosition(param.cid).y+choose(-6, 6), z = getCreaturePosition(param.cid).z} final_pos_1 = {x = getCreaturePosition(param.cid).x+(choose(-8, 8)*-1), y = getCreaturePosition(param.cid).y+(math.random(-6, 6)*-1), z = getCreaturePosition(param.cid).z} final_pos_2 = {x = getCreaturePosition(param.cid).x+(math.random(-8, 8)*-1), y = getCreaturePosition(param.cid).y+(choose(-6, 6)*-1), z = getCreaturePosition(param.cid).z} doSendDistanceShoot(start_pos_1, final_pos_1, weaponType(param.cid)) doSendDistanceShoot(start_pos_2, final_pos_2, weaponType(param.cid)) end return doCombat(param.cid, combat, param.var) end end function onCastSpell(cid, var) local parameters = {cid=cid, var=var} for i = 1, 40 do addEvent(areaEffect, i * 250, parameters) end return true end Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
- (Resolvido)Armas Voadoras
- (Resolvido)Armas Voadoras
- (Resolvido)Armas Voadoras
-
[Novos Atributos] Critical/Dodge/Life e Mana Leech/Life e Mana Absorb
-
Spell que aumenta um storage por um tempo
queria saber como fazer uma spell que aumenta uma storage por 10 segundos e depois volta ao valor que estava antes de usar a spell tfs 0.4