![]() |
l2joff npcpos converter again :)
that's l2joff converting tool.
0.1a - first release. 0.1b - respawn time fixed. 0.2a - a bit optimized code, integrated castle guards converter (if there is a bug - post bugreport, i'll fix it), name="" mistake fixed. 0.2b - castle guards pos generating fix, $row["reuse_delay"] mistake fixed 0.2b2 - castle guards now isn't _ex_ npcs, but regular npcs is _ex_. 0.5a - now all territories looks like a square (8 points); warriors, raid bosses,mimic,treasures have pos=anywhere, but citizen's, guards, traders, etc have static coordinates; script from now will get npcnames from npclist (which has c4 npcs and some of c5), if some id not found in npclist, then script will take it from l2jdb and give them static coordinates and display a warning in browser;some optimizes (converting now take less than 5 seconds). 0.5a2 - minor bug fixed (with territory and npcmaker names on regular npcs). i think that latest l2j database is here: http://www.l2jdp.com/svn/ i've rewrite my old one from null, and it looks more better. :P i was written this script to up exp in php, but i don't have time to check script or result for errors and mistakes. this script not for sell, but you can freely modify and share it. hints, reports and help will help me fix scripts and better understand php. small piece of generated npcpos :) : Quote:
l2joff_npcpos_rebirth_0.5a2.rar — 40454 байт |
nice
btw. you dont have to write sec/min/hour after respawn= ? |
fixed....... maybe (not tested well). :)
|
ill try to redo the castle thing like you did with the npcpos if you will not be faster than me
|
Code:
npcmaker_ex_begin [schuttgart_broadcast_2213_001] name="schuttgart_broadcast" ai=[default_maker] maximum_npc=1the name should/must be in [ ] |
line 114 from npcpos_class.php
Incorrect one: Code:
$res[0]."]\tname=\"".$res[0]."\"\tai=[default_maker]\tmaximum_npc=".$maximum_npc[0]."\r\n");Code:
res[0]."]\tname=[".$res[0]."]\tai=[default_maker]\tmaximum_npc=".$maximum_npc[0]."\r\n"); |
check 1st post, new version posted. :)
|
wow hel nice, i tested very thx ^^
Big post |
very good work man, thanks ^^
|
Good idea. It's my old wish :)
But, two questions: - where can get l2j pos file? - why need use 'npcmaker_ex_begin' but not simple 'npcmaker_begin' ? |
Good job hel :) It's a very nice base to work on NPC positions.
|
row 62
change: Code:
."\t".$row["heading"]."\t".$this->respawn_time($row["respawn_delay"]);Code:
."\t".$row["heading"]."\t".$this->respawn_time($row["respawnDelay"]);after some test i found out your castle guard spawn converter's output is a bit wrong. it must look like this: Code:
territory_begin [gludio_siege01] {{-18511;113052;-2791;62945};{-18170;113055;-2791;62945};{-18176;113273;-2791;62945};{-18511;113273;-2791;62945}} territory_end |
a snippet from Phantom2005's code that i modified:
Code:
$castle_list=array(1=>"gludio",2=>"dion",3=>"giran",4=>"oren",5=>"aden",6=>"innadril",7=>"goddard",8=>"rune",9=>"schuttgart"); |
Quote:
http://www.l2jdp.com/svn/ - i think new versions of databases is here. :) 2. don't know, how to see difference in npcmaker_ and npcmaker_ex_ in l2j database, so i use _ex_ one. :/ Quote:
Quote:
|
as i see you have to use npcmaker_ex for all "regular npc / mob" and normal npc_maker for castle / agit siege stuff
|
check first post, new version posted. :)
|
if i don't recieve bugreports or ideas about npcpos converter this day, i'll end project and 0.2b2 will be "full unbuggy" and "full functional" end release. (in version 0.2b2 i was fixed all reported problems)
it will be more good, if i get txt file with only "npc_name;id" from npcdata (c5), then i will do getting right npcnames (for c4 (c5) off npcdata, npcpos) by id. |
Ok, time to post here my 2 cents.
This is indeed a great base to work from. However, the thing i've understood from weeks of analyzing c4 retail npcpos, then now comparing them to your npcpos is that: 1. Your npcpos tells every mob to spawn pos based. As in each mob will spawn on pos={x,y,z,direction} based. That's processor intensive, l2npc works more imo, and players when playing will be knowing exactly where the mob is spawning. That's the problem with l2j i do not like as well ;) 2. Retail npcpos for most npcmaker_ex poses, they uses pos = anywhere. So within the terriotory defined for that npcmaker_ex the mobs asked to spawn ( maximum npc ) and the mobs specified will spawn ALWAYS randomly, meaning player doesn't know at what spot the mob might spawn next. It might be exactly where the mob spawned a bit ago or it might be a place far from it's previous spawn point. Which is how L2OFF poses are. 3. About territory: This problem exists in ALL npcpos makers i've seen, none are perfect. Analyzing retail npcpos i understood that territories are built by a pentagon / rectangle / square and so on base. Every npcpos maker ive seen uses rectangle / square based system for territories. ( HF, this is a idea for you too! maybe you can make option to choose how to make npcpos in ur tool, pentagon based / square based / etc based ..to know what i mean by pentagon and etc.. read down) If you don't understand what that means.. let me give u an example..from l2wh pospic. http://img523.imageshack.us/img523/1...ato1ry2.th.png ok u see that's a pic from simple stakato nest pos from l2wh. its a 5 sided thing pentagon or w/e. How that works? look at this code below: Code:
territory_begin [rune08_2215_58] {{95339;-87076;-2894;-2394};{95800;-86680;-2894;-2394};{95849;-85825;-2894;-2394};{95570;-85670;-2894;-2394};{95138;-85662;-2894;-2394};{94783;-86082;-2894;-2394};{95061;-87010;-2894;-2394}} territory_end AND! look at {{95339;-87076;-2894;-2394};{95800;-86680;-2894;-2394};{95849;-85825;-2894;-2394};{95570;-85670;-2894;-2394};{95138;-85662;-2894;-2394};{94783;-86082;-2894;-2394};{95061;-87010;-2894;-2394}} 7 SIDES!! so, what we have to do to achieve more 'retail like' pos is to get a base from ur files, and do them all as retail by going to the places and making squares / pentagons / rectangles as necessary seen from l2wh and put pos = anywhere! Do you understand what i mean by this pos? im not criticizing ur work hel, but im sayign to all that, we DONOT need pos = {x,y,z;direction} for ALL npcs in L2.. what we need is the castles / towns / other citizen pos = {x,y,z;direction} only! so We should concentrate on fixing that only and put max npc = some number and pos = anywhere for all rest territories for npcpos. Saves time & more retail like & less load on l2npc server imo. Only there will be a few exceptions.. like raidbosses maybe or some special mobs.. I hope my post was helpfull to u, ur this work is truely nice ^^ And ignore my typos =p |
Another thing, a bug report.
Code:
territory_begin [giran04_npc2421_0358427] {{154745;121047;-3807;-3707};{154745;121147;-3807;-3707};{154645;121147;-3807;-3707};{154645;121047;-3807;-3707}} territory_end The format there is {x,y,z,z2} ? :p |
allright... :)
now i think about how to see, where use static, and where use random spawns... (i don't have c5 npcdata :\) square 6 or 8 points territory will be enough? nope, zmax and zmin diff is maximum 20 that's heading |
the npc has to be spawn on a "static" pos and mobs can get the "anywhere" in pos imo
|
Oh ic, but in npcpos, i haven't seen any zmin / zmax in pos=. i think the 4th param is direction in npcpos
so it's like pos={x;y;z;direction} like: pos={147984;8486;-212;16389} direction is east/west/north/south. Code:
npc_begin [aden_bow_guard_s_e] pos={147984;8486;-212;16389} total=1 respawn=3hour dbname=[aden_siege_067] dbsaving={death_time;parameters;pos} npc_endAnd yes, i agree, all mobs should be like dynamic as in anywhere pos and citizens / town npcs should be "static". We can always fix the ones needed to be fixed by hand later if needed. P.S. I saw u don't have a c5 npcname list done yet, if you want i can do one for you npcname;id quickly like in few hrs. I have almost all npcs done with ai class / npcdata ..(almost) ..just remaining all bosses and some dwarf schuttgart and dungeons mobs. Only thing remaining was proper pos / droplist.. ^^ ( i have been working on C5 npcs for 2 and a half monthes :P ) |
tpuNIsher:
yeah, thats fine :) write me text file which contains, id;npc;random for example: 1;gremlin;0 //0 means pos=anywhere,1 means pos={static_coords} thats will be enough. :) madar: i'll wait tpuNIsher for c5 npclist and correct that bug. :) |
K will be done in few hrs hopefully. btw see pm :P
|
hum doing all citizen gonna take a long ass time :p
I can do them too maybe in few days :p Code:
22001;grim_wolf;0 |
| All times are GMT. The time now is 21:44. |