PDA

View Full Version : Portal Script



Deathravin
04-02-2008, 12:49 AM
Sorry, but Dhasks' has been bugging the shit out of me...


# Portal by Deathravin

#####################################
######## Very Start ########
#####################################

If_1 goto Fix%1

Labelerror:
Instructions:
Echo
Echo Deathravin whispers, "The cake is a lie"
Echo
Echo ***************
Echo *
Echo * Aperture Science Labs: Portal
Echo * By Deathravin
Echo *
Echo * Based and improved on
Echo * Dhask's Portal Pass V 2.0
Echo *
Echo ***************
Echo *
Echo * Welcome to the Aperture Science enrichment center
Echo *
Echo * Using our patented portal 'device' technology,
Echo * We have set up various portals around the planet
Echo * so you can travel safely (hehe) to various locations
Echo *
Echo * To use, enter one of the following locations:
Echo * - Landing > Small Park, TSC
Echo * - Solhaven > North Market
Echo * - Icemule > Town Center
Echo * - Pinefar > Crevice
Echo * - River's Rest > Town Commons
Echo * - Teras Isle > Statue
Echo * - Ta'Illistim > Hanging Gardens
Echo * - ZulLogoth > Monument
Echo * - Ta'Vaalor > Victory Court
Echo * - Sylvarraend > Commons
Echo * - Nexus > Nexus in Landing
Echo *
Echo ***************
Echo
Exit


#####################################
######## Variable Fixes ########
#####################################

FixWehnimer's:
FixWehnimer:
FixWehnimer'sLanding:
FixWehnimerLanding:
Echo
Echo ***************
Echo *
Echo * The Aperature Science enrichment center applauds you for
Echo * Typing out "Wehnimer" but reminds you this alone does not
Echo * entitle you to additional cake...
Echo *
Echo ***************
Echo
FixLanding:
FixWL:
save WL
goto GenericCheckTicket

FixSolhaven:
FixHaven:
FixSol:
FixSH:
Save SH
goto GenericCheckTicket

FixIceMule:
FixIce:
FixMule:
FixIT:
save IT
goto GenericCheckTicket

FixPinefar:
FixPine:
FixCave:
FixPF:
save PF
goto GenericCheckTicket

FixRiversRest:
FixRiver'sRest:
FixRiver:
FixRest:
FixRR:
save RR
goto GenericCheckTicket

FixTerasIsle:
FixTeras:
FixIsle:
FixTI:
save TI
goto GenericCheckTicket

FixTa'Illistim:
FixTaIllistim:
FixIllistim:
FixIll:
FixHangingGardens:
FixHanging:
FixGardens:
FixGarden:
FixIL:
save IL
goto GenericCheckTicket

FixZulLogoth:
FixLogoth:
FixZul:
FixZL:
save ZL
goto GenericCheckTicket

FixTa'Vaalor:
FixTaVaalor:
FixVaalor:
FixTV:
save TV
goto GenericCheckTicket

FixSylvarraend:
Echo
Echo ***************
Echo *
Echo * The Aperature Science enrichment center applauds you for
Echo * Typing out "Sylvarraend" but reminds you this alone does not
Echo * entitle you to additonal cake...
Echo *
Echo ***************
Echo
FixSylva:
FixSylv:
FixSY:
save SY
goto GenericCheckTicket

FixCysaegir:
FixCysae:
FixCys:
FixCY:
Echo
Echo ***************
Echo *
Echo * The Aperature Science enrichment center applauds you for
Echo * your interest in the Cysaegir. However, there is no cake
Echo * in Cysaegir. And Cake is what moves us...
Echo *
Echo * Deathravin's Note:
Echo * I'd rather put a Portal stop for Ta'Faendryl... eat me
Echo * Get a script from Illistim to Cysaegir and shatap.
Echo *
Echo ***************
Echo
Exit

FixNexus:
FixNX:
save NX
goto GenericCheckTicket

