Thread: Teleporting restrictions.

Results 1 to 2 of 2
  1. #1 Teleporting restrictions. 
    Registered Member
    Join Date
    May 2023
    Posts
    1
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Hello, just messing around with a old source called VarrockScape source. I'm fairly new and i just wanted to ask if anyone could help me with teleport restrictions. Say if i want to teleport to :: area id need to have 90 str 90 def 90 attack to get there. Otherwise itl just not let you use it. Thanks in advance
    Reply With Quote  
     

  2. #2  
    Extreme Donator


    Join Date
    Jan 2008
    Age
    30
    Posts
    107
    Thanks given
    71
    Thanks received
    12
    Rep Power
    137
    I found a download for VarrockScape from 2012, and by the looks of it, it should be somewhere along the lines of

    Code:
    if (c.playerLevel[c.playerAttack] >= 90) {
        // Actual teleport command
    } else {
        c.sendMessage("You need an attack level of 90 to use this teleport");
    }
    This probably won't take into consideration boosting, that could probably be done by changing from c.playerLevel... to c.PlayerXP[c.playerAttack] >= c.getPA().getLevelForXP(90)

    if c isn't defined, c should be an instance of Client.

    Here's the alternatives to c.playerAttack
    Code:
    public int playerAttack = 0;
    public int playerDefence = 1;
    public int playerStrength = 2;
    public int playerHitpoints = 3;
    public int playerRanged = 4;
    public int playerPrayer = 5;
    public int playerMagic = 6;
    public int playerCooking = 7;
    public int playerWoodcutting = 8;
    public int playerFletching = 9;
    public int playerFishing = 10;
    public int playerFiremaking = 11;
    public int playerCrafting = 12;
    public int playerSmithing = 13;
    public int playerMining = 14;
    public int playerHerblore = 15;
    public int playerAgility = 16;
    public int playerThieving = 17;
    public int playerSlayer = 18;
    public int playerFarming = 19;
    public int playerRunecrafting = 20;


    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Teleport restrictions
    By Crowbox in forum Help
    Replies: 7
    Last Post: 05-13-2017, 06:07 AM
  2. Replies: 12
    Last Post: 04-01-2014, 06:51 AM
  3. [508] Wildy Teleport Restrictions
    By Torchic in forum Help
    Replies: 7
    Last Post: 07-07-2011, 02:04 AM
  4. [PI] Teleport Commands w/ Restrictions.
    By Purexthedark in forum Help
    Replies: 4
    Last Post: 06-18-2011, 11:02 PM
  5. Fixing Teleport
    By Shiver in forum Tutorials
    Replies: 2
    Last Post: 05-12-2007, 05:00 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •