Help with OneDayReward "Legacy"

GoldGames

Vassal
Customer
Hello Lucera community, I have questions regarding which variable I should put inside class_filter={all}. For example, I want to assign items to specific classes, in my case items for mages and items for warriors, but I’m having trouble understanding how to include the IDs within class_filter={all}. I have already tried to use classids and haven't succeeded.
I tried the following way.
for example
<!-- Human Fighter -->
1- class_filter={0}
<!-- Human Mage -->
2- class_filter={10}

.xml file:
1724364634260.webp


.bat file:


onedayreward_begin id=4000 reward_id=1000 reward_name=[Reach Level 2 Warriors] reward_desc=[Level up your character to Lv. 2 to receive the reward. (Only once)] reward_period=[Can be received when Level 2 is reached] class_filter={0} reset_period=onetime condition_count=0 condition_level=2 can_condition_level={2;99;none} can_condition_day={} category=grown check_type=char reward_item={{5789;200};{29651;20}} targetloc_scale={} onedayreward_end
onedayreward_begin id=4001 reward_id=1001 reward_name=[Reach Level 2 Wizards] reward_desc=[Level up your character to Lv. 2 to receive the reward. (Only once)] reward_period=[Can be received when Level 2 is reached] class_filter={10} reset_period=onetime condition_count=0 condition_level=2 can_condition_level={2;99;none} can_condition_day={} category=grown check_type=char reward_item={{5790;100};{29651;20}} targetloc_scale={} onedayreward_end
 
Hello again, Lucera community. I’m here to explain what needs to be done:

The problem was with my file editor. I was opening the OneDayReward_Classic-eu.dat file using protocol 306, but it should be opened with protocol 311. After placing the class IDs in this protocol, it automatically converted them to names, whereas in version 306, it only showed an error in the `class_filter` variable.
1724444475696.webp


So in my case, since I want all wizard classes to receive spiritshots and warrior classes to receive soulshots, I edited the OneDayReward.xml file as follows:


<one_day_reward>
<id>4000</id>
<name>Reach Level 2 Warriors</name>
<description>Level up your character to Lv. 2 to receive the reward. (Only once)</description>
<target>Can be received when Level 2 is reached</target>
<reset_time>SINGLE</reset_time>
<classIds>
<!-- Human Fighter -->
<classId>0</classId>
<!-- Warrior -->
<classId>1</classId>
<!-- Gladiator -->
<classId>2</classId>
<!-- Warlord -->
<classId>3</classId>
<!-- Knight -->
<classId>4</classId>
<!-- Paladin -->
<classId>5</classId>
<!-- Dark Avenger -->
<classId>6</classId>
<!-- Rigue -->
<classId>7</classId>
<!-- Treasure Hunter -->
<classId>8</classId>
<!-- Hawkeye -->
<classId>9</classId>
<!-- Elf Fighter -->
<classId>18</classId>
<!-- Elven Knight -->
<classId>19</classId>
<!-- Temple Knight -->
<classId>20</classId>
<!-- Sword Singer -->
<classId>21</classId>
<!-- Elven Scout -->
<classId>22</classId>
<!-- Plains Walker -->
<classId>23</classId>
<!-- Silver Ranger -->
<classId>24</classId>
<!-- Dark Fighter -->
<classId>31</classId>
<!-- Palus Knight -->
<classId>32</classId>
<!-- Shillien Knight -->
<classId>33</classId>
<!-- Blade Dancer -->
<classId>34</classId>
<!-- Assassin -->
<classId>35</classId>
<!-- Abyss Walker -->
<classId>36</classId>
<!-- Phantom Ranger -->
<classId>37</classId>
<!-- Orc Fighter -->
<classId>44</classId>
<!-- Orc Raider -->
<classId>45</classId>
<!-- Destroyer -->
<classId>46</classId>
<!-- Orc Monk -->
<classId>47</classId>
<!-- Tyrant -->
<classId>48</classId>
<!-- Dwarven Fighter -->
<classId>53</classId>
<!-- Scavenger -->
<classId>54</classId>
<!-- Bounty Hunter -->
<classId>55</classId>
<!-- Artisan -->
<classId>56</classId>
<!-- Warsmith -->
<classId>57</classId>
<!-- Duelist -->
<classId>88</classId>
<!-- Dreadnought -->
<classId>89</classId>
<!-- Phoenix Knight -->
<classId>90</classId>
<!-- Hell Knight -->
<classId>91</classId>
<!-- Sagittarius -->
<classId>92</classId>
<!-- Adventurer -->
<classId>93</classId>
<!-- Eva's Templar -->
<classId>99</classId>
<!-- Sword Muse -->
<classId>100</classId>
<!-- Wind Raider -->
<classId>101</classId>
<!-- Moonlight Sentinel -->
<classId>102</classId>
<!-- Shillien Templar -->
<classId>106</classId>
<!-- Spectral Dancer -->
<classId>107</classId>
<!-- Ghost Hunter -->
<classId>108</classId>
<!-- Ghost Sentinel -->
<classId>109</classId>
<!-- Grand Khavatari -->
<classId>114</classId>
<!-- Fortune Seeker -->
<classId>117</classId>
<!-- Maestro -->
<classId>118</classId>
</classIds>
<requirement>
<obtain_level>2</obtain_level>
</requirement>
<reward_items>
<reward_item id="5789" count="200"/>
<reward_item id="29651" count="20"/>
</reward_items>
</one_day_reward>

