Jump to content
  • 0

[Request/Help]Stuck Agouments


Question

Posted

HeLLo mages ali mia fora 8a xriazto tin megali boi8ia tou mxc

exo to e3is problem:

otan bazoune to oplo me to agoument skill kai kanoune to buff p.x kai alazoune oplo to buff meni

ti kano tora? :)

 

kana java arxio i kana script i kati sta configs kait mages :)

 

to pack einai l2jofficial

8 answers to this question

Recommended Posts

  • 0
Posted

HeLLo mages ali mia fora 8a xriazto tin megali boi8ia tou mxc

exo to e3is problem:

otan bazoune to oplo me to agoument skill kai kanoune to buff p.x kai alazoune oplo to buff meni

ti kano tora? :)

 

kana java arxio i kana script i kati sta configs kait mages :)

 

to pack einai l2jofficial

 

 

den einai tpt ayto aplos prepei na to fix me java code..

  • 0
Posted

oriste file epsaza sto svn mou kai to brika

 

Index: trunk/L2jGracia_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/UseItem.java
===================================================================
--- a/trunk/L2jGracia_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/UseItem.java
+++ b/trunk/L2jGracia_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/UseItem.java
@@ -177,5 +177,40 @@
                         if (itemId == 57)
                 return;
-            
+                             
+                        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))
             {

Guest
This topic is now closed to further replies.


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock