Tudo que Danves postou
-
(Resolvido)[Pedido] potions healando de acordo com o level ou ml
- (Resolvido)[Pedido] potions healando de acordo com o level ou ml
Mostra o erro aí novamente por favor, e verifica se deu reload etc- (Resolvido)[Pedido] potions healando de acordo com o level ou ml
Eu não estou entendo o porque de não achar a criatura que foi usada, mas vou mudar pra ser usada em quem clicou na potion, vê se funciona.- (Resolvido)[Pedido] potions healando de acordo com o level ou ml
Mas a sua mana potion é pra clicar? você da use e clica no usuario ou se dar use ela automaticamente irá usar em si?- (Resolvido)[Pedido] potions healando de acordo com o level ou ml
Agora que vi os erros, estranho aqui não dar isso, pode ser diferença da distro. Testa assim:- (Resolvido)[Pedido] potions healando de acordo com o level ou ml
Aqui funcionou perfeitamente. Verifique no actions.xml se a potion está direcionando ao script correto. Passarei o que está nos meus scripts só por via das dúvidas..- (Resolvido)[Pedido] potions healando de acordo com o level ou ml
Sim, funciona. Acrescentado rates nas mana potions.- (Resolvido)[SPELL] HEALAR 2 PLAYER AO MESMO TEMPO
Só ir mudando o posx e posy até ficar no local que deseja.- (Resolvido)[Pedido] potions healando de acordo com o level ou ml
Configure a rate que multiplica pelo level da respectiva health potion na tabela "POTIONS" onde tem "rate = x". Aqui funcionou, mas não sei se tem algo diferente da sua versão.- (Resolvido)[SPELL] HEALAR 2 PLAYER AO MESMO TEMPO
Faça bom proveito.- (Resolvido)[SPELL] HEALAR 2 PLAYER AO MESMO TEMPO
Não entendi, seria tipo heal friend "Fulano Dai cura ele e a si? E se usar em si mesmo, só curaria 1x certo?- Tornar tile walkable
@Edit: era no pre-walk do client, solved.- [C++] function onLoginCharacter(cid, ERROR_TEXT)
A diferença dela para a função onLogin seria que poderia mandar uma mensagem pro client de erro?- [AJUDA] Attack Em Area 4 Elementos
local efeitos = {54, 36, 17, 42, 10, 4, 49, 37} -- Coloque aqui os números dos respectivos efeitos que irão aparecer ao redor do alvo(Coloquei os que você me pediu via PM) local function isThrowable(pos) if getTileThingByPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}).itemid == 0 then return false end if getTileInfo(pos).protection then return false end for i = 0, 255 do pos.stackpos = i local tile = getTileThingByPos(pos) if tile.itemid ~= 0 and not isCreature(tile.uid) then if hasProperty(tile.uid, 2) then return false end end end return true end local function doVisualEffects(pos) local n = 0 for i = -1, 1 do for j = -1, 1 do posefeito = {x = pos.x + i, y = pos.y + j, z = pos.z} if (posefeito.x ~= pos.x or posefeito.y ~= pos.y) and isThrowable(posefeito) then n = n+1 doSendMagicEffect(posefeito, efeitos[n]) end end end end local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1) setCombatParam(combat, COMBAT_PARAM_BLOCKSHIELD, 1) setCombatFormula(combat, COMBAT_FORMULA_SKILL, 1, 0, 1, 0) -- Mude os danos aqui local area = createCombatArea({ {1, 1, 1}, {1, 3, 1}, {1, 1, 1} }) setCombatArea(combat, area) function onUseWeapon(cid, var) local pos = getCreaturePosition(variantToNumber(var)) doVisualEffects(pos) return doCombat(cid, combat, var) end- Porta só abre com alavanca
Me passa o id da alavanca, a posição que fica a alavanca e a posição que fica a porta.- (Resolvido)Efeito Vocation
local tab = { [9] = 35, -- [vocationID] = número da cor do texto animado [10] = 10, [11] = 18, [12] = 180 } function ariseText(cid) if not isCreature(cid) then return false end local texts = {"´ . ,", ". ´ ,", "` . ,", ", ´ ."} doSendAnimatedText(getThingPos(cid), texts[math.random(1, #texts)], tab[getPlayerVocation(cid)]) if isPlayer(cid) then addEvent(ariseText, 1000, cid) end return true end function onLogin(cid) if tab[getPlayerVocation(cid)] then ariseText(cid) end return true end- Arma Ajuda!
local combat0_Brush = createCombatObject() -- frost setCombatParam(combat0_Brush, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE) setCombatParam(combat0_Brush, COMBAT_PARAM_EFFECT, CONST_ME_ICEATTACK) setCombatParam(combat0_Brush, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SPEAR) setCombatFormula(combat0_Brush, COMBAT_FORMULA_LEVELMAGIC, -50.0, -52, -54.0, -55) setCombatArea(combat0_Brush,createCombatArea({{1, 1, 1}, {1, 3, 1}, {1, 1, 1}})) local combat1_Brush = createCombatObject() -- holy setCombatParam(combat1_Brush, COMBAT_PARAM_TYPE, COMBAT_HOLYDAMAGE) setCombatParam(combat1_Brush, COMBAT_PARAM_EFFECT, CONST_ME_HOLYDAMAGE) setCombatParam(combat1_Brush, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SPEAR) setCombatFormula(combat1_Brush, COMBAT_FORMULA_LEVELMAGIC, -50.0, -52, -54.0, -55) setCombatArea(combat1_Brush,createCombatArea({{1, 1, 1}, {1, 3, 1}, {1, 1, 1}})) local combat2_Brush = createCombatObject() -- death setCombatParam(combat2_Brush, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE) setCombatParam(combat2_Brush, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA) setCombatParam(combat2_Brush, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SPEAR) setCombatFormula(combat2_Brush, COMBAT_FORMULA_LEVELMAGIC, -50.0, -52, -54.0, -55) setCombatArea(combat2_Brush,createCombatArea({{1, 1, 1}, {1, 3, 1}, {1, 1, 1}})) local combat3_Brush = createCombatObject() -- energy setCombatParam(combat3_Brush, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE) setCombatParam(combat3_Brush, COMBAT_PARAM_EFFECT, CONST_ME_ENERGYHIT) setCombatParam(combat3_Brush, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SPEAR) setCombatFormula(combat3_Brush, COMBAT_FORMULA_LEVELMAGIC, -50.0, -52, -54.0, -55) setCombatArea(combat3_Brush,createCombatArea({{1, 1, 1}, {1, 3, 1}, {1, 1, 1}})) local combat4_Brush = createCombatObject() -- fire setCombatParam(combat4_Brush, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) setCombatParam(combat4_Brush, COMBAT_PARAM_EFFECT, CONST_ME_FIREATTACK) setCombatParam(combat4_Brush, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SPEAR) setCombatFormula(combat4_Brush, COMBAT_FORMULA_LEVELMAGIC, -50.0, -52, -54.0, -55) setCombatArea(combat4_Brush,createCombatArea({{1, 1, 1}, {1, 3, 1}, {1, 1, 1}})) local combat5_Brush = createCombatObject() -- tera setCombatParam(combat5_Brush, COMBAT_PARAM_TYPE, COMBAT_EARTHDAMAGE) setCombatParam(combat5_Brush, COMBAT_PARAM_EFFECT, CONST_ME_CARNIPHILA) setCombatParam(combat5_Brush, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SPEAR) setCombatFormula(combat5_Brush, COMBAT_FORMULA_LEVELMAGIC, -50.0, -52, -54.0, -55) setCombatArea(combat5_Brush,createCombatArea({{1, 1, 1}, {1, 3, 1}, {1, 1, 1}})) local function RunPart(c,cid,var,dirList,dirEmitPos) -- Part if (isCreature(cid)) then doCombat(cid, c, var) if (dirList ~= nil) then -- Emit distance effects local i = 2; while (i < #dirList) do doSendDistanceShoot(dirEmitPos,{x=dirEmitPos.x-dirList[i],y=dirEmitPos.y-dirList[i+1],z=dirEmitPos.z},dirList[1]) i = i + 2 end end end end function onUseWeapon(cid, var) local startPos = getCreaturePosition(cid) RunPart(combat0_Brush,cid,var) addEvent(RunPart,100,combat1_Brush,cid,var) addEvent(RunPart,200,combat2_Brush,cid,var) addEvent(RunPart,300,combat3_Brush,cid,var) addEvent(RunPart,400,combat4_Brush,cid,var) addEvent(RunPart,500,combat5_Brush,cid,var) return true end Assim?- (Resolvido)[AJUDA] Bugando Meu Server
- Mensagem de Loot
Vai no config.lua e procura por monsterLootMessage e coloca 0. Se não tiver isso no config, acho que só na source..- Showoff RohFagundes
Mas aí teria que fazer o "quadradinho" voltar a aparecer quando tirasse o equip, para que possam visualizar que existem slots ali. Ficaria interessante- Showoff RohFagundes
Seria interessante o colar ficar entre a armadura e o helmet, faria mais sentido..- Arma Ajuda!
Vai balanceando nessa parte aqui deles setCombatFormula(combat4_Brush, COMBAT_FORMULA_LEVELMAGIC, -50.0, -52, -54.0, -55)- Arma Ajuda!
Seria um atk com vários elementos de uma só vez? Ou seria um random com chance de vir um elemento por vez nesse 1x1? Poste o script e a modificação que quer- (Resolvido)Dano equivalente ao seu life atual
local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true) setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_FIREATTACK) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_FIRE) local storage = 10002 local tempo = 2 local mana = 12 local ClearMind = 10000 function onCastSpell(cid, var) if getPlayerStorageValue(cid, storage) < os.time() then if getPlayerStorageValue(cid, ClearMind) == -1 then if getCreatureMana(cid) >= mana then doCombat(cid, combat, var) setPlayerStorageValue(cid, storage, os.time() + tempo) doCreatureAddMana(cid, -mana) else doPlayerSendCancel(cid, "É preciso de "..mana.." para usar a magia.") return false end elseif getCreatureMana(cid) >= (mana/2) then health = getCreatureHealth(cid)/10 health = math.ceil(health) doTargetCombatHealth(cid, variantToNumber(var), COMBAT_FIREDAMAGE, -health, -health, -1) doCombat(cid, combat, var) doCreatureAddMana(cid, -mana/2) setPlayerStorageValue(cid, storage, os.time() + tempo) else doPlayerSendCancel(cid, "É preciso de "..mana.." para usar a magia.") return false end else doPlayerSendCancel(cid, "Você tem que esperar "..getPlayerStorageValue(cid, storage) - os.time().." segundos para usar a magia novamente.") return false end return true end- allowedMaxSizePackets - Dúvida
Deixei só 3 add events de teleport e 3 add events de dano.. pausados entre 500ms Minha net travou por 1 sec e pá, dbug. Quando minha net ta lisa não tem dbug. - (Resolvido)[Pedido] potions healando de acordo com o level ou ml
Informação Importante
Confirmação de Termo