summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorEmistry Haoyan <equinox1991@gmail.com>2020-03-07 22:21:39 +0800
committerEmistry Haoyan <equinox1991@gmail.com>2020-03-08 00:52:37 +0800
commit9ab883aa927c77cd8a0e1c9afb65ebef8ce5ab89 (patch)
tree53af653457a5fe4d1254d0cff710a909f757f0e5 /doc
parent9106bbab19b4feaa4623a3b8e5d59e08ef73b640 (diff)
downloadhercules-9ab883aa927c77cd8a0e1c9afb65ebef8ce5ab89.tar.gz
hercules-9ab883aa927c77cd8a0e1c9afb65ebef8ce5ab89.tar.bz2
hercules-9ab883aa927c77cd8a0e1c9afb65ebef8ce5ab89.tar.xz
hercules-9ab883aa927c77cd8a0e1c9afb65ebef8ce5ab89.zip
Added Item Bound Type constants
- improve readability.
Diffstat (limited to 'doc')
-rw-r--r--doc/script_commands.txt30
1 files changed, 15 insertions, 15 deletions
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index 8308f4771..d9efa299f 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -5273,11 +5273,11 @@ bound to the target character as specified by the bound type. All items created
in this manner cannot be dropped, sold, vended, auctioned, or mailed, and in
some cases cannot be traded or stored.
-Valid bound types are:
- 1 - Account Bound
- 2 - Guild Bound
- 3 - Party Bound
- 4 - Character Bound
+Valid item bound types are:
+ 1 - IBT_ACCOUNT - Account Bound
+ 2 - IBT_GUILD - Guild Bound
+ 3 - IBT_PARTY - Party Bound
+ 4 - IBT_CHARACTER - Character Bound
---------------------------------------
@@ -5318,12 +5318,12 @@ If a bound type is not specified or a bound type of 0 is used, it will search th
of any type, so long as the other parameters match. In all cases, this command will return the bound type of the
item found, or 0 if the specified item was not found.
-Valid bound types are:
- 0 - All Bound types.
- 1 - Account Bound
- 2 - Guild Bound
- 3 - Party Bound
- 4 - Character Bound
+Valid item bound types are:
+ 0 - IBT_ANY - Any Bound
+ 1 - IBT_ACCOUNT - Account Bound
+ 2 - IBT_GUILD - Guild Bound
+ 3 - IBT_PARTY - Party Bound
+ 4 - IBT_CHARACTER - Character Bound
Optional Parameters:
bound_type - checks to see if the item has the specified bound type.
@@ -5341,7 +5341,7 @@ Example:
close();
// This will also check if you have a bound (any type) 1205 (Cutter).
- if (checkbound(Cutter, 0)) {
+ if (checkbound(Cutter, IBT_ANY)) {
mes("You have a bound Cutter");
} else {
mes("You do not have a bound Cutter");
@@ -5356,8 +5356,8 @@ Example:
}
close();
- // This will check if the item found, has a bound type of 2 (guild_bound)
- if (checkbound(Cutter) == 2) {
+ // This will check if the item found, has a bound type of IBT_GUILD
+ if (checkbound(Cutter) == IBT_GUILD) {
mes("You have a guild_bound Cutter");
} else {
mes("You do not have a guild_bound Cutter.");
@@ -5365,7 +5365,7 @@ Example:
close();
// This will check if you have a 'guild_bound' +7 1205 (Cutter).
- if (checkbound(Cutter, 2, 7)) {
+ if (checkbound(Cutter, IBT_GUILD, 7)) {
mes("You have a +7 guild_bound Cutter.");
} else {
mes("You don't have the required item.");