• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

TalkAction !love from pokemons br

Erikas Kontenis

Board Moderator
Staff member
Board Moderator
Joined
Jul 3, 2009
Messages
1,870
Reaction score
576
Location
Lithuania
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.

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"/>

 
Last edited:
i'm wrong or magic effect should appear in pokemon position?
Code:
doSendMagicEffect(getThingPos(summons[1]), 180)
 
Back
Top