Is it possible?

Mhalicot

Gamers Republic
Messages
1,971
Points
0
Location
Asia
Github
mhalicot
Emulator
Is it possible to add a function to the items/weapon/equip to disable bonus/skills when WoE start?

if possible, how come?

Item ID: 18113, Vellum arbalest Description "*Stats During WoE and PVP Decrease Target SP by 4% with every Hit"

I don't think it is working, if so how can I set up my own stats during WoE and PVP.

Thanks in advance.

 
I don't like myself the EVERY hit part, but you could try this as your item script:

{ if(getmapflag(strcharinfo(3),mf_pvp) || getmapflag(strcharinfo(3),mf_gvg)) { bonus bSPVanishRate,1000,4; } }
That is supposed to do that, in every hit in PvP or GvG (this includes WoE), target's SP will be reduced by 4% (this effect won't work on things such as @duel on a non-pvp map for example). If you want to reduce 4% SP with each hit regardless of where (remember monsters usually have 0 SP, they cast without SP restrictions), just make its script like this:

{ bonus bSPVanishRate,1000,4; }

P.S.: Documentation says that for this bonus, 1000 means 100% (of hits in this particular case), but I'm not completely sure since in other things 100% is 10000. This is just matter of trial and error I think.

 
Last edited by a moderator:
+1
default_smile.png


what if I want to add duel mode?

 
Use the second script, which is the same than the first except that it doesn't check for mapflags. That way any players who gets hit will get its SP deducted when hit by that weapon regardless of the environment.

 
ive been looking for this since woe sets are working outside pvp and woe maps

 
Last edited by a moderator:
Back
Top