<one_day_reward>
<id>4000</id>
<name>Reach Level 2 Wizards</name>
<description>Level up your character to Lv. 2 to receive the reward. (Only once)</description>
<target>Can be received when Level 2 is reached</target>
<reset_time>SINGLE</reset_time>
<classIds>
<!-- Human Mage -->
<classId>10</classId>
<!-- Wizard -->
<classId>11</classId>
<!-- Sorcerer -->
<classId>12</classId>
<!-- Necromancer -->
<classId>13</classId>
<!-- Warlock -->
<classId>14</classId>
<!-- Cleric -->
<classId>15</classId>
<!-- Bishop -->
<classId>16</classId>
<!-- Prophet -->
<classId>17</classId>
<!-- Elven Mage -->
<classId>25</classId>
<!-- Elven Wizard -->
<classId>26</classId>
<!-- Spell Singer -->
<classId>27</classId>
<!-- Elemental Summoner -->
<classId>28</classId>
<!-- Oracle -->
<classId>29</classId>
<!-- Elder -->
<classId>30</classId>
<!-- Dark Mage -->
<classId>38</classId>
<!-- Dark Wizard -->
<classId>39</classId>
<!-- Spellhowler -->
<classId>40</classId>
<!-- Phantom Summoner -->
<classId>41</classId>
<!-- Shillien Oracle -->
<classId>42</classId>
<!-- Shillien Elder -->
<classId>43</classId>
<!-- Orc Mage -->
<classId>49</classId>
<!-- Orc Shaman -->
<classId>50</classId>
<!-- Overlord -->
<classId>51</classId>
<!-- Warcryer -->
<classId>52</classId>
<!-- Archmage -->
<classId>94</classId>
<!-- Soultaker -->
<classId>95</classId>
<!-- Arcana Lord -->
<classId>96</classId>
<!-- Cardinal -->
<classId>97</classId>
<!-- Hierophant -->
<classId>98</classId>
<!-- Mystic Muse -->
<classId>103</classId>
<!-- Elemental Master -->
<classId>104</classId>
<!-- Eva's Saint -->
<classId>105</classId>
<!-- Storm Screamer -->
<classId>110</classId>
<!-- Spectral Master -->
<classId>111</classId>
<!-- Shillien Saint -->
<classId>112</classId>
<!-- Dominator -->
<classId>115</classId>
<!-- Doom Cryer -->
<classId>116</classId>
</classIds>
<requirement>
<obtain_level>2</obtain_level>
</requirement>
<reward_items>
<reward_item id="5790" count="100"/>
<reward_item id="29651" count="20"/>
</reward_items>
</one_day_reward>


And the editing within the OneDayReward_Classic-eu.dat file was done as follows:
onedayreward_begin id=4000 reward_id=1000 reward_name=[Reach Level 2 Warriors] reward_desc=[Level up your character to Lv. 2 to receive the reward. (Only once)] reward_period=[Can be received when Level 2 is reached] class_filter={fighter;warrior;gladiator;duelist;warlord;dreadnought;knight;paladin;phoenix_knight;dark_avenger;hell_knight;rogue;treasure_hunter;adventurer;hawkeye;sagittarius;elven_fighter;elven_knight;temple_knight;evas_templar;swordsinger;sword_muse;elven_scout;wind_rider;silver_ranger;moonlight_sentinel;dark_fighter;palus_knight;shillien_knight;shillien_templar;bladedancer;spectral_dancer;assasin;abyss_walker;ghost_hunter;phantom_ranger;ghost_sentinel;orc_fighter;orc_raider;destroyer;titan;orc_monk;tyrant;grand_khavatari;dwarven_fighter;scavenger;bounty_hunter;fortune_seeker;artisan;warsmith;maestro} reset_period=onetime condition_count=0 condition_level=2 can_condition_level={2;99;none} can_condition_day={} category=grown check_type=char reward_item={{5789;200};{29651;20}} targetloc_scale={} onedayreward_end

onedayreward_begin id=4000 reward_id=1001 reward_name=[Reach Level 2 Wizards] reward_desc=[Level up your character to Lv. 2 to receive the reward. (Only once)] reward_period=[Can be received when Level 2 is reached] class_filter={mage;wizard;sorcerer;archmage;necromancer;soultaker;warlock;arcana_lord;cleric;bishop;cardinal;prophet;hierophant;elven_mage;elven_wizard;spellsinger;mystic_muse;elemental_summoner;elemental_master;oracle;elder;evas_saint;dark_mage;dark_wizard;spellhowler;storm_screamer;phantom_summoner;spectral_master;shillien_oracle;shillien_elder;shillien_saint;orc_mage;orc_shaman;overlord;dominator;warcryer;doomcryer} reset_period=onetime condition_count=0 condition_level=2 can_condition_level={2;99;none} can_condition_day={} category=grown check_type=char reward_item={{5790;100};{29651;20}} targetloc_scale={} onedayreward_end


It will look something like this in the game:
1724445435375.webp


Thank you all very much. If you have any questions, feel free to message me privately.
 
Back
Top