Jump to content
  • 0

Faction question about manual patching.


MeVsYou

Question

Well guys.....This question is a little bit more difficult than other.

Well,i want to patch a .txt file but it made some errors due to team>apply patch etc etc.

So i do it manually.Everything was rolling perfect until after an hour when i type more than once :

 

boolean iscool()   or   private boolean iscool()

 

It says me that : Duplicate method iscool(and is noob) in type L2PcInstance

 

 

And an other error is that : The method iscool ( and isnoob) is undefined for the type L2PcInstance.

 

So now...how the hell i must solve these errors : the same errors are like 32 times. :(

Any good idea???

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

declare 2 public variable in L2PcInstance like

 

public boolean _cool = false;

public boolean _noob = false;

 

create a getter and setter for them like

 

public void setCool(boolean status)
{
       _cool = status;
}

public boolean isCool()
{
       return _cool;
}

 

and the same for noob

 

than you can use activeChar.setCool(true); to set a player to cool and and activeChar.isCool() to check the status

 

everything else is just imagination

Link to comment
Share on other sites

  • 0

I am not sure..if i understand all these pro things you said me,but i will try and then if i will have any problem,i will report it here.

Link to comment
Share on other sites

  • 0

Intrepid can you give some more infos about how to do that you said me???

 

I tried many times but i didnt get a result...afff

 

Actually now i have less errors than before :

 

  Description                     Resource                   Path                                                                          Location     Type

_iscool cannot be resolved L2PcInstance.java /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance line 10104 Java Problem

_isnoob cannot be resolved L2PcInstance.java /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance line 10098 Java Problem

_isnoob cannot be resolved L2PcInstance.java /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance line 10109 Java Problem

_iscool cannot be resolved L2PcInstance.java /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance line 10093 Java Problem

 

 

I must write that you said me in L2PcInstance as i understand..but what exactly and where(ex. in the beggining??at last??under smth else?? ).

 

*I am sorry for the double post

Link to comment
Share on other sites

  • 0

_iscool cannot be resolved  L2PcInstance.java  /L2_GameServer/java/net/sf/l2j/gameserver/model/actor/instance  line 10104  Java Problem

 

See this, instance.java cannot be resolved Lib. you must edit Instance.java

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.



  • Posts

    • First of all you need to understand that there is no ultimate guide "how to", server sources has some similar things but it also has some differences that you will be hard to adapt without skills. Saying skills I mean not only java skills, the most required ones is understanding lineage 2 core processes task-scheduling and client-server networking  communication.   You need to: -learn some core information about Java language -learn some lessons about java programming to understand what is java classes, packages, imports etc. -learn how to edit java source code with some IDE (one of them eclipse) -learn how to compile java source code (with ant for example)   Then for the best way you need to get most popular sources form thread above and try to integrate that scripts like for native, I mean as I can see that mostly provided scripts are for acis, so take acis sources and ty to integrate or find something directly for mobius etc.   Doing all this you will need to understand three things First - How player communicates with server What is action bypasses (when player clicks some link in HTML) and where your server handles it (find RequestBypassToServer packet and learn how its working) What is user/voice/admin commands (when player writes some in chat with "." or "/" or "//") and where your server handles it (find VoiceCommandHandler and learn how its working)   Second - How server doing core logic If addon has some logic that not depends on direct user action it will mostly required some scheduled task (some logic that will be runs periodically), so you need to  find some ThreadPoolManager and Runnable usages and understand how its working Maybe you will need some data storage, so you will need to find how server working with database (try to find how server executes SQL requests, SELECT, INSERT, UPDATE)   Third - How server communicates back to player You need to find how server sends packets to player, find some sendPacket() method and its usages, for example Say2 packet (its when server sends some chat message to client) etc   Unfortunately there is no easy way, some sources will be easier to adapt cuz of similarity between sources some will be harder  
    • I'm starting on this. I know enough to be able to make my website with php, html and css. I also know linux to maintain a server but I don't know anything about java and its compilation.   Can anyone help me learn how to add this type of code to a server? I'm using L2jMobius, but I have no idea or concept of how to start to add codes. Do I need to add it before compiling? Can it be added once the datapack is compiled? How do I know where I should add it?   I would appreciate any kind of information, please!   I wanna to add some codes nex collection, like TvT events, etc:     See you guys and thanks for all the help are in the forum!
    • it says standard here , that is , without protection , it is made from another source code , the goal of my dll is just to kill the game guard , the hwid code is cut out there , since no one uses the old protections on projects - but your answer is clear   ps then choose another option for yourself )
    • remove  DisableGameGuard() from code at all.  compile and send here new dsetup.dll  
    • I shared my dsetup with the HWID system but I can't log in that Error. When I put yours it gave this error.
  • Topics

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