29 Commits

Author SHA1 Message Date
Lemongrass3110
9b1b7b1a2b Replaced hardcoded genders with constants (#1730)
* Replaced hardcoded gender codes in source

Introduced a new constant for the account based gender and replaced all hardcoded gender references to code 99 with it.

* Replaced hardcoded gender codes in npcs

Exported the gender constants into the script engine and replaced all usages with references to the constants instead of expecting a value behind them.

* Corrected a typo

Thanks to Machiezmo from Discord.

* Fixed an inverted gender logic

Thanks to @secretdataz
2016-11-22 21:20:03 +01:00
Cydh Ramdh
9d3d34205f Skill DB clean ups
* Changed skill_db array to better memory allocation.
* Reduced MAX_SKILL_LEVEL from 100 to 10 (part of Hercules 0f4a50d135), also has changes on skill_get checks for skill level that more than 10.
* Reduced MAX_SKILL from 5020 to 1200 (actually only 1109 skills are used).
* Added macros for checking Homunculus, Guild, Mercenary, & Elemental skill ranges.
* Added skill check & index validation when player logged in and when @reloadskilldb.
* Corrected `enum e_skill_flag` order for SKILL_FLAG_REPLACED_LV_0's sake.
* Merged 'addtoskill' script command just as alias of 'skill' script command.
* Fixed #277
* Changed 'skill' script command flag to constant value

Signed-off-by: Cydh Ramdh <house.bad@gmail.com>

NOTE:
* Decreased memory usage by map-server reduced up to 50 MB.
* Decreased memory for each player because of mmo_charstatus::skill[] only has 1200 array, before is 5020.
* Please use skill_get_index() for accessing sd->status.skill[] or skill_db[], don't reckless use skill_id as array index.
* Please import upgrade_20150211_skillset.sql

Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
2015-02-12 15:50:50 +07: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
97687ca10c Global_Function updates.
* Added the following functions:
  - "F_GetPlural" (returns plural of noun) / "F_InsertPlural" (returns plural if arg != 1)  [credits: EnglishClub for formation rules]
  - "F_InsertArticle" (returns 'a' or 'an' preceding word)
  - "F_InsertComma" (formats number with commas)
  - "F_GetNumSuffix" (formats number with '-st', '-nd', '-rd', or '-th' suffix)
* Added and removed new functions where necessary. (incomplete)
* Added new types to "F_GetArmorType" function, and weapons will now pass to "F_GetWeaponType".
* Reformatted comments.

Other changes:
* Removed some garbage text from scripts.
* Slight edits to custom warper script.

Signed-off-by: Euphy <euphy.raliel@rathena.org>
2014-01-03 20:13:44 -05:00
glighta
8d605f89c3 - Follow up r17296
-- capped CAMOUFLAGE effect, (defs should be lower then 0, atk bonus max 300, fix cri bonus  (base is 1000 not 100))
-- fix bugreport:7601 and add new mapflad for clif_maptypeproperty2 (nomineeffect, nolockon, noitemconsumption, nousecart, nosumstarmiracle) still investgating full effect
-- harmonize script_ref source


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17297 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-04-26 14:38:54 +00:00
euphyy
5edd3e023a * Added official Homunculus S mutation quest (previous file renamed).
* Added 'checkhomcall' & 'morphembryo' commands and updated 'hommutate' command, as required by the Hom-S quest. (code by Aleos/lighta)
* Modified 'gethominfo' to work for Homunculi in 'rest' state, also needed for the Hom-S quest to run properly.
* Updated spawns for Scaraba Hole (dic_dun) and Dewata (dew_fild, dew_dun).
* Minor update to some item scripts.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17220 54d463be-8e91-2dee-dedb-b68131a5f0ec
2013-03-28 17:09:04 +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
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
brianluau
905293afc6 - Re-added Hardrock Mammoth's MD_BOSS mode that was lost in r14052.
- Fixed a typo ("too much too much") in Alchemist Quest.
- Updated SQL item/mob databases to latest. (thanks Peter)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14074 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-09-24 01:48:17 +00:00
L0ne_W0lf
0a11f3157f Replacing specialeffect/2 numerics with constants in quests.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@13237 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-09-25 22:36:22 +00:00
samuray22
3f1793ee12 * Fixed Missing Variables in Metto quest. (bugreport:473)
* Deleted some unused Variables in Bio Ethics quest.
* Changed some bad RGB Codes in THQ. (bugreport:211)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11783 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-22 22:31:07 +00:00
L0ne_W0lf
2a089de427 Fixes bugreport:417 and bugreport:418
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11740 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-11-15 06:19:29 +00:00
L0ne_W0lf
26717ecb36 Updated Bio Ethics quest to official, and re-added.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11595 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-10-28 16:39:23 +00:00
L0ne_W0lf
521950d270 2-x quest skill update 1/2.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11563 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-10-24 02:33:50 +00:00
Lupus
2af265d1b1 replaced some item names with item IDs, also fixed a bug in skill quest (some items weren't deleted)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10992 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-08-13 09:13:21 +00:00
ultramage
a6cd45f05d * Fixed north prontera kafra having an empty warp list
* Removed junk &#1038;A text from the 2004 headgears
* Changed deprecated Job_Alchem to Job_Alchemist (see r10904)
* Fixed a typo in a geffen city npc (Job_Merhcant)
* Fixed a typo in the Jobmaster custom script (Job_Gunsliger)
* Fixed one old eAAC Quest Warper bug (warp to nonwalkable coords)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10940 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-07-31 21:27:01 +00:00
samuray22
f05a3cf287 * Fixed a little minor bug in "Crusader Job Quest".
* Added some missing NPCs from the Laboratory on "Elemental Potion Cretion Quest".

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10799 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-06-21 15:54:37 +00:00
samuray22
00602b5ed6 * Updated "Ph.D Quest" Dialogs.
* Updated "Elemental Potion Creation Quest" to the official one.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10796 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-06-20 17:54:13 +00:00
SinSloth
949d0cb44e * Added President quest aka. Schwartzvalt Trilogy. Please encourage your players to test it.
- Moved some NPC and fixed some typos in Lighthalzen and Einbroch due to the quest.
- Updated Yuno Government Buildings warps according to the quest.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10540 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-05-14 10:05:11 +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
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
80652329cf fixed bio ethic q
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8611 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-04 15:24:00 +00:00
toms
d7156f2f21 Tried to remove all duplicates (in default NPCs)
( hope nothing is broken ;) )

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8581 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-01 22:11:36 +00:00
DracoRPG
94f427f6c3 Various NPC fixes
* LUPUS, REMEMBER TO ACTUALLY ADD THE DIVORCE NPC, THANKS :P *

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8571 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-01 10:59:14 +00:00
Lupus
50ad89cb53 fixed a typo in alchem skill quest
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8498 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-27 06:12:17 +00:00
Lupus
70e170f745 move Bio ethic to skill quests, fixed bio ethic (let Baby alc+creators learn the skill, too). updated lighthalzen added mapflags. fixed treasure spawn formula
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8463 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-08-24 04:47:51 +00:00
DracoRPG
48dfc97a08 Updates & fixes on repairmen and 2nd job skills quests
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5392 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-02-26 15:07:16 +00:00