Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Mapwide buffs according to level

Newbie Spellweaver
Joined
Jun 14, 2021
Messages
11
Reaction score
0
Is it possible to give a buff/debuffs depending on a specific level ranges in certain maps through a script?
If someone can help that'd be great, thank you.
 
Newbie Spellweaver
Joined
Jul 4, 2020
Messages
28
Reaction score
4
Is it possible to give a buff/debuffs depending on a specific level ranges in certain maps through a script?
If someone can help that'd be great, thank you.

AbstateInx = StaSetF4HPUp
AbstateStep = 1
AbstateTime = 600000

local PlayerList = {cGetPlayerList(Var.MapIndex)}
for i = 1, #PlayerList do
local PlayerLevel = cGetLevel(PlayerList)
if PlayerLevel >= 100 then
cSetAbstate(PlayerList, AbstateInx, AbstateStep, AbstateTime)
end
end
 
Newbie Spellweaver
Joined
Jun 14, 2021
Messages
11
Reaction score
0
AbstateInx = StaSetF4HPUp
AbstateStep = 1
AbstateTime = 600000

local PlayerList = {cGetPlayerList(Var.MapIndex)}
for i = 1, #PlayerList do
local PlayerLevel = cGetLevel(PlayerList)
if PlayerLevel >= 100 then
cSetAbstate(PlayerList, AbstateInx, AbstateStep, AbstateTime)
end
end


That's great! I weren't expecting a reply, thank you so much for your help!
 
Back
Top