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

TalkAction Love declaration mod

Darad

New Member
Joined
Jun 23, 2009
Messages
119
Reaction score
1
Mod to declare your love to someone.

Didn't test the distance check
Also it has no exhaustion so it's a good way to spam someone. Will add this later.


PHP:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Love" version="1.0" author="Darad @ Babylon server" enabled="yes">
	<talkaction words="!love" event="buffer"><![CDATA[
	if(param ~= '') then
		local lover = getPlayerByName(param)
		if(lover == cid) then
			doPlayerSendCancel(cid, 'Loving yourself is a good thing, but kinda weird...')
			return true
		end
		if(isPlayer(lover)) then
			if(getDistanceBetween(getCreaturePosition(lover), getCreaturePosition(cid)) > 7) then
				doPlayerSendCancel(cid, 'Lover out of range, better luck next time!')
				return true
			else
				doSendMagicEffect(getCreaturePosition(lover), CONST_ME_HEARTS)
				doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HEARTS)
				doSendAnimatedText(getCreaturePosition(lover), "in love", TEXTCOLOR_RED)
				doSendAnimatedText(getCreaturePosition(cid), "in love", TEXTCOLOR_RED)
				doPlayerSendTextMessage(lover, MESSAGE_STATUS_CONSOLE_RED, getPlayerName(cid) .. " loves you very much!")
				return true
			end
		end
		doPlayerSendCancel(cid, 'Lover needs to be a player')
		return true
	end
	doPlayerSendCancel(cid, 'Need a player to love')
	return true
	]]></talkaction>
</mod>
 
Leave the computer, and maybe find love in real life.

Then you wont need such an asinine script.

__________________

Are you tired of the customer neglect of TibiaBotNG? Do you think LoW needs to add more updates? Are you tired of using a crappy bot because its a cheap alternative to Elf? Well, dont be tired anymore! Check out my blog!
 
Last edited:
Leave the computer, and maybe find love in real life.

Then you wont need such an asinine script.

Don't worry mate, I'm a married man and really happy with my wife. Sharing love is a good thing, and I wrote the mod to have some more fun aspects on my server :)
 
Back
Top