Jump to content
9 votes
Guests cannot vote

Extension for customtext or lang file

  • Views: 86
  • Submitted:

I propose to extend customtext or Lang files with MonsterSpawn_Group. You gave us the ability to display messages from the server in several languages, and this part is missing. I am writing about customtext or lang files because I don't know where it would be better to implement it. Currently the information about what is displayed is in MonsterSpawn_Group. 

I will show this on the example of Medusa:

Original part

<GroupSettings>
		<Group Enable="1" Index="0" Duration="60" MapNumber="56" BossMonsterIndex="561" BossMonsterName="Medusa" AllowMove="0" SpawnNotice="Medusa and her assistants has invaded Swamp of Clamness!!!" DespawnNotice="Medusa and her assistants are gone" PreNotice="Medusa will spawn in %d Minutes" />
</GroupSettings>
<MonsterSettings>
		<Group Index="0">
			<Monster Index="561" MoveRange="10" SpawnType="0" Count="1" OverrideDefaultSettings="1" EventID="150" HP="15000000" DamageMin="1000" DamageMax="1500" Defense="550" AttackRate="2000" DefenseRate="2000" SendKillNotice="1" KillNotice="[MEDUSA] %s killed Medusa! [%d] of [%d]" />
			<Monster Index="560" MoveRange="10" SpawnType="0" Count="7" OverrideDefaultSettings="1" EventID="151" HP="150000" DamageMin="100" DamageMax="150" Defense="150" AttackRate="1000" DefenseRate="1000" SendKillNotice="1" KillNotice="[MEDUSA] %s killed Medusa assistant! [%d] of [%d]" />
		</Group>
</MonsterSettings>

and it should look like this

<GroupSettings>
		<Group Enable="1" Index="0" Duration="60" MapNumber="56" BossMonsterIndex="561" BossMonsterName="Medusa" AllowMove="0" SendSpawnNotice="1" TypeNotice="1" SpawnNoticeID="1" DespawnNoticeID="2" PreNoticeID="3" />
</GroupSettings>
<MonsterSettings>
		<Group Index="0">
			<Monster Index="561" MoveRange="10" SpawnType="0" Count="1" OverrideDefaultSettings="1" EventID="150" HP="15000000" DamageMin="1000" DamageMax="1500" Defense="550" AttackRate="2000" DefenseRate="2000" SendKillNotice="1" KillNoticeID="4" />
			<Monster Index="560" MoveRange="10" SpawnType="0" Count="7" OverrideDefaultSettings="1" EventID="151" HP="150000" DamageMin="100" DamageMax="150" Defense="150" AttackRate="1000" DefenseRate="1000" SendKillNotice="1" KillNoticeID="5" />
		</Group>
</MonsterSettings>

we add categories in the language file

<MonsterSpawnGroup>
		<Msg ID="1" Text="Medusa and her assistants has invaded Swamp of Clamness!!!" />
		<Msg ID="2" Text="Medusa and her assistants are gone" />
		<Msg ID="3" Text="Medusa will spawn in %d Minutes" />
		<Msg ID="4" Text="[MEDUSA] %s killed Medusa! [%d] of [%d]" />
		<Msg ID="5" Text="[MEDUSA] %s killed Medusa assistant! [%d] of [%d]" />	
</MonsterSpawnGroup>

Explanation:

SendSpawnNotice -  0 or 1 turns on or off all information about displaying this event. Currently there is no way to turn this off, leaving blank spaces in the descriptions with a large number of additional monsters, the information disappears very quickly.

Type notice - here we select how to display information about the event

         1 - standard way of displaying information, time counts down by 5 minutes. must contain %s character in text

         2 - one-time information, no countdown, we skip the PreNoticeID in the configuration

SpawnNoticeID, DespawnNoticeID, PreNoticeID, KillNoticeID - here I enter the message numbers which are in the language file

 

This solution gives a lot of possibilities for server administrators to add their own events with killing bosses. please consider this idea dear IGCN administration

  • Like 1

User Feedback

Recommended Comments

There are no comments to display.

×
×
  • Create New...

Important Information


We use technologies, such as cookies, to customize content and advertising, to provide social media features and to analyse traffic to the site. We also share information about your use of our site with our trusted social media, advertising and analytics partners. See more about cookies and our Privacy Policy.