Postado Maio 29, 2013 11 anos Então galera, estou com um problema aqui no script de potions, nenhuma delas quando eu altero a quantidade que deve healar, nao muda absolutamente nada, vou dar um exemplo da ultimate health potion, eu coloquei pra healar 1k como mostra o script abaixo, só que no OT ela heala 700, e eu vou alterando no script , mesmo assim nao muda nada... script abaixo: Citar local MIN = 1300 local MAX = 1500 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, "Aaaah...", TALKTYPE_ORANGE_1) return TRUE end OBS : esta na pasta Data/actions/scripts/liquids Ajuda pleaase
Postado Maio 29, 2013 11 anos cara volta como veio no ot a script e vai ,actions > scripts > liquids e abre o arquivo potions.lua ai lá vc muda po
Postado Maio 30, 2013 11 anos vc reinicio o ot ? Cara vai la´em potions.lua la emcima tem assim Citar [7620] = {empty = 7636, splash = 7, mana = {150, 200}}, -- mana potion [7589] = {empty = 7634, splash = 7, mana = {350, 450}, level = 50, vocations = {1, 2, 3, 5, 6, 7}, vocStr = "sorcerers, druids and paladins"}, -- strong mana potion [7590] = {empty = 7635, splash = 7, mana = {500, 650}, level = 80, vocations = {1, 2, 5, 6}, vocStr = "sorcerers and druids"}, -- great mana potion {500, 650} 500 minimo 650 maximo
Postado Junho 3, 2013 11 anos Autor Sim eu sei, eu fiz tudo isso não tinha funcionado... Tive que pegar outro script, baixei outro mapa peguei outro script e funcionou... MAS TA TUDO RESOLVIDO, podem mover para pedidos resolvidos
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.