Skip to content
Permalink
Browse files
Replaced 'getserverdef' command with 'script_hardcoded_constants' fun…
…ction 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>
  • Loading branch information
euphyy committed Mar 1, 2014
1 parent 96c768f commit cad0a578654f8461a2715f930641ba89491b9fa9
@@ -302,33 +302,6 @@ EAJ_BABY_SURA 0x6204
EAJ_BABY_GENETIC 0x6205
EAJ_BABY_CHASER 0x6206

Option_Nothing 0x00000000
Option_Sight 0x00000001
Option_Hide 0x00000002
Option_Cloak 0x00000004
Option_Falcon 0x00000010
Option_Riding 0x00000020
Option_Invisible 0x00000040
Option_Orcish 0x00000800
Option_Wedding 0x00001000
Option_Ruwach 0x00002000
Option_Chasewalk 0x00004000
Option_Flying 0x00008000
Option_Xmas 0x00010000
Option_Transform 0x00020000
Option_Summer 0x00040000
Option_Dragon1 0x00080000
Option_Wug 0x00100000
Option_Wugrider 0x00200000
Option_Madogear 0x00400000
Option_Dragon2 0x00800000
Option_Dragon3 0x01000000
Option_Dragon4 0x02000000
Option_Dragon5 0x04000000
Option_Hanbok 0x08000000
Option_Mounting 0x10000000
Option_Oktoberfest 0x20000000

bc_all 0
bc_map 1
bc_area 2
@@ -4547,18 +4520,5 @@ IT_AMMO 10
IT_DELAYCONSUME 11
IT_CASH 18

VAR_PACKETVER 0
VAR_MAX_LEVEL 1
VAR_MAX_STORAGE 2
VAR_MAX_INVENTORY 3
VAR_MAX_ZENY 4
VAR_MAX_PARTY 5
VAR_MAX_GUILD 6
VAR_MAX_GUILDLEVEL 7
VAR_MAX_GUILD_STORAGE 8
VAR_MAX_BG_MEMBERS 9
VAR_VIP_SCRIPT 10
VAR_MIN_STORAGE 11

