Jump to content

[Hi5] Services Npc


Colet

Recommended Posts

Thx for the advice, I will try now, what is supposed to happen ?

It's just organizing imports. Basically, you would have to change several methods (as I remember) :P

 

You can take a look at this, it's interlude version with bug fixes.

 

http://www.maxcheaters.com/topic/167407-services-npc/

Edited by SweeTs
Link to comment
Share on other sites

I found a bug, you can buy infinite Clan Reputation points with just 1 of the required Items.

Fix:

					if (st.getQuestItemsCount(clanReputationPointsItemId) >= reputationPointsCount)
					{

I tested this fix and it worked at least for me :) Also I edited these lines:
 

					if (st.getQuestItemsCount(clanReputationPointsItemId) < reputationPointsCount)
					{
						return "ClanReputationPoints-NoItems.htm";
					}

Not sure if the second one is needed but as it works for me I just let it there :P

 

Regards,

DeathSpank

Edited by DeathSpank287
Link to comment
Share on other sites

  • 2 weeks later...

http://imageshack.us/f/96/0yhe.jpg/

 

Its kinda strange error.. because code seems fine , i cant find this "<" problem Oo i didnt touch the code btw.. I just tryning to use it on Freya. Eclipse shows no errors so everything was fine i guess..

Link to comment
Share on other sites

  • 1 month later...
----------

1. ERROR in \custom\Services\Services.java (at line 294)

        statement.setInt(2, player.getClan().getClanId());

                                                  ^^^^^^^^^

The method getClanId() is undefined for the type L2Clan

----------

2. ERROR in \custom\Services\Services.java (at line 367)

        player.store();

                   ^^^^^

The method store(boolean) in the type L2PcInstance is not applicable for the arguments ()

----------

3. ERROR in \custom\Services\Services.java (at line 490)

        statement.setInt(2, player.getClan().getClanId());

                                                  ^^^^^^^^^

The method getClanId() is undefined for the type L2Clan

----------

3 problems (3 errors)The method getClanId() is undefined for the type com.l2jserver.gameserver.model.L2Clan

The method store(boolean) in the type com.l2jserver.gameserver.model.actor.instance.L2PcInstance is not applicable for the arguments ()

The method getClanId() is undefined for the type com.l2jserver.gameserver.model.L2Clan

Failed executing script: C:\Documents and Settings\Administrator\Desktop\server\game\data\scripts\custom\Services\Services.java. See Services.java.error.log for details.

 

 

:)

Link to comment
Share on other sites

  • 3 months later...

I've found a bug. When you program your pk reducer for 10 coins , its ok.

But if you have only 10 coins and choose for remove 1000pk, it will do for the 10 coins.

And the same for clanreputation. Someone has a fix for it? Thank you

Link to comment
Share on other sites

I found a bug, you can buy infinite Clan Reputation points with just 1 of the required Items.

Fix:

 

if (st.getQuestItemsCount(clanReputationPointsItemId) >= reputationPointsCount)
					{
I tested this fix and it worked at least for me :) Also I edited these lines:

 

if (st.getQuestItemsCount(clanReputationPointsItemId) < reputationPointsCount)
					{
						return "ClanReputationPoints-NoItems.htm";
					}

Not sure if the second one is needed but as it works for me I just let it there :P

 

Regards,

DeathSpank

Do you have the fix for the pk? Its bugged aswell

Link to comment
Share on other sites

  • 7 months later...

 

----------
1. ERROR in \custom\Services\Services.java (at line 294)
        statement.setInt(2, player.getClan().getClanId());
                                                  ^^^^^^^^^
The method getClanId() is undefined for the type L2Clan
----------
2. ERROR in \custom\Services\Services.java (at line 367)
        player.store();
                   ^^^^^
The method store(boolean) in the type L2PcInstance is not applicable for the arguments ()
----------
3. ERROR in \custom\Services\Services.java (at line 490)
        statement.setInt(2, player.getClan().getClanId());
                                                  ^^^^^^^^^
The method getClanId() is undefined for the type L2Clan
----------
3 problems (3 errors)The method getClanId() is undefined for the type com.l2jserver.gameserver.model.L2Clan
The method store(boolean) in the type com.l2jserver.gameserver.model.actor.instance.L2PcInstance is not applicable for the arguments ()
The method getClanId() is undefined for the type com.l2jserver.gameserver.model.L2Clan
Failed executing script: C:\Documents and Settings\Administrator\Desktop\server\game\data\scripts\custom\Services\Services.java. See Services.java.error.log for details.
 
 
:)

 

Has anyone found a fix to this? I have been having the same issues with this...im using a stable high five revision

Edited by aerolance
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.
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...