From 54b373d4fe3983e51d1a55084b45fe9f72f90a11 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 14 Jun 2018 21:49:31 +0300 Subject: Update from hercules constants.md and script_commands.txt --- server/scripts/constants.md | 17 +++++++++ server/scripts/script_commands.txt | 75 ++++++++++++++++++++++++++++++++++---- 2 files changed, 85 insertions(+), 7 deletions(-) (limited to 'server') diff --git a/server/scripts/constants.md b/server/scripts/constants.md index f4ffaf2..654e5eb 100644 --- a/server/scripts/constants.md +++ b/server/scripts/constants.md @@ -4221,6 +4221,18 @@ - `MST_AROUND4`: 12 - `MST_AROUND`: 12 +### pc block constants, use with *setpcblock* and *checkpcblock* + +- `PCBLOCK_NONE`: 0 +- `PCBLOCK_MOVE`: 1 +- `PCBLOCK_ATTACK`: 2 +- `PCBLOCK_SKILL`: 4 +- `PCBLOCK_USEITEM`: 8 +- `PCBLOCK_CHAT`: 16 +- `PCBLOCK_IMMUNE`: 32 +- `PCBLOCK_SITSTAND`: 64 +- `PCBLOCK_COMMANDS`: 128 + ### private airship responds - `P_AIRSHIP_NONE`: 0 @@ -12292,6 +12304,7 @@ - `Daily_Coin`: 6674 - `XMAS_Cookie`: 6681 - `Bag_Of_Selling_Goods`: 6682 +- `Cash_Hair_Coupon`: 6707 - `Lovely_Stick`: 6712 - `Corrupted_Charm`: 6755 - `ORGANIC_PUMPKIN`: 6804 @@ -15977,6 +15990,9 @@ - `Universal_Catalog_Gold_Box10_`: 16776 - `Universal_Catalog_Gold_Box50`: 16777 - `Sagittarius_Scr_Box`: 16826 +- `Beauty_Gift_Box`: 16843 +- `Clothing_Dye_Box`: 16854 +- `Clothing_Dye_Orig_Box`: 16855 - `Weather_Report_Box`: 16972 - `Yellow_Hat_Box`: 16973 - `Comin_Actor_Box`: 16974 @@ -16146,6 +16162,7 @@ - `INT_Biscuit_Stick_Box`: 17273 - `DEX_Biscuit_Stick_Box`: 17274 - `LUK_Biscuit_Stick_Box`: 17275 +- `Jeremy_Beauty_Coupon_Box`: 17336 - `Cannon_Ball`: 18000 - `Holy_Cannon_Ball`: 18001 - `Dark_Cannon_Ball`: 18002 diff --git a/server/scripts/script_commands.txt b/server/scripts/script_commands.txt index aa0fea3..36c4da3 100644 --- a/server/scripts/script_commands.txt +++ b/server/scripts/script_commands.txt @@ -3357,12 +3357,13 @@ Examples: --------------------------------------- -*getunits(, , , ""{, , , , }) +*getunits(, , {, ""{, , , , }}) This function searches a whole map or area for units and adds their GID to the provided array. It filters units by and stops searching after units have been found. Set to false (0) if you wish to -disable the limit altogether. +disable the limit altogether. If is omitted, this command will search +on the whole server (slow). Returns the number of units added to the array. Type is the type of unit to search for: @@ -3381,6 +3382,10 @@ Type is the type of unit to search for: ** Do NOT use UNITTYPE_ constants here, they have different values. +** If battle_config.dynamic_mobs is enabled and no player has entered the map + yet, the mobs will not have spawned in the map yet, so getunits() will be + unable to find them when searching for BL_MOB. + Example: .@count = getunits((BL_PC | BL_NPC), .@units, false, "prontera"); @@ -6184,12 +6189,15 @@ Examples: --------------------------------------- -*pcblockmove(,