Solutions
-
Danves's post in (Resolvido)[Pedido] potions healando de acordo com o level ou ml was marked as the answer
-
Danves's post in (Resolvido)[SPELL] HEALAR 2 PLAYER AO MESMO TEMPO was marked as the answerSó ir mudando o posx e posy até ficar no local que deseja.
-
Danves's post in (Resolvido)Dano equivalente ao seu life atual was marked as the answerlocal 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
-
Danves's post in (Resolvido)SummonAttack was marked as the answerfunction onTarget(cid, target) if isSummon(target) and isPlayer(cid) and getCreatureMaster(target) == cid then return false end return true end function onStatsChange(cid, attacker, type, combat, value) if type == STATSCHANGE_HEALTHLOSS and isSummon(cid) and isPlayer(attacker) and getCreatureMaster(cid) == attacker then return false end return true end Acredito que não precisa do Oncast, vendo que você não poderá targetar ele e nem tirar dano com AOE por causa do statschange.
-
Danves's post in (Resolvido)SPELL SEM MAGIC EFFECT was marked as the answerlocal tempo = 5 -- tempo do paralyze em segundos local effect = 221 -- efeito que vai sair ao redor do player local exausted = 8 -- exhausted em segundos local storage = 13098 -- storage do exausted local condition = createConditionObject(CONDITION_PARALYZE) setConditionParam(condition, CONDITION_PARAM_TICKS, tempo*1000) setConditionParam(condition, CONDITION_PARAM_SPEED, -5000) function onCastSpell(cid, var) local target = getCreatureTarget(cid) local function Efect() if not isCreature(target) then return true end local positions = { [1] = {x=getCreaturePosition(target).x+1, y=getCreaturePosition(target).y+1, z=getCreaturePosition(target).z}, [2] = {x=getCreaturePosition(target).x+1, y=getCreaturePosition(target).y, z=getCreaturePosition(target).z}, [3] = {x=getCreaturePosition(target).x+1, y=getCreaturePosition(target).y-1, z=getCreaturePosition(target).z}, [4] = {x=getCreaturePosition(target).x-1, y=getCreaturePosition(target).y+1, z=getCreaturePosition(target).z}, [5] = {x=getCreaturePosition(target).x-1, y=getCreaturePosition(target).y, z=getCreaturePosition(target).z}, [6] = {x=getCreaturePosition(target).x-1, y=getCreaturePosition(target).y-1, z=getCreaturePosition(target).z}, [7] = {x=getCreaturePosition(target).x, y=getCreaturePosition(target).y+1, z=getCreaturePosition(target).z}, [8] = {x=getCreaturePosition(target).x, y=getCreaturePosition(target).y-1, z=getCreaturePosition(target).z} } for i=1, #positions do if isWalkable(positions[i]) then end end end local function No_Move_Target() if isCreature(target) then doCreatureSetNoMove(target, 0) end return TRUE end if isPlayer(cid) and exhaustion.check(cid, storage) == TRUE then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, storage) .. " segundos para usar novamente.") return false end exhaustion.set(cid, storage, exausted) doCreatureSetNoMove(target, 1) doAddCondition(target, condition) local posefe = getCreaturePosition(target) posefe.x = posefe.x+3 doSendMagicEffect(posefe, effect) addEvent(No_Move_Target, tempo*1000) local t = 0 while t <= tempo*1000 do addEvent(Efect, t) t = t+300 end return true end
-
Danves's post in (Resolvido)[Dúvida] Caterpie [15] was marked as the answerSe sua base for PDA vai em data > lib > configurations.lua, na parte do começo hideSummonsLevel = false
mude o false para true.
E em hideWildsLevel = false
mude para true também.
-
Danves's post in (Resolvido)Moves Com Exausted was marked as the answerVou te passar o meu move1.lua do talkactions..
Logo no início tem "cdtime", tá 0.5(meio segundo de exhausted).
Deixe como preferir.
PS: Se não for PDA com level system, passa o seu moves1.lua que eu edito com o cooldown
-
Danves's post in (Resolvido)Não sei porque esse script não está dando certo was marked as the answerQue nada, eu levei só 10minutos a mais.
Bom, não tava afim de postar, mas se alguém quiser usar esse sistema:
-
Danves's post in (Resolvido){Ajuda} Editar script Exori Vis was marked as the answer<instant name="Solaris" words="Solaris" lvl="12" mana="20" prem="0" range="5" needtarget="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="solaris.lua"><vocation id="2"/></instant>
-
Danves's post in (Resolvido)Mensagem Quando O Char Loga was marked as the answerVá em data/talkaction/scripts copie qualquer arquivo que seja .lua, mude o nome para talkClan e cole isso dentro
agora no talkaction.xml adicione essa tag: <talkaction words="#getSto#" event="script" value="talkClan.lua"/> -
Danves's post in (Resolvido){Pedido} Teleportar quando acabar a Premium was marked as the answerFiz um creaturescripts que talvez só ele já funcione. Crie um com o nome vip.lua e cole dentro function onLogin(cid) if getPlayerPremiumDays(cid) > 0 and getPlayerStorageValue(cid, 95498) == -1 then setPlayerStorageValue(cid, 95498, 1) end if getPlayerPremiumDays(cid) <= 0 and getPlayerStorageValue(cid, 95498) == 1 then setPlayerStorageValue(cid, 95498, -1) local temple = getTownTemplePosition(getPlayerTown(cid)) doTeleportThing(cid, temple) doPlayerPopupFYI(cid, "Sua vip acabou.") end return true end Se não quer que teleporte pro templo, edite essa parte de vermelho com as pos e tal
local temple = getTownTemplePosition(getPlayerTown(cid))
No creaturescripts.xml <event type="login" name="Vip" script="vip.lua"/> No login.lua registerCreatureEvent(cid, "Vip") -
Danves's post in (Resolvido)MAX de magic lvl 156 como aumentar? was marked as the answerSim, pois voce ta limitando o ml maximo pra quando o requerimento for maior que 200 ._. (nem sei com oainda chegou a ml 86)
Faz assim
if(currReqMana > currReqMana * 2)
É matematicamente impossivel limitar assim, hahaha
-
Danves's post in (Resolvido)[Help] Como trocar o Efeito da Magia no Poketibia was marked as the answerPara mudar o efeito dos fogos caindo do céu, dá ctrl f e ache as partes que tiverem:
doSendDistanceShoot(newpos, pos, 3)
Mude 3 para o efeito que quer(teste seus efeitos dando /x com sua conta de adm, ex: esse dai é o /x 3)
Para mudar o efeito quando acertam o chão:
setCombatParam(meteor, COMBAT_PARAM_EFFECT, 236)
Mude 236 para o desejado. Teste qual quer com o comando /z, ex: /z 236.