Jump to content
  • 0

Help about frozen duration


ajaytrix

Question


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  84
  • Reputation:   0
  • Joined:  03/29/12
  • Last Seen:  

Good day guys! I don't know if I posted at the right section. Please bear with me. 

 

 

@topic

Where can I adjust the duration time of being frozen?

 

The one I'm looking for is.. for example:

Player used frost joke, if I got froze case: 

 

NO ITEM equipped: I'll just got froze for normal seconds

When item N[custom] is equipped: I'll be just frozen for 2 seconds.

 

What I need is a script/source code without changing MDEF.

I want to decrease the freeze time duration without changing MDEF.

 

Thank you!

Edited by ajaytrix
Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  93
  • Reputation:   14
  • Joined:  12/12/11
  • Last Seen:  

This is how you would inflict freezing status.

 

Make sure you put this ITEM SCRIPT into the ONEQUIP area of your Equipment Item since you wanted to occur once player equips the item...

sc_start SC_Freeze,2000,0;

2000 miliseconds = 2 Seconds. I do not know if it'll still be affected by status effect reductions.

Edited by Evelynn
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  84
  • Reputation:   0
  • Joined:  03/29/12
  • Last Seen:  

@ma'am Evelynn. 

Looks like we have a little bit of misunderstanding here. It's my fault for not giving details in my post. I'm sorry. :/

 

I edited my topic. I'm so sorry. 



Bump! Anyone, help? I really need to know if this is possible or not. Thank you very much.

Edited by ajaytrix
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  93
  • Reputation:   14
  • Joined:  12/12/11
  • Last Seen:  

Uhm the only thing I can think of for that is to add a condition inside the source where the freeze duration is calculated.

 

src/map/status.c#L6378

        case SC_FREEZE:
            sc_def = status->mdef*100;
            sc_def2 = status->luk*10 + status_get_lv(bl)*10 - status_get_lv(src)*10;
            tick_def2 = status_src->luk*-10; //Caster can increase final duration with luk
            break;

Have it check if the item is equipped then change accordingly.

 

I am unsure if there is a script command for this....

Edited by Evelynn
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  84
  • Reputation:   0
  • Joined:  03/29/12
  • Last Seen:  

Uhm the only thing I can think of for that is to add a condition inside the source where the freeze duration is calculated.

 

src/map/status.c#L6378

        case SC_FREEZE:
            sc_def = status->mdef*100;
            sc_def2 = status->luk*10 + status_get_lv(bl)*10 - status_get_lv(src)*10;
            tick_def2 = status_src->luk*-10; //Caster can increase final duration with luk
            break;

Have it check if the item is equipped then change accordingly.

 

I am unsure if there is a script command for this....

 

 

So meaning, I cannot do this as an item based script? :(

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  93
  • Reputation:   14
  • Joined:  12/12/11
  • Last Seen:  

You can, but I think you would have to add your own session data variable then attach it to a item script.

 

Similar how Intravision works, if you can make it read in the source as it does for intravision, you can achieve what you are looking for via checking the session data variable inside the area stated above.

 

intravision session data

sd->special_state.intravision

NOTE: This is my hypothesis on how you would do it so I can't guarantee you that my method would work. Im sure it can be achieved though.

Edited by Evelynn
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  84
  • Reputation:   0
  • Joined:  03/29/12
  • Last Seen:  

Uhm. I really can't understand what you said ma'am Evelynn. I just a newbie. :<
Maybe if you could link me a guide regarding what you said. I'll study it. Thank you.

 

Or maybe, just @freeze/@unfreeze command that I can put inside item script.

 

The condition is: When frozen, while wearing the [Custom Item] he/she will be just frozen for 2 secs using @unfreeze command in OnEquip script. Is this possible? 

Edited by ajaytrix
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  09/03/13
  • Last Seen:  

        case SC_FREEZE:
            sc_def = status->mdef*100;
            sc_def2 = status->luk*10 + status_get_lv(bl)*10 - status_get_lv(src)*10;
            tick_def2 = status_src->luk*-10; //Caster can increase final duration with luk
            break;

 

Base on this script, i need better details regarding it. Lets say as written above, mdef*100, does this mean a player's mdef x 100? mdef x 100%?

 

as for sc_def2, luk*10? baseluk x 10?

tick_def = luk x -10??  <<<   is this the duration for frost?

 

Sorry i'm quite new with editing src, so help me pls.

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