Jump to content
  • 0

@go @warp @storage item required


Question

5 answers to this question

Recommended Posts

Posted

Yeah. They can be used with pretty much all atcommands.

But you have to put the code in a place before the command itself is executed.

On @storage, for example, the line that open the storage is this one:

if (storage_storageopen(sd) == 1)

So I had to put the verification code before that, so it'll check for the items before open the storage.

Posted

Go to src/map/vending.c and find this function:

void vending_openvending(struct map_session_data* sd, const char* message, bool flag, const uint8* data, int count) {

And then put the code before this line:

vending_skill_lvl = pc_checkskill(sd, MC_VENDING);

Also, find this line int the code I sent you:

sprintf(atcmd_output, "You need %dx %s in order to use this command", item_qty_req, itemdb_jname(item_id_req));

Add this before:

char atcmd_output[150];

Then I think it'll work, didn't test though.

  • Upvote 1

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...