Jump to content

[Discussion]Κάντε request java mods


Recommended Posts

Dn boreis na to knc toulaxiston gia ola t items? Armor jewels tatou

Opws k n xei euxaristw!!

αααα απλα νομιζα οτι θες μονο για weapon.

σβησε το

if(item.getItem().getItemType() instanceof L2WeaponType){

και ενα  } απο το τελος.

Link to comment
Share on other sites

αααα απλα νομιζα οτι θες μονο για weapon.

σβησε το

if(item.getItem().getItemType() instanceof L2WeaponType){

και ενα  } απο το τελος.

wrea euxaristo tha to dokimasw molis parw t pc!
Link to comment
Share on other sites

A custom roy the cat which gives :

Example: I become sagi ,automaticaly take dragonic

Tanks~~>Imperial

Mages~~>DC

Thanks!

Link to comment
Share on other sites

Awarded,πρόθυμος να βοηθήσει οποιονδήποτε μπορεί σε φόρουμ που δεν υπάρχουν πια νέα shares.

Link to comment
Share on other sites

Guest Elfocrash

Awarded,πρόθυμος να βοηθήσει οποιονδήποτε μπορεί σε φόρουμ που δεν υπάρχουν πια νέα shares.

Episis stickied.toulaxiston mexri na ton trelanoun kai na stamatisei na grafei

Link to comment
Share on other sites

A custom roy the cat which gives :

Example: I become sagi ,automaticaly take dragonic

Tanks~~>Imperial

Mages~~>DC

Thanks!

 

Παιδια λογω γιορτης σημερα απουσιαζα (Γιωργος).

 

@Goldex


### Eclipse Workspace Patch 1.0
#P Chr.6GMS
Index: java/net/sf/l2j/gameserver/model/actor/instance/L2ClassMasterInstance.java
===================================================================
--- java/net/sf/l2j/gameserver/model/actor/instance/L2ClassMasterInstance.java	(revision 5263)
+++ java/net/sf/l2j/gameserver/model/actor/instance/L2ClassMasterInstance.java	(working copy)
@@ -198,6 +198,7 @@
		}
		else if(command.startsWith("change_class"))
		{
+			
             int val = Integer.parseInt(command.substring(13));

             // Exploit prevention
@@ -205,7 +206,13 @@
             int level = player.getLevel();
             int jobLevel = 0;
             int newJobLevel = 0;
-
+            
+            int[] dragonicClassIds =  {81,91,83,821};
+            int[] dcClassIds = {12,24,54,21};
+            
+            int[] draconicArmorIds = {48484,48484,48484,48484};
+            int[] dcArmorIds = {3949,4949,4949,4949};
+            
             ClassLevel lvlnow = PlayerClass.values()[classId.getId()].getLevel();

             if(player.isGM())
@@ -272,7 +279,26 @@
             changeClass(player, val);

             if(val >= 88)
-            	player.sendPacket(new SystemMessage(SystemMessageId.THIRD_CLASS_TRANSFER)); // system sound 3rd occupation
+            {
+            	for(int i : dragonicClassIds ){
+            		if(classId.getId() == i){
+            			for(int u : draconicArmorIds)
+            				player.getInventory().addItem("", u, 1, player, null);
+            			
+            			player.sendMessage("You rewarded with draconic armors");
+            		}
+            	}
+            	
+            	for(int i : dcClassIds ){
+            		if(classId.getId() == i){
+            			for(int u : dcArmorIds)
+            				player.getInventory().addItem("", u, 1, player, null);
+            			
+            			player.sendMessage("You rewarded with dc armors");
+            		}
+            	}
+            	player.sendPacket(new SystemMessage(SystemMessageId.THIRD_CLASS_TRANSFER)); 
+            }// system sound 3rd occupation
             else
             	player.sendPacket(new SystemMessage(SystemMessageId.CLASS_TRANSFER));    // system sound for 1st and 2nd occupation

τυχαια ids

και παει λεγωντας..

 

Ευχαριστω fighterboss , elfocrash.

Link to comment
Share on other sites

hello :)

paidia psaxnw ena java code gia anti-advertise 3erw go kati tetoio..dld mwlis ena newbie paei na grapsei ena site paradigma na trwei chat ban mwlis pataei enter gia na stili t chat..me liga logia na grafei www.server.com kai mwlis pataei enter anti na stili t chat na trwei chat ban 30 lepta se ola ta chat ke oxi mono sta .com .net kai ola afta na pianei ke sta grammata "l2" .nmzo ktlves t zitaw *.*(gia l2jfreya)

Link to comment
Share on other sites

hello :)

paidia psaxnw ena java code gia anti-advertise 3erw go kati tetoio..dld mwlis ena newbie paei na grapsei ena site paradigma na trwei chat ban mwlis pataei enter gia na stili t chat..me liga logia na grafei www.server.com kai mwlis pataei enter anti na stili t chat na trwei chat ban 30 lepta se ola ta chat ke oxi mono sta .com .net kai ola afta na pianei ke sta grammata "l2" .nmzo ktlves t zitaw *.*(gia l2jfreya)

