LucasFerraz
Systems Analyst
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:
In data/talkactions/scripts create a savecharacter.lua and add:
!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:
In data/talkactions/scripts create a bless.lua and add:
!bless 100%
In talkactions.xml add:
In data/talkactions/scripts create a aol.lua and add:
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: