Jump to content
  • 0
jadedlight

storage and pots

Question

anyone knows where to find or edit the configurations for normal players to use pots while the storage are opened up? 

 

some told me it was in item restrictions but cant seem to find it :/ and guess on how to enable this?

 

TIA <3

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 1

try find on pc.c::pc_isUseitem, just find & follow this line

 

	if (sd->state.storage_flag && item->type != IT_CASH) {
		clif_colormes(sd->fd, color_table[COLOR_RED], msg_txt(sd,388));
		return false; // You cannot use this item while storage is open.
	}
it disables item usage while storage is opened, except cash_item (in item_db, the one that type 18)
  • Upvote 2
Link to comment
Share on other sites

try find on pc.c::pc_isUseitem, just find & follow this line

 

	if (sd->state.storage_flag && item->type != IT_CASH) {
		clif_colormes(sd->fd, color_table[COLOR_RED], msg_txt(sd,388));
		return false; // You cannot use this item while storage is open.
	}
it disables item usage while storage is opened, except cash_item (in item_db, the one that type 18)

 

 

Cydh i have a question, how to make a limit in inventory only 200 pcs Pots? i want the 547 (Condensed White Potion) ONLY?

if else, it will say "Sorry it's not allow to have more than 200 547 (Condensed White Potion) in your inventory.

sorry if it is not related my topic.

 

Thank yoi in advance!

  • Upvote 1
Link to comment
Share on other sites

will try this :3 thank you will update if it worked so others can have reference :3


what do i put btw XD sorry its new to me to edit this kinds.. still a newbie :3

 

TIA


nvm found it under the SRC folders :3

Link to comment
Share on other sites

try find on pc.c::pc_isUseitem, just find & follow this line

	if (sd->state.storage_flag && item->type != IT_CASH) {
		clif_colormes(sd->fd, color_table[COLOR_RED], msg_txt(sd,388));
		return false; // You cannot use this item while storage is open.
	}
it disables item usage while storage is opened, except cash_item (in item_db, the one that type 18)

Cydh i have a question, how to make a limit in inventory only 200 pcs Pots? i want the 547 (Condensed White Potion) ONLY?

if else, it will say "Sorry it's not allow to have more than 200 547 (Condensed White Potion) in your inventory.

sorry if it is not related my topic.

Thank yoi in advance!

That's a completely different request, and barely fits the theam of posters request. Should post a new topic so things are easier to search

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.