• 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 Some talkactions that I want to share with You.

LucasFerraz

Systems Analyst
Joined
Jun 10, 2010
Messages
2,858
Reaction score
96
Location
Brazil
After a long time searching this scripts, I've found them. I want to share with you.
I don't remember who made it. IT'S NOT BY ME!

{Talkactions}

Save yourself when you want (with delay)
In talkactions.xml add:
XML:
        <talkaction words="!saveme" event="script" value="savecharacter.lua"/>

In data/talkactions/scripts create a savecharacter.lua and add:
Lua:
  local waittime = 600 --Default (30 seconds)
local storage = 5560

function onSay(cid, words, param, channel)
        if exhaustion.get(cid, storage) == FALSE then
                doPlayerSave(cid)
                exhaustion.set(cid, storage, waittime)
                doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You have successfully saved your character.")
        else
                doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You must wait another " .. exhaustion.get(cid, storage) .. " seconds.")
        end    
        return TRUE
end


!bless 100%
Description: Are you tired of that scripts that If player have no money to buy ALL will buy only some blesses? What happens after? Player die, lose things and insult you. YOUR PROBLEM IS SOLVED!
In talkactions.xml add:
XML:
	<talkaction words="!buybless;/buybless;!bless;/bless" script="bless.lua" />

In data/talkactions/scripts create a bless.lua and add:
Lua:
-- [( Made by LucasOlzon from otland.net )] --
function onSay(cid, words, param)
local fail = 0

	if getPlayerLevel(cid) < 31 then
		cost = 2000
	else
		cost = ((getPlayerLevel(cid) - 30) * 200) + 2000
	end
	
	if cost > 20000 then
		cost = 20000
	end

	for i = 1, 5 do
		if getPlayerBlessing(cid, i) then
			fail = fail + 1
		else
			if doPlayerRemoveMoney(cid, cost) == TRUE then
				doPlayerAddBlessing(cid, i)
				if i == 5 and not(fail == 5) then
					doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_RED)
				end
			else
doCreatureSay(cid, "You do not have enough money to buy all the blessings or cap/slot to get the rest of money!", TALKTYPE_ORANGE_1)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
				break
			end
		end
	end
	if fail == 5 then
		doPlayerSendCancel(cid, "You already have all the blessings!")
	end
return TRUE
end


!bless 100%
In talkactions.xml add:
XML:
	        <talkaction words="!aol;/aol" event="script" value="aol.lua"/>

In data/talkactions/scripts create a aol.lua and add:
Lua:
-- [( Made by LucasOlzon from otland.net )] --
function onSay(cid, words, param)

if doPlayerRemoveMoney(cid, 10000) == TRUE then
local bp = doPlayerAddItem(cid, 2173, 1)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_RED)
else
doCreatureSay(cid, "You do not have enough money", TALKTYPE_ORANGE_1)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
return true
end
 
Last edited:
Back
Top