[Help] problem with adding new weapon L2J 

Newbie Spellweaver
Joined
Aug 2, 2008
Messages
40
Reaction score
0
I have added new lines to weapongrp.dat and itemname-e.dat and they look like this

Code:
0	95000	1	1	15	2	0 LineageWeapons.strengthening_long_bow_m00_wp			LineageWeaponsTex.strengthening_long_bow_t00_wp			icon.weapon_strengthening_long_bow_i00					95	1820	51	1	0	14	5	1	LineageWeapons.strengthening_long_bow_m00_wp		1	LineageWeaponsTex.strengthening_long_bow_t00_wp			4	ItemSound.bow_big_3	ItemSound.bow_small_3	ItemSound.bow_small_6	ItemSound.bow_big_2	ItemSound.itemdrop_bow	ItemSound.itemequip_bow		5	542	132	6	4	12	-3	0	0	0	227	5	10	3	1000	0	-1	0	LineageEffect.c_u008		-1.200000	3.900000	0.000000	1.200000	1.200000						LineageWeapons.rangesample		1.700000	1.200000	1.200000	0.000000	0.000000	0.000000							-1	-1	-1	-1
here i fixed the glow and here it is itemname-e

Code:
95000	Strengthened Bow	Ancient	Ancient weapon of great power. Increace Atk. Spd. 7%. Increace Critical rate by 88.	-1					0	0	0

Also i executed sql file ab.sql

Code:
INSERT INTO `weapon` VALUES ('95000', 'Strengthened Bow', 'lrhand', 'true', '1820', '1', '1', 'adamantaite', 's', '542', '10', 'bow', '12', '-3.00000', '0', '0', '0', '325', '11', '132', '-1', '0', '2440', 'true', 'true', 'true', 'true', '3567', '2', '0', '0', '0', '0', '0', '0', '0', '0');

and added 95000.xml file in data/weapon

<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE list SYSTEM "weapons.dtd">
<list>
<item id='95000' name="Strengthened Bow">
<for>
<set val='542' order='0x08' stat='pAtk'/>
<set val='132' order='0x08' stat='mAtk'/>
<set val='12' order='0x08' stat='rCrit'/>
<add val='-3' order='0x10' stat='accCombat'/>
<set val='325' order='0x08' stat='pAtkSpd'/>
<enchant val='0' order='0x0C' stat='pAtk'/>
<enchant val='0' order='0x0C' stat='mAtk'/>
<!-- SA: Haste -->
<add val='1.07' order='0x30' stat='pAtkSpd'/>
<!-- SA: Focus -->
<add val='88' order='0x40' stat='rCrit'/>
<!-- Enhances damage to target during PvP -->
<mul val='1.05' order='0x30' stat='pvpPhysDmg'/>
<mul val='1.05' order='0x30' stat='pvpMagicalDmg'/>
</for>
</item>
</list>


but when i try to create it in game i get msg that this item doesnt exist.
what did i do wrong?... thx
 
Re: [help] problem with adding new weapon

and weapongrp didnt give u any problem, right? maybe u introduce the wrong id at creation items ingame?
BTW, ill test your weapon and ill say u if works for me

dunno why, i cant add your weapon to my weapongrp.dat file T.T
 
Last edited by a moderator:
Upvote 0
Re: [help] problem with adding new weapon

u need to add spaces at the end of the code. or just copy paste from some other weapon afther -1 -1 -1
 
Upvote 0
Re: [help] problem with adding new weapon

its really strange, cause the .sql works good, the weapongrp should be good (dunno what happen with me, but ill finaly fix it >.<) and the .xml file its fine. The only one reason to say u that these weapon should be a db problem, but if u say that the bow is there...i dont know what could be :X
 
Upvote 0
Re: [help] problem with adding new weapon

it works for you? i have problems with login server now but if u can try with another ID. on example 99999
 
Upvote 0
again same problem. i added some new items and they worked. after some time they just disappeared(only 2 works) and server write msg "invalid itemid requested" but in game i got msg that wep has been spawned in my inventory, but it doesnt appear in inv. i have tried to change ids of all weps but again only that 2 worked. they are added in navicat (checked) and xml files worked before (i didnt change the codes) so i really dont know whats wrong
 
Upvote 0
if u cant add his wep and it doesnt encrypt, its coz theres code missing or theres a duplicated id..i get those problems too. its also compatibility issues
 
Upvote 0
yeah ive also gotten that problem..l2 dat files can only reach a certain point of maximum numbers allowed...i have a weapon id'd 65535 at itemname-e.dat and i see it as an "NoItemName"
 
Upvote 0
about the IDs - client does support high IDs ( i have tried ID 870000 and it did work)...
it must be a unneeded space or tab somewhere...

id is not the problem so its not that. if it is uneeded space or tab then how it works before? and where should i look for that tab? server console got error "invalid itemid requested" so i dont think its a space in weapongrp.dat. really dont know what to do :/
 
Upvote 0
Back