Bem mano eu estou aki no ipod e no momento não posso te ajudar espero que alguem ai que esteja disponivel possa ajuda-lo se ninguem lhe ajudar assim que eu chegar em casa posto o script aki para você, boa sorte (:
- Fórum
- xTibia - Notícias e Suporte
- Soluções
- Archived
- Tirando Cargas Das Potions
info
Grupo: Campones
Registrado: 07/12/11
Posts: 8
Reputação: +17
Char no Tibia: Taylor Brasil

Editado Dezembro 30 por athermillard
Nossa cara, se você fizer isso vou ficar muito agradecido ! kkkkkk
Não consigo tirar essas malditas potions de jeito nenhum, só acho na internet como colocar elas infinitas e com cargas, mas nada de como tirar!
info
Grupo: Campones
Registrado: 07/12/11
Posts: 8
Reputação: +17
Char no Tibia: Taylor Brasil

Bom mano não sei se isso vai dar certo mais tenta ai:
Vá em data/actions e adicione essa tag em seu actions.xml(primeiro olhe se ela já existe se já existir apague-a e substitua):
<action itemid="7588-7591;8472-8473;7618;7620;8704" event="script" value="liquids/potions.lua"/>
Vá em data/actions/scripts/liquids e crie ou substitua o arquivo potions.lua por este
local config = {
removeOnUse = "no",
usableOnTarget = "yes",
splashable = "no",
realAnimation = "no",
healthMultiplier = 1.0,
manaMultiplier = 1.0
}
config.removeOnUse = getBooleanFromString(config.removeOnUse)
config.usableOnTarget = getBooleanFromString(config.usableOnTarget)
config.splashable = getBooleanFromString(config.splashable)
config.realAnimation = getBooleanFromString(config.realAnimation)
local POTIONS = {
[8704] = {empty = 7636, splash = 2, health = {50, 100}}, -- small health potion
[7618] = {empty = 7636, splash = 2, health = {100, 200}}, -- health potion
[7588] = {empty = 7634, splash = 2, health = {200, 400}, level = 50, vocations = {3, 4, 7, 8, 11, 12}, vocStr = "knights and paladins"}, -- strong health potion
[7591] = {empty = 7635, splash = 2, health = {500, 700}, level = 80, vocations = {4, 8, 12}, vocStr = "knights"}, -- great health potion
[8473] = {empty = 7635, splash = 2, health = {800, 1000}, level = 130, vocations = {4, 8, 12}, vocStr = "knights"}, -- ultimate health potion
[7620] = {empty = 7636, splash = 7, mana = {70, 130}}, -- mana potion
[7589] = {empty = 7634, splash = 7, mana = {110, 190}, level = 50, vocations = {1, 2, 3, 5, 6, 7, 9, 10 ,11}, vocStr = "sorcerers, druids and paladins"}, -- strong mana potion
[7590] = {empty = 7635, splash = 7, mana = {200, 300}, level = 80, vocations = {1, 2, 5, 6, 9, 10}, vocStr = "sorcerers and druids"}, -- great mana potion
[8472] = {empty = 7635, splash = 3, health = {200, 400}, mana = {110, 190}, level = 80, vocations = {3, 7, 11}, vocStr = "paladins"} -- great spirit potion
}
local exhaust = createConditionObject(CONDITION_EXHAUST)
setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100))
function onUse(cid, item, fromPosition, itemEx, toPosition)
local potion = POTIONS[item.itemid]
if(not potion) then
return false
end
if getPlayerStorageValue(cid,21066) == 100000 then
doPlayerSendTextMessage(cid,22,"Congratulations! You earned the achievement \"Potion Addict\".")
doPlayerAddAchievement(cid, 66)
end
if(not isPlayer(itemEx.uid) or (not config.usableOnTarget and cid ~= itemEx.uid)) then
if(not config.splashable) then
return false
end
if(toPosition.x == CONTAINER_POSITION) then
toPosition = getThingPos(item.uid)
end
doDecayItem(doCreateItem(2016, potion.splash, toPosition))
doTransformItem(item.uid, potion.empty)
return true
end
if(hasCondition(cid, CONDITION_EXHAUST_HEAL)) then
doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED)
return true
end
if(((potion.level and getPlayerLevel(cid) < potion.level) or (potion.vocations and not isInArray(potion.vocations, getPlayerVocation(cid)))) and
not getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES))
then
doCreatureSay(itemEx.uid, "Only " .. potion.vocStr .. (potion.level and (" of level " .. potion.level) or "") .. " or above may drink this fluid.", TALKTYPE_ORANGE_1)
return true
end
local health = potion.health
if(health and not doCreatureAddHealth(itemEx.uid, math.ceil(math.random(health[1], health[2]) * config.healthMultiplier))) then
return false
end
local mana = potion.mana
if(mana and not doPlayerAddMana(itemEx.uid, math.ceil(math.random(mana[1], mana[2]) * config.manaMultiplier))) then
return false
end
doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_MAGIC_BLUE)
if(not realAnimation) then
doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1)
setPlayerStorageValue(cid, 21066, getCreatureStorage(cid, 21066) + 1)
else
for i, tid in ipairs(getSpectators(getCreaturePosition(cid), 1, 1)) do
if(isPlayer(tid)) then
doCreatureSay(itemEx.uid, "Aaaah...", TALKTYPE_ORANGE_1, false, tid)
end
end
end
doAddCondition(cid, exhaust)
if(not potion.empty or config.removeOnUse) then
doRemoveItem(item.uid, 1)
return true
end
doRemoveItem(item.uid, 1)
doPlayerAddItem(cid, potion.empty, 1)
pot_count = getPlayerItemCount(cid, potion.empty)
doPlayerRemoveItem(cid, potion.empty, pot_count)
doPlayerAddItem(cid, potion.empty, pot_count)
return true
end
Se funcionou manda um REP+ ai (: se não funcionou mande os error tentarei fazer novamente.
Caaaaaaaaaaaaaaaaaaaara vc é F##A. Salvou a minha vida!
Funcionou certinho, sem mais problemas, muito obrigado mesmo!
REP++
Você poderia dar uma olhada nesse meu outro tópico para ver se você sabe de alguma solução por favor?
http://www.xtibia.com/forum/topic/176634-pedidocolocando-nova-vocacao-no-acc-manager-socoooorrooo/
Editado Dezembro 30 por ToissaoO
info
Grupo: Campones
Registrado: 07/12/11
Posts: 8
Reputação: +17
Char no Tibia: Taylor Brasil

Vou ver lá (:
Vlws pelo REP+


info
Grupo: Campones
Registrado: 07/11/10
Posts: 10
Reputação: 0
Char no Tibia: n/a
Bom galera, procurei que nem um retardado na net e não achei absolutamente nada sobre como remover aquelas cargas das pots de mana e health, só achei como coloca-lás então aqui vai o pedido:
Quero que alguem me manda um script pra me ajudar a remover as cargas das pots para que elas fiquem normais, assim quando usar a pot fique o empty vial como seria o normal do tibia.
Estou usandoo Best Baiak Yurots 8.60 e ele já veio com essa função de pots ammunition, só que quando usa a pot mesmo estando com 100 pots no mesmo quadradinho, todas somem de um vez só.
Por favor, se alguem souber como normalizar isso ai pra rodar o servidor direitinho com as pots normais me da essa força ai.
Agradeço desde já !