Jump to content

dx11

Inactive Member
  • Posts

    38
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by dx11

  1. 1 minute ago, Gurgarath said:

    Hello,

     

    You can find those functions within the sources of the game. You will find various files named questlua_x.cpp. Open them, go at the very end. You will notice such lines:

     
    
    		CQuestManager::instance().AddLuaFunctionTable("arena", arena_functions);

    Thanks to those, you will easily see which functions are related to arena (registered above within the list arena_function). To use them, you will need to write :"arena.function()".

    Another example with questlua_pc:

     

    
    		CQuestManager::instance().AddLuaFunctionTable("pc", pc_functions);

     

    Now, if you want to find those functions, you eaither have to manually check each questlua_x.cpp files or to go serverside and find the file "quest_functions". Inside you will find every registered quest functions.

    Unfortunately, I can only choose one answer ❤️ 

    • Love 1
  2. 4 minutes ago, Syreldar said:

    It seems to me you didn't understand my answer well.

     

    1. Inside your sources, there are many files in which the functions are defined. The pc.xxx functions are defined inside questlua_pc.cpp.

    2. All the useable functions are listed inside quest_functions.

     

    so , if i want to use function in quests , that's i defined it , all what i need to define it in questlua_pc.cpp and use it in quests ? that's if define it in pc , use it like pc.myFunctionName?

  3. 16 minutes ago, Syreldar said:

    1. sources. questlua_pc.cpp

    2. quest_functions file, inside locale/xx/quest/

     

    thank you , but it seems you did not understand a question well , or i not define my problem well ,
    i mean in my question : in every programming language you should define function first and then use it , or import some modules and use their function

    but here in quests we don'd define function and not import any module that has the function pc.get_level() , but use it directly without knowing him where is the function located .

     

     

    and i want to know what other function other than (pc functions) can use it directly ?

  4. Hello Everyone ,

    the problem appears in the same account

    when enter some character in the account and left some things in the store and exit the game , and enter another character in the same account i found the items i left in the previous character in the store , 

    in other words there is only one store for all character in the same account, when left item in one character , found it in other character in the same account

     

     

  5. in the top left there is a bonus and more than half of words are hidden so ,

     

    how to modify the coordinates so all words appear when mouse is stopped at it

     

    p_1248rxajo1.png

     

     

     

    also i want to modify this title because it's Overlapping  , so i want to extend the height and width and modify coordinates 

     

     

    p_1248nkapy1.png

     

     

     

     

    aslo here the word in icon and want to shift words to right 

     

    p_1248wq7iy1.png

     

    i only need the location of modification and i will test all x's and y's 

     




     

     

     

  6. 5 minutes ago, MaJeStiC said:

    you mean you change the default with design

    need to update records too for example gold_expire

    UPDATE `account` SET `gold_expire`='2030-01-24 23:59:59';

    already all records modified 
    and to make sure

    i created a new account and the same thing i don't know why it's not activitied 

    it's frozen files

  7.  

    3 hours ago, Chyu ^^ said:

    There are only a few things you can edit on server if you don't want to touch a core (core is a file that is generated by compiling the sources).
    The biggest section that serverside allows you is writing a quests. Those can be used for handling the dungeons or stores or just some kind of story line.
    Next thing you can do on server is just about localization and some configuration of how is server working (based on your experience this is not related to you yet).

    With editing source you can edit literally anything you want. Behaviour of spells, way of how you increase your skills, stacking behaviour, polymorph options and may other things. In a nutshell you, you can fix security issues, increase performance and create system you are not able to create without them (obviously lol).

    Because M2 server is clever in that way it checks what is client doing, there are required changes in client sources too. But! Some changes could be done by editing only one of them. For example you don't need to edit server source if you want to add your custom effect for a weapon or you don't need to edit client source if you want to increase maximal level.

    Last thing are packages. Here are stored data like 3D models, 2D graphics, sounds, icons, skyboxes, etc. Although there is coded our own "API" which provides Python to communicate with client binary that is written in C++ (mainly). Any UI you see in in packages too, look into UIScript.

    Please consider I'm not calling myself as a developer so there could be some mistakes. We have more experienced guys here who could describe it more clearly.

    Look, this could help you at the begining:

     

    thanks for your efforts and time :)

     

  8.  

    2 minutes ago, Chyu ^^ said:

    But you have to give us some example of what you want to add.

    I do not have an idea now but I think there are basics I would like to know in order to discover the rest

    5 minutes ago, Chyu ^^ said:

    In most common way the UI is creating in Python. You can find it in Root (implementation) and UIScript (coding) but sometimes in Locale too (ehhh...).

    thnx
    can you give me some situations modification should be in source and some modification in client and serverside

  9. 11 minutes ago, MrQuin said:

     

    What i am saying is that there are a lot of people like him who wants everything on gold plate without even trying to search :facepalm:

    i'm computer science student and I know very well how to search Because my field taught me this
    The answer to my question allows me to learn in a faster time 

    When I add something somewhere I do not know why it was specifically added to that place , So I asked

    thanks :)

     

    9 hours ago, Chyu ^^ said:

    You would give an example.

    if i want to add form with some button and when i click to this button do specific thing 

    and when  i should add something in source

    and when add something in source when i do it in client source and when do it in server source
    thx for your time :)

    • Love 1
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.