lepom0102 Posted March 11, 2016 Author Posted March 11, 2016 compatible with EO2.0 / 2.3we already have skill warp map, and now I will guide you to make 1 new skills warp to the location installed**open Server** **find modConstants** **find code this:**```Public Const SPELL_TYPE_WARP As Byte = 4```**and under it added this code**```Public Const SPELL_TYPE_WARP_TO As Byte = 5```**find modCombat** **find sub "CastSpell" and find code this**```Case SPELL_TYPE_WARP SendAnimation mapnum, Spell(Spellnum).SpellAnim, 0, 0, TARGET_TYPE_PLAYER, Index PlayerWarp Index, Spell(Spellnum).Map, Spell(Spellnum).x, Spell(Spellnum).y SendAnimation GetPlayerMap(Index), Spell(Spellnum).SpellAnim, 0, 0, TARGET_TYPE_PLAYER, Index DidCast = True```**and under it added this code**``` Case SPELL_TYPE_WARP_TO 'warp to Select Case Player(Index).Dir Case DIR_UP '*** x = Player(Index).x y = Player(Index).y - Spell(Spellnum).AoE PlayerWarp Index, GetPlayerMap(Index), x, y DidCast = True Case DIR_DOWN '*** x = Player(Index).x y = Player(Index).y + Spell(Spellnum).AoE PlayerWarp Index, GetPlayerMap(Index), x, y DidCast = True Case DIR_LEFT '*** x = Player(Index).x - Spell(Spellnum).AoE y = Player(Index).y PlayerWarp Index, GetPlayerMap(Index), x, y DidCast = True Case DIR_RIGHT '*** x = Player(Index).x + Spell(Spellnum).AoE y = Player(Index).y PlayerWarp Index, GetPlayerMap(Index), x, y DidCast = True End Select```**ok, now open Client** **find modConstants and find code this:**```Public Const SPELL_TYPE_WARP As Byte = 4```**and under it added this code**```Public Const SPELL_TYPE_WARP_TO As Byte = 5```**open "frmEditor_Spell" and find object "cmbType"** **in "list" at the bottom add the word "Warp To" similar image below**https://www.dropbox.com/s/zpd4ctcovt622yf/Untitled-2.jpg?dl=0**END**ok, now you set 1 new skill, choose "Warp To" and set the sphere of influence "AoE" greater than 0, as image belowhttps://www.dropbox.com/s/tlid5g4j073fhgv/Untitled-3.jpg?dl=0players can now jump to the location have been set if using this skill,good luck
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now