summaryrefslogtreecommitdiff
path: root/world/map/db/const.txt
diff options
context:
space:
mode:
Diffstat (limited to 'world/map/db/const.txt')
-rw-r--r--world/map/db/const.txt243
1 files changed, 138 insertions, 105 deletions
diff --git a/world/map/db/const.txt b/world/map/db/const.txt
index 335ab687..6a9bcba7 100644
--- a/world/map/db/const.txt
+++ b/world/map/db/const.txt
@@ -1,27 +1,4 @@
// Constants usable in scripts.
-// TODO remove all the bSomething and move them to params instead
-
-bMaxHP 6
-bMaxSP 8
-bStr 13
-bAgi 14
-bVit 15
-bInt 16
-bDex 17
-bLuk 18
-//bAtk 41
-//bAtk2 42
-bMatk1 43
-//bMatk2 44
-//bDef 45
-bMdef 47
-//bMdef2 48
-bHit 49
-bFlee 50
-//bFlee2 51
-bCritical 52
-//bAspd 53
-bDeaf 70
// Elements:
// 0 = Neutral
@@ -66,84 +43,6 @@ bDeaf 70
// n = 2 -> 5x5 cell
// ...
-// Those which can be used with the arrow are only bCritical, bAtkEle, bHit, bAddEle, bAddRace, bAddSize and bAddEff. The other bonuses are ignored.
-// For more information, have a look here: http://code.google.com/p/eathena/source/browse/trunk/doc/item_bonus.txt
-
-bAtkRange 1000 // A range bonus of n (bAtkRange,n;).
-//bAtkEle 1001 // Gives the player's attacks a n element (bAtkEle,n;).
-//bDefEle 1002 // Gives the player's defense a n element (bDefEle,n;).
-//bCastrate 1003 // Adjusts casting time of skill n by x% (bCastrate,n,x;).
-bMaxHPrate 1004 // A max HP bonus of n (bMaxHPrate,n;).
-//bMaxSPrate 1005 // A max SP bonus of n (bMaxSPrate,n;).
-//bUseSPrate 1006 // Increases the consumption of SP by n% (bUseSPrate,n;).
-//bAddEle 1007 // +x% physical damage against a n element (bAddEle,n,x;).
-//bAddRace 1008 // +x% physical damage against a n race (bAddRace,n,x;).
-//bAddSize 1009 // +x% physical damage against a n size (bAddSize,n,x;).
-//bSubEle 1010 // +x% damage reduction against a n element (bSubEle,n,x;).
-//bSubRace 1011 // +x% damage reduction against race n (bSubRace,n,x;).
-//bAddEff 1012 // Adds a 1/100x% chance to cause effect e to the target when attacking (bAddEff,e,x;).
-//bResEff 1013 // Adds a 1/100x% tolerance to an effect (bResEff,e,x;).
-//bBaseAtk 1014 // A n bonus to the basic attack power (bBaseAtk,n;).
-bAspdRate 1015 // +n% attack speed (bAspdRate,n;).
-bHPrecovRate 1016 // Natural HP recovery ratio increased of n% (bHPrecovRate,n;).
-//bSPrecovRate 1017 // Natural SP recovery ratio increased of n% (bSPrecovRate,n;).
-//bSpeedRate 1018 // Moving speed increased of n% and only the highest among all is applied (bSpeedRate,n;).
-bCriticalDef 1019 // Decreases the chance of being hit by critical hits of n% (bCriticalDef,n;).
-//bNearAtkDef 1020 // Adds n% damage reduction against melee physical attacks (bNearAtkDef,n;).
-//bLongAtkDef 1021 // Adds n% damage reduction against ranged physical attacks (bLongAtkDef,n;).
-//bDoubleRate 1022 // Adds a n% probability of doing a double attack (bDoubleRate,n;).
-bDoubleAddRate 1023 // Adds another +n% probability of doing a double attack (bDoubleAddRate,n;).
-//bMatk 1024 // Adds a magical attack bonus of n (bMatk,n;).
-//bMatkRate 1025 // Adds a magical attack bonus percentage n% (bMatkRate,n;).
-//bIgnoreDefEle 1026 // Disregards defense against enemies of a n element (bIgnoreDefEle,n;).
-//bIgnoreDefRace 1027 // Disregards defense against enemies of a n race (bIgnoreDefRace,n;).
-//bAtkRate 1028 // Adds an attack bonus of n% (bAtkRate,n;).
-bSpeedAddRate 1029 // Adds a n% of walking speed (bSpeedAddRate,n;).
-//bAspdAddRate 1030 // Adds a n% of attack speed (bAspdAddRate,n;).
-//bMagicAtkDef 1031 // Adds a n% damage reduction against magical attacks (bMagicAtkDef,n;).
-//bMiscAtkDef 1032 // Adds a n% damage reduction against miscellaneous attacks (traps, falcon, ...) (bMiscAtkDef,n;).
-//bIgnoreMdefEle 1033 // Disregards magical defense against enemies of a n element (bIgnoreMdefEle,n;).
-//bIgnoreMdefRace 1034 // Disregards magical defense against enemies of a n race (bIgnoreMdefRace,n;).
-//bMagicAddEle 1035 // Adds x% of magical damage against a n element (bMagicAddEle,n,x;).
-//bMagicAddRace 1036 // Adds x% of magical damage against a n race (bMagicAddRace,n,x;).
-//bMagicSubRace 1037 // Removes a x% of magical damage against a n race (bMagicSubRace,n,x;).
-//bPerfectHitRate 1038 // On-target impact attack probability n% and only the highest among all is applied (bPerfectHitRate,n;).
-//bPerfectHitAddRate 1039 // A n% bonus of an on-target impact (bPerfectHitAddRate,n;).
-//bCriticalRate 1040 // Add a n% to the critical hits percentage (bCriticalRate,n;).
-//bGetZenyNum 1041 // When killing a monster, there is a x% chance of gaining about n zeny (bGetZenyNum,n;).
-//bAddGetZenyNum 1042 // Same as bGetZenyNum, but the rates and zeny to gain stack (bAddGetZenyNum,n,x;).
-//bAddDamageClass 1043 // +x% of extra physical damage against monsters of class n, against players n is their job id (bAddDamageClass,n,x;).
-//bAddMagicDamageClass 1044 // +x% of extra magical damage against monsters of class n, against players n is their job id (bAddDamageClass,n,x;).
-//bAddDefClass 1045 // +x% physical damage reduction against monsters of class n, against players n is their job id (bAddDefClass,n,x;)
-//bAddMdefClass 1046 // +x% magical damage reduction against monsters of class n, against players n is their job id (bAddDefClass,n,x;)
-//bAddMonsterDropItem 1047 // Adds a x/100% chance for a n item to be dropped, when killing any monster (bAddMonsterDropItem,n,x;)
-//bDefRatioAtkEle 1048 // Does more damage depending on the monster's defense against a n element (bDefRatioAtkEle,n;).
-//bDefRatioAtkRace 1049 // Does more damage depending on the monster's defense against a n race (bDefRatioAtkRace,n;).
-//bAddSpeed 1050 // Adds a n speed to the player (bAddSpeed,n;).
-//bHitRate 1051 // Adds a n% rate to hit (bHitRate,n;).
-//bFleeRate 1052 // Adds a n% to flee a monster's attack (bFleeRate,n;).
-//bFlee2Rate 1053 // Adds a n% to dodge a monster's attack (bFleeRate,n;).
-bDefRate 1054 // Adds a n% of defense to the equipment (bDefRate,n;).
-bDef2Rate 1055 // Adds a n% of defense based on the vitality to the equipment (bDef2Rate,n;).
-//bMdefRate 1056 // Adds a n% of magical defense to the equipment (bMdefRate,n;).
-//bMdef2Rate 1057 // Adds a n% of magical defense based on the vitality to the equipment (bMdef2Rate,n;).
-//bSplashRange 1058 // Adds n to the splash attack radius and only the highest among all is applied (bSplashRange,n;).
-//bSplashAddRange 1059 // Adds n to the splash attack radius (bSplashRange,n;).
-//bAutoSpell 1060 // Auto Spell casting on attack of spell n at level x with a y/10% chance (bAutoSpell,n,x,y;).
-bHPDrainRate 1061 // Adds a n/10% chance to receive x% of dealed damage as HP from a monster of race r with normal attack (bHPDrainRateRace,r,n,x;).
-//bSPDrainRate 1062 // Adds a n/10% chance to receive x% of dealed damage as SP from a monster of race r with normal attack (bSPDrainRateRace,r,n,x;).
-//bShortWeaponDamageReturn 1063 // Reflects n% of received melee damage back to the enemy that caused it (bShortWeaponDamageReturn,n;).
-//bLongWeaponDamageReturn 1064 // Reflects n% of received ranged damage back to the enemy that caused it (bShortWeaponDamageReturn,n;).
-//bWeaponComaEle 1065 // Adds a n/100% chance to cause coma when attacking a monster of a x element with a normal attack (bWeaponComaEle,x,n;).
-//bWeaponComaRace 1066 // Adds a n/100% chance to cause coma when attacking a monster of a x race with a normal attack (bWeaponComaEle,x,n;).
-//bAddEff2 1067 // Adds a n/100% chance to cause status change x on self when attacking (bAddEff2,x,n;).
-//bMagicDamageReturn 1068 // Adds a n% chance to reflect targetted magic spells back to the enemy that caused it (bMagicDamageReturn,n;).
-//bRandomAttackIncrease 1069 // Adds a n% chance to inflict x% additional damage to the enemy with normal attack (bRandomAttackIncrease,x,n;).
-//bAllStats 1070 // Adds a n number in Strengh, Agility, Vitality, Intelligence, Dexterity and Luck (bAllStats,n;).
-//bAgiVit 1071 // Adds a n number in Agility and Vitality (bAgiVit,n;).
-//bAgiDexStr 1072 // Adds a n number in Agility, Dexterity and Strengh (bAgiDexStr,n;).
-//bPerfectHide 1073 // A hidden character is no longer detected by monsters with 'detector' mode (bPerfectHide,1;).
-
equip_head 1
equip_shield 2
equip_hand2 3
@@ -172,6 +71,13 @@ LOOK_CAPE 11
LOOK_MISC1 12
LOOK_MISC2 13
+// Launcher/Ammo Types
+AMMO_NONE 0
+AMMO_BOW 1
+AMMO_SLING 2
+AMMO_WAND 3
+AMMO_XMAS 4
+
// Hairstyles
HS_Bald 0
HS_BaldTwo 1
@@ -226,10 +132,11 @@ cOrange 7
cPurple 8
cDarkGreen 9
-sc_poison 132
-sc_slowpoison 14
-sc_raiseattackspeed0 37
-sc_raiseattackstrength 185
+SC_POISON 132
+SC_SLOWPOISON 14
+SC_SPEEDPOTION0 37
+SC_ATKPOT 185
+SC_MATKPOT 186
SC_SHEARED 194
SC_HIDE 194
SC_HALT_REGENERATE 195
@@ -237,6 +144,14 @@ SC_FLYING_BACKPACK 196
SC_MBARRIER 197
SC_HASTE 198
SC_PHYS_SHIELD 199
+SC_COOLDOWN 71
+SC_COOLDOWN_MG 72
+SC_COOLDOWN_MT 73
+SC_COOLDOWN_R 74
+SC_COOLDOWN_AR 75
+SC_COOLDOWN_ENCH 76
+SC_COOLDOWN_KOY 77
+SC_COOLDOWN_UPMARMU 78
// Emotions
EMOTE_DISGUST 1
@@ -494,3 +409,121 @@ SMSG_LEGAL 6
SMSG_MOTD 7
SMSG_AUTOMATIC 8
SMSG_EVENT 9
+
+// Monster Modes
+MD_NONE 0
+MD_CANMOVE 1
+MD_LOOTER 2
+MD_AGGRESSIVE 4
+MD_ASSIST 8
+MD_CASTSENSOR_IDLE 16
+MD_BOSS 32
+MD_PLANT 64
+MD_CANATTACK 128
+// These modes do not exist in TMWA (and are thus ignored)
+//MD_DETECTOR 256
+//MD_CASTSENSOR_CHASE 512
+//MD_CHANGECHASE 1024
+//MD_ANGRY 2048
+//MD_CHANGETARGET_MELEE 4096
+//MD_CHANGETARGET_CHASE 8192
+//MD_TARGETWEAK 16384
+//MD_NOKNOCKBACK 32768
+//MD_RANDOMTARGET 65536
+
+// Mobinfo Constants
+MOB_ID 0
+MOB_NAME 2
+MOB_LV 3
+MOB_MAXHP 4
+MOB_BASEEXP 6
+MOB_JOBEXP 7
+MOB_ATK1 9
+MOB_ATK2 10
+MOB_DEF 11
+MOB_MDEF 12
+MOB_STR 14
+MOB_AGI 15
+MOB_VIT 16
+MOB_INT 17
+MOB_DEX 18
+MOB_LUK 19
+MOB_RANGE 8
+MOB_RANGE2 20
+MOB_RANGE3 21
+MOB_SIZE 22
+MOB_RACE 23
+MOB_ELEMENT 24
+MOB_MODE 26
+// TMWA custom
+MOB_ENG_NAME 1
+MOB_JAP_NAME 2
+MOB_MAXSP 5
+MOB_CRITICAL_DEF 13
+MOB_ELEMENT_LVL 25
+MOB_SPEED 27
+MOB_ADELAY 28
+MOB_AMOTION 29
+MOB_DMOTION 30
+MOB_MUTATION_NUM 31
+MOB_MUTATION_POWER 32
+MOB_DROPID0 33
+MOB_DROPNAME0 34
+MOB_DROPPERCENT0 35
+MOB_DROPID1 36
+MOB_DROPNAME1 37
+MOB_DROPPERCENT1 38
+MOB_DROPID2 39
+MOB_DROPNAME2 40
+MOB_DROPPERCENT2 41
+MOB_DROPID3 42
+MOB_DROPNAME3 43
+MOB_DROPPERCENT3 44
+MOB_DROPID4 45
+MOB_DROPNAME4 46
+MOB_DROPPERCENT4 47
+MOB_DROPID5 48
+MOB_DROPNAME5 49
+MOB_DROPPERCENT5 50
+MOB_DROPID6 51
+MOB_DROPNAME6 52
+MOB_DROPPERCENT6 53
+MOB_DROPID7 54
+MOB_DROPNAME7 55
+MOB_DROPPERCENT7 56
+MOB_DROPID8 57
+MOB_DROPNAME8 58
+MOB_DROPPERCENT8 59
+MOB_DROPID9 60
+MOB_DROPNAME9 61
+MOB_DROPPERCENT9 62
+
+MOB_DROPARRAYS_IDS 0
+MOB_DROPARRAYS_NAMES 1
+MOB_DROPARRAYS_PERCENTS 2
+
+MOB_MAXDROPS 10
+
+DEFAULT_WALK_SPEED 150
+
+// API Export Protocols
+API_VAULT 607
+API_SENDMAIL 501
+//API_DISCORD 301
+//API_PINCODE 302
+
+// Mirror Lake Constants
+// World Identifiers
+WORLD_ID 3
+MLP_CR 1
+MLP_ML 2
+
+// Quest Constants
+MLP_ML_NARD 1
+MLP_ML_JAK1 2
+MLP_CR_DEBUT 4
+
+// Local Quest Constants
+MLP_TMW_CELESTIA 1
+MLP_TMW_YETIKING 2
+