Simple script that was added in pokemonsbr.dunno.com when you writing !love your pokemon do something better or just add some skills.
Here in this script you can write !love one time per 300 seconds and your pokemon will heal 50 hp you can change it. used exhoustion function.
![](/proxy.php?image=http%3A%2F%2Fimg813.imageshack.us%2Fimg813%2F4281%2Flovejx.png&hash=a31fafd1b86ce2374d57a3f7883a7fdc)
Here in this script you can write !love one time per 300 seconds and your pokemon will heal 50 hp you can change it. used exhoustion function.
Lua:
--- Created by Apsivaflines (Erikas) for tibiapoke.zapto.org --- pheonix-ots.com ---
local waittime = 300 -- (300 seconds)
local storage = 5560
local addHealth = 50
function onSay(cid, words, param)
local summons = getCreatureSummons(cid)
if(table.maxn(summons) > 0) then -- no summons
else
doPlayerSendCancel(cid, "You don't have any summons.")
return true
end
if exhaustion.get(cid, storage) == FALSE then
if words == '!love' then
exhaustion.set(cid, storage, waittime)
doSendMagicEffect(getPlayerPosition(cid), 180)
doSendAnimatedText(getThingPos(getCreatureSummons(cid)[1]), "I wuw you", 215)
doCreatureAddHealth(getCreatureSummons(cid)[1], addHealth)
end
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You must wait another " .. exhaustion.get(cid, storage) .. " seconds.")
end
return true
end
Lua:
<talkaction words="!love" event="script" value="love.lua"/>
![](/proxy.php?image=http%3A%2F%2Fimg813.imageshack.us%2Fimg813%2F4281%2Flovejx.png&hash=a31fafd1b86ce2374d57a3f7883a7fdc)
Last edited: