Jump to content
  • 0

[help]Gm enchant only those own items without need target


xrulezz
 Share

Question

hello! i want to make to my server the lvl 2 and down can enchant with //enchant command only to those self!

and to delete need target to make ++ items to other one!

don't tell me for enchantover etc!

thank's and please help me!

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

i dont understand half of it but i quess that u want command //enchant name part number,

you just need to edit AdminEnchant a bit, dont use activeChar.getTarget() but target name from command :)

Link to comment
Share on other sites

  • 0

i dont understand half of it but i quess that u want command //enchant name part number,

you just need to edit AdminEnchant a bit, dont use activeChar.getTarget() but target name from command :)

i mean i am gm! and i want to enchant your items! the enchant command of gm be allown for enchant my own items only and no for you!

Link to comment
Share on other sites

  • 0

so, in AdminEnchant replace:

L2Object target = activeChar.getTarget();
	if (target == null)
		target = activeChar;
	L2PcInstance player = null;
	if (target instanceof L2PcInstance)
	{
		player = (L2PcInstance) target;
	}
	else
	{
		activeChar.sendPacket(SystemMessageId.INCORRECT_TARGET);
		return;
	}

with:

L2Object target = activeChar;

Link to comment
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
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.

 Share



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