* Closes#3159.
* Adds script commands getunits, getmapunits, and getareaunits.
* Replacement for script commands getusers, getmapusers, getareausers. (In a future commit)
Thanks to @sader1992, @Atemo, and @anacondaqq!
This PR change the emoticons constant name to match emoticonlist from client side.
Note: the previous emoticons names are now deprecated.
Additionnally emotion and unitemote scripts commands are being merged together to the new format
-> emotion <emotion number>{,<target>};
Where target use the target Game ID (GID) of the unit (npc, pet, character etc..).
* unitemote is now deprecated.
* Additionnally fixed incorrect variable in quests_brasilis.txt
Thanks to @aleos89 and @Lemongrass3110 !
While refactoring those events the following other changes were made:
Introducing OnInstanceDestroy event. This event can be used to hook script code right in front of the instance destruction. This can be useful if you have any stored references to an instance id for example.
The script command cmdothernpc will now check if the target event exists and report failures. Therefore it now returns true or false.
All agit(FE,SE,TE) start and end commands from atcommand and script commands have been merged in their respective guild function which now returns a bool value of true for successful actions and false if it did not succeed(if the specific WoE was [not] running).
All global triggered events with mapserver status output now call the same function and therefore have the same mapserver output(including their respective event name of course).
Renamed a few events in the script configuration to match the other names
Added constants for months and weekdays
Additionally added constants for gettime types to make it easier to read.
Replaced all existing usages I found with their proper new syntax or better fitting functions.
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.
-Fix bugreport:8503 (chkweight uint16 limitation on weight thx to
AnnieRuru)
-Add this testcase on npc_test_checkweight.txt and move it to npec/tests
folder.
* Replaced "Current Version" field with "Last Updated" when a date is provided.
* Added Magic Candy (12596) and Spark Candy (14586) to Renewal item_delay database.
Signed-off-by: Euphy <euphy.raliel@rathena.org>
- This consists of a few traders, warpers, cashshop-related scripts, and duplicates from various locations.
- There are a lot of placeholders and some entirely missing scripts; these may be added later, but we don't intend to implement all of iRO's custom features.
- Some of the item sprites may be unviewable without iRO's data.grf.
* Minor database updates:
- Corrected all *_C (rental) equipment entries; to be updated later on with VIP bonuses.
- Fixed some bHpDrainRate item_db entries. (incl. bugreport:8049)
- Fixed a mob_skill_db entry. (bugreport:8050)
* Other changes:
- Renamed 'F_RandMes' to 'F_Rand', to clear up any confusion. (follow-up 66a2bfd)
- Small changes in Armor Enchanter script (thanks to Emistry for pointing it out :p).
Signed-off-by: Euphy <euphy@rathena.org>
* Updated item_db and some related functions.
* Updated item_trade table.
* Fixed two item scripts with bMagicAtkEle. (bugreport:7385)
* Fixed minor issue in guild storage sample script. (bugreport:7406)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17209 54d463be-8e91-2dee-dedb-b68131a5f0ec
* Added Malangdo Tool Dealer.
* Fixed quest log sample, which never worked to begin with -- thanks clydelion!
* Fixed potential error with clones in custom Hunting Missions script (bugreport:7055).
* Follow-up r16990, forgot to commit the EXP fix.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17055 54d463be-8e91-2dee-dedb-b68131a5f0ec
- sample/npc_test_ev.txt was originally used to demonstrate nifty event related commands.
- sample/npc_test_arena.txt is rather defunct as there are fully working scripts within npc/ that demonstrate the same functionality.
- sample/npc_test_str.txt explains how StRing != striNG. This is documented in doc/script_commands.txt
* Slight update to CMakeLists.txt for README.txt
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16982 54d463be-8e91-2dee-dedb-b68131a5f0ec
* Follow-up r16941: added documentation.
* Updated WOE Controller script to v1.4, which modifies LoadEvent mapflag settings for easier cross-compatibility and standardizes script format.
* Minor tweaks here and there.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16947 54d463be-8e91-2dee-dedb-b68131a5f0ec
* Renamed a few files in doc/sample/ for standardization.
* Indent cleanup in script_commands.txt
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16864 54d463be-8e91-2dee-dedb-b68131a5f0ec
* Removed sample/npc_sample.txt as it's unneeded (and 17KB of wasted space)
* Updated a link in readme/resources.html
* Modified readme/commands.html to use doc/atcommands.txt for explanations.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16787 54d463be-8e91-2dee-dedb-b68131a5f0ec
* Slight cleanup in /doc/atcommands.txt
* Added quest sample NPC in /doc/npc_test_quest.txt
* Added an additional example in /doc/whisper_sys.txt to show extended usage
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16742 54d463be-8e91-2dee-dedb-b68131a5f0ec
* Deleted doc\pccommand_list.txt, it's outdated and its contents are already (better) explained in doc\script_commands.txt
* Other misc cleaning...
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16453 54d463be-8e91-2dee-dedb-b68131a5f0ec
- Fixed a typo in basejob_baseclass_upper sample script (since r3893).
- Fixed (for sake of consistency) usage of 'sd' before corresponding nullpo check in party_invite (bugreport:2752).
- Fixed atcommand config reading would not cap level for charcommands, when using atcommand level as fallback (bugreport:2961, since r13409).
- Removed orphaned clif_mob_hp declaration from clif.h (bugreport:2788, since r2092).
- Removed unnecessary look-up in itemdb_available macro, as dummy_item is considered unavailable.
- Removed leftover shortlist linked-list struct (followup to r10507).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14680 54d463be-8e91-2dee-dedb-b68131a5f0ec
- Fixed wrong check in ::OnSellItem, causing not-enough-items condition not getting detected (since r11829).
- Fixed an exploit in ::OnSellItem, causing Zeny to be given to the player, even if the items fail to delete (since r5842).
- Fixed missing 'close' in ::OnSellItem (since r5842).
- Replaced 'end' with 'close' in ::OnBuyItem (since r5842, followup to r11829).
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14609 54d463be-8e91-2dee-dedb-b68131a5f0ec