Eclipse - Free 2D Mmorpg Maker
September 02, 2010, 10:17:03 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


Site Author : Topic: Portal Script  (Read 2407 times)
0 Members and 1 Guest are viewing this topic.
August 10, 2005, 03:18:08 PM
Similac Child
Owner
Demi God
*
User No : 13358
Posts: 7477
  • 1425 credits
  • View Inventory
  • Send Money To Marsh
  • Comfort the disturbed disturb the comfortable
    • View Profile
    • WWW
    Just a simple portal script that you add to your commands
    Code:
        Case "/setportal"
                    Call PlayerMsg(index, "You have created a portal opening at this spot! You may now return to this spot at any time by typing /portal", 1)
                    Call PutVar("Portal.ini", GetPlayerName(index), "map", GetPlayerMap(index))
                    Call PutVar("Portal.ini", GetPlayerName(index), "x", GetPlayerX(index))
                    Call PutVar("Portal.ini", GetPlayerName(index), "y", GetPlayerY(index))
                Exit Sub
        Case "/portal"
               mapnum = GetVar("Portal.ini", GetPlayerName(index), "map")
               y = GetVar("Portal.ini", GetPlayerName(index), "y")
               x = GetVar("Portal.ini", GetPlayerName(index), "x")
                    Call SetPlayerMap(index, mapnum)
                    Call setPlayery(index, y)
                    call setplayerx(index, x)
                    Call SendPlayerData(index)
                    Call GetPlayerData(index)
                Exit Sub
    Logged

    don't call your mother - don't call your priest
    don't call your doctor - call the police
    you bring the razor blade - I'll bring the speed
    Take off your coat - it's gonna be a long night
    December 18, 2005, 03:49:19 PM
    pandahead:
    Guest
    why dont you just get a portal object and put a warp on it :?:  :?:  :?:  :?:  :?:  :?:  :idea:  :idea:  :idea:
    Logged
    January 01, 2006, 01:04:26 PM
    Member
    **
    User No : 130
    Posts: 43
  • 0 credits
  • View Inventory
  • Send Money To m4k
    • View Profile
    Good script but I ran into some probs when I was on a diffrent map and "/portal"ed back to the "setportal" map.  When I would pop up there would be no NPCs on teh map and also any other players that were on the map could not be seen (maybe it was just me)

    but if anyone is having the same probs I got mine to work by replacing

     
    Quote
    Call SetPlayerMap(index, mapnum)
    Call setPlayery(index, y)
    call setplayerx(index, x)


    to Call PlayerWarp(index, mapnum, x, y)
    Logged

    ~ I spit hot fire
     


    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.247 seconds with 31 queries.