false 0
true 1
@@ -2080,92 +2080,92 @@
4453,Hilsrion_Card,Hillsrion Card,6,20,,10,,,,,,,,2,,,,,{ bonus bBaseAtk,25; },{},{}
// Armor Enchant System
//===================================================================
4700,Strength1,STR+1,6,20,,10,,,,,,,,16,,,,,{ bonus bStr,1; },{},{}
4701,Strength2,STR+2,6,20,,10,,,,,,,,16,,,,,{ bonus bStr,2; },{},{}
4702,Strength3,STR+3,6,20,,10,,,,,,,,16,,,,,{ bonus bStr,3; },{},{}
4703,Strength4,STR+4,6,20,,10,,,,,,,,16,,,,,{ bonus bStr,4; },{},{}
4704,Strength5,STR+5,6,20,,10,,,,,,,,16,,,,,{ bonus bStr,5; },{},{}
4705,Strength6,STR+6,6,20,,10,,,,,,,,16,,,,,{ bonus bStr,6; },{},{}
4706,Strength7,STR+7,6,20,,10,,,,,,,,16,,,,,{ bonus bStr,7; },{},{}
4707,Strength8,STR+8,6,20,,10,,,,,,,,16,,,,,{ bonus bStr,8; },{},{}
4708,Strength9,STR+9,6,20,,10,,,,,,,,16,,,,,{ bonus bStr,9; },{},{}
4709,Strength10,STR+10,6,20,,10,,,,,,,,16,,,,,{ bonus bStr,10; },{},{}
4710,Inteligence1,INT+1,6,20,,10,,,,,,,,16,,,,,{ bonus bInt,1; },{},{}
4711,Inteligence2,INT+2,6,20,,10,,,,,,,,16,,,,,{ bonus bInt,2; },{},{}
4712,Inteligence3,INT+3,6,20,,10,,,,,,,,16,,,,,{ bonus bInt,3; },{},{}
4713,Inteligence4,INT+4,6,20,,10,,,,,,,,16,,,,,{ bonus bInt,4; },{},{}
4714,Inteligence5,INT+5,6,20,,10,,,,,,,,16,,,,,{ bonus bInt,5; },{},{}
4715,Inteligence6,INT+6,6,20,,10,,,,,,,,16,,,,,{ bonus bInt,6; },{},{}
4716,Inteligence7,INT+7,6,20,,10,,,,,,,,16,,,,,{ bonus bInt,7; },{},{}
4717,Inteligence8,INT+8,6,20,,10,,,,,,,,16,,,,,{ bonus bInt,8; },{},{}
4718,Inteligence9,INT+9,6,20,,10,,,,,,,,16,,,,,{ bonus bInt,9; },{},{}
4719,Inteligence10,INT+10,6,20,,10,,,,,,,,16,,,,,{ bonus bInt,10; },{},{}
4720,Dexterity1,DEX+1,6,20,,10,,,,,,,,16,,,,,{ bonus bDex,1; },{},{}
4721,Dexterity2,DEX+2,6,20,,10,,,,,,,,16,,,,,{ bonus bDex,2; },{},{}
4722,Dexterity3,DEX+3,6,20,,10,,,,,,,,16,,,,,{ bonus bDex,3; },{},{}
4723,Dexterity4,DEX+4,6,20,,10,,,,,,,,16,,,,,{ bonus bDex,4; },{},{}
4724,Dexterity5,DEX+5,6,20,,10,,,,,,,,16,,,,,{ bonus bDex,5; },{},{}
4725,Dexterity6,DEX+6,6,20,,10,,,,,,,,16,,,,,{ bonus bDex,6; },{},{}
4726,Dexterity7,DEX+7,6,20,,10,,,,,,,,16,,,,,{ bonus bDex,7; },{},{}
4727,Dexterity8,DEX+8,6,20,,10,,,,,,,,16,,,,,{ bonus bDex,8; },{},{}
4728,Dexterity9,DEX+9,6,20,,10,,,,,,,,16,,,,,{ bonus bDex,9; },{},{}
4729,Dexterity10,DEX+10,6,20,,10,,,,,,,,16,,,,,{ bonus bDex,10; },{},{}
4730,Agility1,AGI+1,6,20,,10,,,,,,,,16,,,,,{ bonus bAgi,1; },{},{}
4731,Agility2,AGI+2,6,20,,10,,,,,,,,16,,,,,{ bonus bAgi,2; },{},{}
4732,Agility3,AGI+3,6,20,,10,,,,,,,,16,,,,,{ bonus bAgi,3; },{},{}
4733,Agility4,AGI+4,6,20,,10,,,,,,,,16,,,,,{ bonus bAgi,4; },{},{}
4734,Agility5,AGI+5,6,20,,10,,,,,,,,16,,,,,{ bonus bAgi,5; },{},{}
4735,Agility6,AGI+6,6,20,,10,,,,,,,,16,,,,,{ bonus bAgi,6; },{},{}
4736,Agility7,AGI+7,6,20,,10,,,,,,,,16,,,,,{ bonus bAgi,7; },{},{}
4737,Agility8,AGI+8,6,20,,10,,,,,,,,16,,,,,{ bonus bAgi,8; },{},{}
4738,Agility9,AGI+9,6,20,,10,,,,,,,,16,,,,,{ bonus bAgi,9; },{},{}
4739,Agility10,AGI+10,6,20,,10,,,,,,,,16,,,,,{ bonus bAgi,10; },{},{}
4740,Vitality1,VIT+1,6,20,,10,,,,,,,,16,,,,,{ bonus bVit,1; },{},{}
4741,Vitality2,VIT+2,6,20,,10,,,,,,,,16,,,,,{ bonus bVit,2; },{},{}
4742,Vitality3,VIT+3,6,20,,10,,,,,,,,16,,,,,{ bonus bVit,3; },{},{}
4743,Vitality4,VIT+4,6,20,,10,,,,,,,,16,,,,,{ bonus bVit,4; },{},{}
4744,Vitality5,VIT+5,6,20,,10,,,,,,,,16,,,,,{ bonus bVit,5; },{},{}
4745,Vitality6,VIT+6,6,20,,10,,,,,,,,16,,,,,{ bonus bVit,6; },{},{}
4746,Vitality7,VIT+7,6,20,,10,,,,,,,,16,,,,,{ bonus bVit,7; },{},{}
4747,Vitality8,VIT+8,6,20,,10,,,,,,,,16,,,,,{ bonus bVit,8; },{},{}
4748,Vitality9,VIT+9,6,20,,10,,,,,,,,16,,,,,{ bonus bVit,9; },{},{}
4749,Vitality10,VIT+10,6,20,,10,,,,,,,,16,,,,,{ bonus bVit,10; },{},{}
4750,Luck1,LUK+1,6,20,,10,,,,,,,,16,,,,,{ bonus bLuk,1; },{},{}
4751,Luck2,LUK+2,6,20,,10,,,,,,,,16,,,,,{ bonus bLuk,2; },{},{}
4752,Luck3,LUK+3,6,20,,10,,,,,,,,16,,,,,{ bonus bLuk,3; },{},{}
4753,Luck4,LUK+4,6,20,,10,,,,,,,,16,,,,,{ bonus bLuk,4; },{},{}
4754,Luck5,LUK+5,6,20,,10,,,,,,,,16,,,,,{ bonus bLuk,5; },{},{}
4755,Luck6,LUK+6,6,20,,10,,,,,,,,16,,,,,{ bonus bLuk,6; },{},{}
4756,Luck7,LUK+7,6,20,,10,,,,,,,,16,,,,,{ bonus bLuk,7; },{},{}
4757,Luck8,LUK+8,6,20,,10,,,,,,,,16,,,,,{ bonus bLuk,8; },{},{}
4758,Luck9,LUK+9,6,20,,10,,,,,,,,16,,,,,{ bonus bLuk,9; },{},{}
4759,Luck10,LUK+10,6,20,,10,,,,,,,,16,,,,,{ bonus bLuk,10; },{},{}
4760,Magic_Attack1,MATK+1%,6,20,,10,,,,,,,,16,,,,,{ bonus bMatkRate,1; },{},{}
4761,Magic_Attack2,MATK+2%,6,20,,10,,,,,,,,16,,,,,{ bonus bMatkRate,2; },{},{}
4762,Evasion6,FLEE+6,6,20,,10,,,,,,,,16,,,,,{ bonus bFlee,6; },{},{}
4763,Evasion12,FLEE+12,6,20,,10,,,,,,,,16,,,,,{ bonus bFlee,12; },{},{}
4764,Critical5,CRI+5,6,20,,10,,,,,,,,16,,,,,{ bonus bCritical,5; },{},{}
4765,Critical7,CRI+7,6,20,,10,,,,,,,,16,,,,,{ bonus bCritical,7; },{},{}
4766,Atk2,ATK+2%,6,20,,10,,,,,,,,16,,,,,{ bonus2 bAddClass,Class_All,2; },{},{}
4767,Atk3,ATK+3%,6,20,,10,,,,,,,,16,,,,,{ bonus2 bAddClass,Class_All,3; },{},{}
4768,Str1_J,STR+1,6,20,,10,,,,,,,,16,,,,,{},{},{}
4769,Str2_J,STR+2,6,20,,10,,,,,,,,16,,,,,{},{},{}
4770,Str3_J,STR+3,6,20,,10,,,,,,,,16,,,,,{},{},{}
4771,Int1_J,INT+1,6,20,,10,,,,,,,,16,,,,,{},{},{}
4772,Int2_J,INT+2,6,20,,10,,,,,,,,16,,,,,{},{},{}
4773,Int3_J,INT+3,6,20,,10,,,,,,,,16,,,,,{},{},{}
4774,Vit1_J,VIT+1,6,20,,10,,,,,,,,16,,,,,{},{},{}
4775,Vit2_J,VIT+2,6,20,,10,,,,,,,,16,,,,,{},{},{}
4776,Vit3_J,VIT+3,6,20,,10,,,,,,,,16,,,,,{},{},{}
4777,Agi1_J,AGI+1,6,20,,10,,,,,,,,16,,,,,{},{},{}
4778,Agi2_J,AGI+2,6,20,,10,,,,,,,,16,,,,,{},{},{}
4779,Agi3_J,AGI+3,6,20,,10,,,,,,,,16,,,,,{},{},{}
4780,Dex1_J,DEX+1,6,20,,10,,,,,,,,16,,,,,{},{},{}
4781,Dex2_J,DEX+2,6,20,,10,,,,,,,,16,,,,,{},{},{}
4782,Dex3_J,DEX+3,6,20,,10,,,,,,,,16,,,,,{},{},{}
4783,Luk1_J,LUK+1,6,20,,10,,,,,,,,16,,,,,{},{},{}
4784,Luk2_J,LUK+2,6,20,,10,,,,,,,,16,,,,,{},{},{}
4785,Luk3_J,LUK+3,6,20,,10,,,,,,,,16,,,,,{},{},{}
4700,Strength1,STR+1,6,20,,10,,,,,,,,,,,,,{ bonus bStr,1; },{},{}
4701,Strength2,STR+2,6,20,,10,,,,,,,,,,,,,{ bonus bStr,2; },{},{}
4702,Strength3,STR+3,6,20,,10,,,,,,,,,,,,,{ bonus bStr,3; },{},{}
4703,Strength4,STR+4,6,20,,10,,,,,,,,,,,,,{ bonus bStr,4; },{},{}
4704,Strength5,STR+5,6,20,,10,,,,,,,,,,,,,{ bonus bStr,5; },{},{}
4705,Strength6,STR+6,6,20,,10,,,,,,,,,,,,,{ bonus bStr,6; },{},{}
4706,Strength7,STR+7,6,20,,10,,,,,,,,,,,,,{ bonus bStr,7; },{},{}
4707,Strength8,STR+8,6,20,,10,,,,,,,,,,,,,{ bonus bStr,8; },{},{}
4708,Strength9,STR+9,6,20,,10,,,,,,,,,,,,,{ bonus bStr,9; },{},{}
4709,Strength10,STR+10,6,20,,10,,,,,,,,,,,,,{ bonus bStr,10; },{},{}
4710,Inteligence1,INT+1,6,20,,10,,,,,,,,,,,,,{ bonus bInt,1; },{},{}
4711,Inteligence2,INT+2,6,20,,10,,,,,,,,,,,,,{ bonus bInt,2; },{},{}
4712,Inteligence3,INT+3,6,20,,10,,,,,,,,,,,,,{ bonus bInt,3; },{},{}
4713,Inteligence4,INT+4,6,20,,10,,,,,,,,,,,,,{ bonus bInt,4; },{},{}
4714,Inteligence5,INT+5,6,20,,10,,,,,,,,,,,,,{ bonus bInt,5; },{},{}
4715,Inteligence6,INT+6,6,20,,10,,,,,,,,,,,,,{ bonus bInt,6; },{},{}
4716,Inteligence7,INT+7,6,20,,10,,,,,,,,,,,,,{ bonus bInt,7; },{},{}
4717,Inteligence8,INT+8,6,20,,10,,,,,,,,,,,,,{ bonus bInt,8; },{},{}
4718,Inteligence9,INT+9,6,20,,10,,,,,,,,,,,,,{ bonus bInt,9; },{},{}
4719,Inteligence10,INT+10,6,20,,10,,,,,,,,,,,,,{ bonus bInt,10; },{},{}
4720,Dexterity1,DEX+1,6,20,,10,,,,,,,,,,,,,{ bonus bDex,1; },{},{}
4721,Dexterity2,DEX+2,6,20,,10,,,,,,,,,,,,,{ bonus bDex,2; },{},{}
4722,Dexterity3,DEX+3,6,20,,10,,,,,,,,,,,,,{ bonus bDex,3; },{},{}
4723,Dexterity4,DEX+4,6,20,,10,,,,,,,,,,,,,{ bonus bDex,4; },{},{}
4724,Dexterity5,DEX+5,6,20,,10,,,,,,,,,,,,,{ bonus bDex,5; },{},{}
4725,Dexterity6,DEX+6,6,20,,10,,,,,,,,,,,,,{ bonus bDex,6; },{},{}
4726,Dexterity7,DEX+7,6,20,,10,,,,,,,,,,,,,{ bonus bDex,7; },{},{}
4727,Dexterity8,DEX+8,6,20,,10,,,,,,,,,,,,,{ bonus bDex,8; },{},{}
4728,Dexterity9,DEX+9,6,20,,10,,,,,,,,,,,,,{ bonus bDex,9; },{},{}
4729,Dexterity10,DEX+10,6,20,,10,,,,,,,,,,,,,{ bonus bDex,10; },{},{}
4730,Agility1,AGI+1,6,20,,10,,,,,,,,,,,,,{ bonus bAgi,1; },{},{}
4731,Agility2,AGI+2,6,20,,10,,,,,,,,,,,,,{ bonus bAgi,2; },{},{}
4732,Agility3,AGI+3,6,20,,10,,,,,,,,,,,,,{ bonus bAgi,3; },{},{}
4733,Agility4,AGI+4,6,20,,10,,,,,,,,,,,,,{ bonus bAgi,4; },{},{}
4734,Agility5,AGI+5,6,20,,10,,,,,,,,,,,,,{ bonus bAgi,5; },{},{}
4735,Agility6,AGI+6,6,20,,10,,,,,,,,,,,,,{ bonus bAgi,6; },{},{}
4736,Agility7,AGI+7,6,20,,10,,,,,,,,,,,,,{ bonus bAgi,7; },{},{}
4737,Agility8,AGI+8,6,20,,10,,,,,,,,,,,,,{ bonus bAgi,8; },{},{}
4738,Agility9,AGI+9,6,20,,10,,,,,,,,,,,,,{ bonus bAgi,9; },{},{}
4739,Agility10,AGI+10,6,20,,10,,,,,,,,,,,,,{ bonus bAgi,10; },{},{}
4740,Vitality1,VIT+1,6,20,,10,,,,,,,,,,,,,{ bonus bVit,1; },{},{}
4741,Vitality2,VIT+2,6,20,,10,,,,,,,,,,,,,{ bonus bVit,2; },{},{}
4742,Vitality3,VIT+3,6,20,,10,,,,,,,,,,,,,{ bonus bVit,3; },{},{}
4743,Vitality4,VIT+4,6,20,,10,,,,,,,,,,,,,{ bonus bVit,4; },{},{}
4744,Vitality5,VIT+5,6,20,,10,,,,,,,,,,,,,{ bonus bVit,5; },{},{}
4745,Vitality6,VIT+6,6,20,,10,,,,,,,,,,,,,{ bonus bVit,6; },{},{}
4746,Vitality7,VIT+7,6,20,,10,,,,,,,,,,,,,{ bonus bVit,7; },{},{}
4747,Vitality8,VIT+8,6,20,,10,,,,,,,,,,,,,{ bonus bVit,8; },{},{}
4748,Vitality9,VIT+9,6,20,,10,,,,,,,,,,,,,{ bonus bVit,9; },{},{}
4749,Vitality10,VIT+10,6,20,,10,,,,,,,,,,,,,{ bonus bVit,10; },{},{}
4750,Luck1,LUK+1,6,20,,10,,,,,,,,,,,,,{ bonus bLuk,1; },{},{}
4751,Luck2,LUK+2,6,20,,10,,,,,,,,,,,,,{ bonus bLuk,2; },{},{}
4752,Luck3,LUK+3,6,20,,10,,,,,,,,,,,,,{ bonus bLuk,3; },{},{}
4753,Luck4,LUK+4,6,20,,10,,,,,,,,,,,,,{ bonus bLuk,4; },{},{}
4754,Luck5,LUK+5,6,20,,10,,,,,,,,,,,,,{ bonus bLuk,5; },{},{}
4755,Luck6,LUK+6,6,20,,10,,,,,,,,,,,,,{ bonus bLuk,6; },{},{}
4756,Luck7,LUK+7,6,20,,10,,,,,,,,,,,,,{ bonus bLuk,7; },{},{}
4757,Luck8,LUK+8,6,20,,10,,,,,,,,,,,,,{ bonus bLuk,8; },{},{}
4758,Luck9,LUK+9,6,20,,10,,,,,,,,,,,,,{ bonus bLuk,9; },{},{}
4759,Luck10,LUK+10,6,20,,10,,,,,,,,,,,,,{ bonus bLuk,10; },{},{}
4760,Magic_Attack1,MATK+1%,6,20,,10,,,,,,,,,,,,,{ bonus bMatkRate,1; },{},{}
4761,Magic_Attack2,MATK+2%,6,20,,10,,,,,,,,,,,,,{ bonus bMatkRate,2; },{},{}
4762,Evasion6,FLEE+6,6,20,,10,,,,,,,,,,,,,{ bonus bFlee,6; },{},{}
4763,Evasion12,FLEE+12,6,20,,10,,,,,,,,,,,,,{ bonus bFlee,12; },{},{}
4764,Critical5,CRI+5,6,20,,10,,,,,,,,,,,,,{ bonus bCritical,5; },{},{}
4765,Critical7,CRI+7,6,20,,10,,,,,,,,,,,,,{ bonus bCritical,7; },{},{}
4766,Atk2,ATK+2%,6,20,,10,,,,,,,,,,,,,{ bonus2 bAddClass,Class_All,2; },{},{}
4767,Atk3,ATK+3%,6,20,,10,,,,,,,,,,,,,{ bonus2 bAddClass,Class_All,3; },{},{}
4768,Str1_J,STR+1,6,20,,10,,,,,,,,,,,,,{},{},{}
4769,Str2_J,STR+2,6,20,,10,,,,,,,,,,,,,{},{},{}
4770,Str3_J,STR+3,6,20,,10,,,,,,,,,,,,,{},{},{}
4771,Int1_J,INT+1,6,20,,10,,,,,,,,,,,,,{},{},{}
4772,Int2_J,INT+2,6,20,,10,,,,,,,,,,,,,{},{},{}
4773,Int3_J,INT+3,6,20,,10,,,,,,,,,,,,,{},{},{}
4774,Vit1_J,VIT+1,6,20,,10,,,,,,,,,,,,,{},{},{}
4775,Vit2_J,VIT+2,6,20,,10,,,,,,,,,,,,,{},{},{}
4776,Vit3_J,VIT+3,6,20,,10,,,,,,,,,,,,,{},{},{}
4777,Agi1_J,AGI+1,6,20,,10,,,,,,,,,,,,,{},{},{}
4778,Agi2_J,AGI+2,6,20,,10,,,,,,,,,,,,,{},{},{}
4779,Agi3_J,AGI+3,6,20,,10,,,,,,,,,,,,,{},{},{}
4780,Dex1_J,DEX+1,6,20,,10,,,,,,,,,,,,,{},{},{}
4781,Dex2_J,DEX+2,6,20,,10,,,,,,,,,,,,,{},{},{}
4782,Dex3_J,DEX+3,6,20,,10,,,,,,,,,,,,,{},{},{}
4783,Luk1_J,LUK+1,6,20,,10,,,,,,,,,,,,,{},{},{}
4784,Luk2_J,LUK+2,6,20,,10,,,,,,,,,,,,,{},{},{}
4785,Luk3_J,LUK+3,6,20,,10,,,,,,,,,,,,,{},{},{}
// More Headgears
//===================================================================
5001,Headset,Headset,4,20,,200,,3,,0,0xFFFFFFFE,7,2,256,,1,1,87,{ bonus2 bResEff,Eff_Curse,1000; },{},{}
@@ -3,7 +3,7 @@
//===== By: ==================================================
//= rAthena Dev Team
//===== Last Updated: ========================================
//= 20140218
//= 20140301
//===== Description: =========================================
//= A reference manual for the rAthena scripting language.
//= Commands are sorted depending on their functionality.
@@ -551,6 +551,20 @@ notable exception is Zeny, which you can and often will address directly -
setting it will make the character own this number of Zeny.
If you try to set Zeny to a negative number, the script will be terminated with an error.

