Jump to content
  • 0

Question

Posted (edited)

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

Recommended Posts

  • 0
Posted

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
  • 0
Posted

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

  • 0
Posted

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.

  • 0
Posted

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

  • 0
Posted (edited)

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
  • 0
Posted

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
  • 0
Posted

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..
  • 0
Posted

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

  • 0
Posted (edited)

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
  • 0
Posted

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.

  • 0
Posted

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.

  • 0
Posted

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • --- Interlude GvE PvP new season start at 2026-06-27 21:00 GMT+3 ---   Gameplay: Chronicle: Interlude Type: Faction/GvE (Angels vs Nature vs Demons) GM Shop: B-S grade Buff slots: 20+4 Starting level: 74 + rebirth system   New Features: Client: Modern interface based on Essence Balance: New class skills for better balance Achievement Rewards: Daily, Weekly, One-time TOP rankings: PvP, Event PvP, Map PvP, Clan PvP, Event MvP, Map MvP Zones: 70 different PvP zones,  18 different events (8 map events | 10 main events) 12 Grand/raid bosses. Castle siege Olympiad Clan Hall challenge Custom Enchant System: Dynamic success chance (greater enchant level or item grade less enchanting success chance) Enchant rate: Blessed scrolls dynamic from 100% to 25%. Crystal Scrolls: 100%; Max enchant weapon +12 Max enchant armor +8 Safe point enchant system Extra Features: PvP items with level upgrade Weapon/Armor upgrade (from B grade to S) system Attributes system   Website: https://l2cygnus.com Community: Discord Facebook: https://www.facebook.com/l2cygnus Youtube: 
    • 🚀 L2JOne Website System — Features & Security Overview 📌 Overview The L2JOne Website System is a complete platform designed for Lineage 2 servers, providing account management, donation processing, game integration, automation tools, and advanced security protections.   Built with a focus on: Security Performance Automation Scalability Easy Administration 🎮 Player Features ✔ Account Registration Direct account creation from the website Game database integration Data validation Optional email verification Google reCAPTCHA protection ✔ Secure Login System Protected user sessions Automatic Session ID regeneration Session Fixation protection Secure logout ✔ Player Control Panel Ticket balance management Purchase history Transfer history Character selection Automatic item delivery ✔ Account Recovery Email-based recovery Temporary recovery tokens Automatic token expiration 💰 Donation System Supported Payment Gateways Mercado Pago PIX Credit Card Debit Card Stripe International credit cards PayPal Worldwide payments Binance Pay Cryptocurrency payments ⚡ Automated Credit Delivery Once a payment is confirmed: Gateway validates the transaction. Webhook signature is verified. Order is marked as completed. Credits are added to the player's balance. Player transfers credits to a character. Items are automatically delivered in-game. No manual intervention required. 🎁 Coupon System Percentage discounts Fixed value discounts Usage limits Expiration dates Minimum purchase requirements 🎟 Ticket System Internal virtual currency Item conversion system Administrative adjustments Full transaction history Balance management 📊 Administrative Dashboard Real-Time Statistics Total revenue Daily revenue New registrations Total purchases Pending payments Approved payments Reports Sales reports Financial reports Player activity reports Transfer history Interactive Charts Revenue growth Daily earnings Monthly earnings Visitors by country Payment distribution 🌍 Analytics System Visitor countries Browser statistics Operating systems Device tracking Access history 📰 News Management System Unlimited news posts Featured images HTML editor support Homepage highlights 🎥 Video & Streaming System Supports: YouTube Twitch Kick Custom stream embeds ⏳ Countdown System Launch countdown timer Configurable date and time Timezone support Homepage integration 📥 Download Center Fully configurable: Game Client Official Patch Mirror Downloads Torrent Downloads External Download Links 📱 Social Media Integration Discord Facebook Instagram Telegram YouTube 🔒 Security Layer CSRF Protection All forms include: Unique security tokens Mandatory validation Automatic expiration Protects against: Cross-Site Request Forgery (CSRF) Google reCAPTCHA Protection Integrated Google reCAPTCHA v3 Protects against: Bots Automated registrations Brute-force attacks Session Security Session ID regeneration HttpOnly cookies SameSite cookie protection Secure cookie support Protects against: Session hijacking Session fixation attacks Upload Protection Sensitive file types are blocked: .sql .sqlite .log .pem .key Directory Protection Direct access denied to: config/ private/ storage/ cli/ database/ Unauthorized access is blocked. Anti-Replay Protection Financial callbacks include: Signed timestamps Expiration windows One-time validation Protects against: Payment replay attacks Duplicate transaction processing Webhook Security HMAC signature validation Shared secret verification Mandatory request authentication Protects against: Fake payment notifications Fraudulent credit generation Duplicate Payment Prevention Built-in: Idempotency control Transaction reference validation Payment status verification Prevents: Double credits Repeated processing SQL Injection Protection Secure database layer using: PDO Prepared Statements Parameter Binding No unsafe SQL concatenation. XSS Protection Output sanitization through: HTML escaping Input filtering Protects against: Cross-Site Scripting (XSS) Session theft Licensing Protection Centralized licensing system with: Unique license key Unique secret key Remote validation Domain verification Heartbeat monitoring Anti-Cloning Protection Licenses are linked to: Authorized domain Unique credentials Central validation server Unauthorized domain usage can be automatically blocked. ⚙ Administrative Tools User Management Create accounts Edit accounts Suspend users Adjust balances Financial Management Approve transactions Cancel orders Financial reports Content Management News management Download management Video management Social media management Global Settings Rates configuration Countdown management Payment gateway settings License management 🚀 Technology Stack PHP 8+ MySQL 9+ / MariaDB 11+ Bootstrap 5.3.8 AdminLTE 4..0.2 Mercado Pago SDK Stripe SDK PayPal API Binance Pay API Google reCAPTCHA v3 PDO Secure Database Layer 🛡 Final Result The L2JOne Website System delivers a professional-grade solution for Lineage 2 servers, combining: ✅ Modern Administrative Dashboard ✅ Advanced Donation System ✅ Automatic In-Game Delivery ✅ Real-Time Statistics ✅ Centralized Licensing Platform ✅ Financial Fraud Protection ✅ SQL Injection Protection ✅ XSS Protection ✅ CSRF Protection ✅ Anti-Replay Security ✅ Anti-Cloning Protection A complete, secure, and scalable platform built for professional Lineage 2 server operations DEMO SITE: "My Site" - Lineage II I am currently studying programming in Trybe | Cursos de Inteligência Artificial e Tecnologia Price: 150 USDT Payment methods: Crypto using the Tron network or PayPal (you pay an administrative fee). You can choose to pay a monthly fee to get new features or stick with your current version with security updates! The maintenance fee is only 30 USDT per month. Customers currently using my website: http://www.l2shadowwars.com/                                                                                                        Panel Admin:            Database WebSIte     PANEL PLAYER     StartPack    
    • Fixed a lot of null crashes, damn vanganth 🤣 Added engine that you can create your custom quests Extender dungeon systen so u can create as many dungeons as you like       Possibility to create a server from scratch its possible just is the work + the license/month , many ask for the creation.. i can do everything u like, i can even implement UFOs to fly over gym so.. whatever your dream is i can be as close as possible!
    • Hello, it is someone here to help me to make multiskill on helios pack? ( Not stacksub ) i want. On Hi5 i have this config .   # When enabled, the following will be true: # All classes can learn all skills. # Skills of another class costs x2 SP to learn. # Skills of another race costs x2 SP to learn. # Skills of fighters/mages costs x3 SP to learn. # Default: False AltGameSkillLearn = True
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..