Jump to content
  • 0

Custom Pet -.-


AccessDenied

Question

Hello again -.- sorry i bother you all the time i am used to develop Aion no L2j (im learning)

so i dig into lineage 2 and so far i understood pretty much many things by reading the source at the same time

btw i work on Freya

 

So i want make a custom Summon-pet  like Wolf collar

 

things i did

 

1) Made a L2Pet  in custom_npc (done)

2) Make a custom item in Customitems.xml  that is using SummonHandler  (bypass) (done)

3) Made the skill for the item (1 level) (done)

4) Wrote the  itemId, summonId, duration into the summon_data.scv file

5) Insert the item - skill  into system (etcitem.grp, itemname,grp)

 

Inside game i click on item and nothing happen BUT when i use normal wolf 

and i click on my item it says "You already have a pet" which mean it works (it use the handler)

 

Anything i miss?

 

Ps the SummonHandler i read it all (this is how i knew what to do) 

like these lines

 

final int npcId = sitem.getNpcId();
if (npcId == 0)
return;
 
final L2NpcTemplate npcTemplate = NpcTable.getInstance().getTemplate(npcId);
if (npcTemplate == null)
return;
but i dont know what else i miss :O
Edited by AccessDenied
Link to comment
Share on other sites

Recommended Posts

  • 0

Without any bug report or code, don't expect to get answers. I'm not Gandalf.

There is no error or anything but sure let me post my things

 

1) My Pet_Data.xml

<pet id="11106" index="1">
		<set name="food" val="2515" />
		<set name="hungry_limit" val="55" />
		<set name="load" val="54510" />
		<stats>
			<stat level="1">
				<set name="max_meal" val="248" />
				<set name="exp" val="0" />
				<set name="get_exp_type" val="73" />
				<set name="consume_meal_in_battle" val="2" />
				<set name="consume_meal_in_normal" val="2" />
				<set name="org_pattack" val="2.11864406779661" />
				<set name="org_pdefend" val="11.1111111111111" />
				<set name="org_mattack" val="1.44675925925926" />
				<set name="org_mdefend" val="8.13062889692864" />
				<set name="org_hp" val="24.8725961538461" />
				<set name="org_mp" val="20" />
				<set name="org_hp_regen" val="55" />
				<set name="org_mp_regen" val="0.9" />
				<set name="soulshot_count" val="1" />
				<set name="spiritshot_count" val="1" />
			</stat>
		</stats>
		
	</pet>

2) My Custom Item for call the summon

 

 

<item id="77714" type="EtcItem" name="Custom Summon Elf">

<set name="icon" val="icon.etc_prefect_belt_i00" />
<set name="default_action" val="skill_maintain" />
<set name="etcitem_type" val="pet_collar" />
<set name="material" val="leather" />
<set name="weight" val="10" />
<set name="is_oly_restricted" val="true" />
<set name="handler" val="SummonItems" />
<set name="item_skill" val="11106-1" />
<set name="use_condition" val="{{uc_transmode_exclude;{tt_flying;tt_pure_stat}}}" />
</item>

 

3) My Custom skill that item use

 

 

<skill id="11106" levels="1" name="Wolf's Necklace">

<set name="target" val="TARGET_SELF" />
<set name="hitTime" val="5000" />
<set name="staticHitTime" val="true" />
<set name="skillType" val="COREDONE" />
<set name="isMagic" val="true" />
<set name="operateType" val="OP_ACTIVE" />
</skill>

 

4) summon_items.csv line

 

### Elf Summon ###
77714;11106;1
Link to comment
Share on other sites

  • 0

I readed line by like the SummonHandler and anything relative to summon to understand and so far all these are used and needed..

but i dont know what else i miss

Also i added the item in system and the skill  maybe the system need a Pet Line in some file?

Like maybe it has something like PetGrp.dat? i cant see anything like that

Link to comment
Share on other sites

  • 0

Without any bug report or code, don't expect to get answers. I'm not Gandalf.

