Recommended Posts

Set your dressme the way you prefer. Like this :

 

<dressme itemId="3470">
     <appearance hairId="0" chestId="9210" legsId="0" glovesId="6380" feetId="6381" />
</dressme>

 

OR

 

<dressme itemId="3470">
     <appearance hairId="0" chestId="9210" />
</dressme>

 

code : Skin aCis

 

 

Share this post


Link to post
Share on other sites

You have test this code with more than one "dress" inside XML?

The code its total wrong in many ways, i hope you rework and fix it else its not share but troll.

Edited by StinkyMadness

Share this post


Link to post
Share on other sites

I wouldn't use this code. Why is there a for loop in the UserInfo and CharInfo class? Doing like this the player will always have the last dress in the list... Also, you dont save to db, so player will always need to reuse the same thing again. 
Fix those problems and it will be usable. 

Edited by HyperBlown

Share this post


Link to post
Share on other sites

Try to use more than 1 dressme item in XML and you will have client crashes everytime when will sent to you CharInfo packet.

Share this post


Link to post
Share on other sites

Add Time for Skin 

 

 

I added the time in memo, if you know any shorter method leaves here, about the crash I will redo the part of charInfo and UserInfo, soon I will be updating

 

long remainingTime = player.getMemos().getLong("dressTime", 0);
		if (remainingTime > 0)
			player.getMemos().set("dressTime", remainingTime + TimeUnit.HOURS.toMillis(dress.getDressTime()));
		else
		{
			player.getMemos().set("dressTime", System.currentTimeMillis() + TimeUnit.HOURS.toMillis(dress.getDressTime()));

 

set up your dressme in hours.

 

<dressme itemId="9245">
         <appearance chestId="15000" hairId="15001" dressTime="1"/>
     </dressme>

9 hours ago, StinkyMadness said:

You have test this code with more than one "dress" inside XML?

The code its total wrong in many ways, i hope you rework and fix it else its not share but troll.

which points are wrong can you tell me to fix it?

Share this post


Link to post
Share on other sites
18 hours ago, StinkyMadness said:

You have test this code with more than one "dress" inside XML?

 

12 hours ago, Rootware said:

Try to use more than 1 dressme item in XML and you will have client crashes everytime when will sent to you CharInfo packet.


 

 

8 hours ago, Williams said:

which points are wrong can you tell me to fix it?

We both told you the major problem, you have used forLoop inside serverpackages.
Even on your second video you clicked on "Green Archer" and your vision its red.
You did not notice anything?

  • Thanks 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.