Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   [SHARE] L2J -> OFF npcpos converter (https://postpacific.loc-online.com/showthread.php?t=4734)

hel 07.06.2006 14:18

[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

Majesty 07.06.2006 16:22

Then i click "next", nothing happens. Maybe incorrect settings of PHP-engine?

Bruenor 07.06.2006 16:41

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.

Majesty 07.06.2006 16:45

Bruenor, thx :)

This script is useful :)

xerogen 07.06.2006 17:49

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 ;)

xerogen 07.06.2006 20:35

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 !!!

NN4e 07.06.2006 21:21

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 ^^

fanatic 07.06.2006 23:42

Nice tool hel , tnx ^^
@Xerogen - download easyphp EASYPHP install and u will have local "web server" , best way i think...

DeKoth 08.06.2006 00:04

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?

NN4e 08.06.2006 00:30

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

Koner 08.06.2006 01:18

OMG! Hel very good tool. ;)

P.S: Some cash ;)

hel 08.06.2006 02:22

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! :)

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?

hel 08.06.2006 02:42

Ids on unmodified client yes, ids not different, but names on client and l2jdb comletely same...
Correct names by hands. ;)

NN4e 08.06.2006 09:37

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)

hel 08.06.2006 10:32

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...

RipperX 08.06.2006 12:22

Quote:

[NpcMaker.cpp][723] Parsing NPC Spawn File Failed, at line[3]
Not work :P

Belazor 08.06.2006 16:42

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.

katso 08.06.2006 17:48

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

Help.

Greetings.

hel 08.06.2006 18:20

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

Sakumi 21.08.2006 00:55

Quote:

Originally Posted by darkwire (Post 65181)
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.

KTPSMF 07.01.2007 16:17

reshare plz ...

Xachump 14.01.2007 04:03

reshared for others pleasse..


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