COPS v6 : Source & Tools [Custom Emulator]

02/07/2013 18:29 vtroz#61
up please, how can I get my GM account, and is it normal that I can not buy some weapons and armor to the blacksmith, grocer? thank you
02/07/2013 19:15 CptSky#62
Quote:
Originally Posted by vtroz View Post
up please, how can I get my GM account, and is it normal that I can not buy some weapons and armor to the blacksmith, grocer? thank you
In the account file, you have an AccLvl or something like. 7 is GM, 8 is PM.
For the shops, you haven't rebuild the database correctly... I used an old shop.dat, so you must rebuild it.
02/07/2013 19:40 vtroz#63
there is no AccLevel ....

<?xml version="1.0" encoding="utf-8"?>
<Account>
<section name="Informations">
<entry name="AccountID">Test22</entry>
<entry name="Password">fa3cfb3f1bb823aa9501f88f1f95f732ee 6fef2c3a48be7f1d38037b216a549f</entry>
<entry name="RealName">NULL</entry>
<entry name="Email">NULL</entry>
<entry name="Question">NULL</entry>
<entry name="Answer">NULL</entry>
<entry name="Creation">Sun, 03 Feb 2013 16:38:08 GMT</entry>
</section>
<section name="Medusa">
<entry name="Character">Test22</entry>
<entry name="Flags">0</entry>
</section>
</Account>
02/07/2013 20:04 pro4never#64
I'd assume flags sets your permission level.
02/07/2013 20:08 vtroz#65
no flags for grades 7 = account banned
02/07/2013 22:57 CptSky#66
A little look in the source and you would realize that it's the AccLvl key and that it's not in the file by default.

Code:
<?xml version="1.0" encoding="utf-8"?>
<Account>
    <section name="Informations">
        <entry name="AccountID">Test22</entry>
        <entry name="Password">fa3cfb3f1bb823aa9501f88f1f95f732ee 6fef2c3a48be7f1d38037b216a549f</entry>
        <entry name="RealName">NULL</entry>
        <entry name="Email">NULL</entry>
        <entry name="Question">NULL</entry>
        <entry name="Answer">NULL</entry>
        <entry name="Creation">Sun, 03 Feb 2013 16:38:08 GMT</entry>
    </section>
    <section name="Medusa">
        <entry name="Character">Test22</entry>
        <entry name="Flags">0</entry>
        <entry name="AccLvl">8</entry>
    </section>
</Account>
02/07/2013 23:01 vtroz#67
thank you, by cons if I change the shop.dat a more recent I is not no picture on the subject and I still can not buy
02/08/2013 07:44 thesamuraivega#68
hey bro i have this problem why???
[Only registered and activated users can see links. Click Here To Register...]


and no is working skills and shops how i can fix it?


hey...bro
Quote:
Originally Posted by vtroz View Post
thank you, by cons if I change the shop.dat a more recent I is not no picture on the subject and I still can not buy
[Only registered and activated users can see links. Click Here To Register...]

Database and items fixed... :P
02/08/2013 12:25 vtroz#69
Thank you, now I can buy much more subject than before but still can not buy some as the arrow or other.and impossible to use circle of fire
02/08/2013 20:33 mujake#70
how can the NPC scripts be edited so that they will still work?i edited on the En folder, should both be same?the Fr too? or how?
02/08/2013 21:12 CptSky#71
Quote:
Originally Posted by mujake View Post
how can the NPC scripts be edited so that they will still work?i edited on the En folder, should both be same?the Fr too? or how?
You should remove the multilangual support of the emulator. And just keep one folder, etc. Else, I think that the actual language is defaulted to Fr, whatever language the client is really using.
02/08/2013 21:19 mujake#72
well most of NPC scrips are in french, i've beedn using notepad to edit the text only but the the NPC won't load it's text when i click on it.
02/08/2013 21:29 CptSky#73
Quote:
Originally Posted by mujake View Post
well most of NPC scrips are in french, i've beedn using notepad to edit the text only but the the NPC won't load it's text when i click on it.
Try to edit them in the Fr or En folders. Might no be the "good" one which is used. Also, maybe you could post the NPC for the syntax ? Finally, although there is a command to reload the scripts without restarting the server, are you restarting the server ?
02/08/2013 21:33 mujake#74
well i never messed with the checks or algorithms, only the text, in both folders(En/Fr) i edited, restarted server, rebuild solution,i might be missing something probably, i edited in KCOSS folder only, as the other one seems encrypted.
02/09/2013 14:55 CptSky#75
Quote:
Originally Posted by mujake View Post
well i never messed with the checks or algorithms, only the text, in both folders(En/Fr) i edited, restarted server, rebuild solution,i might be missing something probably, i edited in KCOSS folder only, as the other one seems encrypted.
You must only edit the KCOSS scripts. I designed the INI script in 2009 when I started a custom source on the client 4311. I wanted an external system. Well, when I reworked on another source, I decided to design the KCS format which is a compiled version of the NPC scripts... The INI scripts were too slow to be loaded. The scripts in the KCS folder are generated when the last edit date of the KCOSS script is after the last edit date of the KCS script.

If the NPC doesn't say anything, it's that the syntax is probably invalid.