Jump to content
  • 0

Mega Resist Potion


Veracious

Question


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  179
  • Reputation:   17
  • Joined:  04/24/14
  • Last Seen:  

I made some changes with the mega resistance potion script editing sc_start SC_COMMONSC_RESIST,3600000,10; to 1000;

Later i found out that doesn't stack with any card and equipment resistances.

 

I want it to stack with bonus2 bResEff,Eff_Stun(also freeze, stone, sleep, silence, blind, curse, poison, chaos, bleeding, confusion) for 1 hour, and it should also loose its effect on death, dispell, etc. (like it should stack with card,equipment resistances like here - http://rathena.org/board/tracker/issue-8965-mega-resist-potion/)

Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  179
  • Reputation:   17
  • Joined:  04/24/14
  • Last Seen:  

bump......

Edited by Veracious
Merged bump posts.
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  509
  • Reputation:   80
  • Joined:  11/20/11
  • Last Seen:  

bump......

 

check your PM, i hope it solve your problem

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  179
  • Reputation:   17
  • Joined:  04/24/14
  • Last Seen:  

check your PM, i hope it solve your problem

 

Thanks i'll be trying this

Edited by Veracious
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  179
  • Reputation:   17
  • Joined:  04/24/14
  • Last Seen:  

Thanks i'll be trying this

 

Its working like this - bonus2 bResEff,Eff_Stun,1000;

It stacks with 90% Equipment Resistance and works like 90+10=100% Resistance.

But, its little bugged may be because no time limit set whether 60 seconds 1 hour for item duration & if i change/wear equipment, exmaple :- Guard or Accessory or any equipment it affects the item effect and the character again gets stunned just because of change in equipment i.e. Every time equip change - item looses its effect.

 

I doubt using bonus2 bResEff,Eff_Stun,1000; will work even if the equipment change is fixed as it will be never dispelled by skill Dispell or dispelled upon Death. If the status is modified it will affect all equipements and cards with bonus2 bResEff,Eff_Stun.

 

Need to find any other way to do it, maybe like Kichi said

 

status.c

search for:

StatusChangeFlagTable[SC_ITEMSCRIPT] |= SCB_ALL;

add after :

StatusChangeFlagTable[SC_COMMONSC_RESIST] |= SCB_ALL;

search for:

if( sc->count && sc->data[SC_ITEMSCRIPT] ) {
        struct item_data *data = itemdb_exists(sc->data[SC_ITEMSCRIPT]->val1);
        if( data && data->script )
            run_script(data->script,0,sd->bl.id,0);
    }

add after:

if( sc->count && sc->data[SC_COMMONSC_RESIST] ) {
        pc_bonus2(sd,SP_RESEFF,sc->data[SC_COMMONSC_RESIST]->val1,sc->data[SC_COMMONSC_RESIST]->val2);
    }

how to use?

 

SC_START2 SC_COMMONSC_RESIST <tick> <value 1> <value 2>

 

 

value 1 = 1 ~ 10

    SC_FREEZE, 1

    SC_STUN, 2

    SC_SLEEP, 3

    SC_POISON, 4

    SC_CURSE, 5

    SC_SILENCE, 6

    SC_CONFUSION, 7

    SC_BLIND, 8

    SC_BLEEDING, 9

    SC_DPOISON, 10

 

value 2 = rate

   100 = 100%

 

 

But this is not working either as the effect doesn't stack with bonus2 bResEff,Eff_Stun - But, i want it to stack with this.

 

Maybe like Capuche said

 

You could do the trick with OnPCStatCalcEvent, stacking bResEff. However you won't lose the bonus with dispell skill. Another way should be a source mod making a bonus like ResEff with a timer

 

Is there any way to make it stack with bonus2 bResEff,Eff_Stun and not affect other equpments & cards and will also dispell on death, dispell skill,etc?

Edited by Veracious
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  179
  • Reputation:   17
  • Joined:  04/24/14
  • Last Seen:  

bump

Edited by Veracious
Merged bump posts.
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  179
  • Reputation:   17
  • Joined:  04/24/14
  • Last Seen:  

bump~

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  179
  • Reputation:   17
  • Joined:  04/24/14
  • Last Seen:  

bump!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  179
  • Reputation:   17
  • Joined:  04/24/14
  • Last Seen:  

bump

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