Η καλυτερη ιδεα γι αυτο ειναι να χρησιμοποιηεις chat filter το οποιο εχει γινει share εδω, ψαξτο.

Παρολλο αυτα ευκολος τροπος για να απαγορευσεις λεξεις συγεκριμενες:

 


### Eclipse Workspace Patch 1.0
#P Chr.6GMS
Index: java/net/sf/l2j/gameserver/clientpackets/Say2.java
===================================================================
--- java/net/sf/l2j/gameserver/clientpackets/Say2.java	(revision 5263)
+++ java/net/sf/l2j/gameserver/clientpackets/Say2.java	(working copy)
@@ -48,6 +48,8 @@
	private static Logger _log = Logger.getLogger(Say2.class.getName());
	private static Logger _logChat = Logger.getLogger("chat");

+	private static String[] sites = {"l2","L2","www"};
+	
	public final static int ALL = 0;
	public final static int SHOUT = 1; //!
	public final static int TELL = 2;
@@ -139,6 +141,16 @@
                 return;
             }
         }
+        
+        if(_type == TELL || _type == SHOUT || _type == TRADE || _type == HERO_VOICE || _type == PARTY){
+        	for(int k=0; k < sites.length; k ++){
+        		if(_text.equalsIgnoreCase(sites[k])){
+        			activeChar.sendMessage("You can't use word: "+sites[k]);
+        			activeChar.setChatBanned(true);
+        			return;
+        		}
+        	}
+        }

		if (_type == PETITION_PLAYER && activeChar.isGM())
			_type = PETITION_GM;

 

στο private static String[] sites = {"l2","L2","www"}; προσθετεις οτι θελεις.

Link to comment
Share on other sites

Η καλυτερη ιδεα γι αυτο ειναι να χρησιμοποιηεις chat filter το οποιο εχει γινει share εδω, ψαξτο.

Παρολλο αυτα ευκολος τροπος για να απαγορευσεις λεξεις συγεκριμενες:

 


### Eclipse Workspace Patch 1.0
#P Chr.6GMS
Index: java/net/sf/l2j/gameserver/clientpackets/Say2.java
===================================================================
--- java/net/sf/l2j/gameserver/clientpackets/Say2.java	(revision 5263)
+++ java/net/sf/l2j/gameserver/clientpackets/Say2.java	(working copy)
@@ -48,6 +48,8 @@
	private static Logger _log = Logger.getLogger(Say2.class.getName());
	private static Logger _logChat = Logger.getLogger("chat");

+	private static String[] sites = {"l2","L2","www"};
+	
	public final static int ALL = 0;
	public final static int SHOUT = 1; //!
	public final static int TELL = 2;
@@ -139,6 +141,16 @@
                 return;
             }
         }
+        
+        if(_type == TELL || _type == SHOUT || _type == TRADE || _type == HERO_VOICE || _type == PARTY){
+        	for(int k=0; k < sites.length; k ++){
+        		if(_text.equalsIgnoreCase(sites[k])){
+        			activeChar.sendMessage("You can't use word: "+sites[k]);
+        			activeChar.setChatBanned(true);
+        			return;
+        		}
+        	}
+        }

		if (_type == PETITION_PLAYER && activeChar.isGM())
			_type = PETITION_GM;

 

στο private static String[] sites = {"l2","L2","www"}; προσθετεις οτι θελεις.

nai afto t i3era ke an 8elw t kanw me t chat filter tou server/system eg t 8elw me chat ban omos gt p.x 8a dokimasei mia fora na t kanei ?8a dei oti t vgazei afta ta sumvola meta 8a t kanei paradigma .c0m ke gw 8a ka8ome na t grafw ola?

Link to comment
Share on other sites

nai afto t i3era ke an 8elw t kanw me t chat filter tou server/system eg t 8elw me chat ban omos gt p.x 8a dokimasei mia fora na t kanei ?8a dei oti t vgazei afta ta sumvola meta 8a t kanei paradigma .c0m ke gw 8a ka8ome na t grafw ola?

ναι , γιατι βαριεσαι δηλαδη;

αυτο που σου εστειλα τον κανει chat ban

Link to comment
Share on other sites

ναι , γιατι βαριεσαι δηλαδη;

αυτο που σου εστειλα τον κανει chat ban

dn einai oti varieme.alla einai anofelo t eixa kanei palia me t chat filter alla dn simfere...tn kanei chat ban?fxaristo poli tote :) na rwthsw ke kati allo afto pianei mono sto chat all chat /global/clan/ally/trade ke ta lipa ets? sto friend chat dn piani e?

Link to comment
Share on other sites

Boreis na dimiourgiseis ke custom skills?

Interlude!

δεν ασχολουμαι με client edit , το code βεβαια ( το τι θα κανουν τα σκιλλ ) μπορω να το κανω.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.



×
×
  • Create New...