Thread: Help with this

Results 1 to 6 of 6
  1. #1 Help with this 
    Registered Member
    Join Date
    May 2016
    Posts
    639
    Thanks given
    260
    Thanks received
    66
    Rep Power
    56
    I was wondering if there is a way to ban items from the wild say your wearing a torva platebody then you try to walk in the wild you get teleported back to the beginning of the wild.

    Like where you cross from normal land then you walk into pvp. * that's what i mean the beginning of the wild *
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Dec 2014
    Posts
    435
    Thanks given
    18
    Thanks received
    35
    Rep Power
    11
    I don't think you can do it in that sense, I think one will always be able to take the item into the wild, one thing you might be able to do is removing the stats the item gives in wild?


    OSRS Pure
    Reply With Quote  
     

  3. #3  
    Registered Member Duracell's Avatar
    Join Date
    Sep 2017
    Posts
    36
    Thanks given
    16
    Thanks received
    9
    Rep Power
    36
    You can put this in your walking method so when your player tries walking it will teleport them to wherever. Obviously not your method names but should give you an idea of what to do! Good luck with the project
    Code:
    if(player.isWearingItem == TorvaID && playerIsInWild == true) {//checks if you are wearing torva and if you are in the wild
    sendMessage("You cannot wear this item in the wild");
    teleportPlayerBackToStart();//teleports you home
    return false;//returns false so that your player cannot move
    }
    Reply With Quote  
     

  4. Thankful user:


  5. #4  
    Banned
    Join Date
    Sep 2017
    Posts
    38
    Thanks given
    1
    Thanks received
    10
    Rep Power
    0
    Quote Originally Posted by Duracell View Post
    You can put this in your walking method so when your player tries walking it will teleport them to wherever. Obviously not your method names but should give you an idea of what to do! Good luck with the project
    Code:
    if(player.isWearingItem == TorvaID && playerIsInWild == true) {//checks if you are wearing torva and if you are in the wild
    sendMessage("You cannot wear this item in the wild");
    teleportPlayerBackToStart();//teleports you home
    return false;//returns false so that your player cannot move
    }
    This will allow the player to abuse and teleport out of deep wilderness. Make it so that if the player is wearing it or its in his inventory.
    Reply With Quote  
     

  6. #5  
    Registered Member Duracell's Avatar
    Join Date
    Sep 2017
    Posts
    36
    Thanks given
    16
    Thanks received
    9
    Rep Power
    36
    Quote Originally Posted by thenub000 View Post
    This will allow the player to abuse and teleport out of deep wilderness. Make it so that if the player is wearing it or its in his inventory.
    it is checking if the player is wearing it. And I agree it is a bad idea especially for those who pk in the deep wild. But it is what he is asking for.

    "I was wondering if there is a way to ban items from the wild say your wearing a torva platebody then you try to walk in the wild you get teleported back to the beginning of the wild."

    Code:
    if(player.isWearingItem == TorvaID && playerIsInWild == true) {//checks if you are wearing torva and if you are in the wild
    sendMessage("You cannot wear this item in the wild");
    teleportPlayerBackToStart();//teleports you home
    return false;//returns false so that your player cannot move
    }
    And it is just a base so hopefully he will modify it so that it can actually be used on a live server
    Reply With Quote  
     

  7. #6  
    Registered Member
    Join Date
    May 2016
    Posts
    639
    Thanks given
    260
    Thanks received
    66
    Rep Power
    56
    Quote Originally Posted by Duracell View Post
    it is checking if the player is wearing it. And I agree it is a bad idea especially for those who pk in the deep wild. But it is what he is asking for.

    "I was wondering if there is a way to ban items from the wild say your wearing a torva platebody then you try to walk in the wild you get teleported back to the beginning of the wild."

    Code:
    if(player.isWearingItem == TorvaID && playerIsInWild == true) {//checks if you are wearing torva and if you are in the wild
    sendMessage("You cannot wear this item in the wild");
    teleportPlayerBackToStart();//teleports you home
    return false;//returns false so that your player cannot move
    }
    And it is just a base so hopefully he will modify it so that it can actually be used on a live server
    Thanks will check out now if u can help me with one more thing please private message me thanks.
    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. Need Help With This!!
    By Damien in forum Help
    Replies: 1
    Last Post: 03-04-2009, 09:56 AM
  2. help with this plz
    By Gluon in forum Help
    Replies: 2
    Last Post: 02-23-2009, 05:30 AM
  3. Need help with this command
    By jat1802 in forum Help
    Replies: 7
    Last Post: 02-21-2009, 03:08 AM
  4. need help with this
    By Gluon in forum Configuration
    Replies: 6
    Last Post: 01-05-2009, 08:43 AM
  5. help with this tut
    By super in forum Tutorials
    Replies: 0
    Last Post: 03-03-2008, 09:07 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
  •