Editar Potions (mp,hp,smp,shp,gmp,ghp,gsp e ultimate hp)
Eu não consigo editar as potions do meu baiak,eu quero que elas healem menus, porém nada que eu faço causa alguma mudança in game.
Por exemplo eu editei meu ultimate_health.lua na pasta:
C:\Users\nome de usuario\Downloads\pasta do server\data\actions\scripts\liquids
Do seguinte geito:
local MIN = 750 local MAX = 750 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
Más mesmo assim ele chega a healar 1500 de hp!
Como isso?
Alguem me ajuda pelo amor de Deus,
preciso conseguir editar o heal das potions,
para poder melhorar o rpg do meu server.
Eu estou usando um theforgotten server 0.4
Por causa que instalei o Guild war system no meu baiak.
link do Guild War System - Caso o problema com o script tenha alguma relação com ele:
http://www.xtibia.co...em-com-escudos/
Grato