How to make an Autobuff zone tied to the player's ID class

Deazer

Разработчик
Staff member
#1
Path:
data/zone

For example, let's choose any standard zone:
data/zone/peace_zone.xml

Code:
    <zone name="[primeval_peace1]" type="peace_zone" >
        <polygon> <!-- 원시의 섬 선착장(20_17) -->
            <coords loc="10408 -27395 -4290 -1290" />
            <coords loc="12065 -25334 -4290 -1290" />
            <coords loc="12223 -23159 -4290 -1290" />
            <coords loc="10424 -22340 -4290 -1290" />
            <coords loc="9566 -23131 -4290 -1290" />
            <coords loc="9290 -24261 -4290 -1290" />
        </polygon>
    </zone>
And now we modify the zone so that when you enter the zone with the profession Warrior id 1, you will have an auto buff noble or some other skill. In the example I will show you how to buff nobles
Option 1:
Code:
    <zone name="[primeval_peace1]" type="peace_zone" >
        <set name="zoneClassedBuffs" val="1(1323:1)" /> <!-- Noble buff -->
        <polygon> <!-- 원시의 섬 선착장(20_17) -->
            <coords loc="10408 -27395 -4290 -1290" />
            <coords loc="12065 -25334 -4290 -1290" />
            <coords loc="12223 -23159 -4290 -1290" />
            <coords loc="10424 -22340 -4290 -1290" />
            <coords loc="9566 -23131 -4290 -1290" />
            <coords loc="9290 -24261 -4290 -1290" />
        </polygon>
    </zone>
look - I added <set name="zoneClassedBuffs" val="1(1323:1)" />
where 1 is the profession ID, skill_id = 1323 skill_level = 1


Option 2:
If we want to add a lot of buffs when entering a zone:
Code:
   <zone name="[primeval_peace1]" type="peace_zone" >
        <set name="zoneClassedBuffs" val="1(1323:1);1(1045:6);1(1047:4)" />
        <polygon> <!-- 원시의 섬 선착장(20_17) -->
            <coords loc="10408 -27395 -4290 -1290" />
            <coords loc="12065 -25334 -4290 -1290" />
            <coords loc="12223 -23159 -4290 -1290" />
            <coords loc="10424 -22340 -4290 -1290" />
            <coords loc="9566 -23131 -4290 -1290" />
            <coords loc="9290 -24261 -4290 -1290" />
        </polygon>
    </zone>
look - I added <set name="zoneClassedBuffs" val="1(1323:1/6000);1(1045:6/6000);1(1047:4/6000)" />

Option 3:
If we want to add many buffs or one and at the same time modify the buff time, and not take the standard time:

Code:
   <zone name="[primeval_peace1]" type="peace_zone" >
        <set name="zoneClassedBuffs" val="1(1323:1/6000);1(1045:6/6000);1(1047:4/6000)" />
        <polygon> <!-- 원시의 섬 선착장(20_17) -->
            <coords loc="10408 -27395 -4290 -1290" />
            <coords loc="12065 -25334 -4290 -1290" />
            <coords loc="12223 -23159 -4290 -1290" />
            <coords loc="10424 -22340 -4290 -1290" />
            <coords loc="9566 -23131 -4290 -1290" />
            <coords loc="9290 -24261 -4290 -1290" />
        </polygon>
    </zone>
look - I added <set name="zoneClassedBuffs" val="1(1323:1/6000);1(1045:6/6000);1(1047:4/6000)" />

where "id1323: level 1 / time modifier in seconds 6000 = 100 minutes"

ID of all professions:
0=>"Fighter",
1=>"Warrior",
2=>"Gladiator",
3=>"Warlord",
4=>"Knight",
5=>"Paladin",
6=>"Dark_avenger",
7=>"Rogue",
8=>"Treasure_hunter",
9=>"Hawkeye",
10=>"Mage",
11=>" Wizard",
12=>"Sorcerer",
13=>"Necromancer",
14=>"Warlock",
15= >"Cleric",
16=>"Bishop",
17=>"Prophet",
18=>"Elven_fighter",
19= >"Elven_knight",
20=>"Temple_knight",
21=>"Swordsinger",
22=>"Elven_scout",
23=>"Plains_walker",
24=>"Silver_ranger",
25=>"Elven_mage",
26=>" Elven_wizard",
27=>" Spellsinger",
28=>"Elemental_summoner ",
29=>"Oracle",
30=>"Elder",
31=>"Dark_fighter",
32=>"Palus_knight",
33=>"Shillien_knight",
34=>"Blad edancer",
35=>"Assasin",
36=>" Abyss_walker",
37=>"Phantom_ranger",
38=>"Dark_mage" ,
39=>"Dark_wizard",
40=>"Spellhowler",
41=>"Phantom_summoner",
42=>"Shil lien_oracle",
43=>"Shilien_elder",
44=>"Orc_fighter",
45=>"Orc_raider",
46=>"Destroyer" ,
47=>"Orc_monk",
48=>"Tyrant",
49=>"Orc_mage",
50=>"Orc_shaman",
51=>" Overlord",
52=>"Warcryer",
53=>"Dwarven_fighter",
54=>"Scavenger",
55=>"Bounty_hunter",
56=>"Artisan",
57=> "Warsmith"
88=> "Duelist"
89=> "Dreadnought"
90=> "PhoenixKnight"
91=> "HellKnight"
92=> "Sagittarius"
93=> "Adventurer"
94=> "Archmage"
95=> "Soultaker"
96=> "ArcanaLord"
97=> "Cardinal"
98=> "Hierophant"
99=> "EvaTemplar"
100=> "SwordMuse"
101=> "WindRider"
102=> "MoonlightSentinel"
103=> "MysticMuse"
104=> "ElementalMaster"
105=> "EvaSaint"
106=> "ShillienTemplar"
107=> "SpectralDancer"
108=> "GhostHunter"
109=> "GhostSentinel"
110=> "StormScreamer"
111=> "SpectralMasterr"
112=> "ShillienSaint"
113=> "Titan"
114=> "GrandKhauatari"
115=> "Dominator"
116=> "Doomcryer"
117=> "FortuneSeeker"
118=> "Maestro"
 
Last edited:
Top