Exusted Em Potion

frankvp
em Lixeira Pública

frankvp

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 24/03/08Posts: 0Char no Tibia: Alema

bem no config ta assim:

-- Item usage

timeBetweenActions = 100

timeBetweenExActions = 100

checkCorpseOwner = "yes"

hotkeyAimbotEnabled = "yes"

maximumDoorLevel = 500

 

Script da potion

 

local MIN = 200

local MAX = 300

local EMPTY_POTION = 7635

 

local exhaust = createConditionObject(CONDITION_EXHAUST)

setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 500000))

 

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) < 80) and getPlayerCustomFlagValue(itemEx.uid, PlayerCustomFlag_GamemasterPrivileges) == FALSE) then

doCreatureSay(itemEx.uid, "Only sorcerers and druids of level 80 or above may drink this fluid.", 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)

doTransformItem(item.uid, EMPTY_POTION)

return TRUE

end

 

 

ja coloquei ate ZERO

e nada

valeu

satan666

Antichrist Superstar
avatar
Conde
Conde

INFOS

Grupo: CondeRegistrado: 07/05/08Posts: 612Char no Tibia: leviana luciferiana

(getConfigInfo('timeBetweenExActions') - 500000))

 

to

(getConfigInfo('timeBetweenExActions') - 100))

 

caso não funcione dite a versão e que tipo de distro estas utilizando.

creationb.jpg

"Um Deus que usasse seu poder para criar seres humanos que de antemão sabia que seriam atormentados eternamente, e que os predestinasse a isso,



não poderia ser sábio, nem justo e tampouco amoroso.

Além de nos submeter a isso vim a nos julgar e condenar por nossos atos aos tormentos do inferno.

pra minha pessoa isso não é um Deus Pai amoroso e bondoso como o chaman, seu padrão seria muito mais inferior do que o de muitos homens."

frankvp

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 24/03/08Posts: 0Char no Tibia: Alema

MALZ, bem quero colocar para beber mais lento o exausted ta zero nao sei como o char nao morre afogado .... hahaha

já coloquei esta linha * setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 500000))* assim e

*setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 0)) * assim :/

 

bem a versão é :

projeto XvX Server Config

sqlDatabase = theforgottenserver

sqlFile = forgottenserver.s3db