View Full Version : [SHARE] L2J -> OFF npcpos converter
This is my first work in php.
And I'll thanked all critics.
All comments will be good. :P
This is a script for creating npcpos from l2j database.
Don't forget to convert npcpos.txt from ASCII to Unicode.
toolpunk
07.06.2006, 15:34
didn't test it yet 'cause i don't have l2j installed atm...
but it seems to be a very nice share and will save us a lot of time :D
mantrastic
07.06.2006, 16:06
nice hel , tnx! :o
Then i click "next", nothing happens. Maybe incorrect settings of PHP-engine?
You need to insert the following text after "include('config.php');" in npcpos.php:
if(isset($HTTP_GET_VARS['step']))
$step = intval($HTTP_GET_VARS['step']);
else
$step = 0;
if(isset($HTTP_GET_VARS['page']))
$page = intval($HTTP_GET_VARS['page']);
else
$page = 1;
Also, you should make sure your permissions are set such that the directory is writable by your web server.
Bruenor, thx :)
This script is useful :)
Dumb question i know.
How u use this?
You run it from server side or web-server or what? :o
Thanks
toolpunk
07.06.2006, 18:16
it's a php script...
so yeah, you need a web server ;)
There seems to be alot of bugs with it dunno if its just us ;o. did abit of re-writing it also seems to duplicate alot of mobs because of territory names
Nice tho, be cool if u could flush out bugs
TheOrder
07.06.2006, 20:50
Xero , your sig is cool but can you resize it please . It's huge :)
I had once a sig like that :) to :)
Sorry for the offtopic
Hel i didn't test your tool , but i will soon , tnx for the share !!!
Didn't test this tool, just look at code, as i understand it takes npc name frome l2jdb - i fing its not good idea. More better to take it directly from npcdata.txt so npcpos will be full compateble this npcdata.
Anyway I have my own tool, writen on delphi
nowak2006
07.06.2006, 23:07
nice share =x
i like the suggestion of nn4e... lets make a simple tool that given a npc id, search on l2j database npcpos and then search for correct name on npcdata.txt.
thx ^^
Nice tool hel , tnx ^^
@Xerogen - download easyphp EASYPHP (http://www.easyphp.org/telechargements.php3) install and u will have local "web server" , best way i think...
Didn't test this tool, just look at code, as i understand it takes npc name frome l2jdb - i fing its not good idea. More better to take it directly from npcdata.txt so npcpos will be full compateble this npcdata.
Anyway I have my own tool, writen on delphi
So if your own tool is superior why not share it?
So if your own tool is superior why not share it?
coz its not so difficult to make it yourself, need just basic knowledge in programming.
and its not so superior -its works slow and work olny this text extract by DBManagerPro
PS If somebody need this tool i can exchege it for somefing interesting ;)
I olso have l2j->npcdata convertor
OMG! Hel very good tool. ;)
P.S: Some cash ;)
NN4e:
How I can make a tool for different l2jnpc ids and npcdata ids?
I make this tool not for complete npcpos.txt, just for helping to make it.
Do you think so?
(Just rename npc and use it on your own server)
Anybody tested my tool? May anybody help to optimizate my tool script? :)
Remember. This is my first work with php.
I olso have l2j->npcdata convertor
With drop maker from db? :P
This is my new idea to convert drops from database, and save a lot of time.
If you have npcdata with drops converter from db - share it. :)
This is will be good for many peoples.
Koner:
Wow, thanks dude! :)
nowak2006
08.06.2006, 02:32
The id used by l2j is the same used on npcdata.txt, once they are defined on the cliente. Right?
Ids on unmodified client yes, ids not different, but names on client and l2jdb comletely same...
Correct names by hands. ;)
With drop maker from db? :P
yep it convert drop, spoil, weapons in hends and skills from db
If you have npcdata with drops converter from db - share it.
I would not share it for all lichers, I wonna exchenge ( for example for C4 npc or somefing else)
NN4e:
I would not share it for all lichers
Then share it to me (if you may, share with source). ;)
Just upload on any hoster, ex. rapidshare.de and send me a link...
I'll create my own tool for any, who wants. (for getting back community from toilet to move forward) :)
Anyway thanks...
[NpcMaker.cpp][723] Parsing NPC Spawn File Failed, at line[3]
Not work :P
Concept is interesting but realisation I fear is impossible.
Not only is it impossible to distinguish between siege NPCs (which need specific x/y/z coords), but there's a bunch of parameters for the various functions that isn't figurable on its own.
Maybe with a heavily modified l2j db, but that's far too much hassle.
i have this message after step 2 : (Failed to get info from DB).
Help.
Greetings.
katso:
Check config.php or install sql scripts into database.
RipperX:
LOL. I have found many bugs in scripts, I now optimize code and fix bugs.
Fix to major bug (duping 25000 position):
Change LIMIT 25000,-1 to LIMIT 25001,-1.
Patch coming soon... :P
darkwire
19.08.2006, 04:02
it works :) but i'm afraid to lose normal npc from La2Off, so, today, i'm going to merge to npcpos.txt ;] to ignore already exists NPC from La2Off
it works :) but i'm afraid to lose normal npc from La2Off, so, today, i'm going to merge to npcpos.txt ;] to ignore already exists NPC from La2Off
Off topic...
Its L2 off, not LA, it not Lin Age, its Lineage, you know.....
lineage, noun.
1.
a. Direct descent from a particular ancestor; ancestry.
b. Derivation.
2.
a.The descendants of a common ancestor considered to be the founder of the line.
reshared for others pleasse..