• 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 Script

Amiroslo

Excellent OT User
Joined
Jul 28, 2009
Messages
6,768
Solutions
5
Reaction score
769
Create A new file in talkaction/scripts/love.lua
And Delete evrything inside it and put this
Code:
 function onSay(cid, words, param)
-- Exhausted Settings --
local exhausted_seconds = 1 -- How many seconds player will be exhausted --
local exhausted_storagevalue = 9847 -- Storage Value to store exhaust. It MUST be unused! --
-- Exhausted Settings END --


	local text = {'I love you!','My love!','Baby dear!'}
	local chance1 = math.random(1,table.getn(text))
	local chance2 = math.random(1,table.getn(text))
	local sid = getPlayerPartner(cid)
	if sid > 0 then
		if isOnline(sid) == TRUE then
			local sname = getPlayerNameByGUID(sid)
			local pid = getPlayerByNameWildcard(sname)
			local tmf = getCreaturePosition(cid)
			local	tms = getCreaturePosition(pid)
			if getDistanceBetween(tmf, tms) <= 3 then
                        if(os.time() > getPlayerStorageValue(cid, exhausted_storagevalue)) then
                                setPlayerStorageValue(cid, exhausted_storagevalue, os.time() + exhausted_seconds)
				doCreatureSay(cid, text[chance1], TALKTYPE_ORANGE_1)
				doCreatureSay(pid, text[chance2], TALKTYPE_ORANGE_1)
				doSendMagicEffect(tmf, 35)
				doSendMagicEffect(tms, 35)
                                      else
                                doPlayerSendCancel(cid, "You are exhausted.")
				return TRUE
			end
		end
	end
end
end
Then Go To talkaction/talkaction.xml
And add
Code:
	<talkaction words="!love" event="script" value="love.lua"/>

Rep++
----------
Edited:
1-I found it in my laptop and its old!!
2-I dont know the author
3-Its not mine
----
4-What it do:
When u say !love hearts effects and its for lovers or married ppl
-------
Dont FLAM
 
Last edited:
u didnt make this script. so put the real authors name on it.

and if its your so should know what it does so why dont u tell us how it works and what it does.
 
LoL,I was only trying to help
Edited^Check
 
its not mine i just found in my lap!!
 
Back
Top