Thread: Wear Item

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 Wear Item 
    Deviants
    Guest
    Okay so if anyone doesn't know yet I'm going for a 100% 508 castlewars..


    Anyways... I got the item added to the player inventory, now how can I make the player wear the item.

    Engine.playerItems.addItem(p, 4513, 1);
     

  2. #2  
    Community Veteran


    Join Date
    Dec 2008
    Posts
    4,263
    Thanks given
    405
    Thanks received
    436
    Rep Power
    1674
    that code you just did is for what items?
     

  3. #3  
    I sfogliare Rune-server ad alta


    Join Date
    Nov 2008
    Age
    30
    Posts
    1,702
    Thanks given
    41
    Thanks received
    18
    Rep Power
    791
    I believe he wants the cape and hood to be put automatically on the player.
     

  4. #4  
    Deviants
    Guest
    Yes, Cape and Hood... thats the hood right there
     

  5. #5  
    Community Veteran


    Join Date
    Dec 2008
    Posts
    4,263
    Thanks given
    405
    Thanks received
    436
    Rep Power
    1674
    add in eqiument.java hood under head
     

  6. #6  
    Deviants
    Guest
    Thats not the problem though... the problem is that

    I just need to now how to make the person equip the item when they enter the portal..
     

  7. #7  
    Community Veteran


    Join Date
    Dec 2008
    Posts
    4,263
    Thanks given
    405
    Thanks received
    436
    Rep Power
    1674
    ok that different then hold on

    Code:

    if (p.teleportToX == -1 && p.teleportToY == -1)
    {
    p.setCoords(2725, 3495, 0);// p.setCoords(2611, 3092, 0);
    p.equipmentN[0] = 1;
    p.equipment[0] = 4708;
    p.equipmentN[2] = 1;
    p.equipment[2] = 6577;
    p.equipmentN[3] = 1;
    p.equipment[3] = 4587;
    p.equipmentN[4] = 1;
    p.equipment[4] = 4712;
    p.equipmentN[5] = 1;
    p.equipment[5] = 3842;
    p.equipmentN[7] = 1;
    p.equipment[7] = 4714;
    p.equipmentN[10] = 1;
    p.equipment[10] = 3105;
    }
     

  8. #8  
    Deviants
    Guest
    Okay I'll try this in a second after I fix these damn errors... lawl
     

  9. #9  
    Community Veteran


    Join Date
    Dec 2008
    Posts
    4,263
    Thanks given
    405
    Thanks received
    436
    Rep Power
    1674
    something like that though dont use that exact code change the coords make two of them
     

  10. #10  
    Banned

    Join Date
    Nov 2008
    Posts
    697
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    Quote Originally Posted by c0d3r 4 lyf3 View Post
    ok that different then hold on

    Code:

    if (p.teleportToX == -1 && p.teleportToY == -1)
    {
    p.setCoords(2725, 3495, 0);// p.setCoords(2611, 3092, 0);
    p.equipmentN[0] = 1;
    p.equipment[0] = 4708;
    p.equipmentN[2] = 1;
    p.equipment[2] = 6577;
    p.equipmentN[3] = 1;
    p.equipment[3] = 4587;
    p.equipmentN[4] = 1;
    p.equipment[4] = 4712;
    p.equipmentN[5] = 1;
    p.equipment[5] = 3842;
    p.equipmentN[7] = 1;
    p.equipment[7] = 4714;
    p.equipmentN[10] = 1;
    p.equipment[10] = 3105;
    }
    so new players should login with shit?

    Have it make sure you have no cape or hood.

    example:
    Code:
    if (object info here) {
    if (p.equipment[0] > -1 || p.equipment[5] > -1) {
    System.out.println("You cannot have a hat or cape on");
    } else {
    teleport info
    p.equipment[0] = #;
    p.equipment[5] = #;
    }
    please note this is extremely basic information that wont work either, im just giving you the basic info needed to make them enter castle wars. you would have to put alot of restrictions as well for once your wearing it.
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

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


User Tag List

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