#####################################
######## Generics & Errors ########
#####################################

#@@@@@@@@@@@@@@@@@@@@@@@@@#
#@@@@@@ Errors @@@@@@#
#@@@@@@@@@@@@@@@@@@@@@@@@@#

GenericLostTicket:
Echo
Echo ***************
Echo *
Echo * Error! A portal ticket cannot be found
Echo *
Echo * Are you still... there?
Echo * It was just there...
Echo *
Echo ***************
Echo
Exit

GenericNoTicket:
Echo
Echo ***************
Echo *
Echo * Error! A portal ticket cannot be found
Echo * The Aperture Science enrichment center urges you to
Echo * aquire a ticket as soon as possible, and get a fork.
Echo * You will need it for the cake.
Echo *
Echo ***************
Echo
Exit

GenericDeadTicket:
Echo
Echo ***************
Echo *
Echo * Error! A portal ticket cannot be found
Echo * The Aperture Science enrichment center urges you to
Echo * aquire a ticket as soon as possible, and get a fork.
Echo * You will need it for the cake.
Echo *
Echo ***************
Echo
Exit

GenericWrongLocation:
Echo
Echo ***************
Echo *
Echo * Error! You do not seem to be in an approved Aperature
Echo * Science enrichment center starting location.
Echo *
Echo * For your convience we will display instructions...
Echo *
Echo ***************
Echo
goto Instructions

GenericArrived:
pause 2
Echo
Echo ***************
Echo *
Echo * We would like to thank you for using Aperture Science Labs: Portal
Echo * you have ... probably ... arrived at your destination
Echo *
Echo ***************
Echo
Exit

#@@@@@@@@@@@@@@@@@@@@@@@@@#
#@@@@@@ Generics @@@@@@#
#@@@@@@@@@@@@@@@@@@@@@@@@@#

