function NewbieBuff1 (role)
local money = HasMoney (role, 1000) -- Check for the required amount of gold (by default 1000)
if money == 0 then -- If the amount is not sufficient,
SystemNotice (role, "Do you have enough gold!") -- Display the system message about the lack of gold
end
local StateType = GetChaStateLv (role, STATE_QINGZ) -- Check if already imposed this buff
if StateType == 0 then -- if not imposed, then
AddState (role, role, STATE_QINGZ, 15, 300) -- Apply the state STATE_QINGZ in character, for a period of 300 seconds (5 minutes), with a level of 15 (not me!)
TakeMoney (role, nil, 1000) -- Select a character 1000 gold
SystemNotice (role, "blessed beginner, your defense is increased by 20 points in 5 minutes!") -- Display the system message about the successful imposition of buff
else -- Otherwise
SystemNotice (role, "You already have the blessing beginner!") -- Display a message that the buff on a player has been imposed
end
end
function NewbieBuff2 (role)
local money = HasMoney (role, 1000)
if money == 0 then
SystemNotice (role, "Do you have enough gold!")
end
local StateType = GetChaStateLv (role, STATE_QINGZ)
if StateType == 0 then
AddState (role, role, STATE_QINGZ, 16, 300)
TakeMoney (role, nil, 1000)
SystemNotice (role, "blessed beginner, your attack is increased by 10 points in 5 minutes!")
else
SystemNotice (role, "You already have the blessing beginner!")
end
end
function NewbieBuff3 (role)
local money = HasMoney (role, 1000)
if money == 0 then
SystemNotice (role, "Do you have enough gold!")
end
local StateType = GetChaStateLv (role, STATE_QINGZ)
if StateType == 0 then
AddState (role, role, STATE_QINGZ, 17, 300)
TakeMoney (role, nil, 1000)
SystemNotice (role, "blessed beginner, your standard of living increased by 50 points in 5 minutes!")
else
SystemNotice (role, "You already have the blessing beginner!")
end
end
function StandartBuff1 (role)
local money = HasMoney (role, 10000)
if money == 0 then
SystemNotice (role, "Do you have enough gold!")
end
local StateType = GetChaStateLv (role, STATE_XLZH)
if StateType == 0 then
AddState (role, role, STATE_XLZH, 10, 300) -- Apply the state STATE_XLZH (Ghost fire) 10lvl for a period of 300 seconds (5 minutes). Here the level of state can be changed. The level of state will sootvetsvovat level caster.
TakeMoney (role, nil, 10000)
SystemNotice (role, "imposed Ghost 10lvl fire for 5 minutes!")
else
SystemNotice (role, "can not use simultaneously two spells of the same type!")
end
end
function StandartBuff2 (role)
local money = HasMoney (role, 10000)
if money == 0 then
SystemNotice (role, "Do you have enough gold!")
end
local StateType = GetChaStateLv (role, STATE_SHPF)
if StateType == 0 then
AddState (role, role, STATE_SHPF, 10, 300)
TakeMoney (role, nil, 10000)
SystemNotice (role, "superimposed Tempering 10lvl for 5 minutes!")
else
SystemNotice (role, "can not use simultaneously two spells of the same type!")
end
end
function StandartBuff3 (role)
local money = HasMoney (role, 10000)
if money == 0 then
SystemNotice (role, "Do you have enough gold!")
end
local StateType = GetChaStateLv (role, STATE_TSHD)
if StateType == 0 then
AddState (role, role, STATE_TSHD, 10, 300)
TakeMoney (role, nil, 10000)
SystemNotice (role, "imposed angelic shield 10lvl for 5 minutes!")
else
SystemNotice (role, "can not use simultaneously two spells of the same type!")
end
end
function StandartBuff4 (role)
local money = HasMoney (role, 10000)
if money == 0 then
SystemNotice (role, "Do you have enough gold!")
end
local StateType = GetChaStateLv (role, STATE_MLCH)
if StateType == 0 then
AddState (role, role, STATE_MLCH, 10, 300)
TakeMoney (role, nil, 10000)
SystemNotice (role, "superimposed intense magic 10lvl for 5 minutes!")
else
SystemNotice (role, "can not use simultaneously two spells of the same type!")
end
end
function StandartBuff5 (role)
local money = HasMoney (role, 10000)
if money == 0 then
SystemNotice (role, "Do you have enough gold!")
end
local StateType = GetChaStateLv (role, STATE_FZLZ)
if StateType == 0 then
AddState (role, role, STATE_FZLZ, 10, 300)
TakeMoney (role, nil, 10000)
SystemNotice (role, "You Go Pimp With Tempest boost by PureJ 10lvl for 5 minutes!")
else
SystemNotice (role, "can not use simultaneously two spells of the same type!")
end
end