Commit graph

40 commits

Author SHA1 Message Date
Haru
59ff49cfbb
Replace the magic numbers in gettimetick() calls with the appropriate constants
Signed-off-by: Haru <haru@dotalux.com>
2023-08-12 23:56:42 +02:00
Guilherme G. Menaldo
75fa2a02b5
make GoldPC System configurable and customizable
includes GoldPC DB to create different configurations and
setgoldpcmode script command to change modes dynamically via script
2023-02-26 17:19:16 -03:00
Asheraf
005d35f9fa Implement Dynamic NPC's 2022-06-02 08:30:37 +02:00
Haru
0d1e76cd68
Remove the deprecated debugmes() script command (deprecated since 2018)
The more flexible consolemes() should be used instead.

Signed-off-by: Haru <haru@dotalux.com>
2021-10-29 01:46:49 +02:00
Evil Puncker
0b826c13bd
Update npc_live_dialogues.txt
Signed-off-by: Haru <haru@dotalux.com>
2021-10-06 22:41:51 +02:00
Emistry Haoyan
874b736be1
Extend *set/getiteminfo script commands
- additional options.
2019-08-05 01:54:46 +08:00
Andrei Karas
939568eb4a
Add barter shop demo script. 2019-01-14 20:18:11 +03:00
Dastgir
9b878ee447 Updated getiteminfo and setiteminfo.
Added ITR_TRADE (Trade restriction) for both script commands
2018-10-21 21:19:14 +02:00
Guilherme G. Menaldo
a69f1ef5d0 Fixed rodex_sendmail_acc script command and rodex examples 2018-06-10 12:27:10 -03:00
Haru
e52cb33ab5
Add ITEMINFO_VIEWSPRITE support to getiteminfo() / setiteminfo().
Adds the ability to query an item's view sprite, lost with #1828

Fixes #1895

Signed-off-by: Haru <haru@dotalux.com>
2017-11-12 02:01:05 +01:00
Haru
dfcb1ff37a
Add ITEMINFO_MATK support to getiteminfo() / setiteminfo().
This item info type was documented in commit
315d632e69, but never implemented.

Signed-off-by: Haru <haru@dotalux.com>
2017-11-12 01:56:57 +01:00
Haru
ab1c84c858
Add type constants for the getiteminfo()/setiteminfo() buildins
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>
2017-11-12 01:46:40 +01:00
KirieZ
544da439e8 Implementation of RoDEX 2017-07-30 13:45:41 -03:00
Asheraf
86977d7926 *strnpcinfo now uses constants
- 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
2016-08-29 01:03:42 +02:00
Haru
b4c99db7d5 Replaced leftover -1 view IDs with FAKE_NPC
Signed-off-by: Haru <haru@dotalux.com>
2015-12-31 23:39:23 +01:00
Haru
34037c40d2 Fixed too-generic constant names of gettime() types
- Follow-up to 3bd77ffc0d
- The names were too generic (not namespaced), and were easily clashing
  with custom (and potential future official) constants or variables.
- Constants are now prefixed with a 'GETTIME_' namespace:
  - GETTIME_SECOND
  - GETTIME_MINUTE
  - GETTIME_HOUR
  - GETTIME_WEEKDAY
  - GETTIME_DAYOFMONTH
  - GETTIME_MONTH
  - GETTIME_YEAR
  - GETTIME_DAYOFYEAR
- Fixed some excessive (and some times incorrect) parentheses in
  various scripts using gettime().
- Updated documentation.

Signed-off-by: Haru <haru@dotalux.com>
2015-11-15 00:57:00 +01:00
Haru
274aaebe2b Removed checkquest command
- Follow-up to 3ad4a9d

Signed-off-by: Haru <haru@dotalux.com>
2014-12-02 11:04:01 +01:00
AnnieRuru
f7cd6b4217 Fix various documentation bugs
Fix certain type of bonus can actually trigger with weapon skills
http://hercules.ws/board/tracker/issue-7897-bug-or-bad-description/
Fix duplicate sample typo
http://hercules.ws/board/tracker/issue-4984-wrong-test-duplicate-npc-sample/
skill script command doesn't has type 4
http://hercules.ws/board/tracker/issue-7565-skill-script-command-invalid-flag/
2014-03-20 04:14:49 +08:00
Haru
21fa0901dc Modernized syntax and fixed errors in the sample scripts
Signed-off-by: Haru <haru@dotalux.com>
2013-12-30 16:08:20 +01:00
shennetsind
cf19b26d50 Christmas Patch - 2013-12-23 Support
Info:
http://hercules.ws/board/topic/3614-christmas-patch-gifto/
Signed-off-by: shennetsind <ind@henn.et>
2013-12-24 02:03:04 -02:00
Haru
fe2f840e5d Corrected line endings and BOM issues with several files
- Ensured final end-of-line character in every file.
- Corrected cases of mixed line endings (mostly CR and CRLF within the
  same file.)
