Postado Março 15, 2015 10 anos tenta esse script nas actions, n esquece de remover a paralyze das spells se der certo eu coloco o bagui de mount <action itemid="2278" event="script" value="paralyze.lua"/> function onUse(cid, item, fromPosition, itemEx, toPosition) if (not (isDruid(cid) or isSorcerer(cid))) and (getPlayerGroupId(cid) <= 3) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your vocation cannot use this rune.") return FALSE end if (getPlayerMana(cid) < 700) and (getPlayerGroupId(cid) <= 3) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You don't have enough mana points.") return FALSE end if (not (isPlayer(itemEx.uid))) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You may use paralyze only on players.") return FALSE end if(getTilePzInfo(getCreaturePosition(cid)) == TRUE or getTilePzInfo(getCreaturePosition(itemEx.uid)) == TRUE) and (getPlayerGroupId(cid) <= 3) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You can't paralyze in protection zone.") return FALSE end doAddCondition(itemEx.uid, condition) doPlayerAddMana(cid, -700) if(item.type > 1) then doTransformItem(item.uid, item.itemid, item.type-1) else doRemoveItem(item.uid) end return true end
Postado Março 15, 2015 10 anos local condition = createConditionObject(CONDITION_PARALYZE) setConditionParam(condition, CONDITION_PARAM_TICKS, 20000) setConditionFormula(condition, -0.9, 40, -0.9, 0) function onUse(cid, item, fromPosition, itemEx, toPosition) if (not (isDruid(cid) or isSorcerer(cid))) and (getPlayerGroupId(cid) <= 3) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your vocation cannot use this rune.") return FALSE end if (getPlayerMana(cid) < 700) and (getPlayerGroupId(cid) <= 3) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You don't have enough mana points.") return FALSE end if (not (isPlayer(itemEx.uid))) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You may use paralyze only on players.") return FALSE end if(getTilePzInfo(getCreaturePosition(cid)) == TRUE or getTilePzInfo(getCreaturePosition(itemEx.uid)) == TRUE) and (getPlayerGroupId(cid) <= 3) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You can't paralyze in protection zone.") return FALSE end doAddCondition(itemEx.uid, condition) doPlayerAddMana(cid, -700) if(item.type > 1) then doTransformItem(item.uid, item.itemid, item.type-1) else doRemoveItem(item.uid) end return true end
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.