Thread: Delta Range Defence

Results 1 to 10 of 10
  1. #1 Delta Range Defence 
    Registered Member
    Mrthunder23's Avatar
    Join Date
    Mar 2008
    Age
    25
    Posts
    2,463
    Thanks given
    62
    Thanks received
    72
    Rep Power
    319
    Well, is there a way to make "Longrange" style actually give half range/half defence exp?

    Same for the Defence in Melee. Make it give both, like RS?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Mrthunder23's Avatar
    Join Date
    Mar 2008
    Age
    25
    Posts
    2,463
    Thanks given
    62
    Thanks received
    72
    Rep Power
    319
    any idea?
    Reply With Quote  
     

  3. #3  
    Registered Member

    Join Date
    Sep 2008
    Posts
    2,219
    Thanks given
    148
    Thanks received
    204
    Rep Power
    1570
    Find wherever the fight style type is for longrange/controlled and copy the XP from above it. If yours is fucked up post it here and I'll do it.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Mrthunder23's Avatar
    Join Date
    Mar 2008
    Age
    25
    Posts
    2,463
    Thanks given
    62
    Thanks received
    72
    Rep Power
    319
    I am guessing this is it
    Code:
    if ((FightType == 5) || (FightType == 6)) {
    			// Accurate and Longranged
    			MaxHit += (double) (1.05 + (double) ((double) (RngBonus * Range) * 0.00075));
    NO idea though.
    Reply With Quote  
     

  5. #5  
    Registered Member

    Join Date
    Sep 2008
    Posts
    2,219
    Thanks given
    148
    Thanks received
    204
    Rep Power
    1570
    No, lol. Look for fightType until you see something XP related, EG: addSkillXP(.
    Reply With Quote  
     

  6. #6  
    Registered Member
    Mrthunder23's Avatar
    Join Date
    Mar 2008
    Age
    25
    Posts
    2,463
    Thanks given
    62
    Thanks received
    72
    Rep Power
    319
    Ugh. I totally do not see anything.
    Reply With Quote  
     

  7. #7  
    Registered Member

    Join Date
    Sep 2008
    Posts
    2,219
    Thanks given
    148
    Thanks received
    204
    Rep Power
    1570
    Boolean AttackNPC at the bottom.
    Reply With Quote  
     

  8. #8  
    Registered Member
    Mrthunder23's Avatar
    Join Date
    Mar 2008
    Age
    25
    Posts
    2,463
    Thanks given
    62
    Thanks received
    72
    Rep Power
    319
    Code:
    if (Server.npcHandler.npcs[attacknpc].npcType != 0) {
    					if (UseBow || UseCrossBow || UseRing) {
    						TotalExp = (double)(120*hitDiff);
    						TotalExp = (double)(TotalExp*CombatExpRate);
    						addSkillXP((int)(TotalExp), 4);
    					} else if (FightType != 3) {
    						TotalExp = (double)(120*hitDiff);
    						TotalExp = (double)(TotalExp*CombatExpRate);
    						addSkillXP((int)(TotalExp), SkillID);
    					} else {
    						TotalExp = (double)(50*hitDiff);
    						TotalExp = (double)(TotalExp*CombatExpRate);
    						addSkillXP((int)(TotalExp), playerAttack);
    						addSkillXP((int)(TotalExp), playerDefence);
    						addSkillXP((int)(TotalExp), playerStrength);
    					}
    					TotalExp = (double)(50*hitDiff);
    					TotalExp = (double)(TotalExp*CombatExpRate);
    					addSkillXP((int)(TotalExp), playerHitpoints);
    					attackTimer = 7;
    					specOn = false;
    					specAttack();
    ?
    Reply With Quote  
     

  9. #9  
    Registered Member

    Join Date
    Sep 2008
    Posts
    2,219
    Thanks given
    148
    Thanks received
    204
    Rep Power
    1570
    Code:
    } else if (FightType == longRangeID) {
    	TotalExp = (double)(120*hitDiff);
    	TotalExp = (double)(TotalExp*CombatExpRate);
    	addSkillXP((int)(TotalExp / 2), 4);
    	addSkillXP((int)(TotalExp / 2), 1);
    Reply With Quote  
     

  10. #10  
    Registered Member
    Mrthunder23's Avatar
    Join Date
    Mar 2008
    Age
    25
    Posts
    2,463
    Thanks given
    62
    Thanks received
    72
    Rep Power
    319
    I added that with the other else if's and a few other places and every time got this:
    longRangeID cannot be resolved

    I guess that method or int or whatever isn't defined?
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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

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