Eclipse
January 05, 2009, 05:24:24 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Chat Help Rules Arcade Search Calendar Gallery Login Register  
 
 
 
Recent Topics +-
what? by DrNova
Today at 05:24:20 PM

Key by bobo1172
Today at 05:24:01 PM

Open Book by The Oracle
Today at 05:23:26 PM

Yes no Game by DrNova
Today at 05:22:39 PM

Rate the above user by The Oracle
Today at 05:19:06 PM

Free movies? by DrNova
Today at 05:18:08 PM

Lostica [Project Revamp] by The MrMiguu™ [pizza pretzles]
Today at 05:18:01 PM

Disparity Recruiting by Peter
Today at 05:16:32 PM

Sig please :) by Kreator
Today at 05:14:59 PM

TE auto Updater by timster0
Today at 05:13:19 PM

Members Online +-
15 Guests, 32 Users
Electrokinesis,
DrNova,
Fingle,
bobo1172,
The Oracle,
•RЧĐIИØPHØR•,
Stalfo,
Peter,
Darkniz,
Gwendalin,
Thelettersix,
The MrMiguu™ [pizza pretzles],
>~(Squiddle)~<,
DragonFire,
nehako,
Airscar,
Mitus,
FS:CG Admin[Shadowwulf],
Kreator,
Niko,
Leaf [zach],
Doomteam1,
Japez,
HawkStorm95,
Almighty Wing,
ʇıunpp ʎqɹıʞ࣭,
tiggilyboo,
The Tribal,
Nospheratus,
timster0,
zelkova112,
Devogen
Pages: [1]
  Print  
Author Topic: Portal Script  (Read 1073 times)
0 Members and 1 Guest are viewing this topic.
Marsh
Demi God

Offline Offline

Posts: 7,280


Comfort the disturbed. Disturb the comfortable.


View Profile WWW Email
User is on moderator watch listWatched
« on: August 10, 2005, 03:18:08 PM »

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
pandahead:
Guest


Email
« Reply #1 on: December 18, 2005, 03:49:19 PM »

why dont you just get a portal object and put a warp on it :?:  :?:  :?:  :?:  :?:  :?:  :idea:  :idea:  :idea:
m4k
Member
**
Offline Offline

Posts: 43


View Profile Email
« Reply #2 on: January 01, 2006, 01:04:26 PM »

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)
Pages: [1]
  Print  
 
 

Powered by EzPortal
Powered by MySQL Powered by PHP Powered by SMF 2.0 Beta 4 | SMF © 2006–2008, Simple Machines LLC | Sitemap Valid XHTML 1.0! Valid CSS!
Page created in 0.37 seconds with 33 queries.