Author Topic: Crystal Portal Sub  (Read 9620 times)

0 Members and 1 Guest are viewing this topic.

Offline SuperslayerTopic starter

  • Elite
  • *
  • *
  • Posts: 1006
  • Activity:
    0%
  • Reputation Power: 14
  • Superslayer barely matters.Superslayer barely matters.
  • Gender: Male
  • Well what do you drink? Not tea.
  • Respect: +100
  • Referrals: 0
    • View Profile
Crystal Portal Sub
« on: October 10, 2009, 09:43:49 PM »
-1
Code: [Select]
; SuperSlayer's Crystal Portal Sub
; Author: SuperSlayer
; Version 1.0
; Release date: 10-11-09
; Purpose: Utilize the Crystal Portal in scripts requiring travel with/out runebook/traveling capabilities
; Shard: OSI
; Client Tested with: 7.0.1.1 (Patch 95)
; EUO version tested with: 1.5 v155
...
...
...
; Example usage: "Fel Minoc Mint", "Minoc Moongate"
; Example Sub usage: GoSub SS_CryPor Fel Minoc Mint
;                    GoSub SS_CryPor Null Britain Mint
;                    GoSub SS_CryPor Null Luna Moongate

; Dependencies: Character must be able to use the Crystal Portal via it's security setting. This script will NOT
;               check for that setting. The Crystal Portal MUST be locked down in the home and character at least
;               on the same floor as the object.

; Returns #False for unsuccessful travel of character
; If Return is #false, check these values to see where the problem is:
;   !Args_Invalid = missing arg. #False
;   !CryPor = A Crystal Portal has not been found. #False
;   !Rep = Character is red and attempted to go to Trammel. #False
;   !CPLocked = Crystal Portal is not locked down and will not work. #False
;   !Arg_Valid = Location desired does not exist, Ex: "Fel Luna Moongate." #False
;   !CPSpell (Loc_City/Loc_Obj) = Argument is either misspelled or not an acceptable argument.
;                                 Ex: "Fel Britain Minnt","Fel Valor Mint."
; Returns #True for successful travel of character

This script sub is designed to help the script writer with an alternative to recalling/SJ'ing/and gating by using the new first year vet reward, the Crystal Portal. The Crystal, as designed, will instantly teleport your character to the desired location simply by typing it out in the client. With this sub, you'll eliminate the constant hassle of editing scripts over again with different location information.  Simply insert a few lines of my code at the start of your script, and when you need to use the Crystal Portal, use this GoSub and the 3 args to get there with loads of error checks. These include: Lock down status of the Crystal, crystal distance from character, character rep relation to destination, spell checking of the arguments passed, and smart location referral.

Lock down status check is simply that. If the Crystal Portal is not locked down, it won't work. This script will detect it's lock down status.
Crystal distance from character will need to be within 3 tiles, this script will walk/pathfind to the crystal if within 15 tiles.
Character reputation relation to destination checks for red characters accidentally opting to go to tram. Likely forgetting to put the 'Fel' 1st argument in the GoSub.
Spell checking of the arguments passed is minimal but will compare at the least to the allowed set of location commands.
Smart location referral checks if the location exists, such as "Fel Valor Moongate" - no such moongate exists.

Featuring: Error Report upon failure in any sense! If for some reason, the travel fails, an error report is ready upon the exitting of the sub located in the #Result. However, should there be no errors and the character travels successfully, the #result returned will be #True.

I look forward to your feedback, thank you and enjoy !

There are 1 attachment(s) in this post. You must register and post an acceptable introduction to download
SS_Crystal_Portal.txt

Offline Endless Night

  • Global Moderator
  • *
  • *
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +786
  • Referrals: 1
    • View Profile
Re: Crystal Portal Sub
« Reply #1 on: October 11, 2009, 08:18:01 AM »
-1
Looks nice .. so you can goto an Ish Bank ?
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Offline SuperslayerTopic starter

  • Elite
  • *
  • *
  • Posts: 1006
  • Activity:
    0%
  • Reputation Power: 14
  • Superslayer barely matters.Superslayer barely matters.
  • Gender: Male
  • Well what do you drink? Not tea.
  • Respect: +100
  • Referrals: 0
    • View Profile
Re: Crystal Portal Sub
« Reply #2 on: October 11, 2009, 12:42:47 PM »
-1
Thanks, just whipped it up. Did a check and ya, you can go to Ilshenar mint, took me to the garg town. Ilshenar moongate wont work..obviously.

Offline 12TimesOver

  • Another Day, Another Vendetta
  • Global Moderator
  • *
  • *
  • Posts: 3694
  • Activity:
    0%
  • Reputation Power: 41
  • 12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.
  • Gender: Male
  • Respect: +600
  • Referrals: 2
    • View Profile
Re: Crystal Portal Sub
« Reply #3 on: May 31, 2011, 08:58:22 AM »
+1
Anyone had the chance to test this sub out? SS, would love to get it moved out of Submisions.

X
When they come for me I'll be sitting at my desk
     with a gun in my hand wearing a bulletproof vest
My, my, my how the time does fly
     when you know you're gonna die by the end of the night

Offline Endless Night

  • Global Moderator
  • *
  • *
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +786
  • Referrals: 1
    • View Profile
Re: Crystal Portal Sub
« Reply #4 on: October 18, 2011, 02:01:13 PM »
+1
looks like a nice peice of work .. sadly wasnt working for me ... not sure is ss is still around.
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Offline NObama

  • Everything I need to know, I learned from Miffy's Item Finder.
  • Elite
  • *
  • *
  • Posts: 3454
  • Activity:
    0%
  • Reputation Power: 43
  • NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.NObama is a force to reckon with.
  • Respect: +325
  • Referrals: 2
    • View Profile
Re: Crystal Portal Sub
« Reply #5 on: October 18, 2011, 05:12:48 PM »
-1
But ZOMG...ilshenar garg bank FTW?!

Tags: