68 Commits

Author SHA1 Message Date
Jittapan Pluemsumran
bd6539a9ba Follow up to c23688c
Unify all checks into one function.
Suggested by @Cydh.
2016-03-26 10:52:30 +07:00
Jittapan Pluemsumran
c23688cea4 Clean up basic skill checks 2016-03-23 21:11:57 +07:00
Atemo
3a45dd97f9 Another clean-up 2015-12-09 23:09:17 +01:00
Euphy
3b2762ca3c Enable NPC logging through 'logmes' by default.
- Commented some unnecessary log messages.

Bug fixes:
- M_DOPPELGANGER had too much HP. (Hercules 9cd3ec0)
- Huuma_Swirling_Petal should not have an element. (bugreport:9073)
http://rathena.org/board/tracker/issue-9073-huuma-swirling-petal/

Signed-off-by: Euphy <euphy.raliel@rathena.org>
2014-08-22 16:06:32 -04:00
Euphy
cad0a57865 Replaced 'getserverdef' command with 'script_hardcoded_constants' function in source. These constants can now be directly accessed in scripts. (Hercules 950e3eb)
- Relocated 'Option_*' constants from 'db/const.txt' to source; added OPTION_COSTUME compound. (Hercules a5728fd)
- Added MAX_CHAT_USERS define. (Hercules 950e3eb)
- Follow-up ca9642a: applied 'Loc' changes to Pre-Renewal database.

Signed-off-by: Euphy <euphy.raliel@rathena.org>
2014-03-01 15:42:49 -05:00
Euphy
90b187ff3e Changed all "Compatible With" fields to "rAthena Project".
Edited a handful separately, as appropriate.

Signed-off-by: Euphy <euphy.raliel@rathena.org>
2014-01-12 16:24:38 -05:00
Euphy
d2ee0dd55f * Implemented VIP system in many official scripts.
- VIP players gain two more badges after Battleground matches.
- VIP players pay ten times less for transportation to Brasilis and Dewata.
- VIP players get free buffs and mercenary rentals in the Eden Group Headquarters. (iRO only, disabled)
- Non-VIP players must use a Reset Stone to begin the third job quests.
- Non-VIP players must have a Marriage Covenant to get married.
- Non-VIP players pay double for Kafra and Cool Event Corp. Teleport Services.
- Non-VIP players pay considerably more for refining equipment.
- Non-VIP players gain less quest reward items in Port Malaya quests.
- Non-VIP players gain less EXP rewards in Brasilis quests.
- Non-VIP players cannot access all towns in Acolyte Warpers script. (iRO only, disabled)
- A Reset Stone is required for Bossnia entry.
Note that official servers run different VIP/premium systems; the changes above are based on euRO, unless otherwise stated.

* Other script changes:
- Adding Marriage Covenant item in marriage script.
- Fixed some EXP values in Brasilis quests.
- Minor updates to Kafra functions.
- Turned Cool Event Corp. scripts into a basic function.
- Turned Battleground badge rewards into basic functions.

Signed-off-by: Euphy <euphy.raliel@rathena.org>
2013-11-18 23:54:17 -05:00
Euphy
bf68ccefa3 * Script style standardization.
- Standardized cases on constants (Zeny, Sex, BaseLevel, etc.).
- Replaced numerics with constants.
- Standardized parts of script headers.
- Changed some script styles to K&R.
- Added some official script file names as comments.
- Replaced most 'misceffect' commands with 'specialeffect'.

Signed-off-by: Euphy <euphy@rathena.org>
2013-08-27 03:28:41 -04:00
euphyy
fdd0fd1d72 * Standardized label names and converted all labels to Pascal case. (temp. fix for bugreport:6988)
* Many fixes to Izlude Arena scripts.
* Other misc. standardization.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17410 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-07-10 07:25:44 +00:00
euphyy
af8ef75a53 * Added "Cat Gamers" to Malangdo quests. This marks the completion of the Malangdo episode.
* Implemented Port Malaya Kafras, guides, sailors, and Eden teleporter.
* Edited documentation for 'sc_start' and 'addmonsterdrop'/'delmonsterdrop' commands. (follow-up r17326, r17237)
* Updated atcommand documentation and help file.
* Minor organizing of script locations.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17328 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-05-15 05:16:19 +00:00
euphyy
8f20df9e5a * Updated RUS map_msg translation, and switched encoding from UTF-8 to Windows-1251. (credits: Jarek)
* Fixed "View Equip" bug. (bugreport:7628)
* Follow-up r17305, applied proper fix for functions_kafra.txt.
* Follow-up r17308, minor formatting changes and added prop eol-style:native.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17309 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-05-02 03:16:01 +00:00
euphyy
0cb9ee98ef * Added documentation for cashshop.c functions. (credits: Lighta)
* Fixed a duplicate 'next' call for cart function in functions_kafras.txt.
* Updated item bonuses for LV5 Assumptio Scroll (12218) and Chemical Protection scrolls. (Hercules 7a625b9, 854851c; incl. bugreport:6396)
* Replaced current SPN map_msg translation by jaBote/Tragedy with one by Leeg.
* Updated FRN, CHN map_msg translations. (credits: Capuche, Goddameit)
* Changed '@newmount' to '@mount2' in atcommand documentation.
* Other misc. changes.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17305 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-04-29 22:39:28 +00:00
lemongrass3110
0acdc668f0 Updated dewata to match the official scripts.
This commit includes a optional SQL upgrade file, that will reset all the dewata quests and the related variables, that your users have done.

