Jump to content
  • 0

Augments


Question

12 answers to this question

Recommended Posts

  • 0
Posted

yes there it is credits: dunno

Index: /trunk/L2J_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/UseItem.java
===================================================================
--- /trunk/L2J_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/UseItem.java 
+++ /trunk/L2J_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/UseItem.java 
@@ -198,4 +198,40 @@
						}

+				           L2Weapon curwep = activeChar.getActiveWeaponItem();
+				            if (curwep != null)
+				            {
+				            	if ((curwep.getItemType() == L2WeaponType.DUAL) && (item.getItemType() == L2WeaponType.NONE))
+				            		{ 
+				            			activeChar.sendMessage("You are not allowed to do this.");
+				            			return; 
+				            		}
+				            	else if ((curwep.getItemType() == L2WeaponType.BOW) && (item.getItemType() == L2WeaponType.NONE))
+				        		{ 
+				        			activeChar.sendMessage("You are not allowed to do this.");
+				        			return; 
+				        		}
+				            	else if ((curwep.getItemType() == L2WeaponType.BIGBLUNT) && (item.getItemType() == L2WeaponType.NONE))
+				        		{ 
+				        			activeChar.sendMessage("You are not allowed to do this.");
+				        			return; 
+				        		}
+				            	else if ((curwep.getItemType() == L2WeaponType.BIGSWORD) && (item.getItemType() == L2WeaponType.NONE))
+				        		{ 
+				        			activeChar.sendMessage("You are not allowed to do this.");
+				        			return; 
+				        		}
+				            	else if ((curwep.getItemType() == L2WeaponType.POLE) && (item.getItemType() == L2WeaponType.NONE))
+				        		{ 
+				        			activeChar.sendMessage("You are not allowed to do this.");
+				        			return; 
+				        		}
+				            	else if ((curwep.getItemType() == L2WeaponType.DUALFIST) && (item.getItemType() == L2WeaponType.NONE))
+				        		{ 
+				        			activeChar.sendMessage("You are not allowed to do this.");
+				        			return; 
+				        		}
+				            }
+
+				            
             if (activeChar.isFishing() && (itemId < 6535 || itemId > 6540))
             {

  • 0
Posted

yes there it is credits: dunno

Index: /trunk/L2J_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/UseItem.java
===================================================================
--- /trunk/L2J_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/UseItem.java 
+++ /trunk/L2J_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/UseItem.java 
@@ -198,4 +198,40 @@
						}

+				           L2Weapon curwep = activeChar.getActiveWeaponItem();
+				            if (curwep != null)
+				            {
+				            	if ((curwep.getItemType() == L2WeaponType.DUAL) && (item.getItemType() == L2WeaponType.NONE))
+				            		{ 
+				            			activeChar.sendMessage("You are not allowed to do this.");
+				            			return; 
+				            		}
+				            	else if ((curwep.getItemType() == L2WeaponType.BOW) && (item.getItemType() == L2WeaponType.NONE))
+				        		{ 
+				        			activeChar.sendMessage("You are not allowed to do this.");
+				        			return; 
+				        		}
+				            	else if ((curwep.getItemType() == L2WeaponType.BIGBLUNT) && (item.getItemType() == L2WeaponType.NONE))
+				        		{ 
+				        			activeChar.sendMessage("You are not allowed to do this.");
+				        			return; 
+				        		}
+				            	else if ((curwep.getItemType() == L2WeaponType.BIGSWORD) && (item.getItemType() == L2WeaponType.NONE))
+				        		{ 
+				        			activeChar.sendMessage("You are not allowed to do this.");
+				        			return; 
+				        		}
+				            	else if ((curwep.getItemType() == L2WeaponType.POLE) && (item.getItemType() == L2WeaponType.NONE))
+				        		{ 
+				        			activeChar.sendMessage("You are not allowed to do this.");
+				        			return; 
+				        		}
+				            	else if ((curwep.getItemType() == L2WeaponType.DUALFIST) && (item.getItemType() == L2WeaponType.NONE))
+				        		{ 
+				        			activeChar.sendMessage("You are not allowed to do this.");
+				        			return; 
+				        		}
+				            }
+
+				            
             if (activeChar.isFishing() && (itemId < 6535 || itemId > 6540))
             {

what is this all about? the problem is that when i use the augment skill and change weapon the augment buff its still on me and i can use several augment skills... whats that for?

  • 0
Posted

yes, this will fix your problem.

btw dude, try to search, dont make all day topics ;)

these codes are shared in mxc.

well it didnt fixed my problem and this is not shared in mxc i think, i already searched..

  • 0
Posted

sry for doublepost but i thing u didnt understand what i am asking for, lemme explain it better:

Lets say we have a weapon with active augment focus.

I use the augment and i have focus in my buffs now.

But when i disarm the weapon i still have focus in my buffs, the effect didnt dissapeared.

 

So i want the effect to disappear when i disarm the weapon. I hope you guys understand now cause i really need to fix this.

 

  • 0
Posted

sry for doublepost but i thing u didnt understand what i am asking for, lemme explain it better:

Lets say we have a weapon with active augment focus.

I use the augment and i have focus in my buffs now.

But when i disarm the weapon i still have focus in my buffs, the effect didnt dissapeared.

 

So i want the effect to disappear when i disarm the weapon. I hope you guys understand now cause i really need to fix this.

 

sry, isnt this @ retail?

  • 0
Posted

sry, isnt this @ retail?

well i have l2j server it pack compiled and its not like this dunno how to fix it...

 

2uf7ozl.jpg

 

this is how it is if u didnt understood

  • 0
Posted

nvm guys fixed it alone

 

If you fixed it, you could post here soulutions for other members (maybe someone will have same problem like you)

 

This is meaning of the forum.

  • 0
Posted

well i have l2j server it pack compiled and its not like this dunno how to fix it...

 

2uf7ozl.jpg

 

this is how it is if u didnt understood

That's why you shouldn't use L2j. www.l2jfree.com

Guest
This topic is now closed to further replies.


×
×
  • Create New...