Jump to content
  • 0

Added Item To Inventory Check


Question

Posted

Are there any ways to check an item that was added to character's inventory?

Scenarios:

  1. Player A bought an item from a vendor ( Player B ), ( dispbottom "Player A bought <Item Name> from Player B"; )
  2. Player A successfully traded an item to Player B, ( dispbottom "Player A traded <Item Name> to Player B"; )
  3. Player A looted an item from a monster drop, ( dispbottom "Player A got <Item Name> from <Monster Name>"; )

5 answers to this question

Recommended Posts

Posted

Don't know why there is an "Item Loot Event" idea flash in my mind suddenly :P

makeitem 512,~,~,~,~;
makeitem 619,~,~,~,~;
OnPCLootEvent:
if (map == "eventmap" || itemid == 512) {
@eventpoint, @eventpoint + 5;
delitem 512, 1;
end;
} else if (itemid == 619) {
@eventpoint, @eventpoint - 5;
delitem 619,1;
end;
}

Sounds stupid tho. Hahaha

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