- Buffer
function NewbieBuff1 (role)
local money = HasMoney (role, 1000) - Check for the right amount of gold (by default 1000)
if money == 0 then - If the amount is not enough,
SystemNotice (role, "Do you have enough gold!") - Display 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 status 15 (not me!)
TakeMoney (role, nil, 1000) - To select a character 1000 gold
SystemNotice (role, "Blessing received a beginner, your defense is increased by 20 points in 5 minutes!") - Display system message about the successful application of the buff
else - Otherwise
SystemNotice (role, "You already have the blessing freshman!") - Display a message that buff on the player already 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, "Blessing received a beginner, your attack is increased by 10 points in 5 minutes!")
else
SystemNotice (role, "You already have the blessing freshman!")
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, "Blessing received a beginner, your standard of living increased by 50 points in 5 minutes!")
else
SystemNotice (role, "You already have the blessing freshman!")
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 the state will match the level of the overlay spells.
TakeMoney (role, nil, 10000)
SystemNotice (role, "Ghost imposed 10lvl fire for 5 minutes!")
else
SystemNotice (role, "You can not use a combination of 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, "Hardening 10lvl imposed for 5 minutes!")
else
SystemNotice (role, "You can not use a combination of 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, "Angelic Shield 10lvl imposed for 5 minutes!")
else
SystemNotice (role, "You can not use a combination of 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, "You can not use a combination of two spells of the same type!")
end
end
-------------------------------------------------- -------------------------------
--------