Resource icon

check_bound command v0.2

No permission to download
A simple command to check if the player currently has a bound item in their inventory. Thus eliminating the need to use getinventorylist; to do the check. Additionally, you can check for a number of parameters regarding that item.

Code:
*checkbound(<item_id>{,<bound_type>{,<refine>{,<attribute>{,<card_1>{,<card_2>{,<card_3>{,<card_4>}}}}}}});This command allows you to check whether or not the attached player has the specified bound item in their inventory.Valid bound types are: 1 - Account Bound 2 - Guild Bound 3 - Party Bound 4 - Character BoundOptional Parameters: refine - checks to see if the item is refined to the given number. attribute - whether the item is broken (1) or not (0) card 1,2,3,4 - checks to see if the specified cards are compounded on the item as well.
Example:

Code:
if( checkbound(1205) ){    mes "You have a bound Cutter";    close;} else {    mes "You do not have a bound Cutter";    close;}
Example 2:

Code:
if( checkbound(1205, 2) ){    mes "You have a guild_bound Cutter";    close;} else {    mes "You don't have the required item.";    close;}
Example 3:

Code:
if( checkbound(1205, 2, 7) ){    mes "You have a +7 guild_bound Cutter.";    close;} else {    mes "You don't have the required item.";    close;}
Author
GmOcean
Downloads
26
Views
3,624
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from GmOcean

Latest updates

  1. Version v0.1

    v0.1 - Original Release
  2. Version v0.2

    v0.1 - Original Release v0.2 - Fixed compile warnings.
Back
Top