Tipo do script: Quero meter a Manarune funcionando pra todas as vocações.
Protocolo (versão do Tibia): Tibia 8.57
Servidor utilizado: New Slayer Yurots --->Tópico.<---
Bom é assim eu quero meter minha MR (ManaRune) funcionando para todas as vocações.
O Script eh assim :
local MIN = 1000
local MAX = 1000
local EMPTY_POTION = 2281
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100))
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isPlayer(itemEx.uid) == FALSE then
return FALSE
end
if hasCondition(cid, CONDITION_EXHAUST_HEAL) == TRUE then
doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED)
return TRUE
end
if((not(isSorcerer(itemEx.uid) or isDruid(itemEx.uid)) or getPlayerLevel(itemEx.uid) < 8) and getPlayerCustomFlagValue(itemEx.uid, PlayerCustomFlag_GamemasterPrivileges) == FALSE) then
doCreatureSay(itemEx.uid, "Somente Sorcerers e Druids Level 100 Podem Usar Essa Runa.", TALKTYPE_ORANGE_1)
return TRUE
end
if doPlayerAddMana(itemEx.uid, math.random(MIN, MAX)) == LUA_ERROR then
return FALSE
end
doAddCondition(cid, exhaust)
doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1)
return TRUE
end
Alguem me pode ajudar?
Eu ja tentei meter assim:
local MIN = 1000
local MAX = 1000
local EMPTY_POTION = 2281
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100))
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isPlayer(itemEx.uid) == FALSE then
return FALSE
end
if hasCondition(cid, CONDITION_EXHAUST_HEAL) == TRUE then
doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED)
return TRUE
end
if((not(isSorcerer(itemEx.uid) or isDruid(itemEx.uid)) or isPaladin(itemEx.uid)) or isKnight(itemEx.uid)) or getPlayerLevel(itemEx.uid) < 8) and getPlayerCustomFlagValue(itemEx.uid, PlayerCustomFlag_GamemasterPrivileges) == FALSE) then
doCreatureSay(itemEx.uid, "Somente Sorcerers e Druids Level 100 Podem Usar Essa Runa.", TALKTYPE_ORANGE_1)
return TRUE
end
if doPlayerAddMana(itemEx.uid, math.random(MIN, MAX)) == LUA_ERROR then
return FALSE
end
doAddCondition(cid, exhaust)
doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1)
return TRUE
end
Mais não deu
Se eu meter como eu meti nessi spoiler^(Em Cima)
A manarune fika curando conforme o level tipow lvl 257 ja fikava curando 9000,6000,5032.
Não tem como vocês me arrumar isso?
Flw
PS:Vermelho: Foi o que eu pus.