Thanks to Euphy for helping me and additionally thanks to Flaid for taking his time to test our conversion.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17178 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-03-06 21:38:39 +00:00
euphyy
9f1a84dfd3 * Updated Rune Knight and Ranger job quests to their latest versions. This completes the recent third job updates (r17024, r17010, r16991, r16990).
* Fixed quest_db name typos (bugreport:7011).
* Added Wolf Flute Trader script to re\merchants\falcon_flute.txt, and renamed to re\merchants\flute.txt.
* Optimized Falcon Flute Trader script.
* Added constants in El Dicastes quests.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17028 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-12-17 22:05:04 +00:00
j-tkay
897797722b - Merged and cleaned up Kafras. (kafras/kafras.txt)
- Added Warp Points / View Points Function. (kafras/functions_kafras.txt)
- Updated dialogue for Shadow Chaser Job Change Quest. (jobs/3-2/shadow_chaser.txt)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16699 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-24 18:30:31 +00:00
daegaladh
887515619a Follow up r16609. Optimized kafra warps a bit more.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16610 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-08 17:12:02 +00:00
j-tkay
744b6e5be5 - Optimized kafras/functions_kafras.txt.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16609 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-08 15:17:41 +00:00
daegaladh
55dcd04631 Rescripted Moscovia Kafra to use the Kafra functions.
Removed unofficial Guide option in functions_kafras.txt.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16583 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-05 14:26:10 +00:00
daegaladh
6a72153c12 Follow up r16545. Fixed some mistakes I made.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16548 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-01 05:06:59 +00:00
daegaladh
f49b3d6f55 Full npc folder reorganization. (I hope I didn't break anything D:)
-Now common scripts goes to the main npc folder, and pre-re-only/re-only ones goes to their respective folders.
-NPCs with practically the same script but little differences have been left in the main folder and uses the command checkre() for the differences.
-For those NPCs with different coordinates but same script, the script has been left in the main folder but the NPCs splitted as duplicates.
-All pre-renewal files has been reverted back to their pre-renewal behavior.

TODO:
-Correct pre-re quest rewards.
-Check for pre-re/re differences in mapflags.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16545 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-08-01 04:29:56 +00:00
shennetsind
086af74531 Okie ladies and gentleman if this commit breaks anything it's jman's and maki's fault, yes, blame them.
Fixing pre-re / re npc support, moving /config/ folder to src root so other servers may also make use of the #define renewal dir and other stuff.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16382 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-07-08 19:30:07 +00:00
brianluau
3aede46965 - Removed trailing tabs, and fixed some spacing.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15524 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-30 16:02:55 +00:00
mercurial123
0f47604f2d - Replaced all occurrences of "eAthena" to "rAthena" string
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@15251 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-12-24 21:30:42 +00:00
ai4rei
e560ba458b * Revised argument declaration of all script commands according to the actual functions' argument usage.
- Fixed many script commands with fixed amount of optional parameters to no longer accept any amount of arguments (faulty declaration).
- Corrected use of dummy parameter for guildopenstorage in scripts.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14573 54d463be-8e91-2dee-dedb-b68131a5f0ec
2010-12-10 22:29:12 +00:00
brianluau
219a527c17 - Fixed some 'input' max value checks not working after r12192. (bugreport:3436)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13982 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-30 23:18:21 +00:00
brianluau
0b9d0db035 - Fixed a spelling typo in Kafras' dialog. (bugreport:3145)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13823 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-29 20:14:34 +00:00
ultramage
bae7ecf012 Reverted the "The md5() of their kafra code is now stored in #kafra_code$" change from r13728.
Added md5calc to vs8/vs7/vs6 project files.
Applied svn:eol-style to the new sql upgrade file.

Note that if you already applied the sql upgrade, your kafra passwords are lost.
Also note that txt users will still have to implement their own migration code into the kafra scripts since it was omitted in the previous commits.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13729 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-04 12:29:54 +00:00
brianluau
53998c9f3d * Added the md5() script command. (follow up to r13719)
- Changed kafra storage password to be stored as md5 hash in #kafra_code$.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13728 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-04 08:22:53 +00:00
brianluau
791429c7b0 * Removed the obfuscation of the #kafra_code password. (bugreport:2323)
TODO: add a 'md5()' script command and use that instead.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13719 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-05-03 04:30:20 +00:00
Kisuka
283de6f7a1 - Typo fixes to THQS.
- Few fixes on warper.txt
- Official warp cords for Kafra Teleport Service.
(Someone delete Custom folder already before l0ne kills himself! :<)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13431 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-01-04 11:18:10 +00:00
shadow
a98253bcc4 Converted skill commands integers to strings. Follow up on r12814
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12819 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-06-13 10:13:14 +00:00
L0ne_W0lf
af1e3083ac git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11545 54d463be-8e91-2dee-dedb-b68131a5f0ec 2007-10-22 16:35:51 +00:00
Lupus
4d5c7cc604 fixed storage access w/o password trough Cool Corp. Staff. Yup. We don't have packet/client based Storage password yet. So fixed it due to many complains.
Also added cutins into Cool Evnt.Staff NPC

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11159 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-09-10 05:33:07 +00:00
L0ne_W0lf
7b0f8d45cf * Fixed the Kafra Welcome message for guilds. Thanks Barron-Monster.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10906 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-07-24 15:19:51 +00:00
L0ne_W0lf
d75ac44c4a * Updated Juno and Comodo NPCs.
- Updated Monster Museum NPCs as well.
- Updated doomed swords quest, moved unrelated NPCs to proper files.
- Added the end of the Comodo and Juno doomed swords quests.
* Fixed "[Kafra Employee]" being shown twice at one instance.
* Fixed the Geffen Inn NPC.
* Updated the NPC names for the Geffen Kafra.
* Updated the PVP script to official. Includes Event mode.
- Added warps for the PVP Cross room.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10858 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-07-06 20:21:43 +00:00
ultramage
9bea875b80 fixed minor npc file typos
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10855 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-07-04 14:54:49 +00:00
L0ne_W0lf
9baed59553 * Fixed a few errors with the kafra functions.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10839 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-07-01 19:59:12 +00:00
L0ne_W0lf
ef0d19bcbb * Rev 10815 Updated NPC for Payon.
- Added in the comeplete fortune teller. 
- Rewrote the Arrow quiver and Gemstone trader NPCs.
  Moved the Gemstone trader intot he '/merchants' folder.
- Updated the information for the Payon Inn accordingly.
* Removed an NPC from the Lighthalzen quests. Should fix the
  "NPC not removed." message when reloading scripts. .Removed
  because I couldn't find this NPC anywhere it he official file.
* Fixed a few over-looked names in the Kafra teleport function.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10815 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-06-27 03:35:38 +00:00
L0ne_W0lf
942687c211 * Rather large Kafra update. (May need further testing)
- Updated a good portion of the kafra functions.
- Added proper dialog for most functions.
- Updated guild Kafras and some o f their locations. 
* Updated all Guide NPCs. They are now mostly 100% official.
- Renamed some of the old files to make them look better, IE: yun to juno.
- Added Kunlun and Ayotaya guides.
* Added the Einbech tool Dealer since it seemed to had gotten lost when I updated shops.
* Updated Dye Maker and Hair Dyer to official. 

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10810 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-06-25 20:22:54 +00:00
L0ne_W0lf
48fc2d2e23 *Fixed the Kafra function, which was screwing up teleporting.
* Undid come of the changes to the Jawaii and Izlude NPCs.
- Changed ispartneton() back to getpartnerid()
- Added Cebalis' dialog back in, and fixed a problem with Dega.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10777 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-06-16 15:48:08 +00:00
L0ne_W0lf
c92f6a69ee * Updated cities: Morroc, Jawaii, and Izlude
- Moved an NPC out of Prontera because of the Jawaii update.
* Updated Wedding script to official. (Moved previous to custom.)
- Updated the Divorce NPC to Official as well.
* Changed some dialog in the Kafra Functions.
* Updated the Message boards to iRO standards.
* Added the Mail box NPCs even though the mail system is not implemented.
* Near total rewrite of the shops.txt file. Lots of corrections and such.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10766 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-06-14 20:34:13 +00:00
ultramage
45c732b05d More eof eols (followup to r10401); skipping /npc/custom and /npc/samples
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10402 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-29 08:39:36 +00:00
Lupus
c6d5f38b75 removed all .GAT from all the scripts and tested
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10018 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-15 20:32:55 +00:00
FlavioJS
1f54e62d13 - Updated some functions calls that where using the wrong number of arguments with checkcart,checkfalcon,checkriding,getgmlevel,basicskillcheck.
hmm, maybe I should add a config option for lazy scripter that still want to run script code that uses too many arguments

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9637 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-01-09 17:59:27 +00:00
FlavioJS
637ae9a4dc - Massive EOL normalization & 'svn:eol-style native' flag setting for all txt/conf/h/c files.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9410 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-05 13:23:07 +00:00
Lupus
7367e7aa5f Many small scripts fixes - tabs, parenthesis, typo
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9137 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-04 22:59:57 +00:00
Lupus
6e7319212f fixed The Sign Quest
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9011 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-19 05:22:55 +00:00
Lupus
d5c7e45bac updated kafra functions.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8964 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-11 16:45:24 +00:00
Lupus
5605542ef1 implemented 3 kafra ptickets for KAfra. removed kafra pass
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8962 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-10-11 10:39:29 +00:00
Lupus
f65ed87611 * Added back Guild Storage. Confirmed kRO feature
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8701 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-11 08:39:41 +00:00