diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-04-13 18:12:06 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-04-13 18:12:06 -0300 |
commit | ba5836a958f38d49a27bc4ca1469fd536675e943 (patch) | |
tree | 5a498b07f618831b200b81bf920b006145b07cbe | |
parent | f44f56e6c2b13ceb25f42bc8e122528cd7bf4932 (diff) | |
parent | fa054d1c8323da411ecab9c6386e9063cafb9409 (diff) | |
download | serverdata-ba5836a958f38d49a27bc4ca1469fd536675e943.tar.gz serverdata-ba5836a958f38d49a27bc4ca1469fd536675e943.tar.bz2 serverdata-ba5836a958f38d49a27bc4ca1469fd536675e943.tar.xz serverdata-ba5836a958f38d49a27bc4ca1469fd536675e943.zip |
Merge branch 'jesusalva/legion' of gitlab.com:jesusalva/evolsrc into jesusalva/legion
-rw-r--r-- | conf/map/battle/client.conf | 9 | ||||
-rw-r--r-- | conf/map/battle/feature.conf | 5 | ||||
-rw-r--r-- | db/constants.conf | 26 | ||||
-rw-r--r-- | npc/001-2-33/mapflags.txt | 3 | ||||
-rw-r--r-- | npc/001-2-33/triggers.txt | 45 | ||||
-rw-r--r-- | npc/functions/masks.txt | 68 |
6 files changed, 81 insertions, 75 deletions
diff --git a/conf/map/battle/client.conf b/conf/map/battle/client.conf index 59f5fceb..ea5f1ac0 100644 --- a/conf/map/battle/client.conf +++ b/conf/map/battle/client.conf @@ -189,3 +189,12 @@ mvp_exp_reward_message: false // character has 0 HP when dead. // Default: true (Official behavior) display_fake_hp_when_dead: false + +// Send ping timer +// For clients 20190320 Re+ +// Interval in seconds for each timer invoke. +ping_timer_inverval: 30 + +// Send packets timeout in seconds before ping packet can be sent. +// For clients 20190320 Re+ +ping_time: 20 diff --git a/conf/map/battle/feature.conf b/conf/map/battle/feature.conf index 1ed94b2a..be4d88b9 100644 --- a/conf/map/battle/feature.conf +++ b/conf/map/battle/feature.conf @@ -83,4 +83,9 @@ features: { // Attendance End time in the format YearMonthDay feature_attendance_endtime: 20180331 + + // Enable Achievement System + // true: enable (Default) + // false: disable + enable_achievement_system: false } diff --git a/db/constants.conf b/db/constants.conf index f2d23ac1..c9fcf425 100644 --- a/db/constants.conf +++ b/db/constants.conf @@ -1401,11 +1401,27 @@ constants_db: { SC_CLAN_INFO: 654 comment__: "petstat" - PET_CLASS: 1 - PET_NAME: 2 - PET_LEVEL: 3 - PET_HUNGRY: 4 - PET_INTIMATE: 5 + comment__: "petstat - deprecated, use *getpetinfo" + PET_CLASS: { + Value: 1 + Deprecated: true + } + PET_NAME: { + Value: 2 + Deprecated: true + } + PET_LEVEL: { + Value: 3 + Deprecated: true + } + PET_HUNGRY: { + Value: 4 + Deprecated: true + } + PET_INTIMATE: { + Value: 5 + Deprecated: true + } comment__: "getmonsterinfo" MOB_NAME: 0 diff --git a/npc/001-2-33/mapflags.txt b/npc/001-2-33/mapflags.txt index 95e3a6ba..4882b03e 100644 --- a/npc/001-2-33/mapflags.txt +++ b/npc/001-2-33/mapflags.txt @@ -1,2 +1,3 @@ -001-2-33 mapflag mask 5 +001-2-33 mapflag mask 13 +001-2-33 mapflag nosave 001-2-33,34,42 001-2-33 mapflag town diff --git a/npc/001-2-33/triggers.txt b/npc/001-2-33/triggers.txt index 47a5ea90..e540869c 100644 --- a/npc/001-2-33/triggers.txt +++ b/npc/001-2-33/triggers.txt @@ -7,25 +7,25 @@ // Transition Top triggers 001-2-33,26,35,0 script #001-2-33LeftRemTop NPC_HIDDEN,0,2,{ OnTouch: - artisALRemTopMask; + artisALResetMask; close; } 001-2-33,27,35,0 script #001-2-33LeftAddTop NPC_HIDDEN,0,2,{ OnTouch: - artisALAddTopMask; + artisALTopMask; close; } 001-2-33,42,35,0 script #001-2-33RightRemTop NPC_HIDDEN,0,2,{ OnTouch: - artisALRemTopMask; + artisALResetMask; close; } 001-2-33,41,35,0 script #001-2-33RightAddTop NPC_HIDDEN,0,2,{ OnTouch: - artisALAddTopMask; + artisALTopMask; close; } @@ -33,69 +33,70 @@ OnTouch: 001-2-33,25,32,0 script #001-2-33LeftRemBot NPC_HIDDEN,1,0,{ OnTouch: - artisALRemBotMask; + artisALResetMask; close; } 001-2-33,25,31,0 script #001-2-33LeftAddBot NPC_HIDDEN,1,0,{ OnTouch: - artisALAddBotMask; + artisALBottomMask; close; } 001-2-33,43,32,0 script #001-2-33RightRemBot NPC_HIDDEN,1,0,{ OnTouch: - artisALRemBotMask; + artisALResetMask; close; } 001-2-33,43,31,0 script #001-2-33RightAddBot NPC_HIDDEN,1,0,{ OnTouch: - artisALAddBotMask; + artisALBottomMask; close; } // Warped location triggers -001-2-33,24,30,0 script #001-2-33WarpTopLeft NPC_HIDDEN,1,1,{ +001-2-33,24,30,0 script #001-2-33WarpTopLeft NPC_HIDDEN,0,0,{ OnTouch: - artisALUpdateMask; + artisALBottomMask; close; } -001-2-33,44,30,0 script #001-2-33WarpTopRight NPC_HIDDEN,1,1,{ +001-2-33,44,30,0 script #001-2-33WarpTopRight NPC_HIDDEN,0,0,{ OnTouch: - artisALUpdateMask; + artisALBottomMask; close; } -001-2-33,29,32,0 script #001-2-33WarpMidLeft NPC_HIDDEN,1,1,{ +// WarpMid is crazy and not working correctly, cause unknown. +001-2-33,29,34,0 script #001-2-33WarpMidLeft NPC_HIDDEN,1,1,{ OnTouch: - artisALUpdateMask; + artisALTopMask; close; } -001-2-33,39,32,0 script #001-2-33WarpMidRight NPC_HIDDEN,1,1,{ +001-2-33,39,34,0 script #001-2-33WarpMidRight NPC_HIDDEN,1,1,{ OnTouch: - artisALUpdateMask; + artisALTopMask; close; } -001-2-33,34,45,0 script #001-2-33WarpArtis NPC_HIDDEN,1,1,{ +001-2-33,34,45,0 script #001-2-33WarpArtis NPC_HIDDEN,2,3,{ OnTouch: - artisALUpdateMask; + artisALTopMask; close; } // Bottom Warp location triggers -001-2-33,43,38,0 script #001-2-33WarpBotLeft NPC_HIDDEN,1,0,{ +001-2-33,43,39,0 script #001-2-33WarpBotLeft NPC_HIDDEN,1,0,{ OnTouch: - artisALUpdateMask; + artisALResetMask; close; } -001-2-33,25,38,0 script #001-2-33WarpBotRight NPC_HIDDEN,1,0,{ +001-2-33,25,39,0 script #001-2-33WarpBotRight NPC_HIDDEN,1,0,{ OnTouch: - artisALUpdateMask; + artisALResetMask; close; } diff --git a/npc/functions/masks.txt b/npc/functions/masks.txt index 9fb54919..03c81630 100644 --- a/npc/functions/masks.txt +++ b/npc/functions/masks.txt @@ -4,65 +4,39 @@ // Description: // Triggers functions to add and remove masks. // Variables: -// none +// 4 - Top Mask +// 8 - Bottom Mask +// Default mask: 13 (Top + Bottom + Display mask) // Artis Aemil's Legion -function script artisALRemTopMask { - if ((getareausers("001-2-33", 23, 27, 45, 31) >= 1) || - (getareausers("001-2-33", 23, 32, 26, 38) >= 1) || - (getareausers("001-2-33", 42, 32, 45, 38) >= 1)) - { - removemapmask "001-2-33", 4; - } +function script artisALResetMask { + .@m=getmapmask("001-2-33"); + sendmapmask(.@m); return 0; } -function script artisALAddTopMask { - if ((getareausers("001-2-33", 23, 27, 45, 31) == 0) && - (getareausers("001-2-33", 23, 32, 26, 38) == 0) && - (getareausers("001-2-33", 42, 32, 45, 38) == 0)) - { - addmapmask "001-2-33", 4; - } +function script artisALTopMask { + addtimer 30, "artisALTopMaskDO::OnDoIt"; return 0; } -function script artisALRemBotMask { - if (getareausers("001-2-33", 23, 32, 45, 46) >= 1) - { - removemapmask "001-2-33", 8; - } +function script artisALBottomMask { + addtimer 30, "artisALBottomMaskDO::OnDoIt"; return 0; } -function script artisALAddBotMask { - if (getareausers("001-2-33", 23, 32, 45, 46) == 0) - { - addmapmask "001-2-33", 8; - } - return 0; +// Show bottom mask is the same as hiding top mask +- script artisALBottomMaskDO NPC_HIDDEN,{ +OnDoIt: + .@m=getmapmask("001-2-33"); + sendmapmask(.@m^4); } -function script artisALUpdateMask { - if (getareausers("001-2-33", 23, 32, 45, 46) >= 1) - { - removemapmask "001-2-33", 8; - } - else - { - addmapmask "001-2-33", 8; - } - if ((getareausers("001-2-33", 23, 27, 45, 31) >= 1) || - (getareausers("001-2-33", 23, 32, 26, 38) >= 1) || - (getareausers("001-2-33", 42, 32, 45, 38) >= 1)) - { - removemapmask "001-2-33", 4; - } - else - { - addmapmask "001-2-33", 4; - } - - return 0; +// Show top mask is the same as hiding bottom mask +- script artisALTopMaskDO NPC_HIDDEN,{ +OnDoIt: + .@m=getmapmask("001-2-33"); + sendmapmask(.@m^8); } + |