• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

{Requesting} Aol/Bless Talkactions for Linux TFS! (Works successfuly)

Status
Not open for further replies.

Moataz Hero

Titania.Sytes.Net
Joined
Jan 1, 2010
Messages
417
Reaction score
11
Location
Wars Land!
Hello everyone in otland
I am {Requesting} Aol/Bless Talkactions for Linux TFS! (Works successfuly)
hope someone get them for me!
Regards
Moataz!
 
http://otland.net/f81/basic-talkactions-very-useful-132989/

Bless
XML:
<talkaction words="!buybless;/buybless;!bless;/bless" script="bless.lua" />
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

Aol
XML:
<talkaction words="!aol;/aol" event="script" value="aol.lua"/>
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
 
LUA:
--#################################################
--### Scripted by PhoOwned                      ###
--### Contact: [email][email protected][/email]                   ###
--###                                           ###
--### Auto AOL and / or Bless buyer after death ###
--### version: 1.0                              ###
--#################################################

local autoAOLStorage = 57928

function onSay(cid, words, param)
	if(param == '1' or param == 'on') then
		doCreatureSetStorage(cid, autoAOLStorage, 1)
		doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'Auto-buy AOL after death - ON!')
	elseif(param == '0' or param == 'off') then
		doCreatureSetStorage(cid, autoAOLStorage)
		doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'Auto-buy AOL after death - OFF!')
	elseif(param == '') then
		if(doPlayerRemoveMoney(cid,1000)) then
			doPlayerAddItem(cid,2173,1)
			doCreatureSay(cid,'AOL',TALKTYPE_ORANGE_1)
			doSendMagicEffect(getThingPosition(cid),CONST_ME_BATS)
			doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have bought Amulet of Loss!')
		else
			doSendMagicEffect(getThingPosition(cid),CONST_ME_POFF)
			doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,"You need 1 crystal coin to get AOL!")
		end
	else
		doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'Wrong param')
	end    
	return 1
end
 
LUA:
--Script by Amiroslo
function onSay(cid, words, param)
if getPlayerMoney(10000) then
      doPlayerRemoveMoney(cid, 10000)
      doPlayerAddItem(cid, 2173)
    else
      doPlayerSendTextMessage(cid,15,'You dont have enough money!')
    end
    return TRUE
end
 
If none fo those scripts worked I doubt this one will either, but try it.
LUA:
function onSay(cid,words,param)
doPlayerAddItem(cid, 2173) 
                        doPlayerRemoveMoney(cid, 50000) 
                        doPlayerSendTextMessage(cid, 24, "You've succesfully bought " .. param .. "!") 
                return true 
                else 
                        return doPlayerSendCancel(cid, "You do not have 10k.")
			end
		return true
	end
 
PHP:
function onSay(cid, words, param)
        if getPlayerItemCount(cid, 2160) >= 1 then
		doPlayerAddItem(cid, 2173, 1)
                doPlayerRemoveItem(cid, 2160, 1)
		doPlayerSendTextMessage(cid, 19,"You've bought an amulet of loss for 1 crystal coin.")
		doSendMagicEffect(getPlayerPosition(cid), 19)
	else
		doPlayerSendCancel(cid, "Sorry, you don't got 1 crystal coin.")
		doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
	end
	return true
end

this one is working because i've made it doremoveitem :)
so i want the blessing.lua too with doremoveitem
anyone can make that for me?
 
Status
Not open for further replies.

Similar threads

Back
Top