Some source-end constants can also be accessed in scripts. This list is located in
'src/map/script.c' in the 'script_hardcoded_constants' function, which contains
constants such as server defines and status options:

PACKETVER, MAX_LEVEL, MAX_STORAGE, MAX_INVENTORY, MAX_CART, MAX_ZENY, MAX_PARTY,
MAX_GUILD, MAX_GUILDLEVEL, MAX_GUILD_STORAGE, MAX_BG_MEMBERS, MAX_CHAT_USERS,
VIP_SCRIPT, MIN_STORAGE

Option_Nothing, Option_Sight, Option_Hide, Option_Cloak, Option_Falcon, Option_Riding,
Option_Invisible, Option_Orcish, Option_Wedding, Option_Chasewalk, Option_Flying,
Option_Xmas, Option_Transform, Option_Summer, Option_Dragon1, Option_Wug,
Option_Wugrider, Option_Madogear, Option_Dragon2, Option_Dragon3, Option_Dragon4,
Option_Dragon5, Option_Hanbok, Option_Oktoberfest, Option_Dragon, Option_Costume

Assigning variables
--------- ---------

@@ -3559,24 +3573,6 @@ Available types are:
0 - version number (packet_db_ver)
1 - client date (YYYYMMDD)

---------------------------------------

*getserverdef(<type>)