I'm pretty sure i saw you in lord of the rings dont lie to me -.-

Link to comment
Share on other sites

  • 0

Nowhere, on both item or skill, you got a npcId. So how it is supposed to know which npcId to call, it's a mystery.

pet_collar can also create trouble if linked to specific pets (wolves). I only guess.

 

----

 

I know dwarves females are supposed to get beard, but it's only a FANTASY. And even if it was true, my beard would be red like my hair, not white.

Link to comment
Share on other sites

  • 0

Nowhere, on both item or skill, you got a npcId. So how it is supposed to know which npcId to call, it's a mystery.

 

pet_collar can also create trouble if linked to specific pets (wolves). I only guess.

 

----

 

I know dwarves females are supposed to get beard, but it's only a FANTASY. And even if it was true, my beard would be red like my hair, not white.

yes but i copied the one from wolf collar.. how wolf collar works then ? without npc id.. 

Link to comment
Share on other sites

  • 0

You have to feed npcId on SummonItem, which normally is the goal of the .csv.

 

Do you have npc data 11106 too ? And avoid to use ids higher than 65536.

Edited by Tryskell
Link to comment
Share on other sites

  • 0

You have to feed npcId on SummonItem, which normally is the goal of the .csv.

 

Do you have npc data 11106 too ? And avoid to use ids higher than 65536.

I did as i said at csv

4) summon_items.csv line

 

### Elf Summon ###
77714;11106;1
 
and when u say npc_data    you mean npcaidata? if not yes i added the npc  11106   at custom_npc and it extends L2Pet class
Link to comment
Share on other sites

  • 0

Does the npc work correctly, spawning it manually ?

 

Put some logs on SummonItems handler to see exactly what happen, and where the code blocks.

Link to comment
Share on other sites

  • 0

Does the npc work correctly, spawning it manually ?

 

Put some logs on SummonItems handler to see exactly what happen, and where the code blocks.

The npc is inside custom_npc 

11106 18544 Elf 1 Elf 1 Monster2.inferno_drake_100_bi 20 20 50 etc L2Pet 40 40.000000000000000 40.000000000000000 40.000000000000000 40.000000000000000 40 40 40 40 40 40 40 40 40 40 40 40 40 40 0 40 0 0 0 60 120 1 1 0 0
 
 
but because is L2Pet instance     i cant spawn it.. it says "target not found"
 
also i have no log for handles in _log_ folder..
Link to comment
Share on other sites

  • 0

Tk means to put some log, like the log on gs or even a player.sendMessage(" "); in the middle of the code, to see if it's executed :P

Link to comment
Share on other sites

  • 0

Tk means to put some log, like the log on gs or even a player.sendMessage(" "); in the middle of the code, to see if it's executed :P

No need i already mention that if i have a pet and i click on my item it says " you already have a pet" so this mean it use the handler and it execute until the last line

 

by the way thanks for the friendly answers, i come from Aion community and lineage 2 is working different.

Thanks tryskel and sweets

Edited by AccessDenied
Link to comment
Share on other sites

  • 0

As you said above "target no found". That means the npc doesn't exist. You try to summon existing npc or "custom"? Npc seems the problem.

Link to comment
Share on other sites

  • 0

As you said above "target no found". That means the npc doesn't exist. You try to summon existing npc or "custom"? Npc seems the problem.

Dont think saw as i read the source the lineage 2 has 2 options or to load sql from npc or if config is activated from custom_npc

as far as i tested spawns that extends L2Npc or other Instance it works

L2Pet Instance doesnt work..  my npc is inside custom_npc (yes is True in config) and its the only one that doesnt spawn everything else work fine.

Link to comment
Share on other sites

  • 0

Also sweets here a proof that none L2Pet works i checked all default pets

 

2hgxs3a.png

 

