Jump to content
  • 0

How to disable mental potion effect when killed?


sisgurogames

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  05/19/20
  • Last Seen:  

Hello,

Below is the script for Mental potion item,

{ specialeffect2 EF_SPELLBREAKER; bonus_script "{ bonus bUseSPrate,-10; bonus bMaxSPrate,10; }",1800; },{},{}

How can I disable it when the player is killed?

 

Thanks!

SiguRO games

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.01
  • Content Count:  32
  • Reputation:   0
  • Joined:  10/26/20
  • Last Seen:  

check status.cpp

 

void status_change_clear_buffs(struct block_list* bl, uint8 type)

...

switch (i) {
            // Stuff that cannot be removed
            case SC_WEIGHT50:
            case SC_WEIGHT90:
            case SC_COMBO:
            case SC_SMA:

.....

 

check if your buff is in list then comment with //

 

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...