GenericStartingLocations:
match WLtoPortal [Town Square, Small Park]
match SHtoPortal [Solhaven, North Market]
match ITtoPortal [Icemule Trace, Town Center]
match PFtoPortal [Top of the World, Ice Cave]
match RRtoPortal [River's Rest, Town Commons]
match TItoPortal [Dragonspine and Krodera]
match ILtoPortal [Ta'Illistim, Hanging Gardens]
match ZLtoPortal [Zul Logoth, Crystalline Cavern]
match TVtoPortal [Ta'Vaalor, Victory Court]
match SYtoPortal [Sylvarraend, Town Commons]
match NXtoPortal [Nexus, Central]
match GenericWrongLocation Obvious
put look
matchwait

GenericCheckTicket:
Echo
Echo ***************
Echo *
Echo * Welcome Aperture Science Labs: Portal
Echo * If... err... When we arrive at your destination, prepare for cake.
Echo *
Echo ***************
Echo
pause 1
Match GenericStartingLocations days left on your ticket.
Match GenericDeadTicket Realizing the ticket has expired
Match GenericNoTicket I could not find what you were referring to.
put look at my portal ticket
Matchwait

GenericPortalTravelGrab:
Match GenericPortalTravelThrough You remove a portal ticket
Match GenericPortalTravelThrough You already have that
Match GenericLostTicket Get what?
put get my portal ticket
Matchwait

GenericPortalTravelThrough:
put go portal
goto PortaltoNexus%c


#####################################
######## Towns to Portals ########
#####################################

#@@@@@@@@@@@@@@@@@@@@@@@@@#
#@@@@@@ Towns-Nexus @@@@@@#
#@@@@@@@@@@@@@@@@@@@@@@@@@#

WLtoPortal:
counter set 0
put north
put northeast
put go well
move climb rope
move go crevice
move northwest
move north
move northwest
move northwest
put go hole
goto Nexusto%s

SHtoPortal:
counter set 1
put north
put northwest
put up
move northwest
move northwest
move northwest
move northwest
move northeast
move north
move north
move northeast
move up
move north
move go ramp
move go bridge
move west
move west
move north
goto GenericPortalTravelGrab

ITtoPortal:
counter set 2
put west
put west
put south
move southwest
move south
move climb well
move down
move go limb
move down
move down
goto GenericPortalTravelGrab

PFtoPortal:
counter set 3
goto GenericPortalTravelGrab

RRtoPortal:
counter set 4
put go walk
put southeast
put east
move north
move north
move northwest
move west
move southwest
move go boulder
move south
move southwest
move southeast
move east
move north
goto GenericPortalTravelGrab

TItoPortal:
counter set 5
put south
put south
put south
move south
move south
move go path
goto GenericPortalTravelGrab

ILtoPortal:
counter set 6
put out
put southeast
put southeast
move southwest
move southeast
move southeast
move south
move southwest
move east
move northeast
move go gate
move southwest
move southeast
move go port
move south
move south
move out
move southwest
move west
move west
move south
move southwest
move east
move southeast
move south
move southeast
goto GenericPortalTravelGrab

ZLtoPortal:
counter set 7
put west
put southwest
put northwest
move north
move north
move northwest
move go tunnel
move go block
move down
move down
move go door
move northwest
goto GenericPortalTravelGrab

TVtoPortal:
counter set 8
put west
put west
put west
move north
move west
move west
move west
move north
move north
move north
move north
move climb grate
move go open hatch
move south
move south
move go door
move east
move go door
move east
move climb ladder
move north
move north
move north
move north
move north
move north
move north
move west
move west
move west
move west
move west
move north
move northeast
move climb step
goto GenericPortalTravelGrab

SYtoPortal:
counter set 6
put southeast
put northeast
put southeast
move southeast
move east
move north
move northeast
move northeast
move north
move north
move northwest
move northwest
move northwest
move west
move northwest
move northwest
move northwest
move northwest
move west
move west
move northwest
move northwest
move northwest
move west
move west
move west
move northwest
move northwest
move northwest
move west
move northwest
move northwest
goto GenericPortalTravelGrab

NXtoPortal:
Goto Nexusto%s

#@@@@@@@@@@@@@@@@@@@@@@@@@#
#@@@@@@ To Nexus @@@@@@#
#@@@@@@@@@@@@@@@@@@@@@@@@@#

PortalToNexus0:
put stow my portal ticket
goto PortalTo%s

PortalToNexus1:
move south
goto NexusTo%s
PortalToNexus2:
move southwest
goto NexusTo%s
PortalToNexus3:
move west
goto NexusTo%s
PortalToNexus4:
move northwest
goto NexusTo%s
PortalToNexus5:
move north
goto NexusTo%s
PortalToNexus6:
move northeast
goto NexusTo%s
PortalToNexus7:
move east
goto NexusTo%s
PortalToNexus8:
move southeast
goto NexusTo%s


#####################################
######## Portals to Towns ########
#####################################

NexustoWL:
Goto PortaltoNexus0
NexustoSH:
counter set 0
move north
goto GenericPortalTravelGrab
NexustoIT:
counter set 0
move northeast
goto GenericPortalTravelGrab
NexustoPF:
counter set 0
move east
goto GenericPortalTravelGrab
NexustoRR:
counter set 0
move southeast
goto GenericPortalTravelGrab
NexustoTI:
counter set 0
move south
goto GenericPortalTravelGrab
NexustoSY:
NexustoIL:
counter set 0
move southwest
goto GenericPortalTravelGrab
NexustoZL:
counter set 0
move west
goto GenericPortalTravelGrab
NexustoTV:
counter set 0
move northwest
goto GenericPortalTravelGrab

PortalToWL:
put out
put southeast
put southeast
move south
move southeast
move go crevice
move climb rope
move south
move southwest
move south
goto GenericArrived

PortaltoSH:
put south
put east
put east
move go bridge
move go ravine
move south
move down
move southwest
move south
move south
move southwest
move go bridge
move up
move southeast
move southeast
move southeast
move southeast
move south
goto GenericArrived

PortaltoIT:
put up
put up
put climb limb
move up
move climb lip
move north
move northeast
move north
move east
move east
goto GenericArrived

PortaltoPF:
goto GenericArrived

PortaltoRR:
put south
put west
put northwest
move northeast
move north
move go boulder
move northeast
move east
move southeast
move south
move south
move west
move northwest
move go walk
goto GenericArrived

PortaltoTI:
put go path
put north
put north
move north
move north
move north
goto GenericArrived

PortaltoIL:
put northwest
put north
put northwest
move west
move northeast
move north
move east
move east
move northeast
move go gate
move north
move north
move go port
move northwest
move northeast
move go gate
move southwest
move west
move northeast
move north
move northwest
move northwest
move northeast
move go dais
goto GenericArrived

PortaltoZL:
put southeast
put go door
put up
move up
move go block
move out
move southeast
move south
move south
move southeast
move northeast
move east
goto GenericArrived

PortaltoTV:
put climb step
put southwest
put south
move east
move east
move east
move east
move east
move south
move south
move south
move south
move south
move south
move south
move climb ladder
move west
move go door
move west
move go door
move north
move north
move go open hatch
move climb grate
move south
move south
move south
move south
move east
move east
move east
move south
move east
move east
move east
goto GenericArrived

PortaltoSY:
put southeast
put southeast
put east
move southeast
move southeast
move southeast
move east
move east
move east
move southeast
move southeast
move southeast
move east
move east
move southeast
move southeast
move southeast
move southeast
move east
move southeast
move southeast
move southeast
move south
move south
move southwest
move southwest
move south
move west
move northwest
move northwest
move southeast
move northwest
move southwest
move northwest
goto GenericArrived

PortaltoNX:
goto GenericArrived

I made this script simply because of 4 reasons:
A) I hate that everybody pulls out their portal ticket before they go anywhere, thus proving EVERYBODY uses a script. I like my scripts to be as efficient and as difficult to tell you're scripting as possible (as long as the 2nd condition doesn't interfere with the efficenty)
B) I don't use room descriptions, so every time I try to portal out of Vaalor, I have to first Set Desc ON, then Set Desc Off. and that's annoying to me.
C) It's slow... It's so damn slow... "Move" is so pre-stormfront...
D) Dhask is a decent scripter, but he's inefficent... I made it more efficient...

