Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

How to create new spell

Newbie Spellweaver
Joined
Jan 21, 2015
Messages
48
Reaction score
6
Hi,

I try to create new spell. The problem it's when i write the command in GM console, nothing happens and here is what is writted in the StartServerDefault.bat :

[06-14 13:31:12,320, 353454] gm1 - INFO resourceSystem : update /Mechanics/Spe
lls/Moderation/SpellTakeFaction.xdb

I think it's doesn't work because the "RessourceID". I've try to remove the <header> with <ressourceID> tag but it still doesn't work. Here is the script of my spell :

Code:
<?xml version="1.0" encoding="UTF-8" ?><gameMechanics.constructor.schemes.spell.singleTarget.SpellSingleTarget>
   <Header>
		    <resourceId>9898989898</resourceId>
	  </Header>
   <mechanics type="gameMechanics.constructor.schemes.spell.CreatureSpellMechanics">
      <casterImpacts>
		       <Item type="clientCmds.cmds.ImpactConsoleCmd">
			         <command>gameMechanics.clientCommands.CmdTakeFaction</command>
		       </Item>
	     </casterImpacts>
      <targetImpacts />
   </mechanics>
 <Name href="Spell_Takefaction.txt" />
   <Description href="Spell_DescTF.txt" />
   <image href="/Interface/Icons/Spells/Paladin/PaladinBlessedSword.(UISingleTexture).xdb#xpointer(/UISingleTexture)" />
   <DefaultAction>8</DefaultAction>
   <visualScripts href="/Spells/VisScripts/Priest/HolySmite.(SpellVisScripts).xdb#xpointer(/SpellVisScripts)" />
   <speed>0</speed>
   <range>100</range>
   <level>1</level>
   <prepareDuration>0</prepareDuration>
   <needLos>false</needLos>
   <element>PHYSICAL</element>
   <targetType>STTCurrentTarget</targetType>
   <isAggro>false</isAggro>
   <replaceLowRanks>false</replaceLowRanks>
   <isWorkOnDead>false</isWorkOnDead>
   <triggersGlobalCooldown>false</triggersGlobalCooldown>
	<iffPolicy>FriendsEnemies</iffPolicy>
</gameMechanics.constructor.schemes.spell.singleTarget.SpellSingleTarget>
 
Newbie Spellweaver
Joined
May 4, 2015
Messages
17
Reaction score
2
Hi,

I try to create new spell. The problem it's when i write the command in GM console, nothing happens and here is what is writted in the StartServerDefault.bat :



I think it's doesn't work because the "RessourceID". I've try to remove the <header> with <ressourceID> tag but it still doesn't work. Here is the script of my spell :

Code:
   <Header>
            <resourceId>9898989898</resourceId>
      </Header>
Resource ID has to be unique. It registers in the file \game\data\system\index.srv

but it can not work if the client's resources which to change are mentioned so far there is no opportunity
 
Newbie Spellweaver
Joined
Aug 4, 2018
Messages
5
Reaction score
3
If I am not mistaken, then this ResourceID is out of bounds. ResourceID must be in the range int32
 
Back
Top