Age | Commit message (Collapse) | Author | Files | Lines |
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
Add F_MesItemInfo function to show item name with description link
|
|
|
|
|
|
also fix OldGlastHeim ITEMLINK display incorrectly
|
|
Implement status reduction script command.
|
|
|
|
Remove type argument from buildin_getnpcid.
|
|
|
|
Added ITR_TRADE (Trade restriction) for both script commands
|
|
- for stat reduction support.
- return the amount of status point required to increase a status.
|
|
|
|
The function now handles multi-slot headgears and other uncommon cases better.
Signed-off-by: Haru <haru@dotalux.com>
|
|
ammunitions
Both functions have now been updated to only check the subtype if the
item type is correct (IT_AMMO for F_GetAmmoType, IT_WEAPON for
F_GetWeaponType)
Signed-off-by: Haru <haru@dotalux.com>
|
|
Replacements are as follows:
0 => ITEMINFO_BUYPRICE
1 => ITEMINFO_SELLPRICE
2 => ITEMINFO_TYPE
3 => ITEMINFO_MAXCHANCE
4 => ITEMINFO_SEX
5 => ITEMINFO_LOC
6 => ITEMINFO_WEIGHT
7 => ITEMINFO_ATK
8 => ITEMINFO_DEF
9 => ITEMINFO_RANGE
10 => ITEMINFO_SLOTS
11 (Subtype, for weapons and ammunitions) => ITEMINFO_SUBTYPE
11 (ViewSprite, for other item types) => ITEMINFO_VIEWSPRITE (NOT AVAILABLE YET)
12 => ITEMINFO_ELV
13 => ITEMINFO_WLV
14 => ITEMINFO_VIEWID
15 => ITEMINFO_MATK (NOT AVAILABLE YET - this was documented but never implemented)
Calls to getiteminfo() and setiteminfo() have been replaced with the
newly introduced constants. Other constants (such as W_ weapon subtypes)
in related code have been replaced as well, to improve code readability.
This fixes an issue in the Eden Tutorial script "Tutorial Goal", where
ITEMINFO_ATK was accidentally used instead of ITEMINFO_WEIGHT.
Note: calls to getiteminfo or setiteminfo with numeric type arguments in
third party scripts must be replaced with the respective constants. The
use of numeric literals is no longer recommended, and those values may
change in the future without notice. See the getiteminfo documentation
for details.
Signed-off-by: Haru <haru@dotalux.com>
|
|
- update missing equip types.
|
|
weight incorrectly.
|
|
|
|
|
|
|
|
Implemented official Giant Fly Wing Effect
|
|
Removed the usage of deprecated command goto from npc scripts (except custom folder)
|
|
Update the *warpparty script commmand, credits to Dastgir
Coding-style fixes & whitespace adjustments in warpparty part in script.c
|
|
folder).
Signed-off-by: Ragno <ragno@atlantis-ro.net>
|
|
- not using in any script, could be easily replace by simply if-else
condition.
|
|
|
|
Fix cases were player were executed
|
|
On Aegis players set their HP to 0 by script are still alive. Since we don't want to copy this, scripts that set HP to 0 and expects the player to stay alive are changed.
Additionally some scripts where changed where the HP were set to 1% instead to 1 HP and also the percentheal -100 with intended death set into close2. In megingard_seal.txt a end; was missing.
|
|
|
|
|
|
- NPC_NAME for the whole npc name including hidden part
- NPC_NAME_VISIBLE for the visible part of the npc name
- NPC_NAME_HIDDEN for the hidden part of the npc name
- NPC_NAME_UNIQUE for the npc unique name
- NPC_MAP for npc map
|
|
|
|
|
|
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
replace using Notepad++
|
|
Added F_MesColor helper function
Closes #897 as merged
Signed-off-by: Haru <haru@dotalux.com>
|
|
Follow-up to dbe5f2237cada6a261e297b60857dc305860a88d
Signed-off-by: Haru <haru@dotalux.com>
|
|
|
|
|
|
follow up https://github.com/HerculesWS/Hercules/commit/d4832df6929653561e6867149e4ecaa63a860cbe
|
|
- Now including GPL-compliant license/copyright info
- Restored some missing copyrights
- Other scripts folders
Signed-off-by: Haru <haru@dotalux.com>
|
|
|
|
- getitemname can return "null"
- getmapusers can return -1
and fix the bad ... misleading global function example
|
|
- Follow-up to 3bd77ffc0daca508352834add828766490075aee
- The names were too generic (not namespaced), and were easily clashing
with custom (and potential future official) constants or variables.
- Constants are now prefixed with a 'GETTIME_' namespace:
- GETTIME_SECOND
- GETTIME_MINUTE
- GETTIME_HOUR
- GETTIME_WEEKDAY
- GETTIME_DAYOFMONTH
- GETTIME_MONTH
- GETTIME_YEAR
- GETTIME_DAYOFYEAR
- Fixed some excessive (and some times incorrect) parentheses in
various scripts using gettime().
- Updated documentation.
Signed-off-by: Haru <haru@dotalux.com>
|
|
out)
|
|
constant for gettime( <type> )
constant for Weekday and Month.
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
- Replaced leftover sprite IDs with constants
- Corrected some NPC facing directions (in modulo 8)
|
|
Enable the NPC to inform users the Auction not available due to the
feature isn't enabled by server.
|