Jump to content
  • 0

Help with this Immune Script


Mephisto

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  56
  • Reputation:   6
  • Joined:  03/21/17
  • Last Seen:  

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 by Emistry
Double Post
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

Try to use OnPCStatCalcEvent, instead of OnPCLoginEvent.

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   0
  • Joined:  11/19/16
  • Last Seen:  

Edit it on status.c.. 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  56
  • Reputation:   6
  • Joined:  03/21/17
  • Last Seen:  

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 ?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  513
  • Reputation:   83
  • Joined:  08/11/12
  • Last Seen:  

If you do the OnPCStatCalcEvent make e you adjust your maximum queue size as you will get lots of warnings about it. 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  56
  • Reputation:   6
  • Joined:  03/21/17
  • Last Seen:  

Solved. Thank you everyone

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...