Thread: dragon spear bug

Results 1 to 10 of 10
  1. #1 dragon spear bug 
    Registered Member
    Join Date
    Aug 2012
    Posts
    76
    Thanks given
    1
    Thanks received
    0
    Rep Power
    10
    Hey.

    I have PI base, And on my server you can't noclip even with following. But when someone uses a drqagon spear spec on a oponoointe it will push that player 1 space back, Bassicly they can noclip. This is getting very abused i dont even know where to start on how to fix it. Please if you are going to help me fix it ( Spoon feed )
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jul 2012
    Posts
    900
    Thanks given
    66
    Thanks received
    85
    Rep Power
    0
    post the code from combatassistant (for the spear's spec)
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Aug 2012
    Posts
    76
    Thanks given
    1
    Thanks received
    0
    Rep Power
    10
    Quote Originally Posted by Raverz View Post
    post the code from combatassistant (for the spear's spec)
    case 1249:
    c.startAnimation(405);
    c.gfx100(253);
    if (c.playerIndex > 0) {
    Client o = (Client) PlayerHandler.players[i];
    o.getPA().getSpeared(c.absX, c.absY);
    }
    break;
    public boolean checkSpecAmount(int weapon) {
    switch (weapon) {
    case 1249:

    (i searched the ID in combatassisntant
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jul 2012
    Posts
    900
    Thanks given
    66
    Thanks received
    85
    Rep Power
    0
    get me this method in playerassistant
    Code:
    getSpeared
    Reply With Quote  
     

  5. #5 there 
    Registered Member
    Join Date
    Aug 2012
    Posts
    76
    Thanks given
    1
    Thanks received
    0
    Rep Power
    10
    Quote Originally Posted by Raverz View Post
    get me this method in playerassistant
    Code:
    getSpeared
    public void getSpeared(int otherX, int otherY) {
    int x = c.absX - otherX;
    int y = c.absY - otherY;
    if (x > 0)
    x = 1;
    else if (x < 0)
    x = -1;
    if (y > 0)
    y = 1;
    else if (y < 0)
    y = -1;
    moveCheck(x, y);
    c.lastSpear = System.currentTimeMillis();
    }
    thats the getspearded method in playerassis
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jul 2012
    Posts
    900
    Thanks given
    66
    Thanks received
    85
    Rep Power
    0
    make it check for clipping withing the else if this is what i have for the clipping check idk yours
    Code:
    Region.getClipping(c.getX(), c.getY() + 1, c.heightLevel, 0, 1)
    this would be if you want to make y +1
    Reply With Quote  
     

  7. #7 help 
    Registered Member
    Join Date
    Aug 2012
    Posts
    76
    Thanks given
    1
    Thanks received
    0
    Rep Power
    10
    Quote Originally Posted by Raverz View Post
    make it check for clipping withing the else if this is what i have for the clipping check idk yours
    Code:
    Region.getClipping(c.getX(), c.getY() + 1, c.heightLevel, 0, 1)
    this would be if you want to make y +1
    So what exacluty what do i do?
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Jul 2012
    Posts
    900
    Thanks given
    66
    Thanks received
    85
    Rep Power
    0
    idk how your clipping system is handled but you have to check if theres no object/wall/... before making him push so befre y or x changes
    Reply With Quote  
     

  9. #9 help 
    Registered Member
    Join Date
    Aug 2012
    Posts
    76
    Thanks given
    1
    Thanks received
    0
    Rep Power
    10
    Quote Originally Posted by Raverz View Post
    idk how your clipping system is handled but you have to check if theres no object/wall/... before making him push so befre y or x changes
    where do i place the code?
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Aug 2009
    Posts
    630
    Thanks given
    79
    Thanks received
    24
    Rep Power
    52
    public void getSpeared(int otherX, int otherY) {
    int x = c.absX - otherX;
    int y = c.absY - otherY;
    if (x > 0)
    x = 1;
    else if (x < 0)
    x = -1;
    if (y > 0)
    Region.getClipping(c.getX(), c.getY() + 1, c.heightLevel, 0, 1)
    else if (y < 0)
    y = -1;
    moveCheck(x, y);
    c.lastSpear = System.currentTimeMillis();
    }

    he means it like that^ ^
    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. Dragon Spear
    By Juggalo Family in forum Requests
    Replies: 2
    Last Post: 09-03-2011, 05:42 PM
  2. Dragon spear pushes back?
    By myK- in forum Help
    Replies: 59
    Last Post: 01-14-2010, 04:25 AM
  3. Idea for Dragon spear special
    By ViperSniper in forum Snippets
    Replies: 9
    Last Post: 06-22-2009, 05:57 AM
  4. Dragon Spear Special Attack
    By Sanity in forum Requests
    Replies: 4
    Last Post: 12-30-2008, 10:23 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
  •