Went from 7100 lines to about 700

Audriana
04-02-2008, 10:54 AM
It's a bit too fast for Wizard, so maybe you'll have to make two versions...

One day, take a landing to solhaven script and replace every 'move' with 'put' in stormfront. You'll be surprised.

So 3 puts before the first move is fine for SF, but it's a bit much for Wizard. 1 or 2 will work fine for wizard...


Who still uses wizard by the way?

The Ponzzz
04-02-2008, 04:05 PM
Always hatin' on me.

I honestly can say I'm just not good with using the counter and save commands, and that's my issue.

My script was actually made because the only one prior to mine was Rumor's which made you pull weapons and shields out, made you use a verb to keep moving and someones crapped out.

I have no problem with people making better scripts than me. I basically make the script for myself for what I want and just host it on my site. Anyone who makes anything better for Platinum is a great in my book. If you'd like me to host it on my GSGuide.net site, let me know.

Deathravin
04-03-2008, 03:40 AM
I don't mind you posting my script on your site when it's done... I'd like to check a few things, fix it for wizard... Also I'm going to make a lich version.

Basically I'm going to try to take out as much error possability as I can.

Also I'd like to kick the whole pausing to get out the ticket, I don't see it as being relivant...

Two questions I have that you guys might now more than me, since I'm still on my first ticket (12 days remaining)... I'm new to plat...

A) If you look at your ticket inside a container, does it still get torn up?
B) Can anything BAD (other than bouncing off of the portal and landing on your butt) happen by trying to enter a portal without a ticket?



Also, I didn't mean to sound harsh. I was just trying to be honest. Also, I don't think a lot of Plat RPing players (How good is Jaired by the way? Geez, guy makes guild sweep reps a RP-awardable activity) mind the script's speed. They probably like it taking a bit to get somewhere... But guys like Oengus and other ... shall you say... less RPish types... might enjoy a bit more speed...

The Ponzzz
04-03-2008, 03:58 AM
A) If you look at your ticket inside a container, does it still get torn up?
B) Can anything BAD (other than bouncing off of the portal and landing on your butt) happen by trying to enter a portal without a ticket?


Yes, it will crumble inside a container.

You lose all your coins, all your gems and are knocked over.



Also, I didn't mean to sound harsh. I was just trying to be honest. Also, I don't think a lot of Plat RPing players (How good is Jaired by the way? Geez, guy makes guild sweep reps a RP-awardable activity) mind the script's speed. They probably like it taking a bit to get somewhere... But guys like Oengus and other ... shall you say... less RPish types... might enjoy a bit more speed...


I don't think there are many people who enjoy slower scripts. Especially with the purpose of a portal script.

Deathravin
04-03-2008, 04:10 AM
coins & gems eh... hmmm...
Container crumbly is good... coin & gem loss could be cruel...

Problem with being +3 type-ahead deep all the time is if the SF decides it's going to be lazy and send stuff too fast, if Lich doesn't catch it, and if the server decides to start enforcing +2 (or +1 or +0) due to lag then you are screwed...
And if you are screwed at just the right point, coin & gemless is a bad way to be... Espcially if you happen to be transporting silver between cities or something...

At least yours is foolproof... I could pull it out first... but man do I hate that... I think about it tomorrow...

Deathravin sleepy.


Go one room, pull it out, then keep going... That would be an alright compromise... Keeps it reely reely speedy...

Even if it works a thousand times flawlessly, I'll get a stern talking to the first day the server is busy...



Decision made: Will detect wizard and throttle it down to 1 type ahead, SF will stay 3 type ahead, both will pull the ticket out one room away from start and put it away one room away from destination... Lich version will pull it out a few rooms before the portal and check before the portal for the item in your hand. Keeping lich the speedy MASTA... As it should be.

The Ponzzz
04-03-2008, 04:40 AM
Yea. The reason why grabbing it first and not at the nexus was to avoid the chance of hitting the portal without it.

When I used Rumor's, it sometimes failed to grab the ticket, but kept going. Losing a gem pouch with 200k gems (when sorting through lockers) it's nasty. I would say, before my script, I lost over 3mil in gems and coins. Grabbing a lockpick repair ticket got me so many times, it's retarded.

Audriana
04-03-2008, 10:12 AM
LOL! oh Rumor, rumor, rumor... How hard is it to specify "Get my portal ticket"?

Celephais
04-03-2008, 10:26 AM
THE CAKE IS A LIE!!!!

Deathravin
04-03-2008, 10:35 AM
I thought a portal script needed a portal theme... why not. Very OOC, but echos are easy enough to modify...

What other short names for towns are there? In just using it, I can see I need to add "Land" and "Wehn" for Landing.

The Ponzzz
04-03-2008, 03:58 PM
LOL! oh Rumor, rumor, rumor... How hard is it to specify "Get my portal ticket"?

Common lazy mistake we all make every now and then.

graysun
04-04-2008, 01:49 PM
I am using a platinum locker script called .RUN, that I was told works for WFE only. Maybe it's one mentioned above.

Have to set your default container, and there are two or three glitches (steps in Vaalor, Sol-->RR goes to the boulder instead, and another or two), but it works really well for me.

The nodes are inside the entrance to each city's public locker building, and a bunch of town-square'ish locations.