Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Lineage 2 Server Modifications ONLY! (https://postpacific.mmorpg-game.online/forumdisplay.php?f=28)
-   -   npcdata.txt maker (https://postpacific.mmorpg-game.online/showthread.php?t=378)

Riane 12.04.2005 19:08

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
edit: fixed sina type files

Graveheart 12.04.2005 19:18

Well if you could make a program that could help edit the new mobs stats and drops in a faster way than going over the actuall txt,it would really help.

Riane 12.04.2005 19:23

well i dont know exactly what you mean by this heh >_>

if you add a new mob to your npcdata file, you have to edit all rates for yourself anyways, if you wanna change your whole modded file just select it (last in dropdown)
if youre going to use it more than once or twice, upload it to a webserver and put the url (with http://) in the file box, that should work too.

Digital 12.04.2005 20:15

hmm...too bad i'm in the mist of rushing my memory management assignment...
else i maybe able to come out with a tool for ya grave

probably one that select one row, then a selection list of drops then it'll ask for the drop rates for each... yeah something like that would be good eh?

well.. editing npcdata isnt my forte... and i'm almost done with skilldata, and someone is gonna help me with itemdata.. but ai's a sure killer tho...
and still learning how to use ai scripts :S

Riane 12.04.2005 21:02

ai scripts are the crack for me lol

im actually reading the script when im bored, its really interesting^^

well changing a single row in the npcdata is easy as pie so ... :x

justman 12.04.2005 21:11

Riane sorry but i found bug for the rate :)

npcdata.txt ( my file from post "npcdata.txt all x1")

additional_make_multi_list={{{{[adena];7;10;100}};70};{{{[apprentice's_shoes];1;1;xx.xx31};{[cloth_shoes];1;1;xx.xx9};{[leather_sandals];1;1;xx.xx9};{[short_gloves];1;1;xx.xx89}};[highlight=red:f864bc8457]xx.xx92}[/highlight:f864bc8457];{{{[stem];1;1;75};{[suede];1;1;25}};1.3062}}

npcdata_exp1_sp1_adena1_drop2_re1.txt (only drop x2 with NpcdataControlEn.exe)

additional_make_multi_list={{{{[adena];7;10;100}};70};{{{[apprentice's_shoes];1;1;xx.xx31};{[cloth_shoes];1;1;xx.xx9};{[leather_sandals];1;1;xx.xx9};{[short_gloves];1;1;xx.xx89}};[highlight=red:f864bc8457]xx.xx84}[/highlight:f864bc8457];{{{[stem];1;1;75};{[suede];1;1;25}};2.6124}}

npcdata_x2.txt (all x2 with web tool)

additional_make_multi_list={{{{[adena];14;20;100}};70};{{{[apprentice's_shoes];1;1;xx.xx31};{[cloth_shoes];1;1;xx.xx9};{[leather_sandals];1;1;xx.xx9};{[short_gloves];1;1;xx.xx89}};[highlight=red:f864bc8457]xx.xx92}[/highlight:f864bc8457];{{{[stem];1;2;3.9799};{[suede];1;2;25}};1.3062}}



btw Riane nice web tool :)

Riane 12.04.2005 21:28

that is not a bug its like that in the initial files, see
https://postpacific.mmorpg-game.onli...hp?p=2531#2531

Riane 12.04.2005 21:28

---err edit, mom

Riane 12.04.2005 21:34

Quote:

Originally Posted by justman
Riane sorry but i found bug for the rate :)

npcdata.txt ( my file from post "npcdata.txt all x1")

additional_make_multi_list={{{{[adena];7;10;100}};70};{{{[apprentice's_shoes];1;1;xx.xx31};{[cloth_shoes];1;1;xx.xx9};{[leather_sandals];1;1;xx.xx9};{[short_gloves];1;1;xx.xx89}};[highlight=red:486841aee0]xx.xx92}[/highlight:486841aee0];{{{[stem];1;1;75};{[suede];1;1;25}};1.3062}}

npcdata_exp1_sp1_adena1_drop2_re1.txt (only drop x2 with NpcdataControlEn.exe)

additional_make_multi_list={{{{[adena];7;10;100}};70};{{{[apprentice's_shoes];1;1;xx.xx31};{[cloth_shoes];1;1;xx.xx9};{[leather_sandals];1;1;xx.xx9};{[short_gloves];1;1;xx.xx89}};[highlight=red:486841aee0]xx.xx84}[/highlight:486841aee0];{{{[stem];1;1;75};{[suede];1;1;25}};2.6124}}

npcdata_x2.txt (all x2 with web tool)

additional_make_multi_list={{{{[adena];14;20;100}};70};{{{[apprentice's_shoes];1;1;xx.xx31};{[cloth_shoes];1;1;xx.xx9};{[leather_sandals];1;1;xx.xx9};{[short_gloves];1;1;xx.xx89}};[highlight=red:486841aee0]xx.xx92}[/highlight:486841aee0];{{{[stem];1;2;3.9799};{[suede];1;2;25}};1.3062}}



btw Riane nice web tool :)

alrite, whats red just means that in Sina server the rates are your red value, which doesnt even exist in meifu (which i used to make the script)
but what really bugs me is this:
};{{{[stem];1;1;75};{[
};{{{[stem];1;1;75};{[
};{{{[stem];1;2;3.9799};{[ with mine, wtf? droprate initial 75 and with x2 with my webtool its 3.9?
i will look into this... -.-

justman 12.04.2005 21:47

Ok i will try to help you :)
see this:

{{{[stem];1;1;75};{[suede];1;1;25}};1.3062}}

1. 1.3062 % is a chance to drop this two ithems general (drop rate)

2. 75 % is a chance to drop stem and 25% to drop suede but this chance is only for which of two ithems will be drop

3. this 1;1 is min and max , if 1;2 can drop max 2 and min 1

Sorry but i have bad english :)

Riane 12.04.2005 22:24

i still dont know why the stem drop rate goes from 75 to 3.9something, tho i dont change that value anywhere in my new script, the error still is there.
ive rewritten the drop part for sina servers, and that number isnt affected at all o.O (and yes my x1 file is correctly 75)

... still working on it, i hate debugging the most of all >_>

flakka 12.04.2005 22:29

Very nice job, Riane! :D

This will come in very handy indeed! Let us know when you update it. I'm gonna keep a close eye on this one. ;)

justman 12.04.2005 22:37

Good luck Riane :) I belive you will fix this very nice tool :)

Riane 12.04.2005 23:04

phew!!!
finally done, everything should work now for sina as for meifu type files, also fixed the bug i posted above with the stem ;)
omg if i'd smoke this would be the perfect moment for one o.O

flakka 12.04.2005 23:42

Sweet! :D

Gonna go fiddle around with it some more. Thanks again for the quick fix! ;)

You can smoke mine - I smoke far too much, lol. But then again, I wouldn't want to be the one to start you on this nasty habit, haha. :lol:

Riane 13.04.2005 00:02

tell me if it works k?
(dont have a working server yet, cant test them)

flakka 13.04.2005 00:06

Will do! :D

Also, you might to let them know to upload their txt file in ANSI if they plan on using their own. I noticed that the first time I used one of the ones from the dropdown menu. I don't think you'd want them to upload a UNICODE file - 8 megs will kill your bandwidth, hehe. Maybe you can do a script to check if they are? Just a suggestion. :)

vaskes 13.04.2005 00:06

hmmm can we see source? (hope im asking not too much)

flakka 13.04.2005 01:26

Works great so far! :D

I'm just trying different rates to see if I can mess up my server, lol. :P

vaskes 13.04.2005 01:56

works improperly set rates to 1x1x1x1
got:
corpse_make_list={{[magic_ring];1;1;1};{[stem];1;1;1}}
must be:
corpse_make_list={{[magic_ring];1;1;xx.xx03};{[stem];1;1;3.9799}}

got
additional_make_multi_list={{{{[adena];7;10;100}};1};{{{[apprentice's_shoes];1;1;xx.xx31};{[cloth_shoes];1;1;xx.xx9};{[leather_sandals];1;1;xx.xx9};{[short_gloves];1;1;xx.xx89}};1};{{{[stem];1;1;75};{[suede];1;1;25}};1}}
must be
additional_make_multi_list={{{{[adena];7;10;100}};70};{{{[apprentice's_shoes];1;1;xx.xx31};{[cloth_shoes];1;1;xx.xx9};{[leather_sandals];1;1;xx.xx9};{[short_gloves];1;1;xx.xx89}};xx.xx92};{{{[stem];1;1;75};{[suede];1;1;25}};1.3062}}

Riane 13.04.2005 11:19

youve set max % to 1, so it doesnt raise over 1 >_>
(maybe try a little harder and read the text behind the inputs next time k?)

also ive set all the rates to standard on page load...

fixed the upload and sina file, but i dont think theres a way to determinate whether its unicode or ansi before uploading it,
anyways PHP doesnt work with unicode (AFAIK) so there will be a plain error filled npcdata.txt...
so save as ansi :P

and btw: gonna make standard and "advanced" settings, heh, stay tuned

flakka 15.04.2005 03:00

Script is messed up. :(

Can't upload a file or use the SINA script from the pull down menu.

Here's the result I get in my text file.



Warning: copy(npcdata.temp.txt): failed to open stream: Permission denied in /home/riane/domains/riane.ellusion.com.sg/public_html/npcdata.php on line 9



Warning: fopen(npcdata.temp.txt): failed to open stream: No such file or directory in /home/riane/domains/riane.ellusion.com.sg/public_html/npcdata.php on line 13



Warning: fread(): supplied argument is not a valid stream resource in /home/riane/domains/riane.ellusion.com.sg/public_html/npcdata.php on line 14



Warning: fclose(): supplied argument is not a valid stream resource in /home/riane/domains/riane.ellusion.com.sg/public_html/npcdata.php on line 15

Riane 15.04.2005 12:40

hmm it did work on my machine, damn linux, gotta set chmod after uploading >_>
one moment and it will surely work

Riane 15.04.2005 12:55

added in chmod, its being upped and opened now, but somehow i dont know why a blank file returns oO, and for sina, i forgot to upload the sina x1 file oO


sorry for the many bugs, im a little ashamed >_>

Riane 15.04.2005 21:50

umm yea lol it worked i was just stupid and tryed a unicode file, ansi works fine, unicode returns empty file.
anyone knows how to open unicode files with php?


All times are GMT. The time now is 21:40.