Age | Commit message (Collapse) | Author | Files | Lines |
|
Mapflag nostorage and nogstorage
|
|
|
|
|
|
|
|
nostorage 1 -- blocks only @storage
nostorage 2 -- blocks only openstorage();
nostorage 3 -- blocks @storage and openstorage()
nogstorage 1 -- blocks only @gstorage
nogstorage 2 -- blocks only guildopenstorage();
nogstorage 3 -- blocks @gstorage and guildopenstorage()
|
|
deprecate buildin_prompt, bake it into buildin_select
|
|
Added ITR_TRADE (Trade restriction) for both script commands
|
|
|
|
the two
|
|
|
|
|
|
Fix SCRIPT_MAX_ARRAYSIZE
|
|
reload the const db on script reload
|
|
|
|
|
|
|
|
Add new *pcblock script command
|
|
|
|
|
|
thanks to @MishimaHaruna for the updated syntax
|
|
This prevents compile errors in HPMHooking in case sprintf is defined as
a macro by the C library
Fixes #2003
Signed-off-by: Haru <haru@dotalux.com>
|
|
|
|
Adds the ability to query an item's view sprite, lost with #1828
Fixes #1895
Signed-off-by: Haru <haru@dotalux.com>
|
|
This item info type was documented in commit
315d632e69c60d2996872c9330164133101befdf, but never implemented.
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>
|
|
|
|
- Enable server to disable autoloot settings for certain maps.
|
|
According to the C specifications, va_list isn't necessarily a pointer
(it can be an array of pointers, or just about anything). As such, we
can't cast NULL to va_list.
Fixes #1793
Related to 5fd40de233d3a897284f771338cbf8e657182261
Signed-off-by: Haru <haru@dotalux.com>
|
|
|
|
|
|
Implementation of unit controlling script commands.
|
|
registry"
|
|
Setunitdata <GID>, <DataType>, <Val1> {, <Val2>, <Val3>}
Getunitdata <GUID>, <DataType> {, <Variable>}
Getunitname <unit id>
Setunitname <unit id>, <name>
Performs alteration and retrieval of real-time unit data for a game object of the types -
NPCs, Pets, Monsters, Homunuculus', Mercenaries, Elementals.
Applicable data types (available as script constants) -
UDT_TYPE: Unit Type value (BL_MOB, BL_NPC, BL_PET, BL_ELEM, BL_MER, BL_HOM)
UDT_SIZE: Unit Size
UDT_LEVEL: Level
UDT_HP: Current HP
UDT_MAXHP: Max HP
UDT_SP: SP
UDT_MAXSP: MAX SP
UDT_MASTERAID: Master Account ID (for Summons)
UDT_MASTERCID: Master Char ID (for Summons)
UDT_MAPIDXY: Warp a Unit to a map.
UDT_WALKTOXY: Make a unit walk to certain co-ordinates.
UDT_SPEED: Unit Speed
UDT_MODE: Mode (Mobs)
UDT_AI: Unit AI Type
UDT_SCOPTION: Status Options.
UDT_SEX: mm Sex.
UDT_CLASS: Class of the unit.
UDT_HAIRSTYLE: Hair Style of the unit.
UDT_HAIRCOLOR: Hair Color.
UDT_HEADBOTTOM: Headgear Bottom Sprite.
UDT_HEADMIDDLE: Headgear Middle Sprite.
UDT_HEADTOP: Headegar Top Sprite.
UDT_CLOTHCOLOR: Cloth Color.
UDT_SHIELD: Shield Sprite.
UDT_WEAPON: Weapon Sprite.
UDT_LOOKDIR: Face direction.
UDT_CANMOVETICK:Stop a unit from move for n seconds.
UDT_STR: Unit STR.
UDT_AGI: Unit AGI.
UDT_VIT: Unit VIT.
UDT_INT: Unit INT.
UDT_DEX: Unit DEX.
UDT_LUK: Unit LUK.
UDT_ATKRANGE: Attack range of a unit.
UDT_ATKMIN: Min Atk of a unit.
UDT_ATKMAX: Max Atk of a unit.
UDT_MATKMIN: Min MATK of a unit.
UDT_MATKMAX: Max MATK of a unit.
UDT_DEF: DEF.
UDT_MDEF: MDEF.
UDT_HIT: HIT.
UDT_FLEE: FLEE.
UDT_PDODGE: Perfect Dodge.
UDT_CRIT: Critical Rate.
UDT_RACE: Race. (Eg. string constants RC_DemiHuman or Integer 7).
UDT_ELETYPE: Element. (Eg. string constants Ele_Neutral or Integer 0).
UDT_ELELEVEL: Element Level (int).
UDT_AMOTION: AMotion Rate (int).
UDT_ADELAY: ADelay Rate (int).
UDT_DMOTION: DMotion Rate (int).
UDT_HUNGER: Hunger Rate (int) - for summons.
UDT_INTIMACY: Intimacy Rate (int) - for summons.
UDT_LIFETIME: LifeTime (int) - for summons.
UDT_MERC_KILLCOUNT: Kill count for mercenaries (int).
UDT_STATPOINT: Status Points (int) - for npcs.
Addition of AI constants as well.
Documentation is included.
Credits: [rA](https://github.com/rathena/rathena/commit/2cee5b6ff1bf53c4ae53bc1278b09ae84b8a0a76) & [Smokexyz](https://github.com/Smokexyz)
|
|
Based on rAthena commits:
commit 4f13007fec7f08c265620a71c3bc4806d186c0f1
Author: Lemongrass3110 <lemongrass@kstp.at>
Date: Sun Mar 6 21:48:47 2016 +0100
commit 809f220b9f5ef70ee062ee56ae6e8d5f56cb5d32
Author: aleos89 <aleos89@users.noreply.github.com>
Date: Sun Mar 6 16:15:54 2016 -0500
commit 179f73424934d528ebe494dfb66503c182eacb09
Author: aleos89 <aleos89@users.noreply.github.com>
Date: Sun Mar 6 16:10:15 2016 -0500
|
|
Ported to modern Hercules and cleaned up from Panikon's commits: a0e4da63ef3afcd896603398e2468876681ac54a, b5f487c2676833492a6d4044b5d1f1bb1e552b04
Signed-off-by: Haru <haru@dotalux.com>
|
|
- For compliance with gettext's .po file specifications
Signed-off-by: Haru <haru@dotalux.com>
|
|
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
format string
- Strings passed to sprintf should use the _$() macro instead of _(), to
generate the .pot translation template with a directive to correctly
handle the % sign.
- Strings passed through _() are instead explicitly marked as regular
(non format) strings if they contain '%'.
Signed-off-by: Haru <haru@dotalux.com>
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
- parse_simpleexpr_paren()
- parse_simpleexpr_number()
- parse_simplexpr_string()
- parse_simpleexpr_name()
Signed-off-by: Haru <haru@dotalux.com>
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
- Fixes various signed/unsigned comparisons.
Signed-off-by: Haru <haru@dotalux.com>
|
|
- Fixes various signed/unsigned comparisons.
Signed-off-by: Haru <haru@dotalux.com>
|
|
- Fixes various signed/unsigned comparisons.
Signed-off-by: Haru <haru@dotalux.com>
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
- Sql -> struct Sql
- SqlStmt -> struct SqlStmt
- SqlDataType -> enum SqlDataType
This is expected to improve compile time, by removing #include cycles (and forward declaring instead)
Signed-off-by: Haru <haru@dotalux.com>
|