Thread: Two Handed Weapons - REP++ [Updated]

Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1 Two Handed Weapons - [CLOSED] 
    Registered Member Recursion's Avatar
    Join Date
    Feb 2010
    Posts
    638
    Thanks given
    0
    Thanks received
    29
    Rep Power
    41
    THREAD CLOSED - FIXED 100%
    (350+ views on this thread and not one person had positive input to help me in anyway - Just thought I'd note that)


    Hey guys, this thread has been updated a bit and reorganized. My current problem can be found below.


    When I wield a shield after wearing a 2h, the animation doesn't reset as shown:



    Also, just found out that equipping a 2h while having a weapon and shield already on with your inventory full, causes the shield to disappear...
    how can I make it not even equip the 2h?
    -FIXED
    Now I found that equipping a shield while wearing a 2h with less than 1 inventory spot causes the shield to disappear. FIXED 100%!

    Alright guys, my last issue is the animation not reseting as seen above...

    Any idea on how to fix these problems?



    SPOILER IS FOR OLD PROBLEM (Fixed)
    [SPOIL]
    Here is a video of the issue... - - - FIXED (New problem, read below please)



    The problem is:
    If a 2h weapon is equipped, it removes the shield as it's suppose to but the shield doesn't go away from the equipment interface.
    This is the same vice-versa when a 2h weapon is equipped and a shield is attached afterwards, the 2h goes to the inventory but it stays on the equipment screen.
    Also, it should be noted that it is impossible to remove this item unless another item replaces its slot, as seen in the video.
    FIXED - READ BELOW

    Fixed this problem:


    NEW PROBLEM CAN BE FOUND AT THE TOP OF THE THREAD - CLOSE THE SPOILER!
    [/SPOIL]
    SPOILER IS FOR OLD PROBLEM (Fixed)


    If you know anything about this issue or know a way to fix it, please lead me in the correct direction.

    All help will be greatly appreciated, those who help will receive rep.
    If you need more information, just ask.

    Thanks in advance.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Aug 2010
    Posts
    739
    Thanks given
    32
    Thanks received
    51
    Rep Power
    35
    look for the twohanded boolean idk exact name
    itemassistant i think
    [SPOIL]
    Quote Originally Posted by Archon Server View Post
    What do you mean compile?
    Quote Originally Posted by Hughes View Post
    I don't know the program i need to open a CLASS file since every time i try to open one in notepad it brings up random symbols.

    Quote Originally Posted by Flux View Post
    Quote Originally Posted by Tyluur View Post
    your better
    my better
    [/SPOIL]
    Reply With Quote  
     

  3. #3  
    Registered Member Recursion's Avatar
    Join Date
    Feb 2010
    Posts
    638
    Thanks given
    0
    Thanks received
    29
    Rep Power
    41
    I can't find it. I'm using a devolution based server.


    Anymore help?
    Reply With Quote  
     

  4. #4  
    Registered Member Recursion's Avatar
    Join Date
    Feb 2010
    Posts
    638
    Thanks given
    0
    Thanks received
    29
    Rep Power
    41
    Thread updated - New problem now.

    Fixed the first issue but now when a shield is equipped after a 2h, the animation doesn't reset back to the normal emote.


    Still need help
    Reply With Quote  
     

  5. #5  
    Registered Member Recursion's Avatar
    Join Date
    Feb 2010
    Posts
    638
    Thanks given
    0
    Thanks received
    29
    Rep Power
    41
    Anyone?

    Rearranging and reorganizing this thread in a second. Sorry it's so messy!

    Edit: Added spoiler tags for old problem. New problem can be found at the top of the thread
    Reply With Quote  
     

  6. #6  
    Registered Member Recursion's Avatar
    Join Date
    Feb 2010
    Posts
    638
    Thanks given
    0
    Thanks received
    29
    Rep Power
    41
    Yet another issue found. Please don't complain about bumping because I'm trying the best I can to combine my threads to cause less spam in the forums.

    New problem involves a glitch where while wearing a weapon and shield. With a full inventory, if a 2h is equipped, the shield disappears. How can I make it so the 2h doesn't even become equipped?

    If a mod happens to come by this thread, if you feel the need, please combine my past few posts. Thanks.
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Jun 2010
    Posts
    559
    Thanks given
    105
    Thanks received
    30
    Rep Power
    17
    1. Animation fix...
    Not sure if devo has this :O
    search for
    Code:
    public int GetStandAnim(int id)
    underneath add
    Code:
    if(id == -1){
    return 808;
    }
    Spoiler for Bumping Rule:

    Your only allowed to bump once every 24 hours.
    Reply With Quote  
     

  8. #8  
    Registered Member Recursion's Avatar
    Join Date
    Feb 2010
    Posts
    638
    Thanks given
    0
    Thanks received
    29
    Rep Power
    41
    Quote Originally Posted by Deadly A G S View Post
    1. Animation fix...
    Not sure if devo has this :O
    search for
    Code:
    public int GetStandAnim(int id)
    underneath add
    Code:
    if(id == -1){
    return 808;
    }
    I've already tried that. Anymore suggestions?

    Also, for the bump rule, I could have easily made SEVERAL different threads but since I'm combining my threads I'm reducing forum clutter. Also, if I were to make a new thread for it, it would have the same effect as a bump.

    I've only been bumping when the thread has been altered when needed.
    Sorry for any inconveniences this causes, but at the same time, I'm only trying to make things cleaner in the long-run.
    Reply With Quote  
     

  9. #9  
    Registered Member Recursion's Avatar
    Join Date
    Feb 2010
    Posts
    638
    Thanks given
    0
    Thanks received
    29
    Rep Power
    41
    Right now, the second issue is of most importance. I believe it has something to do this this method:
    Code:
    	public boolean addItem(int item, int amount) {
    		if (item >= Item.itemStackable.length) {
    			return false;
    		}
    		if ((item < 0) || (amount < 1)) {
    			return false;
    		}
    		if (!Item.itemStackable[item] || (amount < 1)) {
    			amount = 1;
    		}
    		if (((freeSlots() >= amount) && !Item.itemStackable[item]) || (playerHasItem(item) && Item.itemStackable[item])) {
    		
    			for (int i = 0; i < playerItems.length; i++) {
    				if ((playerItems[i] == (item + 1)) && Item.itemStackable[item]
    						&& (playerItems[i] > 0)) {
    					playerItems[i] = (item + 1);
    					if (((playerItemsN[i] + amount) < maxItemAmount)
    							&& ((playerItemsN[i] + amount) > -1)) {
    						playerItemsN[i] += amount;
    					} else {
    						playerItemsN[i] = maxItemAmount;
    					}
    					outStream.createFrameVarSizeWord(34);
    					outStream.writeWord(3214);
    					outStream.writeByte(i);
    					outStream.writeWord(playerItems[i]);
    					if (playerItemsN[i] > 254) {
    						outStream.writeByte(255);
    						outStream.writeDWord(playerItemsN[i]);
    					} else {
    						outStream.writeByte(playerItemsN[i]); // amount
    					}
    					outStream.endFrameVarSizeWord();
    					i = 30;
    					return true;
    				}
    			}
    			for (int i = 0; i < playerItems.length; i++) {
    				if (playerItems[i] <= 0) {
    					playerItems[i] = item + 1;
    					if ((amount < maxItemAmount) && (amount > -1)) {
    						playerItemsN[i] = amount;
    					} else {
    						playerItemsN[i] = maxItemAmount;
    					}
    					outStream.createFrameVarSizeWord(34);
    					outStream.writeWord(3214);
    					outStream.writeByte(i);
    					outStream.writeWord(playerItems[i]);
    					if (playerItemsN[i] > 254) {
    						outStream.writeByte(255);
    						outStream.writeDWord(playerItemsN[i]);
    					} else {
    						outStream.writeByte(playerItemsN[i]); // amount
    					}
    					outStream.endFrameVarSizeWord();
    					i = 30;
    					return true;
    				}
    			}
    			return false;
    		} else {
    			CAM().sendMessage("Not enough space in your inventory.");
    			return false;
    		}
    	}
    I've tried adding this under the last else statement but had no luck.
    Code:
    		setEquipment(playerEquipment[playerShield], 1, playerShield);
    		setEquipment(playerEquipment[playerWeapon], 1, playerWeapon);
    Any other ideas on a fix?

    Edit: I was wrong, this has nothing to do with it! :trollface:
    Reply With Quote  
     

  10. #10  
    Registered Member
    Join Date
    Nov 2010
    Posts
    11
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    are u stupid this stuff is all for the client
    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. Replies: 3
    Last Post: 04-11-2010, 11:04 PM
  2. Two Handed Weapons Emulous
    By Xenon in forum Help
    Replies: 2
    Last Post: 10-12-2009, 08:52 AM
  3. 2-Handed Weapons. [iClarity 1.05]
    By mmaKush in forum Help
    Replies: 6
    Last Post: 07-20-2009, 02:54 AM
  4. Two handed weapons
    By LastResortpkz in forum Tutorials
    Replies: 6
    Last Post: 09-26-2008, 03:45 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
  •