None spawn .. whatever extends L2Pet doesnt spawn  so maybe the L2PetInstance is not for spawn

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • I didn't edit anything, It's a scren from Your vid, don't be delusional. I won't refund You. I think 10 years ago I've created account on L2Brasil - You can also go there if You want. Take care
    • don't be stupid if you don't return my money I continue to want sanctions against you.   don't write that you like it, the case is not closed. don't pose as you want when you upload a photo don't edit upload the whole conversation before editing.
    • Made some contacts, for the time being everything is set. Kindly asking for moderators to lock this post.
    • To be fair, I wasn't aware I had an account there. I guess I was banned on that mmo-dev-rus bullshit because I'm well known for not beeing russian-ass-licker-fanboy, those who knows me, knows it too. Thank You. Case closed.  @Celestine     You did. Worked stopped. You got refunded. That's all from me, I have other works to do - I can't spend more time here, repeating myself, so I won't get "reported" yet again with another project. See my point here?  Signing out 
    • VeeloBooster Testosterone Booster (Special Offer) – Buy Now – Official Website Official Website: https://supplementrange.com/veelobooster-reviews/ Facebook: https://www.facebook.com/veelobooster.officialwebsite VeeloBooster Male Enhancement Pills Reviews - For the most part, it’s men who want to have larger penises,” Montague said. Eldorado Trading, Jones, and Vogt admitted in their plea agreements to buying hundreds of thousands of misbranded pills from Lee, which Eldorado Trading resold for a profit of at least $215,000. In their plea agreements, Contenda Health and the Cranfords admitted to purchasing more than 1.4 million misbranded pills from Lee for approximately $2.1 million, which they resold to retail locations across the United States. The anticipated guilty pleas are in relation to three cases filed today in U.S. Continue reading to learn more Crucial Tip 1 Save time and money when you are looking for enlargement method. Now it is urgent to correct DIC to stop bleeding, but Su Hongwen really cant think of the kind of drug that can correct DIC in a short time to achieve The purpose of hemostasis. Its imperative to comprehend that not every erectile disorder problems originate from mental issues There might be a fundamental medical trigger in sufferers with Hd Testo Male Enhancement erection dysfunction For instance.   Official Website: https://supplementrange.com/veelobooster-reviews/ https://supplementrange.com/nexalyn-male-enhancement/ https://supplementrange.com/nexaslim-reviews/ Facebook: https://www.facebook.com/veelobooster.officialwebsite https://www.facebook.com/nexaslimofficialwebsite/ https://www.facebook.com/nexalynofficialwebsite/ Groups Google: https://groups.google.com/u/0/g/veelobooster-male-enhancement/c/kMfeByqzWIU https://groups.google.com/g/nexalyn-reviews/c/612K-C_681Y https://groups.google.com/g/nexalyn-reviews/c/NddGgTyevPw Sites Google: https://sites.google.com/view/veelobooster-official-website/home https://sites.google.com/view/nexalynpillsreviews/home Blogspot: https://nexalyn-reviews.blogspot.com/2024/05/nexalyn-testosterone-booster.html https://nexalyn-reviews.blogspot.com/2024/05/veelobooster-testosterone-booster.html Medium: https://medium.com/@veelobooster.official/veelobooster-testosterone-booster-32935c5b7fd7 https://medium.com/@nexalyn-review/nexalyn-testosterone-booster-52b99cf5540f https://medium.com/@nexalyn-review/nexalyn-testosterone-booster-reviews-nexalyn-male-enhancement-pills-b04e97c5f978 Other Blogs: https://veelobooster-testosterone-booster-2.jimdosite.com/ https://veelobooster-testosterone-boos-1fe422.webflow.io/ https://veelobooster-testosterone-booster-reviews.company.site/ https://www.eventbrite.com/e/veelobooster-testosterone-booster-reviews-veelo-booster-male-enhancement-pills-tickets-903689287987?aff=oddtdtcreator https://edwextrujek.wixsite.com/veelobooster-reviews/post/veelobooster-testosterone-booster-reviews-does-veelo-booster-pills-work-or-not
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock