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

Solved Talkaction learn

Keeq

New Member
Joined
Nov 6, 2012
Messages
100
Reaction score
0
Hi, there is a possibility to command! talkaction "Bless" was only available through a quest made​​? Please help! REP FOR HELP ME
script (NO MY )
local bless = {1, 2, 3, 4, 5}
local cost = 250000
function onSay(cid, words, param)
for i = 1, table.maxn(bless) do
if(getPlayerBlessing(cid, bless)) then
doPlayerSendCancel(cid, "You have already all blessings.")
return TRUE
end
end

if(doPlayerRemoveMoney(cid, cost) == TRUE) then
for i = 1, table.maxn(bless) do
doPlayerAddBlessing(cid, bless)
end
doCreatureSay(cid, "You are now blessed!" ,19)
doSendMagicEffect(getPlayerPosition(cid), 49)
else
doPlayerSendCancel(cid, "You don\'t have enough money.")
end
return TRUE
end
 
Under function onSay(cid, words, param)
Lua:
if(getPlayerStorageValue(cid, 9876) < 1) then -- instead of 9876 the storage of your quest
	doPlayerSendCancel(cid, "You need to complete the ... quest first.")
	return false
end
 
Back
Top