This commit is contained in:
mobius
2015-01-01 20:02:50 +00:00
parent eeae660458
commit a6a3718849
17894 changed files with 2818932 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
<html><body>Blacksmith:<br>
Hello!<br>
We Dwarves of the Blacksmith Guild have refined our skills in order to create a greater variety of crops for our Lord.<br>
What can I do for you?<br><br>
<center>
<a action="bypass -h Quest CastleBlacksmith 35098-02.html">Manufacture a crop.</a>
</center>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>
Sure, no problem! Bring the ingredients needed and I'll create an item for you.<br>
<center>
<a action="bypass -h npc_%objectId%_multisell 350980001">Choose an item.</a>
</center>
</body></html>

View File

@@ -0,0 +1,8 @@
<html><body>Blacksmith:<br>
My goodness! What brings you here?<br>
We Dwarves of the Blacksmith Guild have refined our skills in order to create a greater variety of crops for our Lord.<br>
What can I do for you?<br><br>
<center>
<a action="bypass -h Quest CastleBlacksmith 35140-02.html">Manufacture a crop.</a>
</center>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>
Sure, no problem! If you bring me the ingredients I need, I'll get right on it!<br>
<center>
<a action="bypass -h npc_%objectId%_multisell 350980002">Choose an item.</a>
</center>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>Blacksmith:<br>
Greetings! Is there anything I can do for you today?<br>
<center>
<a action="bypass -h Quest CastleBlacksmith 35182-02.html">Manufacture a crop.</a>
</center>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>
Certainly! If you bring me the ingredients I need I'll make it for you.<br>
What would you like?<br>
<center>
<a action="bypass -h npc_%objectId%_multisell 350980003">View the list.</a>
</center>
</body></html>

View File

@@ -0,0 +1,8 @@
<html><body>Blacksmith:<br>
Greetings!<br>
We Dwarves of the Blacksmith Guild have refined our skills in order to create a greater variety of crops for our Lord.<br>
What can I do for you?<br><br>
<center>
<a action="bypass -h Quest CastleBlacksmith 35224-02.html">Manufacture a crop.</a>
</center>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>
Certainly, I'd be glad to make an item for you! Bring me the ingredients I need and I'll make it immediately.<br>
<center>
<a action="bypass -h npc_%objectId%_multisell 350980004">View the list.</a>
</center>
</body></html>

View File

@@ -0,0 +1,8 @@
<html><body>Blacksmith:<br>
My goodness! What brings you here?<br>
We Dwarves of the Blacksmith Guild have refined our skills in order to create a greater variety of crops for our Lord.<br>
What can I do for you?<br><br>
<center>
<a action="bypass -h Quest CastleBlacksmith 35272-02.html">Manufacture a crop.</a>
</center>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>
Sure, just bring the ingredients I need and I'll make it for you right away.<br>
What would you like?<br>
<center>
<a action="bypass -h npc_%objectId%_multisell 350980005">Choose Item</a>
</center>
</body></html>

View File

@@ -0,0 +1,8 @@
<html><body>Blacksmith:<br>
My goodness! What brings you here?<br>
We Dwarves of the Blacksmith Guild have refined our skills in order to create a greater variety of crops for our Lord.<br>
What can I do for you?<br><br>
<center>
<a action="bypass -h Quest CastleBlacksmith 35314-02.html">Manufacture a crop.</a>
</center>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>
Certainly, I'd be glad to make an item for you! Bring me the ingredients I need and I'll make it immediately.<br>
<center>
<a action="bypass -h npc_%objectId%_multisell 350980006">View the list.</a>
</center>
</body></html>

View File

@@ -0,0 +1,9 @@
<html><body>Blacksmith:<br>
What brings you here?<br>
Our Blacksmiths Guild has learned a new technique, so we can use more diverse crops.<br>
Our Dwarven dexterity is truly unequaled!<br>
If you want something made, just give us the order!<br><br>
<center>
<a action="bypass -h Quest CastleBlacksmith 35361-02.html">Crop Processing</a>
</center>
</body></html>

