Thread: Replacing an object when clicked. REP.

Results 1 to 8 of 8
  1. #1 Replacing an object when clicked. REP. 
    Community Veteran


    Join Date
    Nov 2006
    Posts
    531
    Thanks given
    6
    Thanks received
    21
    Rep Power
    489
    Well atm my mb webs wont work, i need it so when i click the webs, my man slashes them and they turn into slashed webs.

    Will rep, I'm using devo 2.7
    Reply With Quote  
     

  2. #2  
    Respected Member


    kLeptO's Avatar
    Join Date
    Dec 2006
    Age
    28
    Posts
    2,955
    Thanks given
    1,183
    Thanks received
    754
    Rep Power
    3084
    Go to players\Packets\AtObjects.java

    Search for:
    Code:
    switch(objectIDz) {
    And add this under that:
    Code:
    case ObjectID:
    c.ReplaceObject2(ObjectX, ObjectY, NewObjectID, Face, 10);
    break;
    Remember to change ObjectID, ObjectX, ObjectY, NewObjectID and Face
    Reply With Quote  
     

  3. #3  
    Officially Retired

    Huey's Avatar
    Join Date
    Jan 2008
    Age
    22
    Posts
    16,478
    Thanks given
    3,385
    Thanks received
    7,727
    Rep Power
    5000
    Quote Originally Posted by SluDm View Post
    Go to players\Packets\AtObjects.java

    Search for:
    Code:
    switch(objectIDz) {
    And add this under that:
    Code:
    case ObjectID:
    c.ReplaceObject2(ObjectX, ObjectY, NewObjectID, Face, 10);
    break;
    Remember to change ObjectID, ObjectX, ObjectY, NewObjectID and Face
    U just read the other erm shit forgot other thread asking for help and posted that L
    Attached image
    Listen children don't become this guy.
    Quote Originally Posted by Owner Spikey View Post
    Why can I attack lower level npc's in a matter of a mouse hover but for a higher level npc the only choice to attack is by right clicking option attack?

    Reply With Quote  
     

  4. #4  
    Community Veteran


    Join Date
    Nov 2006
    Posts
    531
    Thanks given
    6
    Thanks received
    21
    Rep Power
    489
    Doesn't work, heres my code for mb web number 1:
    case 733:
    c.ReplaceObject2(3093, 3957, 734, 0, 10);
    break;

    but doesn't work, any help?
    Reply With Quote  
     

  5. #5  
    Community Veteran


    Join Date
    Nov 2006
    Posts
    531
    Thanks given
    6
    Thanks received
    21
    Rep Power
    489
    ok fixed, but how do i make each web slash seperately without having two case 733's..

    .\server\players\Packets\AtObjects.java:288: duplicate case label
    case 733:
    ^
    Note: .\server\server.java uses or overrides a deprecated API.
    Note: Recompile with -Xlinteprecation for details.
    1 error
    Press any key to continue . . .
    Reply With Quote  
     

  6. #6  
    Registered Member
    Apower's Avatar
    Join Date
    Sep 2008
    Age
    30
    Posts
    824
    Thanks given
    7
    Thanks received
    15
    Rep Power
    94
    how many do you need?
    Reply With Quote  
     

  7. #7  
    Community Veteran


    Join Date
    Nov 2006
    Posts
    531
    Thanks given
    6
    Thanks received
    21
    Rep Power
    489
    Only mage bank webs, (2), and ardy lever web (1), so 3 total, but i want to be able to slash each one on its own
    Reply With Quote  
     

  8. #8  
    Registered Member
    Apower's Avatar
    Join Date
    Sep 2008
    Age
    30
    Posts
    824
    Thanks given
    7
    Thanks received
    15
    Rep Power
    94
    Code:
    if (absX == CoordinateX && absY == CoordinateY) {
    c.ReplaceObject2(3093, 3957, 734, 0, 10);
    } else if (absX == CoordinateX && absY == CoordinateY) {
    c.ReplaceObject2(3093, 3957, 734, 0, 10);
    } else if (absX == CoordinateX && absY == CoordinateY) {
    c.ReplaceObject2(3093, 3957, 734, 0, 10);
    }
    maybe can be done more simply, enter the coords of were you standing when slashing, might need 2 on each we, one on each side
    simple add:
    Code:
    || absX == CoordinateX && absY == CoordinateY
    like:

    Code:
    if (absX == CoordinateX && absY == CoordinateY || absX == CoordinateX && absY == CoordinateY)
    maybe cna be done easier ut yeah im not extremly experied.. and it should work

    EDIT: i can't use TAB here so cant do properly conventions
    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

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