Thread: (HELP) Issues auto equip - button

Results 1 to 5 of 5
  1. #1 (HELP) Issues auto equip - button 
    Registered Member
    Join Date
    Apr 2012
    Posts
    12
    Thanks given
    1
    Thanks received
    0
    Rep Power
    11
    Hi,

    I am currently working on a 667 RSPS and am having some issues with how to code in a gear spawning technique, i know it's possible to do, but can't figure out how.

    At the moment we have buttons to spawn basic gear for pvp, but the gear spawns in the inventory, what we want to do is spawn the gear onto the player, and spawn food, overload, venge runes, etc into the inventory

    So essentially they can spawn then run straight into the wildy to pk.

    If someone could help with how to code this into the game, please reply.

    Thanks in advance
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Aug 2015
    Posts
    130
    Thanks given
    1
    Thanks received
    19
    Rep Power
    42
    the reason your items going in your inventory because ur telling it to..
    just go to your equipment or whatever file and look for the method for making players get items on......
    Reply With Quote  
     

  3. #3  
    Respected Member


    Kris's Avatar
    Join Date
    Jun 2016
    Age
    26
    Posts
    3,638
    Thanks given
    820
    Thanks received
    2,642
    Rep Power
    5000
    player.getEquipment().getItems().set(Equipment.SLO T_BODY, new Item(id, 1));
    player.getAppearence().generateAppearenceData();
    Attached image
    Reply With Quote  
     

  4. #4  
    Registered Member Mr. Snow's Avatar
    Join Date
    Feb 2015
    Age
    25
    Posts
    222
    Thanks given
    42
    Thanks received
    33
    Rep Power
    61
    Quote Originally Posted by Kris View Post
    player.getEquipment().getItems().set(Equipment.SLO T_BODY, new Item(id, 1));
    player.getAppearence().generateAppearenceData();
    ^ This. Everything that is equiped needs to be told where to be placed. Send the second method after you send each item being equiped to refresh the players appearence.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Apr 2012
    Posts
    12
    Thanks given
    1
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by Kris View Post
    player.getEquipment().getItems().set(Equipment.SLO T_BODY, new Item(id, 1));
    player.getAppearence().generateAppearenceData();
    Thank you very much for your help
    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. Replies: 2
    Last Post: 11-22-2015, 01:09 PM
  2. old show equip button
    By SODIO in forum Help
    Replies: 0
    Last Post: 03-09-2009, 12:33 AM
  3. Need help with auto restarter for my VPS
    By Decimation in forum Help
    Replies: 1
    Last Post: 02-11-2009, 06:43 AM
  4. Possible security issue - Auto-restarter
    By bloodychef in forum Chat
    Replies: 6
    Last Post: 11-03-2008, 09:19 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
  •