Eclipse - Free 2D Mmorpg Maker
September 02, 2010, 10:16:30 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Shop Arcade chat Login Register  
 
 
   
 
collapse

* No Spam Or Websites

Refresh History
  • Ertzel: So... Anyone with basic/none/limited photoshop or even paint skills want to make some money converting sprites for me?
    Today at 10:07:35 PM
  • Gamma™: weaver why are you oflfine on H&H? :S
    Today at 10:04:26 PM
  • Ertzel: Ya, only one try per knife, my one try failed :(
    Today at 10:00:17 PM
  • LegendWeaver: is it one use?
    Today at 09:43:15 PM
  • Ertzel: Wish I didnt spend my 1k+ credits to buy the stupid knife that failed at stealing Robins credits >.<
    Today at 09:42:42 PM
  • Wraith: ) Kreator!
    Today at 09:06:52 PM
  • Wraith: yes! you were! (in red text
    Today at 09:06:46 PM
  • ToshiroHayate: Kreator!
    Today at 08:25:02 PM
  • Kreator: o_0 Was I supposed to Wraith?
    Today at 08:16:02 PM
  • [Pie] ICT: Don't worry.. I commented.
    Today at 07:55:08 PM
  • Wraith: Ay, kreator, wtf is up with you not posting anything about my new cliffs??
    Today at 07:50:36 PM

* Recent Topics

[EO] Attaching Problem. by Ertzel
[Today at 10:11:57 PM]


Project Vertigo [2d Tile-based Side-Scrolling Engine] by Miguu
[Today at 10:03:22 PM]


Zacaras Empire (Hiring) by Ertzel
[Today at 08:43:54 PM]


custom cliff tiles by ToshiroHayate
[Today at 08:29:15 PM]


.: RPG Kingdom :. by LegendWeaver
[Today at 08:25:20 PM]


What do you think? by [Pie] ICT
[Today at 07:54:54 PM]


[Show Off] Aztec Stuff by [Pie] ICT
[Today at 07:50:07 PM]


So I herd you liek mudkipz by Kreator
[Today at 07:36:52 PM]


Haven and Hearth: Epic Screenshot Thread by Tompwnage™
[Today at 07:14:21 PM]


The Lonliest Star [RP] by DDunit
[Today at 07:09:46 PM]


* Who's Online


Pages: [1] 2
Site Author : Topic: Teleport spell (SAME MAP just moves forward)  (Read 5846 times)
0 Members and 1 Guest are viewing this topic.
November 11, 2006, 12:55:29 PM
blarg
Administrator
Demi God
*
User No : 1667
Posts: 4316
  • 683 credits
  • View Inventory
  • Send Money To Zetta Monkey (Fabio)
  • Location : infront of the computer (Duh)
    bluh bluh
    • View Profile


    this moves your character up 5 spaces depending on their direction.
    We are going to set this spell's case to 0.
    scripting skill needed 2/5 - ready for using, unless you use scrolling. easily edited.
    Code: [Select]
    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
    Change spellanim to what you want for animation. change all the 5's to the amount you want. This script warps players forward. the spell is set to fail if the destination is off the map. (has to be changed for scrolling).
    max in nonscrolling (x): 19
    max in nonscrolling (y): 14
    change those to the max in scrolling, if the map is scrolling.
    « Last Edit: January 19, 2007, 10:11:40 AM by Godlord » Logged

    I think Calculus is a pretty cool guy. eh solves intergals  and derivatevs and doesnt afraid of anything.
    December 14, 2006, 01:21:25 PM
    Newb
    *
    User No : 1886
    Posts: 22
  • 0 credits
  • View Inventory
  • Send Money To Sangann
    • View Profile
    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?
    Logged
    December 14, 2006, 01:33:21 PM
    I stuff cotton balls into asprin bottles in my spare time.
    Veteran
    Advanced Member
    *
    User No : 810
    Posts: 589
  • 0 credits
  • View Inventory
  • Send Money To SwiftDeathSK
  • Location : In your brain, thinking your thoughts.
    Mapper's Delight
    • View Profile
    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...
    Logged
    December 21, 2006, 02:40:08 PM
    ~Suffering~
    Active Member
    ***
    User No : 933
    Posts: 427
  • 0 credits
  • View Inventory
  • Send Money To Grim_Reaper
  • Location : Turn around...
    You dare enter my dominion?
    • View Profile
    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...

    maybe theres a mage class and the guys have to pass a ton of blocks to get to the trainer...
    Logged

    l33t

    Don't E-mail me cuz I won't reply anyway
    December 21, 2006, 03:13:59 PM
    The King of all Forums
    Active Member
    ***
    User No : 1815
    Posts: 111
  • 0 credits
  • View Inventory
  • Send Money To renegade545
  • Location : Kingston, ON
    • View Profile
    • WWW
    Cool script, I have seen ones like these before. I think it is for faster travelling or something like that.
    Logged

    Renegade545






    Current Projects: Seven Heros (PM me for info)
    December 23, 2006, 06:50:31 PM
    blarg
    Administrator
    Demi God
    *
    User No : 1667
    Posts: 4316
  • 683 credits
  • View Inventory
  • Send Money To Zetta Monkey (Fabio)
  • Location : infront of the computer (Duh)
    bluh bluh
    • View Profile
    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...
    I use it for a mage class. thats the point.
    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?
    it should work.
    Logged

    I think Calculus is a pretty cool guy. eh solves intergals  and derivatevs and doesnt afraid of anything.
    January 04, 2007, 12:39:26 PM
    I stuff cotton balls into asprin bottles in my spare time.
    Veteran
    Advanced Member
    *
    User No : 810
    Posts: 589
  • 0 credits
  • View Inventory
  • Send Money To SwiftDeathSK
  • Location : In your brain, thinking your thoughts.
    Mapper's Delight
    • View Profile
    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...
    I use it for a mage class. thats the point.
    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?
    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?
    Logged
    January 04, 2007, 01:22:48 PM
    blarg
    Administrator
    Demi God
    *
    User No : 1667
    Posts: 4316
  • 683 credits
  • View Inventory
  • Send Money To Zetta Monkey (Fabio)
  • Location : infront of the computer (Duh)
    bluh bluh
    • View Profile
    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...
    I use it for a mage class. thats the point.
    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?
    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.

    « Last Edit: January 04, 2007, 01:33:11 PM by Homicidal Monkey Vers. 1.337 » Logged

    I think Calculus is a pretty cool guy. eh solves intergals  and derivatevs and doesnt afraid of anything.
    January 05, 2007, 07:08:09 AM
    I stuff cotton balls into asprin bottles in my spare time.
    Veteran
    Advanced Member
    *
    User No : 810
    Posts: 589
  • 0 credits
  • View Inventory
  • Send Money To SwiftDeathSK
  • Location : In your brain, thinking your thoughts.
    Mapper's Delight
    • View Profile
    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...
    I use it for a mage class. thats the point.
    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?
    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.




    aaaaah... I see :P I wasnt thinking about passing thru walls lol, I was thinking you made it for moving forward in air, not going thru stuff >_< Do'h!
    Logged
    January 10, 2007, 01:56:10 PM
    347 1330!!
    Active Member
    ***
    User No : 958
    Posts: 171
  • 0 credits
  • View Inventory
  • Send Money To jiros
  • Location : Dordrecht
    • View Profile
    • WWW
    nice thought, I was thinking about a spell that is called "Evade" or whatever, that allows you to evade attacks in the style of dbz, or remember the last  level of the matrix path of Neo?  did not test it but will sure do very soon!
    Logged

    January 14, 2007, 07:13:43 PM
    Veteran
    Advanced Eclipser
    *
    User No : 1627
    Posts: 1090
  • 272 credits
  • View Inventory
  • Send Money To Hyperion
  • Location : C anada
    • View Profile
    Not working for me I use TE.  It just doesn't work any help.. Doesn't take MP or anything
    Logged



    I am the Nega-Marsh
    January 16, 2007, 04:09:35 AM
    347 1330!!
    Active Member
    ***
    User No : 958
    Posts: 171
  • 0 credits
  • View Inventory
  • Send Money To jiros
  • Location : Dordrecht
    • View Profile
    • WWW
    nope isn't working for me either, also using TE, too bad  :-|
    Logged

    October 31, 2007, 09:13:02 PM
    Member
    **
    User No : 4445
    Posts: 73
  • 0 credits
  • View Inventory
  • Send Money To unixfr3ak
  • Green Dixy The Source is Your End
    • View Profile
    I added it in propper
    when I reload scripts I get this

    "script compile error: 1002 (syntax error) at line "Case 2". Warning scripts may not work

    Code: [Select]
    '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    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 Select
    end if
    « Last Edit: October 31, 2007, 09:35:31 PM by unixfr3ak » Logged

    ---------=--Green-Dixy--=----------
    November 03, 2007, 07:44:05 PM
    Chit Chat God
    Demi God
    User No : 4374
    Posts: 6389
  • 2011 credits
  • View Inventory
  • Send Money To Bone
  • Location : All up in this shiznit
    [SB] Commodore
    • View Profile
    this only for TE?
    Logged

    Admiral for President...

    Quote
    "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"
    - From the Gospel, JBA 5:18


    November 03, 2007, 08:32:40 PM
    Teh Uberleet
    ******
    User No : 2747
    Posts: 2195
  • 0 credits
  • View Inventory
  • Send Money To Munro
    • View Profile
    this only for TE?

    anything that works with TE works in EE
    Logged
    November 10, 2007, 04:36:38 PM
    Chit Chat God
    Demi God
    User No : 4374
    Posts: 6389
  • 2011 credits
  • View Inventory
  • Send Money To Bone
  • Location : All up in this shiznit
    [SB] Commodore
    • View Profile
    do we literally change the words "spellanim" to the animation number?
    Logged

    Admiral for President...

    Quote
    "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"
    - From the Gospel, JBA 5:18


    November 12, 2007, 07:34:39 AM
    Administrator
    Demi God
    *
    User No : 141
    Posts: 5001
  • 48 credits
  • View Inventory
  • Send Money To unnown
  • -Admin-
    • View Profile
    yeah...
    Logged

    thinks godlord is an crazy dutchie :D
    November 12, 2007, 11:11:52 AM
    Chit Chat God
    Demi God
    User No : 4374
    Posts: 6389
  • 2011 credits
  • View Inventory
  • Send Money To Bone
  • Location : All up in this shiznit
    [SB] Commodore
    • View Profile
    well... I didnt' change anything I just pasted it in scripted spells with the right cases and stuff and it alerady did a cool animation so I guess not...
    Logged

    Admiral for President...

    Quote
    "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"
    - From the Gospel, JBA 5:18


    November 23, 2007, 09:52:31 AM
    I C WUT U DO THAR
    Member
    **
    User No : 4613
    Posts: 61
  • 0 credits
  • View Inventory
  • Send Money To cakemixcore
    • View Profile
    • WWW
    Can I make it stop at a blocked tile?
    Logged
    November 23, 2007, 03:27:17 PM
    Chit Chat God
    Demi God
    User No : 4374
    Posts: 6389
  • 2011 credits
  • View Inventory
  • Send Money To Bone
  • Location : All up in this shiznit
    [SB] Commodore
    • View Profile
    if you do it onto a blockd tile like lets say im in a map that looks like this
    ( x equals blockd) ( and 0 means where u are)

      x   x    x     x
      x   x    x     x
      x   x    0     x
      x   x    x     x

    so I fi teleport one spcwe up. and the whole map is blockd save where I am.
    ill end up in a blockd space I'll be able to move from blockd tile to blockd tile (without the spell) because eclipse wont let u get stuck

    but yea u can tele righgt on to a block tile then pass that blcocked tile n go on ur way so no im pretty sure blockd tiles dont block teleing
    Logged

    Admiral for President...

    Quote
    "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"
    - From the Gospel, JBA 5:18


    Pages: [1] 2
     


    Powered by MySQL Powered by PHP Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
    SimplePortal 2.3.1 © 2008-2009, SimplePortal
    Valid XHTML 1.0! Valid CSS!
    Page created in 0.376 seconds with 30 queries.