Jump to content
  • 0

Item Script "bonus bBaseLevel"


Bake Mono

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   1
  • Joined:  11/15/11
  • Last Seen:  

Currently I have a script that when you equip an item, it calls a function which basically resets all your parameters (stats, atk, hit, aspd, etc) to 0/1. However, with the base level being what ever it could be, that adds things like HP, hit, etc.

I'm here requesting someone to possibly help me with a "bonus" script that would reduce your base level / job level to 1 when equipped, and like other bonuses, revert it back when unequipped. It would be something like:

bonus bBaseLevel, -200;

bonus bJobLevel, -70;

A couple notes though:

1) If base level was at 100, this would simply bring it down to 1, not 0 or any negative numbers that can't naturally happen

2) If base level was 100, and after equipping this, it becomes 1, unequipping it should not bring it to 200; Simply take away the negative levels, bringing it where it was before.

Edit:

3) Upon base level returning, status points shouldn't be returned

Edited by Bake Mono
Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

no need source modification /hmm

1201,Knife,......, {}, { set @save_baselevel, baselevel; set baselevel, 1; }, { set baselevel, @save_baselevel; set @save_baselevel, 0; }

OnPCLogoutEvent: // prevent overwrite value when player login
if ( @save_baselevel ) {
	unequip EQI_HAND_R;
	unequip EQI_HAND_L;
}

Edited by AnnieRuru
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

Would it gives extra stat points and end up player spamming equip > unequip :3

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   1
  • Joined:  11/15/11
  • Last Seen:  

@AnnieRuru

Appreciate the quick response. While that would technically work, it would face a problem (or at least what I foresee as a problem) calling the OnPCLogoutEvent hundreds of times when it does not need to be called.

@darristan

While trying the idea, as it's the only option I have now unless a bonus script was available, I did run into this issue, which isn't very good :(. Adding another thing for it to save/load such as the previous option seems inefficient.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

Item giving that bonuses is never a great idea tho :3 Are you running a low rate server?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

Would it gives extra stat points and end up player spamming equip > unequip :3

sounds right o.O

yeah ... equip this item should also STUCK their exp gain so they wont be able to leveling up (sounds like source modification)

Adding another thing for it to save/load such as the previous option seems inefficient.
yeah, I also thinking about countering this with a new permanent variable inside pc_reg_received function

I also agree this bonus has no practical usage ...

better just lower down their stat into 1,1,1,1,1,1 ...

so I'm out

Edited by AnnieRuru
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...