Postado Julho 27, 2015 9 anos No momento eu tenho esse script de uma pot vip em meu servidor, no caso ela heala toda life e mana do personagem, gostaria de saber se alguém consegue ajeitar para ela healar apenas 150k no máximo de life e mana, segue: local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100)) function onUse(cid, item, fromPosition, itemEx, toPosition) if(not isPlayer(itemEx.uid)) then return FALSE end if(hasCondition(cid, CONDITION_EXHAUST_HEAL)) then doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED) return TRUE end doAddCondition(cid, exhaust) doCreatureAddMana(itemEx.uid, (getCreatureMaxMana(itemEx.uid))) doCreatureAddHealth(itemEx.uid, (getCreatureMaxHealth(itemEx.uid))) doSendMagicEffect(getThingPos(itemEx.uid), 5) doCreatureSay(itemEx.uid, "I feel powerful!", TALKTYPE_ORANGE_1) doRemoveItem(item.uid, 1) return TRUE end
Postado Julho 27, 2015 9 anos Estou pelo celular, se ninguém resolver pra você, amanhã eu faço e edito aqui. Só uma dúvida, qual o seu OT? Baiak Thunder New TFS Downgrade [TFS 1.5 - 8.60] Gesior Ferobra Downgrade Evento Monster Hunt [TFS 1.X] Evento SafeZone [TFS 1.X] Online Bonus System [TFS 1.X] Dodge & Critical [TFS 1.X] Nova moeda, funcionando com NPCs [TFS 1.X] Square System [TFS 1.X] Loot Channel [TFS 1.X] Gerenciador de Quests [All TFS] NPCs comprando vial/flasks por storage [TFS 1.X] AntiBot [TFS 1.X] Como compilar TFS 0.X
Postado Julho 27, 2015 9 anos Caso ainda você queira o script separado do potions.lua, aqui está : local health = {min = 65000, max = 75000} local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100)) function onUse(cid, item, fromPosition, itemEx, toPosition) if(not isPlayer(itemEx.uid)) then return FALSE end if(hasCondition(cid, CONDITION_EXHAUST_HEAL)) then doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED) return TRUE end doAddCondition(cid, exhaust) doCreatureAddMana(itemEx.uid, math.random(health.min, health.max)) doCreatureAddHealth(itemEx.uid, math.random(health.min, health.max)) doSendMagicEffect(getThingPos(itemEx.uid), 5) doCreatureSay(itemEx.uid, "I feel powerful!", TALKTYPE_ORANGE_1) doRemoveItem(item.uid, 1) return TRUE end em local health = {min = 65000, max = 75000} min é o mínimo a healar max é o máximo.
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.