Age | Commit message (Collapse) | Author | Files | Lines |
|
Implementation of Item Options System.
|
|
|
|
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>
|
|
|
|
|
|
- closes #883
- closes #886 as merged
|
|
- fix bg_monster_set_team example broken
- fix bg_monster show twice
- getpetinfo/gethominfo can return 0 or null if the player doesn't own them
- summon command cannot summon dead branch style, since its using mob->spawn, not mob->once_spawn like *monster script command did
|
|
- getitemname can return "null"
- getmapusers can return -1
and fix the bad ... misleading global function example
|