Returns a server definition. Valid types are listed in 'db/const.txt':
VAR_PACKETVER 0
VAR_MAX_LEVEL 1
VAR_MAX_STORAGE 2
VAR_MAX_INVENTORY 3
VAR_MAX_ZENY 4
VAR_MAX_PARTY 5
VAR_MAX_GUILD 6
VAR_MAX_GUILDLEVEL 7
VAR_MAX_GUILD_STORAGE 8
VAR_MAX_BG_MEMBERS 9
VAR_VIP_SCRIPT 10
VAR_MIN_STORAGE 11

---------------------------------------
\\
3,1.- Item-related commands
@@ -607,7 +607,7 @@ function script F_BG_Badge {
close2;

// If the VIP system is enabled, VIP players receive an extra 2 badges.
if (getserverdef(VAR_VIP_SCRIPT) && vip_status(1))
if (VIP_SCRIPT && vip_status(1))
set .@amount, .@amount+2;

set .@medal_gap, 500 - countitem(.@badge);
@@ -66,7 +66,7 @@ prontera,132,125,4 script Bossnia Staff#1 908,{

// If the VIP system is enabled, players pay a Reset Stone for 5 entrances (with a choice of warps).
// If it's disabled, players pay 5,000z per entrance.
if (getserverdef(VAR_VIP_SCRIPT)) {
if (VIP_SCRIPT) {
mes "a grudge against me. It'll cost you 1 Reset Stone for 5 access.";
next;
mes "[Riss]";
@@ -74,7 +74,7 @@ function script F_CoolEventCorp {
mes "Please choose";
mes "your destination.";
next;
if (getserverdef(VAR_VIP_SCRIPT) && !vip_status(1))
if (VIP_SCRIPT && !vip_status(1))
set .@cost,4400;
else
set .@cost,2200;
@@ -649,7 +649,7 @@ function script F_KafSet {
}

// VIP pricing varies across the regional servers; this is most practical.
if (getserverdef(VAR_VIP_SCRIPT) && !vip_status(1)) {
if (VIP_SCRIPT && !vip_status(1)) {
for (set .@i, 0; .@i < getarraysize(@wrpD$); set .@i, .@i + 1)
setd "@wrpP["+.@i+"]",getd("@wrpP["+.@i+"]") * 2;
}
@@ -104,7 +104,7 @@ S_RefineValidate:
set .@price, getarg(2);

// If the VIP system is enabled, the prices for non-VIP players are considerably higher.
if (getserverdef(VAR_VIP_SCRIPT) && !vip_status(1)) {
if (VIP_SCRIPT && !vip_status(1)) {
switch(getarg(0)){
case 0: set .@price, .@price * 10; break;
case 1: set .@price, .@price * 40; break;
@@ -643,7 +643,7 @@ function script refinemain {
}

// If the VIP system is enabled, the prices for non-VIP players are considerably higher.
if (getserverdef(VAR_VIP_SCRIPT) && !vip_status(1)) {
if (VIP_SCRIPT && !vip_status(1)) {
switch(getequipweaponlv(.@part)) {
case 0: set .@price, .@price * 10; break;
case 1: set .@price, .@price * 40; break;
@@ -32,7 +32,7 @@ prt_church,97,100,4 script Wedding Staff#w 71,{
// If the VIP system is enabled:
// - Non-VIP players must use a Marriage Covenant to get married.
// - VIP players may either pay the Zeny fee or use a Marriage Covenant.
if (getserverdef(VAR_VIP_SCRIPT) && !vip_status(1)) {
if (VIP_SCRIPT && !vip_status(1)) {
mes "[Marry Happy]";
mes "Sorry but you can't get married right now.";
mes "The wedding is only available for subscribed players.";
@@ -198,7 +198,7 @@ prt_church,97,100,4 script Wedding Staff#w 71,{
break;
case 3:
cutin "wedding_marry02",2;
if (getserverdef(VAR_VIP_SCRIPT)) {
if (VIP_SCRIPT) {
mes "[Marry Happy]";
mes "^FF0000Wait!^000000";
mes "^FF0000If your account in not a premium, you must have a Marriage Covenant to get married.^000000";
@@ -27,7 +27,7 @@ alberta,246,82,3 script Crewman#bra2 100,{
next;
mes "[Crewman]";
mes "We recently found a new ocean route to get there easily.";
if (getserverdef(VAR_VIP_SCRIPT)) {
if (VIP_SCRIPT) {
set .@cost, vip_status(1)?1000:10000;
mes "It's just 10,000 zeny for a round trip, and 1,000 for VIP! So do you want to go?"; //custom translation (VIP)
} else {
@@ -23,7 +23,7 @@ alberta,212,202,4 script Dewata Sailor#alberta 536,{
mes "[Dewata Sailor]";
mes "Do you want to visit ^8B4513Dewata Island^000000?";
mes "With its dazzling waves and charming vistas it's a great place to relax.";
if (getserverdef(VAR_VIP_SCRIPT)) {
if (VIP_SCRIPT) {
set .@cost, vip_status(1)?1000:10000;
mes "The transit fee is 10,000 Zeny and 1,000 for VIP.";
} else {
@@ -479,7 +479,7 @@ OnMobSpawn:
erasequest 12279;
mes "[Taho]";
mes "This was found from Bakonawa's corpse. It would be better if you take this.";
if (!getserverdef(VAR_VIP_SCRIPT) || vip_status(1))
if (!VIP_SCRIPT || vip_status(1))
getitem 6499,7; //Ancient_Grudge
else
getitem 6499,5; //Ancient_Grudge
@@ -161,7 +161,7 @@ ma_dun01,147,10,5 script Nurse#ma_dun01 569,{
erasequest 9224;
setquest 9223;
getexp 500000,0;
if (!getserverdef(VAR_VIP_SCRIPT) || vip_status(1))
if (!VIP_SCRIPT || vip_status(1))
getitem 6499,7; //Ancient_Grudge
else
getitem 6499,5; //Ancient_Grudge

0 comments on commit cad0a57

Please sign in to comment.