1305 Commits

Author SHA1 Message Date
aleos89
b98ba7a274 Expanded script command addrid
* Added another option to attach players based on a specified map.
* As suggested in https://rathena.org/board/topic/88331-addrid-addition/ and  https://rathena.org/board/topic/103478-addrid-map-support/
2016-03-08 12:43:09 -05:00
aleos89
709424a75f Resolved a compile error
* Small follow up to 0d5e491.
2016-03-07 10:32:25 -05:00
aleos89
0d5e491b4e Fixed a potential crash with script command setunitdata (fixes #1024)
* Corrected the mercenary client refresh function using monster data rather than mercenary data.
Thanks to @Racaae and @julia40124009!
2016-03-07 09:33:00 -05:00
aleos89
809f220b9f Added to script command navigateto documentation
* Small follow up to 179f734.
* Also corrected an invalid constant.
2016-03-06 16:15:54 -05:00
Lemongrass3110
4f13007fec Implemented serverside navigation system start
This feature was hidden in the client since 2011 and just came to our attention recently.
2016-03-06 21:48:47 +01:00
aleos89
4eb3a9eeda Updated callshop script command for Item and Point Shop (fixes #1008)
* Follow up to a16fb7c.
* Resolves the callshop script command not using the new Cash Shop interface for Item and Point Shop.
2016-03-04 09:19:56 -05:00
Cydh Ramdh
ccf52095a3 Follow up 26dcf345fe753dc43568bb118b6a22e2c93bc7bc
* Added necessary mapflags.
* Corrected documentation.
* Fixed some typos.
* Thanks to @Atemo

Signed-off-by: Cydh Ramdh <cydh@pservero.com>
2016-02-28 18:17:49 +07:00
Atemo
321b1d22e8 Removed the displayed name in from of the message displayed by npctalk and unittalk scripts commands (so we can append whatever we want to).
Signed-off-by: Atemo <capucrath@gmail.com>
2016-02-23 22:12:18 +01:00
aleos89
d512f1588c Refactored Monster Mode
* Refactored all monster mode checks to use the enum e_mode.
* Created elemental_skillmode enum to separate usage from monster mode enum.
* Renamed EL_SKILLMODE_PASIVE -> EL_SKILLMODE_PASSIVE.
* elemental_change_mode() will now return the proper value from elemental_change_mode_ack().
2016-02-23 11:21:45 -05:00
Cydh Ramdh
26dcf345fe Added WOE:TE Restrictions
* Added mapflag `gvg_te`, `gvg_te_castle`, this is will be activated during WOE:TE sessions. These changes are needed because of:
  * If `gvgon` is used, TE castles become `gvg`, it makes the restriction failure. Items that are supposed to only can be used/equipped in TE Castles, also affected in 'normal' GVG/WOE maps.
  * These flags used form `item_noequip`, `skill_nocast`, and `status_disabled` flag 16. (If just assume TE Castles are Restricted Zone 8, the failure will occurs as point 1 above).
* Added Restricted Zone 8 for TE Guild Dungeons, to prevent marriage skills can be casted there.
* Added command `gvgon3` to set GVG for WOE:TE Castles.
* Added command `canParticipateSiegeTE` is 'hardcoded' function to check player's job that can participate in WOE:TE.
  * Current usages in `GD_EMERGENCYCALL` and replace the in-script function.
* Changed default config `allow_consume_restricted_item` to 'no'. All restricted usable/consumable/healing items are always failed to be used.
* Changed the GVG items/skills restriction check. "Item cannot be equipped in GVG maps" are supposed to ignore the agit flag statuses, as long as the map is GVG flagged, items/skills are always restricted and otherwise.
* Moved previous entries of `skill_nocast` flag 16 as hardcode (for now).

Signed-off-by: Cydh Ramdh <cydh@pservero.com>
2016-02-20 09:33:07 +07:00
aleos89
8e283d2a00 Follow up to 0a77835
* Some basic refactoring.
* Cleaned up the documentation for script command getmapxy.
-- Removed UNITTYPE_MOB from the script command.
2016-02-05 12:38:30 -05:00
Atemo
9373c697b5 Added some source part. Thanks @aleos89 / @Cydh
Some debug thanks @Cydh
2016-02-05 15:48:26 +01:00
aleos89
0a77835029 Unit Controller Updates
* Added missing UMOB_CANMOVETICK option.
* Restructured script command getunittype return values to match the order of script command getmapxy to allow for more universal usage.
* Created constants for script commands getmapxy and getunittype.
* Updated NPCs using script command getmapxy to use the new constant values.
* Updated Battleground NPCs to use constant value for script command setunitdata.
2016-02-04 10:47:16 -05:00
Napster
c1f843d755 Follow up d70b173
* Remove sctipt command closedressroom not used this
* cleanup some code
* check white space
* add detail&document packets
2016-01-13 13:10:57 +07:00
Aleos
01ba54c77c Merge pull request #832 from CairoLee/master
Fixes #652 and #818
* Resolves players being able to talk to NPCs when a shop is open.
Thanks to @CairoLee, @anacondaqq, and @admkakaroto.
2016-01-12 17:56:31 -05:00
Napster
d70b1734c8 Add support body style implementation
* This feature require the client support before 2015-05-13 or newer
   Make sure you data&lub support for this

  note : read info to https://rathena.org/board/topic/104205-2015-client-support/

  Special Thanks you to Rytech, @aleos89
2016-01-12 01:55:30 +07:00
Cydh Ramdh
9643230521 Follow up 0be6389c4881ad7c06ad1a546909b8f934a81d8a.
* Fixed compile error, thanks to @anacondaqq

Signed-off-by: Cydh Ramdh <cydh@pservero.com>
2016-01-09 18:11:37 +07:00
Jittapan Pluemsumran
08e26c9de9 Don't set the md->state.copy_master_mode if master_id check fails. 2016-01-09 01:51:04 +07:00
Jittapan Pluemsumran
f2bad5e832 Add master id check in setunitdata script command. Fixes #887 2016-01-08 16:57:22 +07:00
Lemongrass3110
e76fdbf15b Merge pull request #881 from rathena/cleanup/const.txt
Clean up the way we handle our script constants.
Since most of them come from source anyway we now export them directly into the scripting engine to ensure that they use the correct values.
The main benefits are that you users don't have to fear that we forget to adjust something according to source changes, if you use the constants in your scripts that is, and we developers do not have to think about updating them anyway. It also guarantees that constants that used wrong values before this use the correct values that are defined source side.
2016-01-07 19:31:37 +01:00
Lemongrass3110
33729eb961 Migrated all look constants to source exports 2016-01-07 00:43:26 +01:00
Lemongrass3110
958b6cd5d9 Migrated all font weight constants to source exports 2016-01-07 00:28:15 +01:00
Lemongrass3110
de61a19eca Migrated all getpetinfo constants to source exports
Created the respective enum on source side.
2016-01-07 00:19:37 +01:00
Lemongrass3110
28e337127e Migrated all getmonsterinfo constants to source exports
Created the respective enum on source side and changed the script doc to only refer to the constants not the direct values.
Additionally adjusted the sample script.
2016-01-06 23:55:06 +01:00
Lemongrass3110
a68ab0c88d Migrated all getpetinfo constants to source exports
Created the respective enum on source side and changed the script doc to only refer to the constants not the direct values.
2016-01-06 23:28:05 +01:00
Lemongrass3110
72fe7f9ec6 Follow up to 56a7440
Added debug output to the quest log related commands to make it easier to find the source if a command fails(usually AEGIS script logic fails...).
2016-01-06 03:54:59 +01:00
Lemongrass3110
192badd150 Fixed #878 2016-01-06 02:43:38 +01:00
Lemongrass3110
737fcc41f9 Included the new script_constants.h file
and migrated all existing exports over.
2015-12-31 03:02:30 +01:00
Lemongrass3110
48116ba9f8 Fixed MAX_CART constant being exported to script constants with wrong value(MAX_INVENTORY). 2015-12-31 02:26:35 +01:00
CairoLee
c8db271ed9 Fixed #652 #818
Signed-off-by: CairoLee <cairoliyu@gmail.com>
2015-12-12 16:24:44 +08:00
aleos89
89a33a77ad Updated Genetic Sling Item effects
* Moved all item effects to source.
* Updated HP/SP Increase Potions to use the official statuses.
* Updated Vellum Flail to use the official status instead of Critical Wound.
Thanks to @exneval.
2015-12-08 14:38:55 -05:00
Napster
0c9bd301d8 Follow up to 8b3b32e
* Revert code, found problem with npcshopattach
2015-12-07 12:47:38 +07:00
Napster
8b3b32e000 Fixed #503
* when use the callshop, then player can't move in the game. thank to @CairoLee
2015-12-06 01:01:07 +07:00
aleos89
0212d44bb4 Fixes #809
* Reverted 42b7ba9 and cef2f9e NPC shop ID checks.
2015-12-05 10:08:18 -05:00
Atemo
24ecdadf48 Merge branch 'master' into academie 2015-12-02 00:40:42 +01:00
Atemo
1a5b5f6057 Typo 2015-12-02 00:21:40 +01:00
Atemo
5695dc57e2 Update & fix.
- Updated script_commands.txt
- Fixed typo in bio4_reward.txt
- Fixed getexp command giving 1 exp with 0 value
2015-11-29 16:57:04 +01:00
Atemo
c3e56b9c1b Update 2015-11-26 23:11:22 +01:00
Atemo
7fcd0f5b9d Clean up 2015-11-24 23:22:42 +01:00
Atemo
9b13351817 Merge branch 'master' into academie 2015-11-24 18:01:09 +01:00
Atemo
501751df39 - corrected getequipid warning when nothing equipped
- getstatus should push -1 for infinite timer
2015-11-24 17:23:35 +01:00
lighta
65b6861e84 Small cleanup
And updata mapcache to use DBPATH instead rechecking RENEWAL macro,
(code duplication)
Make mapcache use cli.o to give some feedback on arguments given.
2015-11-18 06:34:14 -05:00
lighta
8703eacfe4 Merge branch 'academie' of https://github.com/rathena/rathena into academie 2015-11-17 22:19:38 -05:00
Atemo
1e80d1b720 Removed comment and corrected typo 2015-11-18 03:36:37 +01:00
aleos89
c389a6c456 Follow up to e276970
* Fixed an issue with ATK/MATK params. Thanks to Lord Ganja.
2015-11-16 11:14:42 -05:00
Atemo
cc8edaaac6 Merged novice academie from Hercules 21564acf13
-> All Credit to Kisuka for this big work.

Added news commands to alter questinfo conditions :
- setquestinfo_level : Add level range criteria for quest info with quest id 'quest_id'.
- setquestinfo_req : Add quest requirement for quest info with quest id 'quest_id'.
   -> Player have / doesn't have the required quest.
- setquestinfo_job : To add additionnal job criteria.
-> Credit to Cydh !
2015-11-16 00:34:00 +01:00
lighta
09ddcdfe2a Merge pull request #731 from lighta/master
Type enforcement
2015-11-15 19:14:39 -04:00
lighta
dcfcb39dd0 Follow up 07ba18d, add @lemon fix for filling out correctly $@arenamembers array. 2015-11-15 18:57:53 -04:00
aleos89
e276970723 Updates for Unit Controller Script Commands
* Follow up to 2cee5b6.
* Fixes #516 - Base stats (STR, AGI, etc) will now stick after the unit's statuses are recalculated.
* Statuses are directly modifiable now (ATK, DEF, etc)
* Created constant values so it's a lot easier to read.
* Updated script command documentation to reflect changes.
2015-11-14 11:47:38 -05:00
lighta
07ba18d01f Follow up for cppcheck cleanup merge.
Revert some part
2015-10-30 04:14:15 -04:00