Postado Setembro 13, 2011 13 anos Esse script eh de venda de potions, Tenta em liquids para ver, depois que vc mudar eh so dar reload nas Action
Postado Setembro 13, 2011 13 anos Autor Mudei,mas ainda ele heala 900~~1k Olha como deixei: local MIN = 2000 local MAX = 4000 local EMPTY_POTION = 7635 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(isKnight(itemEx.uid)) or getPlayerLevel(itemEx.uid) < 130) and getPlayerCustomFlagValue(itemEx.uid, PlayerCustomFlag_GamemasterPrivileges) == FALSE) then doCreatureSay(itemEx.uid, "Only knights of level 130 or above may drink this fluid.", TALKTYPE_ORANGE_1) return TRUE end if doCreatureAddHealth(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, "Bbbbh...", TALKTYPE_ORANGE_1) return TRUE end
Postado Setembro 17, 2011 13 anos Tenta mudar essa linha em liquids/potions.lua [8473] = {empty = 7635, splash = 2, health = {2000, 4000}, level = 130, vocations = {4, 8}, vocStr = "knights"}, Editado Setembro 17, 2011 13 anos por Kimoszin (veja o histórico de edições)
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.