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

[Spells] Being able to use X aggressive spells in protection zone

Zackvor

Member
Joined
Jan 19, 2009
Messages
294
Reaction score
12
Okey, Ive done so you cant sd and uh nor exura vita at the same time. I made uh and exura vita to two aggressive spells. Now I have a problem; You cant use them in any kind of pz. Is it possible to do so you can use exura vita and uh yourself in pz even if they are aggressive?

Help would be appreciated. :blink:
 
Not quite sure about that. But you could make a spell that gives you full mana and health, that only works inside pz.

You can also make "healing zones", when player step in a title they get health and mana.
 
Why are they set as aggressive then? The only reason you'd do that is to restrict usage from a Protection Zone...
 
Why are they set as aggressive then? The only reason you'd do that is to restrict usage from a Protection Zone...

Because I want it to be as it used to be before 8.31 ? when you couldnt heal and use aggressive runes at the same time. So I made uh etc aggressive so that you wont be able to use them at the same time as your'e sding ;<
 
Okay... Then the solution would be this (I don't know fuction names, or variable names so I am just improvising)

Inside of the onCastSpell function (for the healing spells/runes) add the following lines (as I said, the functions, variables may not be actual):
LUA:
if(getPlayerCondition(cid, CONDITION_AGGRESSIVE_EXHAUST)) then
    return LUA_ERROR
end

Whoever has the slightest Lua skill should understand this and if you don't yourself, someone else can complete it for you as I don't know the function/variable names.
 
Okay... Then the solution would be this (I don't know fuction names, or variable names so I am just improvising)

Inside of the onCastSpell function (for the healing spells/runes) add the following lines (as I said, the functions, variables may not be actual):
LUA:
if(getPlayerCondition(cid, CONDITION_AGGRESSIVE_EXHAUST)) then
    return LUA_ERROR
end

Whoever has the slightest Lua skill should understand this and if you don't yourself, someone else can complete it for you as I don't know the function/variable names.

Thanks for helping but I have no idea where I should put in those lines ^.-
 
Back
Top