- Removed extra BOM  from some scripts, since it causes a parsing error.

Signed-off-by: Haru <haru@dotalux.com>
2013-09-16 11:52:16 +02:00
jaBote
b943199846 Some minor changes:
* Removed some forgotten references to rAthena.
* Updated script_commands.txt for an upcoming script command modification by @shennetsind.
* Corrected a typo in is_upper script command example.
* Updated doc/sample/npc_test_skill.txt to reflect the type 3 flag.

Signed-off-by: jaBote <j@bot.e>
2013-04-26 20:38:48 +02:00
Mysteries
5e16466de3 Updated some more placholders. 2013-01-29 21:30:29 -05:00
Mysteries
7e10f1611d Updated placeholders. 2013-01-29 20:02:52 -05:00
euphyy
382f0b77bf * Added a point to 'npcskill' documentation.
* 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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@17055 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-12-28 04:10:17 +00:00
thatakkarin
5855956aa1 * Removed Non-English sample files from doc/sample/ (bugreport:6750)
- 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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16982 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-11-29 16:20:40 +00:00
euphyy
bd4e344a47 * Added Guillotine Cross job quest, again thanks to Muad_Dib! (bugreport:5834)
* 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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16947 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-11-23 03:22:28 +00:00
glighta
b98ab08bb8 -Adding checkweight2 and upgrading chekweight to read list of item tid:59194.
Check npt_chekweight for exemple of usage.

git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16941 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-11-22 01:15:29 +00:00
thatakkarin
804fbac07e * Partial Fix for bugreport:6800 - Point 3 (soundeffect) and point 4 (sprintf).
* Renamed a few files in doc/sample/ for standardization.
* Indent cleanup in script_commands.txt

git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16864 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-11-06 20:04:12 +00:00
euphyy
bafe9ca1ce * Standardization of doc\sample\ folder.
* Deleted doc\sample\PCLoginEvent.txt, which contained outdated information.
* Follow-up r16812, fixed file encoding.

git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16813 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-10-03 23:13:33 +00:00
thatakkarin
5bf76cb12c * Added documentation for r16771 (MD5 Hash Check)
* 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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16787 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-09-21 01:32:00 +00:00
euphyy
4e6774e417 * Follow-up r16742, revised quest sample (doc\sample\npc_test_quest.txt) and whisper system documentation (doc\whisper_sys.txt)
* Follow-up r16745, fixed a few typos in atcommand documentation (doc\atcommands.txt)
* Minor cleaning - spacing, tabulation, comments, dividers

git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16746 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-09-05 02:42:20 +00:00
thatakkarin
5d08bc2a59 * Fixed bugreport:6619 with correct ammo view id in /doc/item_db.txt
* 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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16742 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-09-03 23:59:46 +00:00
thatakkarin
bffeea2b80 Converted sample Function and Skill scripts into plain English. More to follow.
Also, Akkarin's first commit!

git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16730 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-09-01 11:15:26 +00:00
euphyy
cf6f0ee71e * Condensed the documentation on the "Import" folder, it should be more reader-friendly now (conf\readme.txt)
* 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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16453 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-07-19 18:46:56 +00:00
mercurial123
5e7b090338 - Replaced all occurrences of "eAthena" to "rAthena" string
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15251 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-24 21:30:42 +00:00
ai4rei
7ea5a23ce0 * Some cleaning here and there.
- 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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14680 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-23 18:07:00 +00:00
ai4rei
17aeb75dcd * Various accumulated insignificant fixes to documentation, examples and comments.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14674 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-15 20:12:51 +00:00
ai4rei
9c0ac993e7 * Fixes to the dynamic shop sample script (first part of dynamic shop fixes).
- 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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14609 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-19 18:04:18 +00:00
L0ne_W0lf
6f88f2409f Moved /npc/sample/ to /doc/sample. These are examples, not actual npcs.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14277 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-03-31 18:57:22 +00:00