npcdata.txt maker

Results 1 to 23 of 23
  1. #1
    Newbie Riane is offline
    MemberRank
    Apr 2005 Join Date
    13Posts

    npcdata.txt maker

    ive made a webtool which automatically makes modded npcdata files on user input.
    also ive added one of my ideas of a new rate, the "goods rate", if the goods rate is e.g. x2, all basic materials like varnish can drop x2 of the standard amount.
    that means if a mob usually drops 1 varnish, it can then drop up to 2 varnish at once, more if the rate is higher.
    max drop and spoil % is the maximum of a chance of an itemdrop.
    e.g. something drops 25% in standard, x4 drop rates, the drop rate would be 100% now.
    set the max% to 90 and the rate will be 90% not 100%.

    this script modifies npcdata.txt of your choice, if i forgot to add a file, send it to me, you can also use your very own file with this.

    http://riane.ellusion.com.sg/npcdata.php

    let me know of more ideas to implement

    (ps, mirrored, now on fast connection xD)
    pps: sticky me plz :D

    edit: i think this is the best 1st post ever on this forum huh ;)
    Last edited by Riane; 12-04-05 at 08:08 PM.


  2. #2
    Newbie JustMan is offline
    MemberRank
    Apr 2005 Join Date
    3Posts
    Quote Originally Posted by Riane

    this script modifies npcdata.txt of the meifu server, if there are different x1 files, please send me.
    It would be good to make this script working with Project2 :)
    Here http://www.postpacific.com/forum/viewtopic.php?t=394
    you can find npcdata_x1 for it :)

  3. #3
    Newbie Di3F[dktech] is offline
    MemberRank
    Apr 2005 Join Date
    18Posts
    I cannot understand, I did the same, but probably better, because u cannot achieve the speed in PHP.. Your ideas can be implemented easy too, but someone must do change to the procedure and submit his .ini, which is as easy as in PHP.. I did this, because I am like you, much time spend with PHP :-)..
    Don't be lazy and learn new lang.. ;-)

  4. #4
    Member alter3d is offline
    MemberRank
    Apr 2005 Join Date
    Ontario, CanadaLocation
    60Posts
    Quote Originally Posted by Di3F[dktech]
    I cannot understand, I did the same, but probably better, because u cannot achieve the speed in PHP.. Your ideas can be implemented easy too, but someone must do change to the procedure and submit his .ini, which is as easy as in PHP.. I did this, because I am like you, much time spend with PHP :-)..
    Don't be lazy and learn new lang.. ;-)
    Uh, come again?

    PHP, like Perl, is primarily a text processing language. It is designed and optimized for regular expressions and other text processing functions. Conversely, Python's regular expression handling is kind of clumsy from a coding perspective. I'm not sure how efficient the re module is, but it's likely comparable efficiency wise since regular expression engine optimizations are well known.

    PHP and Python are both interpreted languages, so you're not gaining any performance there.

    BTW, your code won't even run for me. Complains about missing MSVCR71.DLL, which I believe is part of the .NET framework. So your Python code is not only being interpreted once (Python->Python interpreter), it's also being interpreted at the .NET level. And you're bitching at someone else about being inefficient?

    I fail to see how Python is any more suited to this task. Sounds like you're just a Python evangelist bashing something simply because it's not written in Python. Don't get me wrong, Python is a nice language, but you're picking a useless battle since it's quite easy to show that Perl would be more efficient than Python for this task, both in terms of performance and simplicity of code.

    Kudos Riane, handy tool for everyone here.

  5. #5
    Elite Member Sakumi is offline
    Member +Rank
    Apr 2005 Join Date
    OtherLocation
    171Posts
    Python is far far far from effieciant lol.


    I believe your php web application is brilliant :D I'm a PHPer as well =)


    Would you post it for download, so I can mirror it on a faster server for these kind ragezone peeps?


    :3dflagsdo Jah Mon!

  6. #6
    Newbie Riane is offline
    MemberRank
    Apr 2005 Join Date
    13Posts
    im gunna mirror it later, gonna offer some x1 files in a dropdown
    (when i find some^^)
    oh and di3f: mine is better, you dont have my new rate do ya?
    also this is way fast, just visit the site, drop your rates and, save file as unicode and youre done
    also im thinking about different rates for dungeon mobs

    atm implementing using a file from your machine
    looked into projectC2 files, wtf is that?
    the itemdroplist, why did they change it oO

    ok, should work with every npcdata version now (you can use your own), i tested it with projectC2 and meifu, hope others work too.
    now i just wanna know what this
    additional_make_multi_list={{{{[adena];7;10;100****;70**;
    means (not affected by my script but still curiosity), and i'll release the new version to public
    Last edited by Riane; 12-04-05 at 07:12 PM.

  7. #7
    Elite Member Sakumi is offline
    Member +Rank
    Apr 2005 Join Date
    OtherLocation
    171Posts
    i believe the 70, is the 70% chance of adena drop :)

  8. #8
    Newbie Riane is offline
    MemberRank
    Apr 2005 Join Date
    13Posts
    nope thats the 100 in that example -.-

    btw added sina, prejectC2 beta2 and 3, atm downloading taiwanese server to get a hold of the npcdata file >_>
    version 1.1 up and running
    Last edited by Riane; 12-04-05 at 07:55 PM.

  9. #9
    Newbie FashisTT is offline
    MemberRank
    Apr 2005 Join Date
    5Posts
    But what do twinning the weapon beside smiths in PrejectC2 Beta3????

  10. #10
    Newbie Riane is offline
    MemberRank
    Apr 2005 Join Date
    13Posts
    wha ?

  11. #11
    Newbie FashisTT is offline
    MemberRank
    Apr 2005 Join Date
    5Posts
    How fix the duals in PrejectC2 Beta3????

  12. #12
    Member luizj is offline
    MemberRank
    May 2004 Join Date
    muLocation
    79Posts
    the project c2 beta 3 have much lexer error....

  13. #13
    Newbie Riane is offline
    MemberRank
    Apr 2005 Join Date
    13Posts
    this thread isnt about the files themselves and how to fix them >_>
    its just a script that changes the file's rates, i didnt make the files <_<

    soo um plz cmon

  14. #14
    Member luizj is offline
    MemberRank
    May 2004 Join Date
    muLocation
    79Posts

    plz fix

    error:
    Attached Thumbnails Attached Thumbnails 00000001.gif  

  15. #15
    Newbie JustMan is offline
    MemberRank
    Apr 2005 Join Date
    3Posts
    Quote Originally Posted by FashisTT
    How fix the duals in PrejectC2 Beta3????
    Good luck :)

    http://www.postpacific.com/forum/vie...hp?p=2072#2072

  16. #16
    Newbie Riane is offline
    MemberRank
    Apr 2005 Join Date
    13Posts
    Quote Originally Posted by luizj
    error:
    oh yeah thx for reminding me lol forgot to delete the \n's at the end of the rows again (better to overview while coding)
    also fixed some other bugs, it should work kinda perfect now :smilie3:

  17. #17
    Newbie Di3F[dktech] is offline
    MemberRank
    Apr 2005 Join Date
    18Posts
    MSVCR71.DLL is MicroSoft Visual C Runtime 7.1, if you google that file, first link give you download, but...
    http://www.dll-files.com/dllindex/dl....shtml?msvcr71
    And no, it is not a part of .NET, it has nothing with .NET Framework, you don't need it.. Python24.dll is probably compiled with MSVC7.1 compiler, so it needs new Runtime, like many others "newly" builded applications..
    Customizable Python code in the loop is compiled before it is executed, it is not the same way like eval in PHP, I did some research with this..

    PHP is something different then Perl, Python is much like Perl.. "PHP, like Perl, is primarily a text processing language"
    Since Python 2.4 regular expressions get many improvements and only limits are at 100 parse result groups, speed should be like any other re library..
    Visit re homepage..
    WiKi page about PythonSpeed.

    If you are so ... that you don't know how to download one library file, I can make image about you too..

    I think Perl should be same way powerfull, but it cannot achieve nice clean style of code readability.. And yes, it is simple to do application in python ;)

    I hope noone DOS him ;)
    Quote Originally Posted by alter3d
    Uh, come again?

    PHP, like Perl, is primarily a text processing language. It is designed and optimized for regular expressions and other text processing functions. Conversely, Python's regular expression handling is kind of clumsy from a coding perspective. I'm not sure how efficient the re module is, but it's likely comparable efficiency wise since regular expression engine optimizations are well known.

    PHP and Python are both interpreted languages, so you're not gaining any performance there.

    BTW, your code won't even run for me. Complains about missing MSVCR71.DLL, which I believe is part of the .NET framework. So your Python code is not only being interpreted once (Python->Python interpreter), it's also being interpreted at the .NET level. And you're bitching at someone else about being inefficient?

    I fail to see how Python is any more suited to this task. Sounds like you're just a Python evangelist bashing something simply because it's not written in Python. Don't get me wrong, Python is a nice language, but you're picking a useless battle since it's quite easy to show that Perl would be more efficient than Python for this task, both in terms of performance and simplicity of code.

    Kudos Riane, handy tool for everyone here.

  18. #18
    Member alter3d is offline
    MemberRank
    Apr 2005 Join Date
    Ontario, CanadaLocation
    60Posts
    Quote Originally Posted by Di3F[dktech]
    If you are so ... that you don't know how to download one library file, I can make image about you too..
    It's not that I don't know how, it's that I can't be bothered. Yay, more Microsoft crap cluttering my system. No thanks.

    Quote Originally Posted by Di3F[dktech]
    I think Perl should be same way powerfull, but it cannot achieve nice clean style of code readability.. And yes, it is simple to do application in python ;)
    Let's see... in Python:
    Code:
    import re
    someString = "The cat chased after the the ball."
    someString = re.compile(r'(\b\w+)\s+\1').sub(r'\1', someString)
    print someString
    In Perl:
    Code:
    $someString = "The cat chased after the the ball.";
    $someString =~ s/(\b\w+)\s+\1/\1/g;
    print $someString;
    The concept of making "regular expression objects" really bothers me. Granted, it fits in with the OO paradigm, but it's very unnatural from a text processing perspective. If your script is doing nothing but text processing, why use a language for which text processing functions were an afterthought? (Perl-compatible RE's were only added in Python 1.5, previously the 'regex' module provided emacs-style RE's which are much less efficient).

    Quote Originally Posted by Di3F[dktech]
    I hope noone DOS him ;)
    Which is why I would have written in in Perl, so that it's easy to run locally. OTOH, a nice web interface is accessible to anyone with a web browser with no need to install any additional software or libraries.

  19. #19
    Newbie Di3F[dktech] is offline
    MemberRank
    Apr 2005 Join Date
    18Posts
    My util is not based to be only npcdata.txt parser/replacer, your util is build to be as simple as it can be for noobs and lazy guys, like you wrote ;]..
    I tried to download, but my connection is not able to download it at 30s..
    I can make plugin to it to be used like your PHP script, create HTTP server is not difficult with perl/python and you can change data in your app, live.. It can be nice practice, on another way I have my plans which have better priority and meet my needs..

    I think arrows should be dropped with default rate at better count, adena's can have default drop rate to save a little gameplay with lower count of millionars and so on..
    Quote Originally Posted by Riane
    mine is better, you dont have my new rate do ya?
    also this is way fast, just visit the site, drop your rates and, save file as unicode and youre done
    also im thinking about different rates for dungeon mobs
    Quote Originally Posted by alter3d
    It's not that I don't know how, it's that I can't be bothered. Yay, more Microsoft crap cluttering my system. No thanks.
    Again, it is standard library since many new applications build with this MS standard compiler use it. i.e. Lineage 2 client using MSVCR70.dll.. But it is my fault, that I forget to inform peoples about this. You are true.
    Quote Originally Posted by alter3d
    Let's see... in Python:
    Code:
    import re
    someString = "The cat chased after the the ball."
    someString = re.compile(r'(\b\w+)\s+\1').sub(r'\1', someString)
    print someString
    In Perl:
    Code:
    $someString = "The cat chased after the the ball.";
    $someString =~ s/(\b\w+)\s+\1/\1/g;
    print $someString;
    The concept of making "regular expression objects" really bothers me. Granted, it fits in with the OO paradigm, but it's very unnatural from a text processing perspective. If your script is doing nothing but text processing, why use a language for which text processing functions were an afterthought? (Perl-compatible RE's were only added in Python 1.5, previously the 'regex' module provided emacs-style RE's which are much less efficient).
    Just.. re.sub(r'(\b\w+)\s+\1',r'\1', someString), but this is not good example since my app primary parse and as addition it can change data.. sub is not working for me, my implement of idea is maybe worse, try to download that MS crappy dll and test it..

    From now, pls use PM, I like to discuss with you and I don't want to be much offtopic, like others.

  20. #20
    Elite Member Sakumi is offline
    Member +Rank
    Apr 2005 Join Date
    OtherLocation
    171Posts
    This is an interesting discussion ><

  21. #21
    Newbie Riane is offline
    MemberRank
    Apr 2005 Join Date
    13Posts
    i dont think so...
    he wants me to use another programming language for something i already made.
    thats just dump, sorry but it really is.
    this web app is just to mass edit the npcdata files nothing more, if you want to edit specific lines use the txt or something like your app.
    and for performance... do you notice the time for the script to change the stuff? i guess not, so, who cares?
    also like stated before, ppl dont need to d/l an app (risking malware), its just input and you get the final file, easy and fast
    well k i guess ure gonna reply to this... no need since you wont change anything with it, im like hell not gonna rewrite it, and im not learning python just because you tell me to

  22. #22
    Elite Member Sakumi is offline
    Member +Rank
    Apr 2005 Join Date
    OtherLocation
    171Posts
    I like PHP :D

    Python basicly: sucks.

  23. #23
    Newbie FashisTT is offline
    MemberRank
    Apr 2005 Join Date
    5Posts
    How fix duals in the smithy?



Advertisement