Page 1 of 1

[HELP] Edit char

Posted: Mon May 16, 2011 11:56 am
by aragon
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:high five
L2JDP Revision Number:high five


Image

can someone help me fix that? i click on player then i go LvL or Edit to change name whatever and always give me Invalid Target like that example on igame with lvl

Re: [HELP] Edit char

Posted: Mon May 16, 2011 1:40 pm
by hope
are you running geodata

Re: [HELP] Edit char

Posted: Mon May 16, 2011 1:48 pm
by aragon
no, please someone help?


on handler AdminExpSp.java

Code: Select all

private void addExpSp(final L2PcInstance activeChar)    {        final L2Object target = activeChar.getTarget();        L2PcInstance player = null;        if (target instanceof L2PcInstance)            player = (L2PcInstance) target;        else        {            activeChar.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.INCORRECT_TARGET));            return;        }        final NpcHtmlMessage adminReply = new NpcHtmlMessage(5);        adminReply.setFile(activeChar.getHtmlPrefix(), "data/html/admin/expsp.htm");        adminReply.replace("%name%", player.getName());        adminReply.replace("%level%", String.valueOf(player.getLevel()));        adminReply.replace("%xp%", String.valueOf(player.getExp()));        adminReply.replace("%sp%", String.valueOf(player.getSp()));        adminReply.replace("%class%", player.getTemplate().className);        activeChar.sendPacket(adminReply);    }
i didnt see nothing wrong :S

Re: [HELP] Edit char

Posted: Mon May 16, 2011 2:02 pm
by UnAfraid
you have to target the player that u want to increase his spell points or experience then type //add_exp_sp 100 100 for example

Re: [HELP] Edit char

Posted: Mon May 16, 2011 2:03 pm
by aragon
UnAfraid wrote:you have to target the player that u want to increase his spell points or experience then type //add_exp_sp 100 100 for example
Unfraid thanks for answer but i cant use it on target myself or other player its the same for both

Re: [HELP] Edit char

Posted: Mon May 16, 2011 2:07 pm
by UnAfraid
well its possible to target yourself just click at hp bar..

Re: [HELP] Edit char

Posted: Mon May 16, 2011 2:13 pm
by aragon
UnAfraid wrote:well its possible to target yourself just click at hp bar..

i have done it like i said, on myself target doesnt work, and on player target doesnt work too. Very strange.

It can be bugged on handlers or L2pcinstance? im asking help because i dont know what file to compare to see whats wrong xD

i turned on gm audit and look what says:

Code: Select all

16/05/2011 12:41:59>Aragon>admin_instancezone TESTCHAR>no-target> 

Re: [HELP] Edit char

Posted: Mon May 16, 2011 6:52 pm
by aragon
resolved, can close.

Re: [HELP] Edit char

Posted: Mon May 16, 2011 7:10 pm
by Zoey76
aragon wrote:resolved, can close.
Now I want to know what was it :twisted:

Re: [HELP] Edit char

Posted: Tue May 17, 2011 6:13 am
by razvypp
you need to select the player you want , if not in gm ->char ->list edit char from there