Jump to content
  • 0

Is it possible to make a consumable only usable by certain lvl player ?


RandomKey1

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   0
  • Joined:  12/08/15
  • Last Seen:  

For exemple, If I want to make a Field manual 100% only usable by people who're lvl 50 or below, is that possible ? If yes, what should I write in his script ?

 

Thanks

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Content Moderator
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  639
  • Reputation:   596
  • Joined:  11/25/11
  • Last Seen:  

I guess it's BaseLevel.
But I already told you to read doc/item_db.txt because of:

eLV: Base level required to be able to equip.
maxLevel: Only able to equip if base level is lower than this.
Edited by Haziel
Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  639
  • Reputation:   596
  • Joined:  11/25/11
  • Last Seen:  

Read doc/item_db.txt.

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  292
  • Reputation:   17
  • Joined:  12/12/11
  • Last Seen:  

add condition if (BaseLevel <=50) {write the bonus part here} else {dispbottom "sorry, only players with level 50 and below can use this"}

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   0
  • Joined:  12/08/15
  • Last Seen:  

Okay thanks both of you, i'll read this doc and i'll try this ! Thanks a lot !


I read the doc and tested but it doesn't work :/. I put that :

7803,Battle_Manual_TW,Beginner's Field Manual,2,0,,10,,,,,,,,,,,,,{if (baselvl <=50)(sc_start SC_EXPBOOST,1800000,300;) else (dispbottom "blabla")},{},{}

What am I doing wrong please ?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   0
  • Joined:  12/08/15
  • Last Seen:  

I'm so stupid, i saw that and already used that for a lot of equip, but I don't know why i though it wouldn't work for usable item. My bad and thanks

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