Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
Implementation of unit controlling script commands.
|
|
Implementation of Item Options System.
|
|
|
|
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)
|
|
Allows the infusing of equipments with bonus item options.
This feature is constrained to clients of packet versions greater than or equal to `20150226`.
Item Options and their effects are defined server-side in `db/item_options.conf` and client side in `data/luafiles514/lua files/datainfo/addrandomoptionnametable.lub`
The ID of the option must tally with the correct index of the description provided in the client side lua file to avoid bugs.
IT_OPT_* keys and MAX_ITEM_OPTIONS macro are also exported from the source as constants.
An additional flag `disable_options` has been added to sql, and as `DisableOptions: true/false (boolean, defaults to false !!for equipments only!!)` to item_db.conf files.
Script commands documentation is also included.
SQL file updates are included.
Credits: [Smokexyz](https://github.com/Smokexyz)
Style and Script Fixes by [Asheraf](https://github.com/Asheraf)
Initial design Idea by [secretdataz](https://github.com/secretdataz)
|
|
|
|
allow the PC timer buildins to run on another player
|
|
Follow-up to ebb77e29f343531b508f8c37b32826afbb5f240d
Signed-off-by: Haru <haru@dotalux.com>
|
|
Updated *warpguild() script command.
|
|
|
|
allow strcharinfo() and strnpcinfo() to take a GID
|
|
- Added optional parameter to warp member from target map.
- Update to loop guild member using `g->member[]` data.
|
|
|
|
This reverts commit eb5fc0076764d2f604e6a484fe144988f6e9da9b.
|
|
Allow getd to get vars if other players
|
|
* Added option to show classchange only to one player
|
|
|
|
|
|
|
|
- when trigger event label, it run as *donpcevent() not *doevent(), no
player are attached to the script when it's triggering the event.
|
|
Add *makeitem2 script command.
|
|
missing type at setlook documentation
|
|
|
|
|
|
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
|
|
scriptcommand_makeitem2
|
|
- 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
|
|
- squash commits.
- fix conflicts during rebase.
- fix travis build warnings.
|
|
- Changed all function calls to encourage parenthesized calls
- Replaced numbers with constants where appropriate
- Removed some incorrect remarks
Signed-off-by: Haru <haru@dotalux.com>
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
documentation.
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
- The function now checks its arguments, rather than passing them to
the system implementation (safer against arbitrary memory access or
wrong variable type)
- Implemented positional ('%1$d') specifiers (POSIX style)
- See script_commands.txt for details about the supported format
specifiers.
Signed-off-by: Haru <haru@dotalux.com>
|
|
getskillv -> getskilllv.
|
|
|
|
- there are 2 same constants for setlook script command, remove the wrong one
- VAR_ constant added by lone_wolf is invalid https://github.com/HerculesWS/Hercules/commit/f4278f36db32f35e535a0ea8feb1cf83ca95019e, so use the LOOK_ constant
|
|
- This is necessary for upcoming improvements
Signed-off-by: Haru <haru@dotalux.com>
|
|
- extremely useful when writing algorithm functions
Closes #1012 as merged
Signed-off-by: Haru <haru@dotalux.com>
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
Useful for scripts that temporary adjust the group id of players.
|
|
|
|
Closes #858 as merged
Signed-off-by: Haru <haru@dotalux.com>
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
http://herc.ws/board/topic/7489-explode-to-push-arraysize/
Closes #700 as merged
Signed-off-by: Haru <haru@dotalux.com>
|
|
Added F_MesColor helper function
Closes #897 as merged
Signed-off-by: Haru <haru@dotalux.com>
|
|
- unlike rathena, hercules' getunittype use the value from getmapxy
- getmapxy now can search object position using GID
Closes #871 as merged
Signed-off-by: Haru <haru@dotalux.com>
|
|
|
|
|