Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 12.04.2005, 19:08   #1
Riane
Архивный участник
 
Join Date: Apr 2005
Posts: 196
Default 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
Riane is offline  
Old 12.04.2005, 19:18   #2
Graveheart
Архивный участник
 
Join Date: Apr 2005
Posts: 8
Default

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.
Graveheart is offline  
Old 12.04.2005, 19:23   #3
Riane
Архивный участник
 
Join Date: Apr 2005
Posts: 196
Default

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.
Riane is offline  
Old 12.04.2005, 20:15   #4
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default

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
Digital is offline  
Old 12.04.2005, 21:02   #5
Riane
Архивный участник
 
Join Date: Apr 2005
Posts: 196
Default

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
Riane is offline  
Old 12.04.2005, 21:11   #6
justman
Архивный участник
 
Join Date: Apr 2005
Posts: 10
Default

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
justman is offline  
Old 12.04.2005, 21:28   #7
Riane
Архивный участник
 
Join Date: Apr 2005
Posts: 196
Default

that is not a bug its like that in the initial files, see
https://postpacific.loc-online.com/f...hp?p=2531#2531
Riane is offline  
Old 12.04.2005, 21:28   #8
Riane
Архивный участник
 
Join Date: Apr 2005
Posts: 196
Default

---err edit, mom
Riane is offline  
Old 12.04.2005, 21:34   #9
Riane
Архивный участник
 
Join Date: Apr 2005
Posts: 196
Default

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... -.-
Riane is offline  
Old 12.04.2005, 21:47   #10
justman
Архивный участник
 
Join Date: Apr 2005
Posts: 10
Default

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
justman is offline  
Old 12.04.2005, 22:24   #11
Riane
Архивный участник
 
Join Date: Apr 2005
Posts: 196
Default

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 >_>
Riane is offline  
Old 12.04.2005, 22:29   #12
flakka
Архивный участник
 
Join Date: Mar 2005
Posts: 1,143
Default

Very nice job, Riane!

This will come in very handy indeed! Let us know when you update it. I'm gonna keep a close eye on this one.
flakka is offline  
Old 12.04.2005, 22:37   #13
justman
Архивный участник
 
Join Date: Apr 2005
Posts: 10
Default

Good luck Riane I belive you will fix this very nice tool
justman is offline  
Old 12.04.2005, 23:04   #14
Riane
Архивный участник
 
Join Date: Apr 2005
Posts: 196
Default

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
Riane is offline  
Old 12.04.2005, 23:42   #15
flakka
Архивный участник
 
Join Date: Mar 2005
Posts: 1,143
Default

Sweet!

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:
flakka is offline  
Old 13.04.2005, 00:02   #16
Riane
Архивный участник
 
Join Date: Apr 2005
Posts: 196
Default

tell me if it works k?
(dont have a working server yet, cant test them)
Riane is offline  
Old 13.04.2005, 00:06   #17
flakka
Архивный участник
 
Join Date: Mar 2005
Posts: 1,143
Default

Will do!

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.
flakka is offline  
Old 13.04.2005, 00:06   #18
vaskes
Архивный участник
 
Join Date: Feb 2005
Posts: 156
Default

hmmm can we see source? (hope im asking not too much)
vaskes is offline  
Old 13.04.2005, 01:26   #19
flakka
Архивный участник
 
Join Date: Mar 2005
Posts: 1,143
Default

Works great so far!

I'm just trying different rates to see if I can mess up my server, lol. :P
flakka is offline  
Old 13.04.2005, 01:56   #20
vaskes
Архивный участник
 
Join Date: Feb 2005
Posts: 156
Default

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}}
vaskes is offline  
Old 13.04.2005, 11:19   #21
Riane
Архивный участник
 
Join Date: Apr 2005
Posts: 196
Default

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
Riane is offline  
Old 15.04.2005, 03:00   #22
flakka
Архивный участник
 
Join Date: Mar 2005
Posts: 1,143
Default

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
flakka is offline  
Old 15.04.2005, 12:40   #23
Riane
Архивный участник
 
Join Date: Apr 2005
Posts: 196
Default

hmm it did work on my machine, damn linux, gotta set chmod after uploading >_>
one moment and it will surely work
Riane is offline  
Old 15.04.2005, 12:55   #24
Riane
Архивный участник
 
Join Date: Apr 2005
Posts: 196
Default

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 is offline  
Old 15.04.2005, 21:50   #25
Riane
Архивный участник
 
Join Date: Apr 2005
Posts: 196
Default

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?
Riane is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 16:48.