Jump to content

Question

Posted

Hello ,i'm looking for "dressme"code with "2click" on item or with visual armor as "underwear or hair slot" or .dressme command be available only for premium/vip members.
I searched a little bit ,but i found one with bug in effects(with dawn shield isnt visible on char if you wear a weapon).


I use l2jfrozen last rev. but if you have this only for acis or whatever and its fixed(i mean without the bug above) send it and i will adapt.

 

:angel:

7 answers to this question

Recommended Posts

  • 0
Posted
2 hours ago, Irrelevant said:

Hello ,i'm looking for "dressme"code with "2click" on item or with visual armor as "underwear or hair slot" or .dressme command be available only for premium/vip members.
I searched a little bit ,but i found one with bug in effects(with dawn shield isnt visible on char if you wear a weapon).


I use l2jfrozen last rev. but if you have this only for acis or whatever and its fixed(i mean without the bug above) send it and i will adapt.

 

:angel:

 

wOlskxD.gif

 

There are no many systems shared around and those are really bad coded.

It's not like you gonna find someone to just give you such code like this.

 

  • 0
Posted
2 hours ago, Kara said:

 

wOlskxD.gif

 

There are no many systems shared around and those are really bad coded.

It's not like you gonna find someone to just give you such code like this.

 

unfortunately i know,i just tried :) there is always a chance :D :D :D 

  • 0
Posted
13 hours ago, RootZerO said:

i will try this one.

 

/

 

13 hours ago, splicho said:

Also you should add a check if player isDonator, so the voicedcommand is only executable by donators/vip

y the problem is that i want an item be available only for vip, example: a visual armor like assasin can be wear only on vip/donator members, not the command .dressme .actually as i think it it will work just with an npc .any way :)  thanks :D 

  • 0
Posted (edited)
18 minutes ago, Irrelevant said:

i will try this one.

 

/

 

y the problem is that i want an item be available only for vip, example: a visual armor like assasin can be wear only on vip/donator members, not the command .dressme .actually as i think it it will work just with an npc .any way :)  thanks 😄 

 

0cpk03J.gif

 

Blablabla. Just make an NPC. Create a custom bypass like this:

 

@Override
public void onBypassFeedback(final String command command, final L2PcInstance activeChar)
{
    final StringTokenizer st = new StringTokenizer(command);
    final int id = Integer.parseInt(st.nextToken());
  
    if (activeChar.isVIP())
    {
       Optional.ofNullable(DressMeData.getInstance().getItemId(id)).ifPresentOrElse(s -> activeChar.setDress(s), () -> activeChar.sendMessage("Failed to equip visual. Please inform staff."));
    }
    else
    {
       activeChar.sendMessage("Only VIP characters are allowed to equip visual.");
    }
}

 

Consider the code is handwritten here, i just give you an idea on how it should be. 

Also move the broadcast and things into the setDress() method to avoid having to repeat whenever you call that method. 

Edited by Kara
  • 0
Posted
5 minutes ago, Kara said:

 

0cpk03J.gif

 

Blablabla. Just make an NPC. Create a custom bypass like this:

 


@Override
public void onBypassFeedback(final String command command, final L2PcInstance activeChar)
{
    final StringTokenizer st = new StringTokenizer(command);
    final int id = Integer.parseInt(st.nextToken());
  
    if (activeChar.isVIP())
    {
       Optional.ofNullable(DressMeData.getInstance().getItemId(id)).ifPresentOrElse(s -> activeChar.setDress(s), () -> activeChar.sendMessage("Failed to equip visual. Please inform staff."));
    }
    else
    {
       activeChar.sendMessage("Only VIP characters are allowed to equip visual.");
    }
}

 

Consider the code is handwritten here, i just give you an idea on how it should be. 

Also move the broadcast and things into the setDress() method to avoid having to repeat whenever you call that method. 

i was just opened eclipse to create the npc :D Thanks for code <3

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
Answer this question...

×   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...