Thread: Vistex v2 Problem

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 Vistex v2 Problem 
    Registered Member
    Join Date
    Oct 2011
    Posts
    423
    Thanks given
    88
    Thanks received
    21
    Rep Power
    22
    Hey guys, so my friend needs some help with Vistex v2. He says that when he's trying to train strength, it gives him range xp, BUT it ONLY happens when you're fighting another player, not npc. Where should he be looking into for a fix? Thank you guys!
    “I'm always outnumbered but never outmanned.”
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  2. #2  
    Dark-Perfection Owner

    Join Date
    Jun 2012
    Posts
    485
    Thanks given
    51
    Thanks received
    45
    Rep Power
    22
    When whe released vistex v2 it was working fine.

    Search playerassistant should be in there.
    [Only registered and activated users can see links. ]

    Reply With Quote  
     

  3. #3  
    Banned

    Join Date
    Sep 2011
    Posts
    918
    Thanks given
    356
    Thanks received
    115
    Rep Power
    0
    He mustve messed something up, because it works fine for everyone else!
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Mar 2011
    Posts
    4,064
    Thanks given
    194
    Thanks received
    689
    Rep Power
    0
    CombatAssistant problem, check the attackPlayer method or where ever the c.getPA().addSkillXP(#, #); is handled while fighting players.
    Reply With Quote  
     

  5. #5  
    Dark-Perfection Owner

    Join Date
    Jun 2012
    Posts
    485
    Thanks given
    51
    Thanks received
    45
    Rep Power
    22
    Quote Originally Posted by iRageQuit2012 View Post
    CombatAssistant problem, check the attackPlayer method or where ever the c.getPA().addSkillXP(#, #); is handled while fighting players.
    search:

    Adding combat XP
    [Only registered and activated users can see links. ]

    Reply With Quote  
     

  6. #6  
    Donator Market Banned Market Banned



    Join Date
    Apr 2008
    Age
    29
    Posts
    966
    Thanks given
    211
    Thanks received
    152
    Rep Power
    203
    Code:
    	/**
    	* Adding combat XP
    	**/
    	public void addCombatXP(int attackType, int damage) {
    		// Attack type is based on the kind of damage that is being done (ranged, mage, melee)
    		c.getPA().addSkillXP((int)(Config.MELEE_EXP_RATE / 3 * damage), 3);
    		switch (attackType) {
    			case 0: // Melee
    				switch (c.fightMode) {
    					case 0: // Accurate
    						c.getPA().addSkillXP(Config.MELEE_EXP_RATE * damage, 0);
    					break;
    					case 1: // Aggressive
    						c.getPA().addSkillXP(Config.MELEE_EXP_RATE * damage, 2);
    					break;
    					case 2: // Block
    						c.getPA().addSkillXP(Config.MELEE_EXP_RATE * damage, 1);
    					break;
    					case 3: // Controlled
    						for (int i = 0; i < 3; i++)
    							c.getPA().addSkillXP((int)(Config.MELEE_EXP_RATE / 3 * damage), i);//1.3
    					break;
    				}
    			break;
    			case 1: // Ranged
    				switch (c.fightMode) {
    					case 0: // Accurate
    					case 1: // Rapid
    						c.getPA().addSkillXP(Config.RANGE_EXP_RATE * damage, 4);
    					break;
    					case 3: // Block
    						c.getPA().addSkillXP(Config.RANGE_EXP_RATE / 2 * damage, 1);
    						c.getPA().addSkillXP(Config.RANGE_EXP_RATE / 2 * damage, 4);
    					break;
    				}
    			break;
    			case 2: // Magic
    				int magicXP = (Config.MAGIC_EXP_RATE * damage) + Player.MAGIC_SPELLS[c.oldSpellId][7];
    				c.getPA().addSkillXP(magicXP, 6);
    			break;
    		}
    	}

    any ideas?
    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Mar 2011
    Posts
    4,064
    Thanks given
    194
    Thanks received
    689
    Rep Power
    0
    The skill it's adding xp onto is the 2nd param in addSkillXP so just change it to c.playerAttack or whatever you need to make it easier.
    Reply With Quote  
     

  8. #8  
    Donator Market Banned Market Banned



    Join Date
    Apr 2008
    Age
    29
    Posts
    966
    Thanks given
    211
    Thanks received
    152
    Rep Power
    203
    example please? not long got back into server development take the piss all you like, just trying to learn =]
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Oct 2011
    Posts
    423
    Thanks given
    88
    Thanks received
    21
    Rep Power
    22
    Quote Originally Posted by iRageQuit2012 View Post
    The skill it's adding xp onto is the 2nd param in addSkillXP so just change it to c.playerAttack or whatever you need to make it easier.
    So change this:

    Code:
    case 1: // Ranged
    				switch (c.fightMode) {
    to:

    Code:
    case 1: // Ranged
    				switch (c.playerAttack) {
    ? Idk what you meant
    “I'm always outnumbered but never outmanned.”
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  10. #10  
    Banned

    Join Date
    Mar 2011
    Posts
    4,064
    Thanks given
    194
    Thanks received
    689
    Rep Power
    0
    Quote Originally Posted by BaBaDu1234 View Post
    So change this:

    Code:
    case 1: // Ranged
    				switch (c.fightMode) {
    to:

    Code:
    case 1: // Ranged
    				switch (c.playerAttack) {
    ? Idk what you meant
    No, I mean in the (example) c.getPA().addSkillXP(Config.MELEE_EXP_RATE * damage, 0); change the 0 to c.playerAttack or whatever
    Reply With Quote  
     

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

Similar Threads

  1. Vistex v2
    By Ashpire in forum Downloads
    Replies: 233
    Last Post: 01-16-2013, 12:44 AM
  2. Vistex
    By Ashpire in forum Downloads
    Replies: 130
    Last Post: 06-11-2012, 07:23 PM
  3. Vistex
    By Ashpire in forum Advertise
    Replies: 34
    Last Post: 05-14-2012, 07:17 PM
  4. Vistex
    By Ashpire in forum Projects
    Replies: 19
    Last Post: 05-12-2012, 07:13 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •