Post Pacific  

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

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 07.06.2006, 14:18   #1
hel
Архивный участник
 
Join Date: Apr 2006
Posts: 729
Default [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.
hel is offline  
Old 07.06.2006, 15:34   #2
toolpunk
Архивный участник
 
Join Date: May 2005
Posts: 2,033
Default

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
toolpunk is offline  
Old 07.06.2006, 16:06   #3
mantrastic
Архивный участник
 
Join Date: Apr 2006
Posts: 338
Default

nice hel , tnx!
mantrastic is offline  
Old 07.06.2006, 16:22   #4
Majesty
Архивный участник
 
Join Date: Mar 2006
Posts: 22
Default

Then i click "next", nothing happens. Maybe incorrect settings of PHP-engine?
Majesty is offline  
Old 07.06.2006, 16:41   #5
Bruenor
Архивный участник
 
Join Date: Jun 2006
Posts: 14
Default

You need to insert the following text after "include('config.php');" in npcpos.php:
Code:
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 is offline  
Old 07.06.2006, 16:45   #6
Majesty
Архивный участник
 
Join Date: Mar 2006
Posts: 22
Default

Bruenor, thx

This script is useful
Majesty is offline  
Old 07.06.2006, 17:49   #7
xerogen
Архивный участник
 
Join Date: Nov 2005
Posts: 107
Default

Dumb question i know.

How u use this?

You run it from server side or web-server or what?

Thanks
xerogen is offline  
Old 07.06.2006, 18:16   #8
toolpunk
Архивный участник
 
Join Date: May 2005
Posts: 2,033
Default

it's a php script...
so yeah, you need a web server
toolpunk is offline  
Old 07.06.2006, 20:35   #9
xerogen
Архивный участник
 
Join Date: Nov 2005
Posts: 107
Default

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
xerogen is offline  
Old 07.06.2006, 20:50   #10
TheOrder
Архивный участник
 
Join Date: Sep 2005
Posts: 731
Default

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 !!!
TheOrder is offline  
Old 07.06.2006, 21:21   #11
NN4e
Архивный участник
 
Join Date: Feb 2006
Posts: 207
Default

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
NN4e is offline  
Old 07.06.2006, 23:07   #12
nowak2006
Архивный участник
 
Join Date: May 2006
Posts: 53
Default

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 ^^
nowak2006 is offline  
Old 07.06.2006, 23:42   #13
fanatic
Архивный участник
 
Join Date: May 2006
Posts: 28
Default

Nice tool hel , tnx ^^
@Xerogen - download easyphp EASYPHP install and u will have local "web server" , best way i think...
fanatic is offline  
Old 08.06.2006, 00:04   #14
DeKoth
Архивный участник
 
Join Date: Apr 2006
Posts: 236
Default

Quote:
Originally Posted by NN4e
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?
DeKoth is offline  
Old 08.06.2006, 00:30   #15
NN4e
Архивный участник
 
Join Date: Feb 2006
Posts: 207
Default

Quote:
Originally Posted by DeKoth
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
NN4e is offline  
Old 08.06.2006, 01:18   #16
Koner
Архивный участник
 
Join Date: Sep 2005
Posts: 212
Default

OMG! Hel very good tool.

P.S: Some cash
Koner is offline  
Old 08.06.2006, 02:22   #17
hel
Архивный участник
 
Join Date: Apr 2006
Posts: 729
Default

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.

Quote:
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!
hel is offline  
Old 08.06.2006, 02:32   #18
nowak2006
Архивный участник
 
Join Date: May 2006
Posts: 53
Default

The id used by l2j is the same used on npcdata.txt, once they are defined on the cliente. Right?
nowak2006 is offline  
Old 08.06.2006, 02:42   #19
hel
Архивный участник
 
Join Date: Apr 2006
Posts: 729
Default

Ids on unmodified client yes, ids not different, but names on client and l2jdb comletely same...
Correct names by hands.
hel is offline  
Old 08.06.2006, 09:37   #20
NN4e
Архивный участник
 
Join Date: Feb 2006
Posts: 207
Default

Quote:
Originally Posted by hel
With drop maker from db? :P
yep it convert drop, spoil, weapons in hends and skills from db

Quote:
Originally Posted by hel
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 is offline  
Old 08.06.2006, 10:32   #21
hel
Архивный участник
 
Join Date: Apr 2006
Posts: 729
Default

NN4e:
Quote:
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...
hel is offline  
Old 08.06.2006, 12:22   #22
RipperX
Архивный участник
 
Join Date: Dec 2005
Posts: 242
Default

Quote:
[NpcMaker.cpp][723] Parsing NPC Spawn File Failed, at line[3]
Not work :P
RipperX is offline  
Old 08.06.2006, 16:42   #23
Belazor
Архивный участник
 
Join Date: Mar 2006
Posts: 26
Default

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.
Belazor is offline  
Old 08.06.2006, 17:48   #24
katso
Архивный участник
 
Join Date: Mar 2006
Posts: 70
Default

i have this message after step 2 : (Failed to get info from DB).

Help.

Greetings.
katso is offline  
Old 08.06.2006, 18:20   #25
hel
Архивный участник
 
Join Date: Apr 2006
Posts: 729
Default

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
hel 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 15:22.