Jump to content

Utility: Limited Items


Emistry

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

Limited Items


This script will limit the inventory of player if the player bring exceeded limitation items into the map.

For Example :

Quote

Guild_vs5 can only bring 100 Yggdrasilberry.

But player bring 101 Yggdrasilberry into the map, and he/she will be kicked out from the map.

etc....

Configuration :

// func_Add( <gm_level_to_bypass>, <map_name>, <item1>,<max_amount1>,....,<itemX>,<max_amountX> );
func_Add( 100,"prontera", 501,1,502,2,503,3,504,5 );
func_Add( 100,"payon", 501,1,502,2,503,3,504,5 );
func_Add( 100,"izlude", 501,1,502,2,503,3,504,5 );
func_Add( 100,"prt_fild08", 4001,1,4002,3,4003,0,504,5 );
  • Positive = Player can only bring Maximum of that amount of items.
  • 0 = Totally Disabled, player cant bring any of it.


 

Edited by Emistry
Update
  • Upvote 3
Link to comment
Share on other sites

  • 4 years later...

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

  • [ 5.0 ] - Removed max limit, removed NPC, added atcommand.
Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  41
  • Topics Per Day:  0.01
  • Content Count:  197
  • Reputation:   19
  • Joined:  11/20/11
  • Last Seen:  

its a nice script but just a suggestion, if it was sql where you make a table and add the items you want to disable on a map would be really nice idea.

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
Reply to this topic...

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