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

Blessing Script v. 0.2.2 (MS) 8.42

Martiimeus

●тнυg●ℓιƒє● ρα¢ 4 єνєя
Joined
Feb 3, 2009
Messages
500
Reaction score
1
Location
gєямαηу
Hiho Guys,

ye.. it's me, again!

Whatever,
I'm looking for a talkaction/script *!bless* which gives you all blessings but you should pay for..

Maybe 50k,

I can't get it so I decided to write my problem here on otland and hope that you guys can solve my problem:)

Regards,
Martin:thumbup:^_^
 
Here you are ;)

blesses.lua
Lua:
local bless = {1, 2, 3, 4, 5}
local cost = 1337

function onSay(cid, words, param)
	for i = 1, table.maxn(bless) do
		if(getPlayerBlessing(cid, bless[i])) then
		doPlayerSendCancel(cid, "You already have one or more of these blessings.")
	         return TRUE
	end
        end
if(doPlayerRemoveMoney(cid, cost) == TRUE) then
	for i = 1, table.maxn(bless) do
		doPlayerAddBlessing(cid, bless[i])
	end
		doPlayerSendTextMessage(cid,24, "You have bought blessings.")
		doSendMagicEffect(getPlayerPosition(cid), 40)
	else
	         doPlayerSendCancel(cid, "You dont have enought money!")
		end
	return TRUE
end

talkactions.xml
Lua:
<talkaction words="!bless" script="blesses.lua"/>
 
Last edited:
Here you are ;)

blesses.lua
Lua:
local bless = {1, 2, 3, 4, 5}
local cost = 1337

function onSay(cid, words, param)
	for i = 1, table.maxn(bless) do
		if(getPlayerBlessing(cid, bless[i])) then
		doPlayerSendCancel(cid, "You already have one or more of these blessings.")
	         return TRUE
	end
        end
if(doPlayerRemoveMoney(cid, cost) == TRUE) then
	for i = 1, table.maxn(bless) do
		doPlayerAddBlessing(cid, bless[i])
	end
		doPlayerSendTextMessage(cid,24, "You have bought blessings.")
		doSendMagicEffect(getPlayerPosition(cid), 40)
	else
	         doPlayerSendCancel(cid, "You dont have enought money!")
		end
	return TRUE
end

actions.xml
Lua:
<talkaction words="!bless" script="blesses.lua"/>

WOW! MAN THX IM GONNA REP YA :D

*rep me back* xD:thumbup::thumbup::thumbup: you're just great!!THX
 
Back
Top