Postado Junho 16, 2018 7 anos Oi, Gostaria de uma spell que liberaria para o player que fizer X quest que da X storage (ja tenho o script da quest) Olá, que tal dar uma olhada no meu projeto? https://discord.gg/bsNkbsyJ3W
Postado Junho 16, 2018 7 anos Solução @King Laker local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_HITCOLOR, COLOR_RED) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -50.2, 1, -65.8, 1) function onCastSpell(cid, var) local waittime = 1.5 -- Tempo de exhaustion local exhaust = 250002 local effect = 77 local PosTarget = {x=getThingPosition(getCreatureTarget(cid)).x, y=getThingPosition(getCreatureTarget(cid)).y-1, z=getThingPosition(getCreatureTarget(cid)).z} if exhaustion.check(cid, exhaust) then doPlayerSendCancel(cid, "You are exhausted") return false end local storage = 45251 -- Storage para pdoer usar a spell if getCreatureStorage(cid, storage) == -1 then doPlayerSendTextMessage(cid, 27, "Complete a quest para poder usar a spell") return false end doSendMagicEffect(PosTarget, effect) exhaustion.set(cid, exhaust, waittime) return doCombat(cid, combat, var) end
Postado Junho 22, 2018 6 anos Autor @Sttorm vc consegue fazer uma spell de paralyze com storage? Olá, que tal dar uma olhada no meu projeto? https://discord.gg/bsNkbsyJ3W
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.