Mephisto Posted May 8, 2017 Posted May 8, 2017 (edited) So basically I want a script that If a player has 300 Luk it will be Immune to All Status Effect Then I try to make a Script and here it is. But I don't know if it will work ? Can someone help me to implement something that I want ? Spoiler - script 300Luk -1,{ OnPCLoginEvent: if (readparam(bLuk) > 299 ) bonus2 bResEff,Eff_Freeze,10000; } Edited May 8, 2017 by Emistry Double Post Quote
0 Technoken Posted May 8, 2017 Posted May 8, 2017 Try to use OnPCStatCalcEvent, instead of OnPCLoginEvent. 1 Quote
0 Mephisto Posted May 8, 2017 Author Posted May 8, 2017 Where sir ? Does it mean if I have 300 luk then I'll be immune to all status effect ? like froze, stun, sleep like that ? You mean like this ? Spoiler - script 300Luk -1,{OnPCStatCalcEvent:if (readparam(bLuk) > 299 )bonus2 bResEff,Eff_Freeze,10000;} If Luk = 300 then I will be immune to freeze ? Right ? Quote
0 Technoken Posted May 8, 2017 Posted May 8, 2017 Yes. But that won't decrease the chance of being frozen when Luk is below 300. It will only be immune when player gets 300 Luk. 1 hour ago, Mephisto said: Immune to All Status Effect For immune to all status effect, you can add them one by one. Quote
0 Ninja Posted May 11, 2017 Posted May 11, 2017 If you do the OnPCStatCalcEvent make e you adjust your maximum queue size as you will get lots of warnings about it. Quote
Question
Mephisto
So basically I want a script that If a player has 300 Luk it will be Immune to All Status Effect
Then I try to make a Script and here it is. But I don't know if it will work ? Can someone help me to implement something that I want ?
- script 300Luk -1,{
OnPCLoginEvent:
if (readparam(bLuk) > 299 )
bonus2 bResEff,Eff_Freeze,10000;
}
Double Post
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.