Thread: [PvP] Timer

Results 1 to 2 of 2
  1. #1 [PvP] Timer 
    Donator


    Join Date
    Jan 2010
    Age
    29
    Posts
    4,122
    Thanks given
    274
    Thanks received
    551
    Rep Power
    738
    Hello i just fixed that u cant attack players when u fight npcs
    but i want it now so when u fight npcs that the timer dont show up and just stay at my cornor text can somebody please help me fixing it

    this is my timer thing
    Code:
    if(isInPvP(absX, absY, 1)) {
    
    if(secs == 0 && inCombat && deathStage == 0 && hitID < 1000000) {
    pvpmode = true;
    
    secs = 20;
    
    int timed = secs/2;
    
    if(multiCombat()) {
    multitime = true;
    outStream.createFrame(208);
    outStream.writeWordBigEndian_dup(197);
    sendQuest("@or2@"+timed+"", 199);
    } else {
    multitime = false;
    outStream.createFrame(208);
    outStream.writeWordBigEndian_dup(197);
    sendQuest("@or1@"+timed+" ", 199);
    }
    
    } else {
    if(secs == 0 && deathStage == 0) {
    pvpmode = false;
    setInterfaceWalkable(4535);
    sendFrame126("@blu@PkzFuck PvP         ", 4536);
    } else {
    
    int timed = secs/2;
    
    if(multiCombat()) {
    multitime = true;
    outStream.createFrame(208);
    outStream.writeWordBigEndian_dup(197);
    sendQuest("@or2@"+timed+"", 199);
    } else {
    multitime = false;
    outStream.createFrame(208);
    outStream.writeWordBigEndian_dup(197);
    sendQuest("@or1@"+timed+" ", 199);
    }
    }
    }
    
    } else {
    if(!isInPvP(absX, absY, 1)) {
    pvpmode = true;
    if(multiCombat()) {
    multitime = true;
    outStream.createFrame(208);
    outStream.writeWordBigEndian_dup(197);
    sendQuest("@or2@F4A", 199);
    } else {
    multitime = false;
    outStream.createFrame(208);
    outStream.writeWordBigEndian_dup(197);
    int lowerlevel = combatLevel - 25;
    int higherlevel = combatLevel + 25;
    if(higherlevel > 126) {
    higherlevel = 126;
    }
    sendQuest("@or1@"+lowerlevel+" - "+higherlevel+" ", 199);
    }
    
    }
    
    
    }
    
    
    }
    Reply With Quote  
     

  2. #2  
    Donator


    Join Date
    Jan 2010
    Age
    29
    Posts
    4,122
    Thanks given
    274
    Thanks received
    551
    Rep Power
    738
    come on help me please
    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
  •