Ja sei que existe 1 boost stone aqui no XTibia mais ah minha é diferente,ela é própria para 'Centurion v6.0' ou anteriores =D
Vamos lá,
Vá na pasta C:\Users\nomedoseupc\ondetaoseupoke\Nomedoseuserver\data\actions\scripts e crie um arquivo .lua chamado Booststone,
Se você não sabe criar ,copie algum arquivo .lua qualquer e renome-ie para Booststone,abra ele e dentro tire TUDO e cole isso
function onUse(cid, item, topos, item2, frompos)
local myball = getPlayerSlotItem(cid, 8)
local boost = getItemAttribute(myball.uid, "boost") or 0
local boosts = 0
if boost == 50 then
return doPlayerSendCancel(cid, "Sorry, is not possible.")
end
if #getCreatureSummons(cid) >= 1 then
if getPlayerAccess(cid) == 6 then
boosts = 49
end
boosts = boosts + 1
local pokemon = getItemAttribute(myball.uid, "poke")
local off = pokes[pokemon].offense * boost_rate * boosts
local def = pokes[pokemon].defense * boost_rate * boosts
local agi = pokes[pokemon].agility * boosts
local spatk = pokes[pokemon].specialattack * boost_rate * boosts
local vit = pokes[pokemon].vitality * boost_rate * boosts
doSetItemAttribute(myball.uid, "boost", boost + boosts)
doItemSetAttribute(myball.uid, "offense", getItemAttribute(myball.uid, "offense") + off)
doItemSetAttribute(myball.uid, "defense", getItemAttribute(myball.uid, "defense") + def)
doItemSetAttribute(myball.uid, "speed", getItemAttribute(myball.uid, "speed") + agi)
doItemSetAttribute(myball.uid, "specialattack", getItemAttribute(myball.uid, "specialattack") + spatk)
doItemSetAttribute(myball.uid, "vitality", getItemAttribute(myball.uid, "vitality") + vit)
doRemoveItem(item.uid)
doSendMagicEffect(getThingPos(item2.uid), 40)
doPlayerSendTextMessage(cid, 27, "Congrulations, your "..pokemon..", as beem boosted +1.")
doPlayerSendTextMessage(cid, 27, "Now your "..pokemon.." have a boost +"..boosts + boost..".")
doSendAnimatedText(getThingPos(item2.uid), "BOOST!", 71)
doPlayerSetVocation(cid,4)
else
return doPlayerSendCancel(cid, "Only use in yours pokemons.")
end
return true
end
Feche e salve
agora vá em data/actions/actions.xml abra com o bloco de notas
e adicione isso :
<action itemid="12415" event="script" value="booststone.lua" allowfaruse="1"/>
agora vá em items.xml na pasta data/items,abra com o bloco de notas e adicione isso
<item id="12415" article="a" name="Boost Stone">
<attribute key="description" value= "AQUI VOCE COLOCA AH DESCRIÇÃO QUE VAI APAREÇER NO SEU SERVER" />
Feche e salve
agora va no seu server e ligue
Dica : se já estiver ligado é so voce entrar no seu server e no chat escreva /reload actions e /reload items
e ai é so voce escrever /i boost stone e vai criar ah boost stone