Jump to content

Recommended Posts

Posted

Hello. So today I will share couple my new things. First will be Voiced Command handlers in Bypass

-> Code <-

Usage:

bypass -h .voicedCommand

Second share will be Dress Me command.

-> Code <-

With this command you can change Your clothes, don't touching stats.

There are 3 commands:

.dressme - will open Html, where you will see all information about Dress Me.

.dressmetarget - will copy targets items.

.dressmestate - will change your state (you can turn on or turn off your Visual Armors).

shot00017w.jpg

shot00018hw.jpg

shot00019xr.jpg

shot00020xa.jpg

In the bottom of the HTML you see 5 weapons.

You can take 5 types of weapons for Visual type:

Swords (1 hand sword, 1 hand blunt, dagger and so on)

Bows (bow, crossbow)

Pole (only poles)

Duals (fists, dual daggers, dual weapons and so on)

Big Swords (2 hand sword, 2 hand blunt and ancient sword)

If you have that type texture, you will see that item Visual type, if for example You have only Sword type in that case, when you put for example Bow, you will see your equiped bow, not visual type.

Second revision will have items choosing by yourself and configurations.

I already started to work on second revision and here is the photo:

shot00021y.jpg

If someone have any ideas how to mark equipped weapon (in html) or want to try to show html for choosing item (becouse for now I don't have it) or have any good ideas, you are welcome to write it here, I will be waiting.

P.s. Credits: Erlandys!

P.s.s. Sorry for bad english and mistakes, I was in hurry, when I will have time I will rework this topic to look better. :)

Posted

[LT] Gal galetum padeti? butu labai malonu:)

Skype: lineage.forever

vardas: L2F

Well try to implement it into some pack and if something goes wrong write in forum, I will help :)

Posted

OMG Tnx!!!...

 

Tested in Freya and error in L2PcInstance.java

 

+
+   private void restoreVisualArmors()
+   {
+      try [color=red]([/color]Connection con = L2DatabaseFactory.getInstance().getConnection();
+         PreparedStatement statement = con.prepareStatement("SELECT * FROM character_visual_armors WHERE charId=?"[color=red]))[/color]
+      {
+         statement.setInt(1, getObjectId());
+         try (ResultSet rset = statement.executeQuery())
+         {
+            if (rset.next())
+            {
+               isUsingVisualArmors(rset.getBoolean("isUsingVisual"));
+               setVisualArmor(VisualArmors.Armor, rset.getInt("armor"));
+               setVisualArmor(VisualArmors.Legs, rset.getInt("leggings"));
+               setVisualArmor(VisualArmors.Feet, rset.getInt("feet"));
+               setVisualArmor(VisualArmors.Gloves, rset.getInt("gloves"));
+               setVisualArmor(VisualArmors.LHand, rset.getInt("lHand"));
+               setVisualArmor(VisualArmors.Sword, rset.getInt("sword"));
+               setVisualArmor(VisualArmors.Bow, rset.getInt("bow"));
+               setVisualArmor(VisualArmors.Pole, rset.getInt("pole"));
+               setVisualArmor(VisualArmors.Dual, rset.getInt("dualWeapons"));
+               setVisualArmor(VisualArmors.BigSword, rset.getInt("bigSword"));
+            }
+         }
+      }
+      catch (Exception e)
+      {
+         _log.log(Level.WARNING, "Could not restore " + getObjectId() + " visual armors data " + e.getMessage(), e);
+      }
+   }
+   
+   private boolean checkIfExist()
+   {
+      try[color=red] ([/color]Connection con = L2DatabaseFactory.getInstance().getConnection();
+         PreparedStatement statement = con.prepareStatement("SELECT charId FROM character_visual_armors WHERE charId=?"[color=red]))[/color]
+      {
+         statement.setInt(1, getObjectId());
+         try (ResultSet rset = statement.executeQuery()) {
+            if (rset.next())
+               return true;
+         }
+      }
+      catch (Exception e)
+      {
+         _log.log(Level.WARNING, "Could not restore " + getObjectId() + " visual armors data " + e.getMessage(), e);
+      }
+      return false;
+   }
+   
+   private void storeVisualArmors()

And in which place is error?

  • 2 weeks later...
Posted
  • 1 month later...
Posted

Hmm...... well i can't believe it's all your code... some of it maybe but not all of it.... i have to say i see major similarity with issle's Visual Armor...

Posted

Hmm...... well i can't believe it's all your code... some of it maybe but not all of it.... i have to say i see major similarity with issle's Visual Armor...

Well if you want you can don't believe, it's your choice. If you see similarity in NpcInfo packet, then IT must be similarity, I can't make smth major different just sending same packet... I made all code by myself.

Works for Freya / H5 newest...  ;D

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




×
×
  • Create New...