Case 0 Dir=GetPlayerDIr(Index) if GetPlayerMP(Index) > 10 then call setPlayerMP(Index, int(GetPlayerMP(Index) - 10)) call sendMP(Index) Select Case dir Case 0 if GetPlayerY(Index) - 5 >= 0 then Call PlayerWarp(index, GetPlayerMap(index), GetPlayerX(index), GetPlayerY(index)-5) call SpellAnim(1,GetPlayerMap(Index), GetPlayerx(Index), GetPlayerY(Index)) else Call PlayerMsg(Index, "The spell fails.", 1) end if Case 1 if GetPlayerY(Index) + 5 <= 14 then Call PlayerWarp(index, GetPlayerMap(index), GetPlayerX(index), GetPlayerY(index)+5) call SpellAnim(1,GetPlayerMap(Index), GetPlayerx(Index), GetPlayerY(Index)) else Call PlayerMsg(Index, "The spell fails.", 1) end if Case 2 if GetPlayerX(Index) - 5 >= 0 then Call PlayerWarp(index, GetPlayerMap(index), GetPlayerX(index)-5, GetPlayerY(index)) call SpellAnim(1,GetPlayerMap(Index), GetPlayerx(Index), GetPlayerY(Index)) else Call PlayerMsg(Index, "The spell fails.", 1) end if Case 3 if GetPlayerX(Index) + 5 <= 19 then Call PlayerWarp(index, GetPlayerMap(index), GetPlayerX(index)+5, GetPlayerY(index)) call SpellAnim(1,GetPlayerMap(Index), GetPlayerx(Index), GetPlayerY(Index)) else Call PlayerMsg(Index, "The spell fails.", 1) end if End Select end if
o.0 dont take this the wrong way, but what can this script be used for? I cant think of anything that needs the player to move up 5 tiles by using a spell...
This doesn't work for me for some reason. All it does is take away the 10 MP, but doesn't actually teleport me. Any idea why its not working?
Quote from: Zananex on December 14, 2006, 01:33:21 PMo.0 dont take this the wrong way, but what can this script be used for? I cant think of anything that needs the player to move up 5 tiles by using a spell...I use it for a mage class. thats the point.Quote from: Sangann on December 14, 2006, 01:21:25 PMThis doesn't work for me for some reason. All it does is take away the 10 MP, but doesn't actually teleport me. Any idea why its not working?it should work.
Quote from: Homicidal Monkey Vers. 1.337 on December 23, 2006, 06:50:31 PMQuote from: Zananex on December 14, 2006, 01:33:21 PMo.0 dont take this the wrong way, but what can this script be used for? I cant think of anything that needs the player to move up 5 tiles by using a spell...I use it for a mage class. thats the point.Quote from: Sangann on December 14, 2006, 01:21:25 PMThis doesn't work for me for some reason. All it does is take away the 10 MP, but doesn't actually teleport me. Any idea why its not working?it should work.soo.... what exactly does the mage use this spell for? is there a true purpose? or is it just to move around faster, like renegade said?
Quote from: Zananex on January 04, 2007, 12:39:26 PMQuote from: Homicidal Monkey Vers. 1.337 on December 23, 2006, 06:50:31 PMQuote from: Zananex on December 14, 2006, 01:33:21 PMo.0 dont take this the wrong way, but what can this script be used for? I cant think of anything that needs the player to move up 5 tiles by using a spell...I use it for a mage class. thats the point.Quote from: Sangann on December 14, 2006, 01:21:25 PMThis doesn't work for me for some reason. All it does is take away the 10 MP, but doesn't actually teleport me. Any idea why its not working?it should work.soo.... what exactly does the mage use this spell for? is there a true purpose? or is it just to move around faster, like renegade said?I dont know about your game but in mine I got like these pits in some dungeon maps that would kill you if you touch them. There is like a button located on the otherside so you sortof have to have a mage friend to open the door. Ill post a screen shot soon.
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Sub ScriptedSpell(index, Script) '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Select Case Script Case 0 Dir=GetPlayerDIr(Index) if GetPlayerMP(Index) > 10 then call setPlayerMP(Index, int(GetPlayerMP(Index) - 10)) call sendMP(Index) Select Case dir Case 0 if GetPlayerY(Index) - 5 >= 0 then Call PlayerWarp(index, GetPlayerMap(index), GetPlayerX(index), GetPlayerY(index)-5) call SpellAnim(1,GetPlayerMap(Index), GetPlayerx(Index), GetPlayerY(Index)) else Call PlayerMsg(Index, "The spell fails.", 1) end if Case 1 if GetPlayerY(Index) + 5 <= 14 then Call PlayerWarp(index, GetPlayerMap(index), GetPlayerX(index), GetPlayerY(index)+5) call SpellAnim(1,GetPlayerMap(Index), GetPlayerx(Index), GetPlayerY(Index)) else Call PlayerMsg(Index, "The spell fails.", 1) end if Case 2 if GetPlayerX(Index) - 5 >= 0 then Call PlayerWarp(index, GetPlayerMap(index), GetPlayerX(index)-5, GetPlayerY(index)) call SpellAnim(1,GetPlayerMap(Index), GetPlayerx(Index), GetPlayerY(Index)) else Call PlayerMsg(Index, "The spell fails.", 1) end if Case 3 if GetPlayerX(Index) + 5 <= 19 then Call PlayerWarp(index, GetPlayerMap(index), GetPlayerX(index)+5, GetPlayerY(index)) call SpellAnim(1,GetPlayerMap(Index), GetPlayerx(Index), GetPlayerY(Index)) else Call PlayerMsg(Index, "The spell fails.", 1) end if End Selectend if
"With it we will all find peace and love, and learn to accept each other for who we are, because we all have one common purpose in life, and that is to enjoy its taste"
this only for TE?