Some Question about NPC / DROP

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
PacWhite
Posts: 22
Joined: Sat Sep 22, 2012 9:56 pm

Some Question about NPC / DROP

Post by PacWhite »

Hey Community :P

In the last time i had few question :D and today gives a new question^^

First: How to add "World"Drops to all Mobs with a percent Chance?
Second: Gives a option to add to a "L2Npc" the bypass buff/goto? without jython /else. (its only for a test^^)

Thanks for reply ;)

Pac the White :P
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Some Question about NPC / DROP

Post by jurchiks »

1) check out data/faenor
2) check the database table `custom_npc_buffer` and data/html/mods/NpcBuffer.htm for the built-in buffer.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
PacWhite
Posts: 22
Joined: Sat Sep 22, 2012 9:56 pm

Re: Some Question about NPC / DROP

Post by PacWhite »

a) Thanks ;)
and b) i think you dont understand me. :x

I mean. If it Possible to add the bypass multisell & goto & buff to one NPC with the Tag "L2Npc"(or else) or must i write for this a script?
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Some Question about NPC / DROP

Post by jurchiks »

You can't add any bypass to any NPC just like that. You either need to change the NPC's class in the database (table `npc`, column `class`) - for example, if you want to make an NPC support the multisell bypass, it needs to be L2Merchant (I might be wrong in this one, but it used to be so back in the day) - or make a datapack script that adds event listeners to your specified NPC IDs and then edit their HTMLs with your bypasses to that script, same as all quests/ai scripts.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
PacWhite
Posts: 22
Joined: Sat Sep 22, 2012 9:56 pm

Re: Some Question about NPC / DROP

Post by PacWhite »

omfg... so much work... to much for this shit.. :D
But i think you a stalking me! :D you answer of all my questions... :D!

... ok i think ill make for every thing a npc... -.- fuuu..

But Thanks Mate :)

You listen from me!
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Some Question about NPC / DROP

Post by jurchiks »

No, I just check new posts frequently and nobody else bothers to answer. NP.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
PacWhite
Posts: 22
Joined: Sat Sep 22, 2012 9:56 pm

Re: Some Question about NPC / DROP

Post by PacWhite »

ah i have a question again :x

Can you give me a "Guide" how to add all bypasses to one NPC?
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Some Question about NPC / DROP

Post by jurchiks »

It's not possible without modifying core because there are bypasses that are specific to certain NPCs, like the multisell bypass being available only for L2Merchant, and tele bypass for L2Teleporter.
You can, however, write a DP script that does pretty much the same thing as the core bypasses, but if you want them all it's going to be damn long.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Post Reply