View File

@@ -0,0 +1,6 @@
<html><body>
If you provide the materials, it won't take anytime! What do you want made?<br>
<center>
<a action="bypass -h npc_%objectId%_multisell 350980007">See the list</a>
</center>
</body></html>

View File

@@ -0,0 +1,9 @@
<html><body>Blacksmith:<br>
What brings you to this shabby place?<br>
I've learned a new skill from our Blacksmith Guild. Now I can make what you want with various crops, my Lord!<br>
Our Dwarves are truly gifted with their hands. Ha! Oops! Pardon me, my Lord!<br>
If you want me to make something, just say the word!<br><br>
<center>
<a action="bypass -h Quest CastleBlacksmith 35507-02.html">Crop Manufacturing</a>
</center>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>
Of course! Give me the materials I need and I'll make anything you want at once!<br>
What do you want?<br>
<center>
<a action="bypass -h npc_%objectId%_multisell 350980008">Examine the List</a>
</center>
</body></html>

View File

@@ -0,0 +1,9 @@
<html><body>Blacksmith:<br>
What brings you to this shabby place?<br>
By the way, I've learned a new skill from our Blacksmith Guild! Now I use a wider variety of crops to make the items you need, my Lord.<br>
Our Dwarves are truly gifted with their hands.. Ha! Oops! Pardon me, my Lord.<br>
If you want me to make something for you, just ask.<br><br>
<center>
<a action="bypass -h Quest CastleBlacksmith 35553-02.html">Crop Manufacturing</a>
</center>
</body></html>

View File

@@ -0,0 +1,7 @@
<html><body>
Of course! Bring me the materials I need and I'll make anything you want at once!<br>
What do you want?<br>
<center>
<a action="bypass -h npc_%objectId%_multisell 350980009">Examine the list</a>
</center>
</body></html>

View File

@@ -0,0 +1,77 @@
/*
* Copyright (C) 2004-2014 L2J DataPack
*
* This file is part of L2J DataPack.
*
* L2J DataPack is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* L2J DataPack is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package ai.npc.CastleBlacksmith;
import ai.npc.AbstractNpcAI;
import com.l2jserver.gameserver.model.ClanPrivilege;
import com.l2jserver.gameserver.model.PcCondOverride;
import com.l2jserver.gameserver.model.actor.L2Npc;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
/**
* Castle Blacksmith AI.
* @author malyelfik
*/
public final class CastleBlacksmith extends AbstractNpcAI
{
// Blacksmith IDs
private static final int[] NPCS =
{
35098, // Blacksmith (Gludio)
35140, // Blacksmith (Dion)
35182, // Blacksmith (Giran)
35224, // Blacksmith (Oren)
35272, // Blacksmith (Aden)
35314, // Blacksmith (Innadril)
35361, // Blacksmith (Goddard)
35507, // Blacksmith (Rune)
35553, // Blacksmith (Schuttgart)
};
private CastleBlacksmith()
{
super(CastleBlacksmith.class.getSimpleName(), "ai/npc");
addStartNpc(NPCS);
addTalkId(NPCS);
addFirstTalkId(NPCS);
}
private boolean hasRights(L2PcInstance player, L2Npc npc)
{
return player.canOverrideCond(PcCondOverride.CASTLE_CONDITIONS) || npc.isMyLord(player) || ((player.getClanId() == npc.getCastle().getOwnerId()) && player.hasClanPrivilege(ClanPrivilege.CS_MANOR_ADMIN));
}
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
return (event.equalsIgnoreCase(npc.getId() + "-02.html") && hasRights(player, npc)) ? event : null;
}
@Override
public String onFirstTalk(L2Npc npc, L2PcInstance player)
{
return (hasRights(player, npc)) ? npc.getId() + "-01.html" : "no.html";
}
public static void main(String[] args)
{
new CastleBlacksmith();
}
}

View File

@@ -0,0 +1,3 @@
<html><body>Blacksmith:<br>
Leave me alone! I'm very busy!
</body></html>