Thread: Ruse - Custom items worn in the wilderness

Results 1 to 4 of 4
  1. #1 Ruse - Custom items worn in the wilderness 
    Registered Member
    Join Date
    Jan 2018
    Posts
    123
    Thanks given
    112
    Thanks received
    10
    Rep Power
    58
    Hello Rune-Server.

    So I have an issue with players complaining that custom items can be worn in the wilderness which easily kill other players giving them an unfair advantage.
    I have looked for a snippet but there does not seem to be any for this issue, how would I go about making it so that you cannot enter the wilderness wearing any custom items please?
    Learning Java
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jul 2015
    Posts
    427
    Thanks given
    13
    Thanks received
    54
    Rep Power
    55
    Create a check to see whether or not someone has the custom items worn, and if they do prevent them from being able to attack in combat, or if they enter the wilderness, make it teleport them back home. And if they try and equip an item in the wilderness, make it send a message or something saying "This item cannot be worn in the wilderness" it's simple
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jan 2018
    Posts
    123
    Thanks given
    112
    Thanks received
    10
    Rep Power
    58
    Quote Originally Posted by Vorkath View Post
    Create a check to see whether or not someone has the custom items worn, and if they do prevent them from being able to attack in combat, or if they enter the wilderness, make it teleport them back home. And if they try and equip an item in the wilderness, make it send a message or something saying "This item cannot be worn in the wilderness" it's simple
    Learning Java
    Reply With Quote  
     

  4. #4  
    no


    Join Date
    Aug 2016
    Posts
    582
    Thanks given
    96
    Thanks received
    79
    Rep Power
    210
    Locations.java, you have an enter and a process method for the wilderness where you can add some kind of logic and then in EquipPacketListener thats how you equip items so you can just return it if they're in the wilderness. Another option would be just not letting that player attack if they're in the wilderness using those items, you have some canAttack methods in DefaultRangedCombatStrategy, DefaultMeleeCombatStrategy, and DefaultMagicCombatStrategy where you can prevent people from attacking if they're wearing stuff. Otherwise another option would just be modifying the damage if you're in the wilderness attacking another player which you can do in CombatFactory.java and DesolaceFormulas.java
    Best excuse for scamming i've gotten yet

    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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

Similar Threads

  1. Item worn in the wrong slots
    By Test Subject in forum Help
    Replies: 4
    Last Post: 06-13-2014, 06:52 AM
  2. Dropping items in the wilderness 317 PI
    By MisterTorva in forum Help
    Replies: 0
    Last Post: 08-19-2013, 01:03 AM
  3. Replies: 2
    Last Post: 01-01-2012, 02:35 AM
  4. Items worn in the wrong slots
    By Cried Upon in forum Help
    Replies: 10
    Last Post: 07-12-2011, 11:02 PM
  5. Replies: 8
    Last Post: 12-02-2010, 01:35 PM
Tags for this Thread

View Tag Cloud

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •