Addition of quests 508, 509 and 510.
Source: aCis
This commit is contained in:
parent
bda84ff091
commit
00b05bcee5
@ -1,9 +0,0 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Which Raid Boss do you wish to take on?<br>
|
||||
<a action="bypass -h Quest 508_TheClansReputation 1">Palibati Queen Themis</a><br>
|
||||
<a action="bypass -h Quest 508_TheClansReputation 2">Hekaton Prime</a><br>
|
||||
<a action="bypass -h Quest 508_TheClansReputation 3">Gargoyle Lord Tiphon</a><br>
|
||||
<a action="bypass -h Quest 508_TheClansReputation 4">Last Lesser Giant Glaki</a><br>
|
||||
<a action="bypass -h Quest 508_TheClansReputation 5">Rahha</a><br>
|
||||
<a action="bypass -h Quest 508_TheClansReputation 6">Flamestone Giant</a>
|
||||
</body></html>
|
@ -1,4 +0,0 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Very good! Slaughter<font color="LEVEL"> Palibati Queen Themis </font>and bring me her scale!<br>
|
||||
<font color="LEVEL">As I told you before, you don't have to kill her yourself!</font> There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place an watch your Clan kill Palibati Queen Themis and then bring her scale to me.
|
||||
</body></html>
|
@ -1,6 +0,0 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Too bad! I need you to slaughter<font color="LEVEL"> Palibati Queen Themis </font>and bring me her scale!<br>
|
||||
<font color="LEVEL">As I told you before, you don't have to kill her yourself!</font> There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place an watch your Clan kill Palibati Queen Themis and then bring her scale to me.<br>
|
||||
<a action="bypass -h Quest 508_TheClansReputation 30868-0.htm">"I want to try another Raid Boss."</a><br>
|
||||
<a action="bypass -h Quest 508_TheClansReputation 30868-7.htm">Quit</a>
|
||||
</body></html>
|
@ -1,5 +0,0 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Well done! I'll spread the news that your brave Clan hat defeated Palibati Queen Themis.<br>
|
||||
<a action="bypass -h Quest 508_TheClansReputation 30868-0.htm">"I want to continue killing Raid Bosses."</a><br>
|
||||
<a action="bypass -h Quest 508_TheClansReputation 30868-7.htm">Quit</a>
|
||||
</body></html>
|
@ -1,6 +0,0 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Too bad! I need you to slaughter<font color="LEVEL"> Hekaton Prime </font>and bring me his Nucleus!<br>
|
||||
<font color="LEVEL">As I told you before, you don't have to kill him yourself!</font> There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place an watch your Clan kill Hekaton Prime and then bring his Nucleus to me.<br>
|
||||
<a action="bypass -h Quest 508_TheClansReputation 30868-0.htm">"I want to try another Raid Boss."</a><br>
|
||||
<a action="bypass -h Quest 508_TheClansReputation 30868-7.htm">Quit</a>
|
||||
</body></html>
|
@ -1,5 +0,0 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Well done! I'll spread the news that your brave Clan hat defeated Hekaton Prime.<br>
|
||||
<a action="bypass -h Quest 508_TheClansReputation 30868-0.htm">"I want to continue killing Raid Bosses."</a><br>
|
||||
<a action="bypass -h Quest 508_TheClansReputation 30868-7.htm">Quit</a>
|
||||
</body></html>
|
@ -1,4 +0,0 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Very good! Slaughter<font color="LEVEL"> Gargoyle Lord Tiphon </font>and bring me his Shard!<br>
|
||||
<font color="LEVEL">As I told you before, you don't have to kill him yourself!</font> There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place an watch your Clan kill Gargoyle Lord Tiphon and then bring his Shard to me.
|
||||
</body></html>
|
@ -1,6 +0,0 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Too bad! I need you to slaughter<font color="LEVEL"> Gargoyle Lord Tiphon </font>and bring me his Shard!<br>
|
||||
<font color="LEVEL">As I told you before, you don't have to kill him yourself!</font> There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place an watch your Clan kill Gargoyle Lord Tiphon and then bring his Shard to me.<br>
|
||||
<a action="bypass -h Quest 508_TheClansReputation 30868-0.htm">"I want to try another Raid Boss."</a><br>
|
||||
<a action="bypass -h Quest 508_TheClansReputation 30868-7.htm">Quit</a>
|
||||
</body></html>
|
@ -1,5 +0,0 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Well done! I'll spread the news that your brave Clan hat defeated Gargoyle Lord Tiphon.<br>
|
||||
<a action="bypass -h Quest 508_TheClansReputation 30868-0.htm">"I want to continue killing Raid Bosses."</a><br>
|
||||
<a action="bypass -h Quest 508_TheClansReputation 30868-7.htm">Quit</a>
|
||||
</body></html>
|
@ -1,4 +0,0 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Very good! Slaughter<font color="LEVEL"> Last Lesser Giant Glaki </font>and bring me his Nucleus!<br>
|
||||
<font color="LEVEL">As I told you before, you don't have to kill him yourself!</font> There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place an watch your Clan kill Last Lesser Giant Glaki and then bring his Nucleus to me.
|
||||
</body></html>
|
@ -1,6 +0,0 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Too bad! I need you to slaughter<font color="LEVEL"> Last Lesser Giant Glaki </font>and bring me his Nucleus!<br>
|
||||
<font color="LEVEL">As I told you before, you don't have to kill him yourself!</font> There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place an watch your Clan kill Last Lesser Giant Glaki and then bring his Nucleus to me.<br>
|
||||
<a action="bypass -h Quest 508_TheClansReputation 30868-0.htm">"I want to try another Raid Boss."</a><br>
|
||||
<a action="bypass -h Quest 508_TheClansReputation 30868-7.htm">Quit</a>
|
||||
</body></html>
|
@ -1,5 +0,0 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Well done! I'll spread the news that your brave Clan hat defeated Last Lesser Giant Glaki.<br>
|
||||
<a action="bypass -h Quest 508_TheClansReputation 30868-0.htm">"I want to continue killing Raid Bosses."</a><br>
|
||||
<a action="bypass -h Quest 508_TheClansReputation 30868-7.htm">Quit</a>
|
||||
</body></html>
|
@ -1,6 +0,0 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Too bad! I need you to slaughter<font color="LEVEL"> Rahha </font>and bring me her fang!<br>
|
||||
<font color="LEVEL">As I told you before, you don't have to kill her yourself!</font> There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place an watch your Clan kill Rahha and then bring her fang to me.<br>
|
||||
<a action="bypass -h Quest 508_TheClansReputation 30868-0.htm">"I want to try another Raid Boss."</a><br>
|
||||
<a action="bypass -h Quest 508_TheClansReputation 30868-7.htm">Quit</a>
|
||||
</body></html>
|
@ -1,5 +0,0 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Well done! I'll spread the news that your brave Clan hat defeated Rahha.<br>
|
||||
<a action="bypass -h Quest 508_TheClansReputation 30868-0.htm">"I want to continue killing Raid Bosses."</a><br>
|
||||
<a action="bypass -h Quest 508_TheClansReputation 30868-7.htm">Quit</a>
|
||||
</body></html>
|
@ -1,4 +0,0 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Very good! Slaughter<font color="LEVEL"> Flamestone Giant </font>and bring me his Nucleus!<br>
|
||||
<font color="LEVEL">As I told you before, you don't have to kill him yourself!</font> There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place an watch your Clan kill Flamestone Giant and then bring his Nucleus to me.
|
||||
</body></html>
|
@ -1,6 +0,0 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Too bad! I need you to slaughter<font color="LEVEL"> Flamestone Giant </font>and bring me his Nucleus!<br>
|
||||
<font color="LEVEL">As I told you before, you don't have to kill him yourself!</font> There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place an watch your Clan kill Flamestone Giant and then bring his Nucleus to me.<br>
|
||||
<a action="bypass -h Quest 508_TheClansReputation 30868-0.htm">"I want to try another Raid Boss."</a><br>
|
||||
<a action="bypass -h Quest 508_TheClansReputation 30868-7.htm">Quit</a>
|
||||
</body></html>
|
@ -1,5 +0,0 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Well done! I'll spread the news that your brave Clan hat defeated Flamestone Giant.<br>
|
||||
<a action="bypass -h Quest 508_TheClansReputation 30868-0.htm">"I want to continue killing Raid Bosses."</a><br>
|
||||
<a action="bypass -h Quest 508_TheClansReputation 30868-7.htm">Quit</a>
|
||||
</body></html>
|
@ -1,157 +0,0 @@
|
||||
#####################################################################
|
||||
# #
|
||||
# "The Clan's Reputation" #
|
||||
# "Raise the Clan's Reputation" #
|
||||
# "Sir Eric Rodemai in Aden Castle Town is looking #
|
||||
# for a brave adventurer to raise the clan's reputation." #
|
||||
# "Clan Leader, Clan Level 5 and above" #
|
||||
# #
|
||||
# Start NPC: Sir Eric Rodemai[30868] #
|
||||
# #
|
||||
# fixed and completed by chris_00 @katmai and DrLecter #
|
||||
# #
|
||||
#####################################################################
|
||||
import sys
|
||||
from org.l2jmobius.gameserver.model.quest import State
|
||||
from org.l2jmobius.gameserver.model.quest import QuestState
|
||||
from org.l2jmobius.gameserver.model.quest.jython import QuestJython as JQuest
|
||||
from org.l2jmobius.gameserver.network.serverpackets import PledgeShowInfoUpdate
|
||||
from org.l2jmobius.gameserver.network.serverpackets import RadarControl
|
||||
from org.l2jmobius.gameserver.network.serverpackets import SystemMessage
|
||||
|
||||
qn="508_TheClansReputation"
|
||||
qd="The Clans Reputation"
|
||||
|
||||
# Quest NPC
|
||||
SIR_ERIC_RODEMAI = 30868
|
||||
|
||||
# Quest Items
|
||||
NUCLEUS_OF_FLAMESTONE_GIANT = 8494 # Nucleus of Flamestone Giant : Nucleus obtained by defeating Flamestone Giant
|
||||
THEMIS_SCALE = 8277 # Themis' Scale : Obtain this scale by defeating Palibati Queen Themis.
|
||||
NUCLEUS_OF_HEKATON_PRIME = 8279 # Nucleus of Hekaton Prime : Nucleus obtained by defeating Hekaton Prime
|
||||
TIPHON_SHARD = 8280 # Tiphon Shard : Debris obtained by defeating Tiphon, Gargoyle Lord.
|
||||
GLAKIS_NUCLEUS = 8281 # Glaki's Necleus : Nucleus obtained by defeating Glaki, the last lesser Giant.
|
||||
RAHHAS_FANG = 8282 # Rahha's Fang : Fangs obtained by defeating Rahha.
|
||||
|
||||
#Quest Raid Bosses
|
||||
FLAMESTONE_GIANT = 25524
|
||||
PALIBATI_QUEEN_THEMIS = 25252
|
||||
HEKATON_PRIME = 25140
|
||||
GARGOYLE_LORD_TIPHON = 25255
|
||||
LAST_LESSER_GIANT_GLAKI = 25245
|
||||
RAHHA = 25051
|
||||
|
||||
# Reward
|
||||
CLAN_POINTS_REWARD = 1000 # 1000 Point Per Boss
|
||||
|
||||
# id:[RaidBossNpcId,questItemId]
|
||||
REWARDS_LIST={
|
||||
1:[PALIBATI_QUEEN_THEMIS, THEMIS_SCALE],
|
||||
2:[HEKATON_PRIME, NUCLEUS_OF_HEKATON_PRIME],
|
||||
3:[GARGOYLE_LORD_TIPHON, TIPHON_SHARD],
|
||||
4:[LAST_LESSER_GIANT_GLAKI,GLAKIS_NUCLEUS],
|
||||
5:[RAHHA, RAHHAS_FANG],
|
||||
6:[FLAMESTONE_GIANT, NUCLEUS_OF_FLAMESTONE_GIANT]
|
||||
}
|
||||
|
||||
RADAR={
|
||||
1:[192346,21528,-3648],
|
||||
2:[191979,54902,-7658],
|
||||
3:[170038,-26236,-3824],
|
||||
4:[171762,55028,-5992],
|
||||
5:[117232,-9476,-3320],
|
||||
6:[144218,-5816,-4722],
|
||||
}
|
||||
|
||||
class Quest (JQuest) :
|
||||
|
||||
def __init__(self,id,name,descr) :
|
||||
JQuest.__init__(self,id,name,descr)
|
||||
self.questItemIds = [THEMIS_SCALE, NUCLEUS_OF_HEKATON_PRIME, TIPHON_SHARD, GLAKIS_NUCLEUS, RAHHAS_FANG, NUCLEUS_OF_FLAMESTONE_GIANT]
|
||||
|
||||
def onAdvEvent (self,event,npc,player) :
|
||||
st = player.getQuestState(qn)
|
||||
if not st: return
|
||||
cond = st.getInt("cond")
|
||||
htmltext=event
|
||||
if event == "30868-0.htm" :
|
||||
if cond == 0 :
|
||||
st.set("cond","1")
|
||||
st.setState(State.STARTED)
|
||||
elif event.isdigit() :
|
||||
if int(event) in REWARDS_LIST.keys():
|
||||
st.set("raid",event)
|
||||
htmltext="30868-"+event+".htm"
|
||||
x,y,z=RADAR[int(event)]
|
||||
if x+y+z:
|
||||
player.sendPacket(RadarControl(2, 2, x, y, z))
|
||||
player.sendPacket(RadarControl(0, 1, x, y, z))
|
||||
st.playSound("ItemSound.quest_accept")
|
||||
elif event == "30868-7.htm" :
|
||||
st.playSound("ItemSound.quest_finish")
|
||||
st.exitQuest(1)
|
||||
return htmltext
|
||||
|
||||
def onTalk (self,npc,player) :
|
||||
htmltext = "<html><body>You are either not on a quest that involves this NPC, or you don't meet this NPC's minimum quest requirements.</body></html>"
|
||||
st = player.getQuestState(qn)
|
||||
if not st : return htmltext
|
||||
clan = player.getClan()
|
||||
npcId = npc.getNpcId()
|
||||
if player.getClan() == None or player.isClanLeader() == 0 :
|
||||
st.exitQuest(1)
|
||||
htmltext = "30868-0a.htm"
|
||||
elif player.getClan().getLevel() < 5 :
|
||||
st.exitQuest(1)
|
||||
htmltext = "30868-0b.htm"
|
||||
else :
|
||||
cond = st.getInt("cond")
|
||||
raid = st.getInt("raid")
|
||||
id = st.getState()
|
||||
if id == State.CREATED and cond == 0 :
|
||||
htmltext = "30868-0c.htm"
|
||||
elif id == State.STARTED and cond == 1 and raid in REWARDS_LIST.keys() :
|
||||
npc,item=REWARDS_LIST[raid]
|
||||
count = st.getQuestItemsCount(item)
|
||||
if not count :
|
||||
htmltext = "30868-"+str(raid)+"a.htm"
|
||||
elif count == 1 :
|
||||
htmltext = "30868-"+str(raid)+"b.htm"
|
||||
st.takeItems(item,1)
|
||||
clan.setReputationScore(clan.getReputationScore()+CLAN_POINTS_REWARD,True)
|
||||
player.sendPacket(SystemMessage(1777).addNumber(CLAN_POINTS_REWARD))
|
||||
clan.broadcastToOnlineMembers(PledgeShowInfoUpdate(clan))
|
||||
return htmltext
|
||||
|
||||
def onKill(self,npc,player,isPet) :
|
||||
st = 0
|
||||
if player.isClanLeader() :
|
||||
st = player.getQuestState(qn)
|
||||
else:
|
||||
clan = player.getClan()
|
||||
if clan:
|
||||
leader=clan.getLeader()
|
||||
if leader :
|
||||
pleader= leader.getPlayerInstance()
|
||||
if pleader :
|
||||
if player.isInsideRadius(pleader, 1600, 1, 0) :
|
||||
st = pleader.getQuestState(qn)
|
||||
if not st : return
|
||||
option=st.getInt("raid")
|
||||
if st.getInt("cond") == 1 and st.getState() == State.STARTED and option in REWARDS_LIST.keys():
|
||||
raid,item = REWARDS_LIST[option]
|
||||
npcId=npc.getNpcId()
|
||||
if npcId == raid and not st.getQuestItemsCount(item) :
|
||||
st.giveItems(item,1)
|
||||
st.playSound("ItemSound.quest_middle")
|
||||
return
|
||||
|
||||
|
||||
# Quest class and state definition
|
||||
QUEST = Quest(508,qn,qd)
|
||||
|
||||
QUEST.addStartNpc(SIR_ERIC_RODEMAI)
|
||||
QUEST.addTalkId(SIR_ERIC_RODEMAI)
|
||||
|
||||
for npc,item in REWARDS_LIST.values():
|
||||
QUEST.addKillId(npc)
|
@ -1,8 +0,0 @@
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
Take your pick!<br>
|
||||
<a action="bypass -h Quest 509_TheClansPrestige 1">Daimon the White-Eyed</a><br>
|
||||
<a action="bypass -h Quest 509_TheClansPrestige 2">Hestia, Guardian Deity of the Hot Springs</a><br>
|
||||
<a action="bypass -h Quest 509_TheClansPrestige 3">Plague Golem</a><br>
|
||||
<a action="bypass -h Quest 509_TheClansPrestige 4">Demon's Agent Falston</a><br>
|
||||
<a action="bypass -h Quest 509_TheClansPrestige 5">Queen Shyeed</a>
|
||||
</body></html>
|
@ -1,5 +0,0 @@
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
Excellent! I'll spread the word of your mighty Clan's defeat of the Daimon, the white-Eyed.<br>
|
||||
<a action="bypass -h Quest 509_TheClansPrestige 31331-0.htm">"I want to kill some more Raid Bosses!"</a><br>
|
||||
<a action="bypass -h Quest 509_TheClansPrestige 31331-6.htm">"I want to quit this mission."</a>
|
||||
</body></html>
|
@ -1,5 +0,0 @@
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
Excellent! I'll spread the word of your mighty Clan's defeat of the Hestia, Guardian Deity of the Hot Springs.<br>
|
||||
<a action="bypass -h Quest 509_TheClansPrestige 31331-0.htm">"I want to kill some more Raid Bosses!"</a><br>
|
||||
<a action="bypass -h Quest 509_TheClansPrestige 31331-6.htm">"I want to quit this mission."</a>
|
||||
</body></html>
|
@ -1,5 +0,0 @@
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
Excellent! I'll spread the word of your mighty Clan's defeat of the Plague Golem.<br>
|
||||
<a action="bypass -h Quest 509_TheClansPrestige 31331-0.htm">"I want to kill some more Raid Bosses!"</a><br>
|
||||
<a action="bypass -h Quest 509_TheClansPrestige 31331-6.htm">"I want to quit this mission."</a>
|
||||
</body></html>
|
@ -1,6 +0,0 @@
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
Too bad! Destroy <font color="LEVEL">Demon's Agent Falchion</font> and bring me Falston's Fang.<br>
|
||||
<font color="LEVEL">Remember, you don't need to do the killing yourself! Just stand back and let your Clan to do the work for you!</font><br>
|
||||
<a action="bypass -h Quest 509_TheClansPrestige 31331-0.htm">"I want to try another Raid Boss."</a><br>
|
||||
<a action="bypass -h Quest 509_TheClansPrestige 31331-6.htm">"I want to quit this mission."</a>
|
||||
</body></html>
|
@ -1,5 +0,0 @@
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
Excellent! I'll spread the word of your mighty Clan's defeat of the Demon's Agent Falchion.<br>
|
||||
<a action="bypass -h Quest 509_TheClansPrestige 31331-0.htm">"I want to kill some more Raid Bosses!"</a><br>
|
||||
<a action="bypass -h Quest 509_TheClansPrestige 31331-6.htm">"I want to quit this mission."</a>
|
||||
</body></html>
|
@ -1,5 +0,0 @@
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
Excellent! I'll spread the word of your mighty Clan's defeat of the Queen Shyeed.<br>
|
||||
<a action="bypass -h Quest 509_TheClansPrestige 31331-0.htm">"I want to kill some more Raid Bosses!"</a><br>
|
||||
<a action="bypass -h Quest 509_TheClansPrestige 31331-6.htm">"I want to quit this mission."</a>
|
||||
</body></html>
|
@ -1,136 +0,0 @@
|
||||
import sys
|
||||
from org.l2jmobius.gameserver.model.quest import State
|
||||
from org.l2jmobius.gameserver.model.quest import QuestState
|
||||
from org.l2jmobius.gameserver.model.quest.jython import QuestJython as JQuest
|
||||
from org.l2jmobius.gameserver.network.serverpackets import PledgeShowInfoUpdate
|
||||
from org.l2jmobius.gameserver.network.serverpackets import SystemMessage
|
||||
from org.l2jmobius.commons.util import Rnd
|
||||
|
||||
qn="509_TheClansPrestige"
|
||||
|
||||
# Quest NPC
|
||||
VALDIS = 31331
|
||||
|
||||
# Quest Items
|
||||
DAIMONS_EYES = 8489 # Daimon's Eyes: Eyes obtained by killing Daimon the White-Eyed.
|
||||
HESTIAS_FAIRY_STONE = 8490 # Hestia's Fairy Stone: Fairy Stone obtained by defeating Hestia, the Guardian Deity of the Hot Springs.
|
||||
NUCLEUS_OF_LESSER_GOLEM = 8491 # Nucleus of Lesser Golem: Nucleus obtained by defeating the Lesser Golem.
|
||||
FALSTON_FANG = 8492 # Falston's Fang: Fangs obtained by killing Falston, the Demon's Agent.
|
||||
SHAIDS_TALON = 8493 # Shaid's Talon: Talon obtained by defeating Spike Stakato Queen Shaid.
|
||||
|
||||
#Quest Raid Bosses
|
||||
DAIMON_THE_WHITE_EYED = 25290
|
||||
HESTIA_GUARDIAN_DEITY = 25293
|
||||
PLAGUE_GOLEM = 25523
|
||||
DEMONS_AGENT_FALSTON = 25322
|
||||
QUEEN_SHYEED = 25514
|
||||
|
||||
# id:[RaidBossNpcId,questItemId,minClanPoints,maxClanPoints]
|
||||
REWARDS_LIST={
|
||||
1:[DAIMON_THE_WHITE_EYED,DAIMONS_EYES,180,215],
|
||||
2:[HESTIA_GUARDIAN_DEITY,HESTIAS_FAIRY_STONE,430,465],
|
||||
3:[PLAGUE_GOLEM,NUCLEUS_OF_LESSER_GOLEM,380,415],
|
||||
4:[DEMONS_AGENT_FALSTON,FALSTON_FANG,220,255],
|
||||
5:[QUEEN_SHYEED,SHAIDS_TALON,130,165]
|
||||
}
|
||||
|
||||
RADAR={
|
||||
1:[186320,-43904,-3175],
|
||||
2:[134672,-115600,-1216],
|
||||
3:[0,0,0], # not spawned yet
|
||||
4:[93296,-75104,-1824],
|
||||
5:[79635,-55612,-5980]
|
||||
}
|
||||
|
||||
class Quest (JQuest) :
|
||||
|
||||
def __init__(self,id,name,descr) :
|
||||
JQuest.__init__(self,id,name,descr)
|
||||
self.questItemIds = [DAIMONS_EYES,HESTIAS_FAIRY_STONE,NUCLEUS_OF_LESSER_GOLEM,FALSTON_FANG,SHAIDS_TALON]
|
||||
|
||||
def onAdvEvent (self,event,npc,player) :
|
||||
st = player.getQuestState(qn)
|
||||
if not st: return
|
||||
cond = st.getInt("cond")
|
||||
htmltext=event
|
||||
if event == "31331-0.htm" :
|
||||
if cond == 0 :
|
||||
st.set("cond","1")
|
||||
st.setState(State.STARTED)
|
||||
elif event.isdigit() :
|
||||
if int(event) in REWARDS_LIST.keys():
|
||||
st.set("raid",event)
|
||||
htmltext="31331-"+event+".htm"
|
||||
x,y,z=RADAR[int(event)]
|
||||
if x+y+z:
|
||||
st.addRadar(x, y, z)
|
||||
st.playSound("ItemSound.quest_accept")
|
||||
elif event == "31331-6.htm" :
|
||||
st.playSound("ItemSound.quest_finish")
|
||||
st.exitQuest(1)
|
||||
return htmltext
|
||||
|
||||
def onTalk (self,npc,player) :
|
||||
htmltext = "<html><body>You are either not on a quest that involves this NPC, or you don't meet this NPC's minimum quest requirements.</body></html>"
|
||||
st = player.getQuestState(qn)
|
||||
if not st : return htmltext
|
||||
clan = player.getClan()
|
||||
npcId = npc.getNpcId()
|
||||
if player.getClan() == None or player.isClanLeader() == 0 :
|
||||
st.exitQuest(1)
|
||||
htmltext = "31331-0a.htm"
|
||||
elif player.getClan().getLevel() < 6 :
|
||||
st.exitQuest(1)
|
||||
htmltext = "31331-0b.htm"
|
||||
else :
|
||||
cond = st.getInt("cond")
|
||||
raid = st.getInt("raid")
|
||||
id = st.getState()
|
||||
if id == State.CREATED and cond == 0 :
|
||||
htmltext = "31331-0c.htm"
|
||||
elif id == State.STARTED and cond == 1 and raid in REWARDS_LIST.keys() :
|
||||
npc,item,min,max=REWARDS_LIST[raid]
|
||||
count = st.getQuestItemsCount(item)
|
||||
CLAN_POINTS_REWARD = Rnd.get(min, max)
|
||||
if not count :
|
||||
htmltext = "31331-"+str(raid)+"a.htm"
|
||||
elif count == 1 :
|
||||
htmltext = "31331-"+str(raid)+"b.htm"
|
||||
st.takeItems(item,1)
|
||||
clan.setReputationScore(clan.getReputationScore()+CLAN_POINTS_REWARD,True)
|
||||
player.sendPacket(SystemMessage(1777).addNumber(CLAN_POINTS_REWARD))
|
||||
clan.broadcastToOnlineMembers(PledgeShowInfoUpdate(clan))
|
||||
return htmltext
|
||||
|
||||
def onKill(self,npc,player,isPet) :
|
||||
st = 0
|
||||
if player.isClanLeader() :
|
||||
st = player.getQuestState(qn)
|
||||
else:
|
||||
clan = player.getClan()
|
||||
if clan:
|
||||
leader=clan.getLeader()
|
||||
if leader :
|
||||
pleader= leader.getPlayerInstance()
|
||||
if pleader :
|
||||
if player.isInsideRadius(pleader, 1600, 1, 0) :
|
||||
st = pleader.getQuestState(qn)
|
||||
if not st : return
|
||||
option=st.getInt("raid")
|
||||
if st.getInt("cond") == 1 and st.getState() == State.STARTED and option in REWARDS_LIST.keys():
|
||||
raid,item,min,max = REWARDS_LIST[option]
|
||||
npcId=npc.getNpcId()
|
||||
if npcId == raid and not st.getQuestItemsCount(item) :
|
||||
st.giveItems(item,1)
|
||||
st.playSound("ItemSound.quest_middle")
|
||||
return
|
||||
|
||||
|
||||
# Quest class and state definition
|
||||
QUEST = Quest(509,qn,"The Clan's Prestige")
|
||||
|
||||
QUEST.addStartNpc(VALDIS)
|
||||
QUEST.addTalkId(VALDIS)
|
||||
|
||||
for npc,item,min,max in REWARDS_LIST.values():
|
||||
QUEST.addKillId(npc)
|
@ -1,4 +0,0 @@
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
Thank you, thank you! Legend has it that these creatures are extremely vicious... Oh, but I'm sure they will pose no more trouble to such a powerful clan than a kitten with her claws! So, will you go to the Primeval Isle and slay a <font color="LEVEL">Tyrannosaurus</font>? <br><font color="LEVEL">Naturally, we don't expect you personally to slay the creature.</font> There is no rule requiring a clan leader to brandish his own sword in these matters. <font color="LEVEL">Simply stay nearby and watch your clan members slay the Tyrannosaurus and return here with its claws.</font><font color="LEVEL">It's vital that the claw be undamaged, you understand, which means...uh, well, it's probably best that you capture the creature before slaying it. I hope that doesn't complicate the task for you!</font> <br>
|
||||
I'll be here anxiously awaiting your good news.
|
||||
</body></html>
|
@ -1,5 +0,0 @@
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
Are you still here? Hurry to the Primeval Isle and bring back the <font color="LEVEL">Tyrannosaurus Claw</font> that I requested. Do you have any other business with me? <br>
|
||||
<a action="bypass -h Quest 510_AClansReputation 31331-5.htm">"No, nothing. I'll go get the material. "</a><br>
|
||||
<a action="bypass -h Quest 510_AClansReputation 31331-6.htm">"I wish to stop now."</a>
|
||||
</body></html>
|
@ -1,5 +0,0 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Well done! I'll spread the news that your brave Clan hat defeated Tyrannosaurus!<br>
|
||||
<a action="bypass -h Quest 510_AClansReputation 31331-5.htm">"I want to continue killing Tyrannosaurus."</a><br>
|
||||
<a action="bypass -h Quest 510_AClansReputation 31331-6.htm">"I wish to stop now."</a>
|
||||
</body></html>
|
@ -1,99 +0,0 @@
|
||||
import sys
|
||||
from org.l2jmobius.gameserver.model.quest import State
|
||||
from org.l2jmobius.gameserver.model.quest import QuestState
|
||||
from org.l2jmobius.gameserver.model.quest.jython import QuestJython as JQuest
|
||||
from org.l2jmobius.gameserver.network.serverpackets import PledgeShowInfoUpdate
|
||||
from org.l2jmobius.gameserver.network.serverpackets import SystemMessage
|
||||
|
||||
qn="510_AClansReputation"
|
||||
|
||||
# Quest NPC
|
||||
Valdis = 31331
|
||||
|
||||
# Quest Items
|
||||
Claw = 8767
|
||||
|
||||
# Reward
|
||||
CLAN_POINTS_REWARD = 50 # Rep Points Per Tyrannosaurus Item - need to be confirmed
|
||||
|
||||
class Quest (JQuest) :
|
||||
|
||||
def __init__(self,id,name,descr) :
|
||||
JQuest.__init__(self,id,name,descr)
|
||||
self.questItemIds = [Claw]
|
||||
|
||||
def onAdvEvent (self,event,npc,player) :
|
||||
st = player.getQuestState(qn)
|
||||
if not st: return
|
||||
cond = st.getInt("cond")
|
||||
htmltext=event
|
||||
if event == "31331-3.htm" :
|
||||
if cond == 0 :
|
||||
st.set("cond","1")
|
||||
st.setState(State.STARTED)
|
||||
st.playSound("ItemSound.quest_accept")
|
||||
elif event == "31331-6.htm" :
|
||||
st.playSound("ItemSound.quest_finish")
|
||||
st.exitQuest(1)
|
||||
return htmltext
|
||||
|
||||
def onTalk (self,npc,player) :
|
||||
htmltext = "<html><body>You are either not on a quest that involves this NPC, or you don't meet this NPC's minimum quest requirements.</body></html>"
|
||||
st = player.getQuestState(qn)
|
||||
if not st : return htmltext
|
||||
clan = player.getClan()
|
||||
npcId = npc.getNpcId()
|
||||
if player.getClan() == None or player.isClanLeader() == 0 :
|
||||
st.exitQuest(1)
|
||||
htmltext = "31331-0.htm"
|
||||
elif player.getClan().getLevel() < 5 :
|
||||
st.exitQuest(1)
|
||||
htmltext = "31331-0.htm"
|
||||
else :
|
||||
cond = st.getInt("cond")
|
||||
id = st.getState()
|
||||
if id == State.CREATED and cond == 0 :
|
||||
htmltext = "31331-1.htm"
|
||||
elif id == State.STARTED and cond == 1 :
|
||||
count = st.getQuestItemsCount(Claw)
|
||||
if not count :
|
||||
htmltext = "31331-4.htm"
|
||||
elif count >= 1 :
|
||||
htmltext = "31331-7.htm" # custom html
|
||||
st.takeItems(Claw,-1)
|
||||
reward = int(CLAN_POINTS_REWARD * count)
|
||||
clan.setReputationScore(clan.getReputationScore()+reward,True)
|
||||
player.sendPacket(SystemMessage(1777).addNumber(reward))
|
||||
clan.broadcastToOnlineMembers(PledgeShowInfoUpdate(clan))
|
||||
return htmltext
|
||||
|
||||
def onKill(self,npc,player,isPet) :
|
||||
st = 0
|
||||
if player.isClanLeader() :
|
||||
st = player.getQuestState(qn)
|
||||
else:
|
||||
clan = player.getClan()
|
||||
if clan:
|
||||
leader=clan.getLeader()
|
||||
if leader :
|
||||
pleader= leader.getPlayerInstance()
|
||||
if pleader :
|
||||
if player.isInsideRadius(pleader, 1600, 1, 0) :
|
||||
st = pleader.getQuestState(qn)
|
||||
if not st : return
|
||||
if st.getState() == State.STARTED :
|
||||
npcId=npc.getNpcId()
|
||||
if npcId in range(22215,22218) :
|
||||
st.giveItems(Claw,1)
|
||||
st.playSound("ItemSound.quest_itemget")
|
||||
return
|
||||
|
||||
|
||||
# Quest class and state definition
|
||||
QUEST = Quest(510,qn,"A Clan's Reputation")
|
||||
|
||||
QUEST.addStartNpc(Valdis)
|
||||
QUEST.addTalkId(Valdis)
|
||||
|
||||
for npc in range(22215,22218):
|
||||
QUEST.addKillId(npc)
|
@ -572,6 +572,7 @@ public class Q501_ProofOfClanAlliance extends Quest
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public QuestState getClanLeaderQuestState(PlayerInstance player, NpcInstance npc)
|
||||
{
|
||||
final Clan clan = player.getClan();
|
||||
|
9
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-0.htm
vendored
Normal file
9
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-0.htm
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Which Raid Boss do you wish to take on?<br>
|
||||
<a action="bypass -h Quest Q508_AClansReputation 1">Palibati Queen Themis</a><br>
|
||||
<a action="bypass -h Quest Q508_AClansReputation 2">Hekaton Prime</a><br>
|
||||
<a action="bypass -h Quest Q508_AClansReputation 3">Gargoyle Lord Tiphon</a><br>
|
||||
<a action="bypass -h Quest Q508_AClansReputation 4">Last Lesser Giant Glaki</a><br>
|
||||
<a action="bypass -h Quest Q508_AClansReputation 5">Rahha</a><br>
|
||||
<a action="bypass -h Quest Q508_AClansReputation 6">Flamestone Giant</a><br>
|
||||
</body></html>
|
@ -1,7 +1,7 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Hearing this, you may think that the place has the bustling atmosphere of a metropolitan area. But due to its proximity to the border with Elmore, it always tends to maintain a somewhat tense atmosphere. The two types of atmosphere were always co-mingling and created a unique balance for years.<br>
|
||||
But an increasing number of powerful monsters started to be a major menace to this balance. Of course we, the honorable citizens of Aden can not get our hands bloody nor pose a risk to our personal belongings by sending the city guards into the task of making these daemons to retreat.<br>
|
||||
However, if we find some private army brave enough to join forces with us, there's one thing we can surely grant as a payment given our position and influence, and <font color="LEVEL"> Reputation</font> it is.<br>
|
||||
However, if we find some private army brave enough to join forces with us, there's one thing we can surely grant as a payment given our position and influence, and <font color="LEVEL">Reputation</font> it is.<br>
|
||||
I can see you're not the kind of people with the vein of a leader, so we have nothing to talk about.<br>
|
||||
(Only the leader of a clan level 5 or above may undertake this quest)
|
||||
(This quest may only be undertaken by a leader of a clan level 5 and above.)
|
||||
</body></html>
|
@ -1,7 +1,7 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Hearing this, you may think that the place has the bustling atmosphere of a metropolitan area. But due to its proximity to the border with Elmore, it always tends to maintain a somewhat tense atmosphere. The two types of atmosphere were always co-mingling and created a unique balance for years.<br>
|
||||
But an increasing number of powerful monsters started to be a major menace to this balance. Of course we, the honorable citizens of Aden can not get our hands bloody nor pose a risk to our personal belongings by sending the city guards into the task of making these daemons to retreat.<br>
|
||||
However, if we find some private army brave enough to join forces with us, there's one thing we can surely grant as a payment given our position and influence, and <font color="LEVEL"> Reputation</font> it is.<br>
|
||||
However, if we find some private army brave enough to join forces with us, there's one thing we can surely grant as a payment given our position and influence, and <font color="LEVEL">Reputation</font> it is.<br>
|
||||
I've been told you lead a personal army, but i'm afraid your fellows may lack the strenght required for we to engage in a business.<br>
|
||||
(This quest may only be undertaken by clans of level 5 and above)
|
||||
(This quest may only be undertaken by a leader of a clan level 5 and above.)
|
||||
</body></html>
|
@ -1,7 +1,7 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Hearing this, you may think that the place has the bustling atmosphere of a metropolitan area. But due to its proximity to the border with Elmore, it always tends to maintain a somewhat tense atmosphere. The two types of atmosphere were always co-mingling and created a unique balance for years.<br>
|
||||
But an increasing number of powerful monsters known as<font color="LEVEL"> Raid Bosses</font> started to terrorize town's people and are a major menace to this balance. Of course we, the honorable citizens of Aden can not get our hands bloody nor pose a risk to our personal belongings by sending the city guards into the task of making these daemons to retreat.<br>
|
||||
However, if we find some private army brave enough to join forces with us, there's one thing we can surely grant as a payment given our position and influence, and <font color="LEVEL"> Reputation</font> it is.<br>
|
||||
But an increasing number of powerful monsters known as <font color="LEVEL">Raid Bosses</font> started to terrorize town's people and are a major menace to this balance. Of course we, the honorable citizens of Aden can not get our hands bloody nor pose a risk to our personal belongings by sending the city guards into the task of making these daemons to retreat.<br>
|
||||
However, if we find some private army brave enough to join forces with us, there's one thing we can surely grant as a payment given our position and influence, and <font color="LEVEL">Reputation</font> it is.<br>
|
||||
I've been told you lead a personal army. Of course we know a leader like you won't have to risk his life on the task, so if you can grant your subordinates will accomplish our requests i can give you further details, what you say?<br>
|
||||
<a action="bypass -h Quest 508_TheClansReputation 30868-0.htm">Yes, my clan will help you</a>
|
||||
<a action="bypass -h Quest Q508_AClansReputation 30868-0.htm">Yes, my clan will help you</a><br>
|
||||
</body></html>
|
4
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-1.htm
vendored
Normal file
4
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-1.htm
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Very good! Slaughter <font color="LEVEL">Palibati Queen Themis</font> and bring me her scale!<br>
|
||||
<font color="LEVEL">As I told you before, you don't have to kill her yourself!</font> There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place and watch your Clan kill Palibati Queen Themis and then bring her scale to me.
|
||||
</body></html>
|
6
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-1a.htm
vendored
Normal file
6
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-1a.htm
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Too bad! I need you to slaughter <font color="LEVEL">Palibati Queen Themis</font> and bring me her scale!<br>
|
||||
<font color="LEVEL">As I told you before, you don't have to kill her yourself!</font> There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place and watch your Clan kill Palibati Queen Themis and then bring her scale to me.<br>
|
||||
<a action="bypass -h Quest Q508_AClansReputation 30868-0.htm">"I want to try another Raid Boss."</a><br>
|
||||
<a action="bypass -h Quest Q508_AClansReputation 30868-7.htm">Quit</a>
|
||||
</body></html>
|
5
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-1b.htm
vendored
Normal file
5
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-1b.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Well done! I'll spread the news that your brave Clan hat defeated Palibati Queen Themis.<br>
|
||||
<a action="bypass -h Quest Q508_AClansReputation 30868-0.htm">"I want to continue killing Raid Bosses."</a><br>
|
||||
<a action="bypass -h Quest Q508_AClansReputation 30868-7.htm">Quit</a>
|
||||
</body></html>
|
@ -1,4 +1,4 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Very good! Slaughter<font color="LEVEL"> Hekaton Prime </font>and bring me his Nucleus!<br>
|
||||
<font color="LEVEL">As I told you before, you don't have to kill him yourself!</font> There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place an watch your Clan kill Hekaton Prime and then bring his Nucleus to me.
|
||||
Very good! Slaughter <font color="LEVEL">Hekaton Prime</font> and bring me his Nucleus!<br>
|
||||
<font color="LEVEL">As I told you before, you don't have to kill him yourself!</font> There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place and watch your Clan kill Hekaton Prime and then bring his Nucleus to me.
|
||||
</body></html>
|
6
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-2a.htm
vendored
Normal file
6
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-2a.htm
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Too bad! I need you to slaughter <font color="LEVEL">Hekaton Prime</font> and bring me his Nucleus!<br>
|
||||
<font color="LEVEL">As I told you before, you don't have to kill him yourself!</font> There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place and watch your Clan kill Hekaton Prime and then bring his Nucleus to me.<br>
|
||||
<a action="bypass -h Quest Q508_AClansReputation 30868-0.htm">"I want to try another Raid Boss."</a><br>
|
||||
<a action="bypass -h Quest Q508_AClansReputation 30868-7.htm">Quit</a>
|
||||
</body></html>
|
5
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-2b.htm
vendored
Normal file
5
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-2b.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Well done! I'll spread the news that your brave Clan hat defeated Hekaton Prime.<br>
|
||||
<a action="bypass -h Quest Q508_AClansReputation 30868-0.htm">"I want to continue killing Raid Bosses."</a><br>
|
||||
<a action="bypass -h Quest Q508_AClansReputation 30868-7.htm">Quit</a>
|
||||
</body></html>
|
4
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-3.htm
vendored
Normal file
4
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-3.htm
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Very good! Slaughter <font color="LEVEL">Gargoyle Lord Tiphon</font> and bring me his Shard!<br>
|
||||
<font color="LEVEL">As I told you before, you don't have to kill him yourself!</font> There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place and watch your Clan kill Gargoyle Lord Tiphon and then bring his Shard to me.
|
||||
</body></html>
|
6
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-3a.htm
vendored
Normal file
6
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-3a.htm
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Too bad! I need you to slaughter <font color="LEVEL">Gargoyle Lord Tiphon</font> and bring me his Shard!<br>
|
||||
<font color="LEVEL">As I told you before, you don't have to kill him yourself!</font> There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place and watch your Clan kill Gargoyle Lord Tiphon and then bring his Shard to me.<br>
|
||||
<a action="bypass -h Quest Q508_AClansReputation 30868-0.htm">"I want to try another Raid Boss."</a><br>
|
||||
<a action="bypass -h Quest Q508_AClansReputation 30868-7.htm">Quit</a>
|
||||
</body></html>
|
5
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-3b.htm
vendored
Normal file
5
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-3b.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Well done! I'll spread the news that your brave Clan hat defeated Gargoyle Lord Tiphon.<br>
|
||||
<a action="bypass -h Quest Q508_AClansReputation 30868-0.htm">"I want to continue killing Raid Bosses."</a><br>
|
||||
<a action="bypass -h Quest Q508_AClansReputation 30868-7.htm">Quit</a>
|
||||
</body></html>
|
4
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-4.htm
vendored
Normal file
4
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-4.htm
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Very good! Slaughter <font color="LEVEL">Last Lesser Giant Glaki</font> and bring me his Nucleus!<br>
|
||||
<font color="LEVEL">As I told you before, you don't have to kill him yourself!</font> There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place and watch your Clan kill Last Lesser Giant Glaki and then bring his Nucleus to me.
|
||||
</body></html>
|
6
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-4a.htm
vendored
Normal file
6
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-4a.htm
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Too bad! I need you to slaughter <font color="LEVEL">Last Lesser Giant Glaki</font> and bring me his Nucleus!<br>
|
||||
<font color="LEVEL">As I told you before, you don't have to kill him yourself!</font> There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place and watch your Clan kill Last Lesser Giant Glaki and then bring his Nucleus to me.<br>
|
||||
<a action="bypass -h Quest Q508_AClansReputation 30868-0.htm">"I want to try another Raid Boss."</a><br>
|
||||
<a action="bypass -h Quest Q508_AClansReputation 30868-7.htm">Quit</a>
|
||||
</body></html>
|
5
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-4b.htm
vendored
Normal file
5
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-4b.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Well done! I'll spread the news that your brave Clan hat defeated Last Lesser Giant Glaki.<br>
|
||||
<a action="bypass -h Quest Q508_AClansReputation 30868-0.htm">"I want to continue killing Raid Bosses."</a><br>
|
||||
<a action="bypass -h Quest Q508_AClansReputation 30868-7.htm">Quit</a>
|
||||
</body></html>
|
@ -1,4 +1,4 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Very good! Slaughter<font color="LEVEL"> Rahha </font>and bring me her fang!<br>
|
||||
<font color="LEVEL">As I told you before, you don't have to kill her yourself!</font> There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place an watch your Clan kill Rahha and then bring her fang to me.
|
||||
Very good! Slaughter <font color="LEVEL">Rahha</font> and bring me her fang!<br>
|
||||
<font color="LEVEL">As I told you before, you don't have to kill her yourself!</font> There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place and watch your Clan kill Rahha and then bring her fang to me.
|
||||
</body></html>
|
6
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-5a.htm
vendored
Normal file
6
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-5a.htm
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Too bad! I need you to slaughter <font color="LEVEL">Rahha</font> and bring me her fang!<br>
|
||||
<font color="LEVEL">As I told you before, you don't have to kill her yourself!</font> There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place and watch your Clan kill Rahha and then bring her fang to me.<br>
|
||||
<a action="bypass -h Quest Q508_AClansReputation 30868-0.htm">"I want to try another Raid Boss."</a><br>
|
||||
<a action="bypass -h Quest Q508_AClansReputation 30868-7.htm">Quit</a>
|
||||
</body></html>
|
5
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-5b.htm
vendored
Normal file
5
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-5b.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Well done! I'll spread the news that your brave Clan hat defeated Rahha.<br>
|
||||
<a action="bypass -h Quest Q508_AClansReputation 30868-0.htm">"I want to continue killing Raid Bosses."</a><br>
|
||||
<a action="bypass -h Quest Q508_AClansReputation 30868-7.htm">Quit</a>
|
||||
</body></html>
|
4
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-6.htm
vendored
Normal file
4
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-6.htm
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Very good! Slaughter <font color="LEVEL">Flamestone Giant</font> and bring me his Nucleus!<br>
|
||||
<font color="LEVEL">As I told you before, you don't have to kill him yourself!</font> There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place and watch your Clan kill Flamestone Giant and then bring his Nucleus to me.
|
||||
</body></html>
|
6
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-6a.htm
vendored
Normal file
6
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-6a.htm
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Too bad! I need you to slaughter <font color="LEVEL">Flamestone Giant</font> and bring me his Nucleus!<br>
|
||||
<font color="LEVEL">As I told you before, you don't have to kill him yourself!</font> There's no rule that says the Clan Leader has to get his hands bloody! Just stand in a safe place and watch your Clan kill Flamestone Giant and then bring his Nucleus to me.<br>
|
||||
<a action="bypass -h Quest Q508_AClansReputation 30868-0.htm">"I want to try another Raid Boss."</a><br>
|
||||
<a action="bypass -h Quest Q508_AClansReputation 30868-7.htm">Quit</a>
|
||||
</body></html>
|
5
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-6b.htm
vendored
Normal file
5
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q508_AClansReputation/30868-6b.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Sir Eric Rodemai:<br>
|
||||
Well done! I'll spread the news that your brave Clan hat defeated Flamestone Giant.<br>
|
||||
<a action="bypass -h Quest Q508_AClansReputation 30868-0.htm">"I want to continue killing Raid Bosses."</a><br>
|
||||
<a action="bypass -h Quest Q508_AClansReputation 30868-7.htm">Quit</a>
|
||||
</body></html>
|
@ -3,5 +3,5 @@ I believe that leaders are expected to supply two things most of all.<br>
|
||||
One is a compelling vision or sense of purpose for the group. And you bear a special responsibility to articulate that vision, and in a very compelling fashion.<br>
|
||||
And the second thing is to provide clear decisions. Doing that requires data collection and consultation, but ultimately leaders must set a direction.<br>
|
||||
Anyway you're welcome whenever you change your mind and decide we'd need to discuss the reputation of your clan again.<br>
|
||||
Farewell, and may we meet again in happier times.
|
||||
Farewell, and may we meet again in happier times.<br>
|
||||
</body></html>
|
@ -0,0 +1,267 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program 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.
|
||||
*
|
||||
* This program 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 quests.Q508_AClansReputation;
|
||||
|
||||
import org.l2jmobius.commons.util.Rnd;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.NpcInstance;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.clan.Clan;
|
||||
import org.l2jmobius.gameserver.model.quest.Quest;
|
||||
import org.l2jmobius.gameserver.model.quest.QuestState;
|
||||
import org.l2jmobius.gameserver.model.quest.State;
|
||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.PledgeShowInfoUpdate;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
||||
import org.l2jmobius.gameserver.util.Util;
|
||||
|
||||
public class Q508_AClansReputation extends Quest
|
||||
{
|
||||
private static final String qn = "Q508_AClansReputation";
|
||||
|
||||
// NPC
|
||||
private static final int SIR_ERIC_RODEMAI = 30868;
|
||||
|
||||
// Items
|
||||
private static final int NUCLEUS_OF_FLAMESTONE_GIANT = 8494;
|
||||
private static final int THEMIS_SCALE = 8277;
|
||||
private static final int NUCLEUS_OF_HEKATON_PRIME = 8279;
|
||||
private static final int TIPHON_SHARD = 8280;
|
||||
private static final int GLAKIS_NUCLEUS = 8281;
|
||||
private static final int RAHHAS_FANG = 8282;
|
||||
|
||||
// Raidbosses
|
||||
private static final int FLAMESTONE_GIANT = 25524;
|
||||
private static final int PALIBATI_QUEEN_THEMIS = 25252;
|
||||
private static final int HEKATON_PRIME = 25140;
|
||||
private static final int GARGOYLE_LORD_TIPHON = 25255;
|
||||
private static final int LAST_LESSER_GIANT_GLAKI = 25245;
|
||||
private static final int RAHHA = 25051;
|
||||
|
||||
// Reward list (itemId, minClanPoints, maxClanPoints)
|
||||
private static final int reward_list[][] =
|
||||
{
|
||||
{
|
||||
PALIBATI_QUEEN_THEMIS,
|
||||
THEMIS_SCALE,
|
||||
65,
|
||||
100
|
||||
},
|
||||
{
|
||||
HEKATON_PRIME,
|
||||
NUCLEUS_OF_HEKATON_PRIME,
|
||||
40,
|
||||
75
|
||||
},
|
||||
{
|
||||
GARGOYLE_LORD_TIPHON,
|
||||
TIPHON_SHARD,
|
||||
30,
|
||||
65
|
||||
},
|
||||
{
|
||||
LAST_LESSER_GIANT_GLAKI,
|
||||
GLAKIS_NUCLEUS,
|
||||
105,
|
||||
140
|
||||
},
|
||||
{
|
||||
RAHHA,
|
||||
RAHHAS_FANG,
|
||||
40,
|
||||
75
|
||||
},
|
||||
{
|
||||
FLAMESTONE_GIANT,
|
||||
NUCLEUS_OF_FLAMESTONE_GIANT,
|
||||
60,
|
||||
95
|
||||
}
|
||||
};
|
||||
|
||||
// Radar
|
||||
private static final int radar[][] =
|
||||
{
|
||||
{
|
||||
192346,
|
||||
21528,
|
||||
-3648
|
||||
},
|
||||
{
|
||||
191979,
|
||||
54902,
|
||||
-7658
|
||||
},
|
||||
{
|
||||
170038,
|
||||
-26236,
|
||||
-3824
|
||||
},
|
||||
{
|
||||
171762,
|
||||
55028,
|
||||
-5992
|
||||
},
|
||||
{
|
||||
117232,
|
||||
-9476,
|
||||
-3320
|
||||
},
|
||||
{
|
||||
144218,
|
||||
-5816,
|
||||
-4722
|
||||
}
|
||||
};
|
||||
|
||||
public Q508_AClansReputation()
|
||||
{
|
||||
super(508, qn, "A Clan's Reputation");
|
||||
|
||||
registerQuestItems(THEMIS_SCALE, NUCLEUS_OF_HEKATON_PRIME, TIPHON_SHARD, GLAKIS_NUCLEUS, RAHHAS_FANG, NUCLEUS_OF_FLAMESTONE_GIANT);
|
||||
|
||||
addStartNpc(SIR_ERIC_RODEMAI);
|
||||
addTalkId(SIR_ERIC_RODEMAI);
|
||||
|
||||
addKillId(FLAMESTONE_GIANT, PALIBATI_QUEEN_THEMIS, HEKATON_PRIME, GARGOYLE_LORD_TIPHON, LAST_LESSER_GIANT_GLAKI, RAHHA);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(qn);
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
if (Util.isDigit(event))
|
||||
{
|
||||
int evt = Integer.parseInt(event);
|
||||
st.set("raid", event);
|
||||
htmltext = "30868-" + event + ".htm";
|
||||
|
||||
int x = radar[evt - 1][0];
|
||||
int y = radar[evt - 1][1];
|
||||
int z = radar[evt - 1][2];
|
||||
|
||||
if ((x + y + z) > 0)
|
||||
{
|
||||
st.addRadar(x, y, z);
|
||||
}
|
||||
|
||||
st.set("cond", "1");
|
||||
st.setState(State.STARTED);
|
||||
st.playSound(QuestState.SOUND_ACCEPT);
|
||||
}
|
||||
else if (event.equalsIgnoreCase("30868-7.htm"))
|
||||
{
|
||||
st.playSound(QuestState.SOUND_FINISH);
|
||||
st.exitQuest(true);
|
||||
}
|
||||
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(qn);
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
Clan clan = player.getClan();
|
||||
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
if (!player.isClanLeader())
|
||||
{
|
||||
st.exitQuest(true);
|
||||
htmltext = "30868-0a.htm";
|
||||
}
|
||||
else if (clan.getLevel() < 5)
|
||||
{
|
||||
st.exitQuest(true);
|
||||
htmltext = "30868-0b.htm";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "30868-0c.htm";
|
||||
}
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int raid = st.getInt("raid");
|
||||
if (st.getInt("cond") == 1)
|
||||
{
|
||||
int item = reward_list[raid - 1][1];
|
||||
int count = st.getQuestItemsCount(item);
|
||||
int reward = Rnd.get(reward_list[raid - 1][2], reward_list[raid - 1][3]);
|
||||
|
||||
if (count == 0)
|
||||
{
|
||||
htmltext = "30868-" + raid + "a.htm";
|
||||
}
|
||||
else if (count == 1)
|
||||
{
|
||||
htmltext = "30868-" + raid + "b.htm";
|
||||
st.takeItems(item, 1);
|
||||
clan.setReputationScore(clan.getReputationScore() + reward, true);
|
||||
player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.CLAN_QUEST_COMPLETED_AND_S1_POINTS_GAINED).addNumber(reward));
|
||||
clan.broadcastToOnlineMembers(new PledgeShowInfoUpdate(clan));
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
// Retrieve the qS of the clan leader.
|
||||
QuestState st = getClanLeaderQuestState(player, npc);
|
||||
if ((st == null) || !st.isStarted())
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Reward only if quest is setup on good index.
|
||||
int raid = st.getInt("raid");
|
||||
if (reward_list[raid - 1][0] == npc.getNpcId())
|
||||
{
|
||||
int item = reward_list[raid - 1][1];
|
||||
if (!st.hasQuestItems(item))
|
||||
{
|
||||
st.giveItems(item, 1);
|
||||
st.playSound(QuestState.SOUND_MIDDLE);
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
new Q508_AClansReputation();
|
||||
}
|
||||
}
|
8
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-0.htm
vendored
Normal file
8
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-0.htm
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
Take your pick!<br>
|
||||
<a action="bypass -h Quest Q509_TheClansPrestige 1">Daimon the White-Eyed</a><br>
|
||||
<a action="bypass -h Quest Q509_TheClansPrestige 2">Hestia, Guardian Deity of the Hot Springs</a><br>
|
||||
<a action="bypass -h Quest Q509_TheClansPrestige 3">Plague Golem</a><br>
|
||||
<a action="bypass -h Quest Q509_TheClansPrestige 4">Demon's Agent Falston</a><br>
|
||||
<a action="bypass -h Quest Q509_TheClansPrestige 5">Queen Shyeed</a><br>
|
||||
</body></html>
|
@ -1,7 +1,7 @@
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
Hearing this, you may think that the place has the bustling atmosphere of a metropolitan area. But due to its proximity to the border with Elmore, it always tends to maintain a somewhat tense atmosphere. The two types of atmosphere were always co-mingling and created a unique balance for years.<br>
|
||||
But an increasing number of powerful monsters started to be a major menace to this balance. Of course we, the honorable citizens of Rune can not get our hands bloody nor pose a risk to our personal belongings by sending the city guards into the task of making these daemons to retreat.<br>
|
||||
However, if we find some private army brave enough to join forces with us, there's one thing we can surely grant as a payment given our position and influence, and <font color="LEVEL"> Reputation</font> it is.<br>
|
||||
However, if we find some private army brave enough to join forces with us, there's one thing we can surely grant as a payment given our position and influence, and <font color="LEVEL">Reputation</font> it is.<br>
|
||||
I can see you're not the kind of people with the vein of a leader, so we have nothing to talk about.<br>
|
||||
(Only the leader of a clan level 6 or above may undertake this quest)
|
||||
(This quest may only be undertaken by a leader of a clan level 6 and above.)
|
||||
</body></html>
|
@ -1,7 +1,7 @@
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
Hearing this, you may think that the place has the bustling atmosphere of a metropolitan area. But due to its proximity to the border with Elmore, it always tends to maintain a somewhat tense atmosphere. The two types of atmosphere were always co-mingling and created a unique balance for years.<br>
|
||||
But an increasing number of powerful monsters started to be a major menace to this balance. Of course we, the honorable citizens of Rune can not get our hands bloody nor pose a risk to our personal belongings by sending the city guards into the task of making these daemons to retreat.<br>
|
||||
However, if we find some private army brave enough to join forces with us, there's one thing we can surely grant as a payment given our position and influence, and <font color="LEVEL"> Reputation</font> it is.<br>
|
||||
However, if we find some private army brave enough to join forces with us, there's one thing we can surely grant as a payment given our position and influence, and <font color="LEVEL">Reputation</font> it is.<br>
|
||||
I've been told you lead a personal army, but i'm afraid your fellows may lack the strenght required for we to engage in a business.<br>
|
||||
(This quest may only be undertaken by clans of level 6 and above)
|
||||
(This quest may only be undertaken by a leader of a clan level 6 and above.)
|
||||
</body></html>
|
@ -1,7 +1,7 @@
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
Hearing this, you may think that the place has the bustling atmosphere of a metropolitan area. But due to its proximity to the border with Elmore, it always tends to maintain a somewhat tense atmosphere. The two types of atmosphere were always co-mingling and created a unique balance for years.<br>
|
||||
But an increasing number of powerful monsters known as<font color="LEVEL"> Raid Bosses</font> started to terrorize town's people and are a major menace to this balance. Of course we, the honorable citizens of Rune can not get our hands bloody nor pose a risk to our personal belongings by sending the city guards into the task of making these daemons to retreat.<br>
|
||||
However, if we find some private army brave enough to join forces with us, there's one thing we can surely grant as a payment given our position and influence, and <font color="LEVEL"> Reputation</font> it is.<br>
|
||||
But an increasing number of powerful monsters known as <font color="LEVEL">Raid Bosses</font> started to terrorize town's people and are a major menace to this balance. Of course we, the honorable citizens of Rune can not get our hands bloody nor pose a risk to our personal belongings by sending the city guards into the task of making these daemons to retreat.<br>
|
||||
However, if we find some private army brave enough to join forces with us, there's one thing we can surely grant as a payment given our position and influence, and <font color="LEVEL">Reputation</font> it is.<br>
|
||||
I've been told you lead a personal army. Of course we know a leader like you won't have to risk his life on the task, so if you can grant your subordinates will accomplish our requests i can give you further details, what you say?<br>
|
||||
<a action="bypass -h Quest 509_TheClansPrestige 31331-0.htm">Yes, my clan will help you</a>
|
||||
<a action="bypass -h Quest Q509_TheClansPrestige 31331-0.htm">Yes, my clan will help you</a><br>
|
||||
</body></html>
|
@ -1,6 +1,6 @@
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
Too bad! Destroy <font color="LEVEL">Daimon, the white-Eyed</font> and bring me Daimon's Eyes.<br>
|
||||
<font color="LEVEL">Remember, you don't need to do the killing yourself! Just stand back and let your Clan to do the work for you!</font><br>
|
||||
<a action="bypass -h Quest 509_TheClansPrestige 31331-0.htm">"I want to try another Raid Boss."</a><br>
|
||||
<a action="bypass -h Quest 509_TheClansPrestige 31331-6.htm">"I want to quit this mission."</a>
|
||||
<a action="bypass -h Quest Q509_TheClansPrestige 31331-0.htm">"I want to try another Raid Boss."</a><br>
|
||||
<a action="bypass -h Quest Q509_TheClansPrestige 31331-6.htm">"I want to quit this mission."</a>
|
||||
</body></html>
|
5
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-1b.htm
vendored
Normal file
5
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-1b.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
Excellent! I'll spread the word of your mighty Clan's defeat of the Daimon, the white-Eyed.<br>
|
||||
<a action="bypass -h Quest Q509_TheClansPrestige 31331-0.htm">"I want to kill some more Raid Bosses!"</a><br>
|
||||
<a action="bypass -h Quest Q509_TheClansPrestige 31331-6.htm">"I want to quit this mission."</a>
|
||||
</body></html>
|
@ -1,6 +1,6 @@
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
Too bad! Destroy <font color="LEVEL">Hestia, Guardian Deity of the Hot Springs</font> and bring me Hestia's Fairy Stone.<br>
|
||||
<font color="LEVEL">Remember, you don't need to do the killing yourself! Just stand back and let your Clan to do the work for you!</font><br>
|
||||
<a action="bypass -h Quest 509_TheClansPrestige 31331-6.htm">"I want to quit this mission."</a>
|
||||
<a action="bypass -h Quest 509_TheClansPrestige 31331-6.htm">Quit</a>
|
||||
<a action="bypass -h Quest Q509_TheClansPrestige 31331-0.htm">"I want to try another Raid Boss."</a><br>
|
||||
<a action="bypass -h Quest Q509_TheClansPrestige 31331-6.htm">"I want to quit this mission."</a>
|
||||
</body></html>
|
5
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-2b.htm
vendored
Normal file
5
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-2b.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
Excellent! I'll spread the word of your mighty Clan's defeat of the Hestia, Guardian Deity of the Hot Springs.<br>
|
||||
<a action="bypass -h Quest Q509_TheClansPrestige 31331-0.htm">"I want to kill some more Raid Bosses!"</a><br>
|
||||
<a action="bypass -h Quest Q509_TheClansPrestige 31331-6.htm">"I want to quit this mission."</a>
|
||||
</body></html>
|
@ -1,6 +1,6 @@
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
Too bad! Destroy <font color="LEVEL">Plague Golem</font> and bring me Nucleus of Lesser Golem.<br>
|
||||
<font color="LEVEL">Remember, you don't need to do the killing yourself! Just stand back and let your Clan to do the work for you!</font><br>
|
||||
<a action="bypass -h Quest 509_TheClansPrestige 31331-0.htm">"I want to try another Raid Boss."</a><br>
|
||||
<a action="bypass -h Quest 509_TheClansPrestige 31331-6.htm">"I want to quit this mission."</a>
|
||||
<a action="bypass -h Quest Q509_TheClansPrestige 31331-0.htm">"I want to try another Raid Boss."</a><br>
|
||||
<a action="bypass -h Quest Q509_TheClansPrestige 31331-6.htm">"I want to quit this mission."</a>
|
||||
</body></html>
|
5
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-3b.htm
vendored
Normal file
5
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-3b.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
Excellent! I'll spread the word of your mighty Clan's defeat of the Plague Golem.<br>
|
||||
<a action="bypass -h Quest Q509_TheClansPrestige 31331-0.htm">"I want to kill some more Raid Bosses!"</a><br>
|
||||
<a action="bypass -h Quest Q509_TheClansPrestige 31331-6.htm">"I want to quit this mission."</a>
|
||||
</body></html>
|
@ -1,4 +1,4 @@
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
Very good! Destroy <font color="LEVEL">Demon's Agent Falchion</font> and bring me Falston's Fang.<br>
|
||||
Very good! Destroy <font color="LEVEL">Demon's Agent Falston</font> and bring me Falston's Fang.<br>
|
||||
<font color="LEVEL">Remember, you don't need to do the killing yourself! Just stand back and let your Clan to do the work for you!</font>
|
||||
</body></html>
|
6
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-4a.htm
vendored
Normal file
6
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-4a.htm
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
Too bad! Destroy <font color="LEVEL">Demon's Agent Falston</font> and bring me Falston's Fang.<br>
|
||||
<font color="LEVEL">Remember, you don't need to do the killing yourself! Just stand back and let your Clan to do the work for you!</font><br>
|
||||
<a action="bypass -h Quest Q509_TheClansPrestige 31331-0.htm">"I want to try another Raid Boss."</a><br>
|
||||
<a action="bypass -h Quest Q509_TheClansPrestige 31331-6.htm">"I want to quit this mission."</a>
|
||||
</body></html>
|
5
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-4b.htm
vendored
Normal file
5
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-4b.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
Excellent! I'll spread the word of your mighty Clan's defeat of the Demon's Agent Falston.<br>
|
||||
<a action="bypass -h Quest Q509_TheClansPrestige 31331-0.htm">"I want to kill some more Raid Bosses!"</a><br>
|
||||
<a action="bypass -h Quest Q509_TheClansPrestige 31331-6.htm">"I want to quit this mission."</a>
|
||||
</body></html>
|
@ -1,6 +1,6 @@
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
Too bad! Destroy <font color="LEVEL">Queen Shyeed</font> and bring me Shaid's Talon.<br>
|
||||
<font color="LEVEL">Remember, you don't need to do the killing yourself! Just stand back and let your Clan to do the work for you!</font><br>
|
||||
<a action="bypass -h Quest 509_TheClansPrestige 31331-0.htm">"I want to try another Raid Boss."</a><br>
|
||||
<a action="bypass -h Quest 509_TheClansPrestige 31331-6.htm">"I want to quit this mission."</a>
|
||||
<a action="bypass -h Quest Q509_TheClansPrestige 31331-0.htm">"I want to try another Raid Boss."</a><br>
|
||||
<a action="bypass -h Quest Q509_TheClansPrestige 31331-6.htm">"I want to quit this mission."</a>
|
||||
</body></html>
|
5
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-5b.htm
vendored
Normal file
5
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q509_TheClansPrestige/31331-5b.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
Excellent! I'll spread the word of your mighty Clan's defeat of the Queen Shyeed.<br>
|
||||
<a action="bypass -h Quest Q509_TheClansPrestige 31331-0.htm">"I want to kill some more Raid Bosses!"</a><br>
|
||||
<a action="bypass -h Quest Q509_TheClansPrestige 31331-6.htm">"I want to quit this mission."</a>
|
||||
</body></html>
|
@ -3,5 +3,5 @@ I believe that leaders are expected to supply two things most of all.<br>
|
||||
One is a compelling vision or sense of purpose for the group. And you bear a special responsibility to articulate that vision, and in a very compelling fashion.<br>
|
||||
And the second thing is to provide clear decisions. Doing that requires data collection and consultation, but ultimately leaders must set a direction.<br>
|
||||
Anyway you're welcome whenever you change your mind and decide we'd need to discuss the reputation of your clan again.<br>
|
||||
Farewell, and may we meet again in happier times.
|
||||
Farewell, and may we meet again in happier times.<br>
|
||||
</body></html>
|
@ -0,0 +1,254 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program 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.
|
||||
*
|
||||
* This program 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 quests.Q509_TheClansPrestige;
|
||||
|
||||
import org.l2jmobius.commons.util.Rnd;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.NpcInstance;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.clan.Clan;
|
||||
import org.l2jmobius.gameserver.model.quest.Quest;
|
||||
import org.l2jmobius.gameserver.model.quest.QuestState;
|
||||
import org.l2jmobius.gameserver.model.quest.State;
|
||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.PledgeShowInfoUpdate;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
||||
import org.l2jmobius.gameserver.util.Util;
|
||||
|
||||
public class Q509_TheClansPrestige extends Quest
|
||||
{
|
||||
private static final String qn = "Q509_TheClansPrestige";
|
||||
|
||||
// NPCs
|
||||
private static final int VALDIS = 31331;
|
||||
|
||||
// Items
|
||||
private static final int DAIMONS_EYES = 8489;
|
||||
private static final int HESTIAS_FAIRY_STONE = 8490;
|
||||
private static final int NUCLEUS_OF_LESSER_GOLEM = 8491;
|
||||
private static final int FALSTON_FANG = 8492;
|
||||
private static final int SHAIDS_TALON = 8493;
|
||||
|
||||
// Raid Bosses
|
||||
private static final int DAIMON_THE_WHITE_EYED = 25290;
|
||||
private static final int HESTIA_GUARDIAN_DEITY = 25293;
|
||||
private static final int PLAGUE_GOLEM = 25523;
|
||||
private static final int DEMONS_AGENT_FALSTON = 25322;
|
||||
private static final int QUEEN_SHYEED = 25514;
|
||||
|
||||
// Reward list (itemId, minClanPoints, maxClanPoints)
|
||||
private static final int reward_list[][] =
|
||||
{
|
||||
{
|
||||
DAIMON_THE_WHITE_EYED,
|
||||
DAIMONS_EYES,
|
||||
180,
|
||||
215
|
||||
},
|
||||
{
|
||||
HESTIA_GUARDIAN_DEITY,
|
||||
HESTIAS_FAIRY_STONE,
|
||||
430,
|
||||
465
|
||||
},
|
||||
{
|
||||
PLAGUE_GOLEM,
|
||||
NUCLEUS_OF_LESSER_GOLEM,
|
||||
380,
|
||||
415
|
||||
},
|
||||
{
|
||||
DEMONS_AGENT_FALSTON,
|
||||
FALSTON_FANG,
|
||||
220,
|
||||
255
|
||||
},
|
||||
{
|
||||
QUEEN_SHYEED,
|
||||
SHAIDS_TALON,
|
||||
130,
|
||||
165
|
||||
}
|
||||
};
|
||||
|
||||
// Radar
|
||||
private static final int radar[][] =
|
||||
{
|
||||
{
|
||||
186320,
|
||||
-43904,
|
||||
-3175
|
||||
},
|
||||
{
|
||||
134672,
|
||||
-115600,
|
||||
-1216
|
||||
},
|
||||
{
|
||||
170000,
|
||||
-59900,
|
||||
-3848
|
||||
},
|
||||
{
|
||||
93296,
|
||||
-75104,
|
||||
-1824
|
||||
},
|
||||
{
|
||||
79635,
|
||||
-55612,
|
||||
-5980
|
||||
}
|
||||
};
|
||||
|
||||
public Q509_TheClansPrestige()
|
||||
{
|
||||
super(509, qn, "The Clan's Prestige");
|
||||
|
||||
registerQuestItems(DAIMONS_EYES, HESTIAS_FAIRY_STONE, NUCLEUS_OF_LESSER_GOLEM, FALSTON_FANG, SHAIDS_TALON);
|
||||
|
||||
addStartNpc(VALDIS);
|
||||
addTalkId(VALDIS);
|
||||
|
||||
addKillId(DAIMON_THE_WHITE_EYED, HESTIA_GUARDIAN_DEITY, PLAGUE_GOLEM, DEMONS_AGENT_FALSTON, QUEEN_SHYEED);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(qn);
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
if (Util.isDigit(event))
|
||||
{
|
||||
int evt = Integer.parseInt(event);
|
||||
st.set("raid", event);
|
||||
htmltext = "31331-" + event + ".htm";
|
||||
|
||||
int x = radar[evt - 1][0];
|
||||
int y = radar[evt - 1][1];
|
||||
int z = radar[evt - 1][2];
|
||||
|
||||
if ((x + y + z) > 0)
|
||||
{
|
||||
st.addRadar(x, y, z);
|
||||
}
|
||||
|
||||
st.set("cond", "1");
|
||||
st.setState(State.STARTED);
|
||||
st.playSound(QuestState.SOUND_ACCEPT);
|
||||
}
|
||||
else if (event.equalsIgnoreCase("31331-6.htm"))
|
||||
{
|
||||
st.playSound(QuestState.SOUND_FINISH);
|
||||
st.exitQuest(true);
|
||||
}
|
||||
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(qn);
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
Clan clan = player.getClan();
|
||||
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
if (!player.isClanLeader())
|
||||
{
|
||||
st.exitQuest(true);
|
||||
htmltext = "31331-0a.htm";
|
||||
}
|
||||
else if (clan.getLevel() < 6)
|
||||
{
|
||||
st.exitQuest(true);
|
||||
htmltext = "31331-0b.htm";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "31331-0c.htm";
|
||||
}
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
int raid = st.getInt("raid");
|
||||
if (st.getInt("cond") == 1)
|
||||
{
|
||||
int item = reward_list[raid - 1][1];
|
||||
int count = st.getQuestItemsCount(item);
|
||||
int reward = Rnd.get(reward_list[raid - 1][2], reward_list[raid - 1][3]);
|
||||
|
||||
if (count == 0)
|
||||
{
|
||||
htmltext = "31331-" + raid + "a.htm";
|
||||
}
|
||||
else if (count == 1)
|
||||
{
|
||||
htmltext = "31331-" + raid + "b.htm";
|
||||
st.takeItems(item, 1);
|
||||
clan.setReputationScore(clan.getReputationScore() + reward, true);
|
||||
player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.CLAN_QUEST_COMPLETED_AND_S1_POINTS_GAINED).addNumber(reward));
|
||||
clan.broadcastToOnlineMembers(new PledgeShowInfoUpdate(clan));
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
// Retrieve the qs of the clan leader.
|
||||
QuestState st = getClanLeaderQuestState(player, npc);
|
||||
if ((st == null) || !st.isStarted())
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Reward only if quest is setup on good index.
|
||||
int raid = st.getInt("raid");
|
||||
if (reward_list[raid - 1][0] == npc.getNpcId())
|
||||
{
|
||||
int item = reward_list[raid - 1][1];
|
||||
if (!st.hasQuestItems(item))
|
||||
{
|
||||
st.giveItems(item, 1);
|
||||
st.playSound(QuestState.SOUND_MIDDLE);
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
new Q509_TheClansPrestige();
|
||||
}
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
The townspeople live in constant fear because of the Raid Bosses in this area. We must manufacture better arms and equipment for our guards to defeat this menace, but the materials are difficult to obtain...<br>
|
||||
If there were a strong clan nearby, I would ask its clan leader. Do you know of anyone in the area?<br>
|
||||
(Only clan leaders of clans level 5 and above can take on this quest.)
|
||||
</body></html>
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
The townspeople live in constant fear because of the Raid Bosses in this area. We must manufacture better arms and equipment for our guards to defeat this menace, but the materials are difficult to obtain...<br>
|
||||
If there were a strong clan nearby, I would ask its clan leader. Do you know of anyone in the area?<br>
|
||||
(This quest may only be undertaken by a leader of a clan level 5 and above.)
|
||||
</body></html>
|
@ -1,4 +1,4 @@
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
I have heard of your clan's exploits. Would you and your members desire to come together and enhance <font color="LEVEL">your clan's prestige</font>? Any assistance you can provide us, be it large or small, would be greatly appreciated. <br>
|
||||
<a action="bypass -h Quest 510_AClansReputation 31331-2.htm">"What kind of assistance do you need?"</a>
|
||||
</body></html>
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
I have heard of your clan's exploits. Would you and your members desire to come together and enhance <font color="LEVEL">your clan's prestige</font>? Any assistance you can provide us, be it large or small, would be greatly appreciated.<br>
|
||||
<a action="bypass -h Quest Q510_AClansReputation 31331-2.htm">"What kind of assistance do you need?"</a>
|
||||
</body></html>
|
@ -1,5 +1,6 @@
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
We lack sufficient weapons and armor to properly equip the guards who safeguard us here. The local blacksmiths have agreed to manufacture what we need, but lack the necessary raw materials to do so. We have been searching for those materials, but without much success. I recently heard that the claws of the ferocious <font color="LEVEL">Tyrannosaurus</font>, a creature that inhabits the Primeval Isle, would be ideal for our purposes. <br>
|
||||
Would you consider using the power of your clan to collect those materials for us? <br>If you help us, I will help you enhance your clan's prestige throughout this land by spreading word of the great feat you have accomplished for us. Well? What say you?<br>
|
||||
<a action="bypass -h Quest 510_AClansReputation 31331-3.htm">Say yes.</a>
|
||||
</body></html>
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
We lack sufficient weapons and armor to properly equip the guards who safeguard us here. The local blacksmiths have agreed to manufacture what we need, but lack the necessary raw materials to do so. We have been searching for those materials, but without much success. I recently heard that the claws of the ferocious <font color="LEVEL">Tyrannosaurus</font>, a creature that inhabits the Primeval Isle, would be ideal for our purposes.<br>
|
||||
Would you consider using the power of your clan to collect those materials for us?<br>
|
||||
If you help us, I will help you enhance your clan's prestige throughout this land by spreading word of the great feat you have accomplished for us. Well? What say you?
|
||||
<br><a action="bypass -h Quest Q510_AClansReputation 31331-3.htm">Say yes.</a>
|
||||
</body></html>
|
5
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/31331-3.htm
vendored
Normal file
5
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/31331-3.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
Thank you, thank you! Legend has it that these creatures are extremely vicious... Oh, but I'm sure they will pose no more trouble to such a powerful clan than a kitten with her claws! So, will you go to the Primeval Isle and slay a <font color="LEVEL">Tyrannosaurus</font>?<br>
|
||||
<font color="LEVEL">Naturally, we don't expect you personally to slay the creature.</font> There is no rule requiring a clan leader to brandish his own sword in these matters. <font color="LEVEL">Simply stay nearby and watch your clan members slay the Tyrannosaurus and return here with its claws.</font><font color="LEVEL">It's vital that the claw be undamaged, you understand, which means...uh, well, it's probably best that you capture the creature before slaying it. I hope that doesn't complicate the task for you!</font><br>
|
||||
I'll be here anxiously awaiting your good news.
|
||||
</body></html>
|
5
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/31331-4.htm
vendored
Normal file
5
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/31331-4.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
Are you still here? Hurry to the Primeval Isle and bring back the <font color="LEVEL">Tyrannosaurus Claw</font> that I requested. Do you have any other business with me?<br>
|
||||
<a action="bypass -h Quest Q510_AClansReputation 31331-5.htm">"No, nothing. I'll go get the material. "</a><br>
|
||||
<a action="bypass -h Quest Q510_AClansReputation 31331-6.htm">"I wish to stop now."</a>
|
||||
</body></html>
|
@ -1,3 +1,3 @@
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
Then I'll leave it to you. The <font color="LEVEL">Tyrannosaurus</font> of the Primeval Isle is ferocious, but I will trust in you and your clan and wait. Be sure to <font color="LEVEL">capture</font> it and bring back a usable claw. Well, you know the way out. Thank you!
|
||||
</body></html>
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
Then I'll leave it to you. The <font color="LEVEL">Tyrannosaurus</font> of the Primeval Isle is ferocious, but I will trust in you and your clan and wait. Be sure to <font color="LEVEL">capture</font> it and bring back a usable claw. Well, you know the way out. Thank you!
|
||||
</body></html>
|
@ -1,3 +1,3 @@
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
You wish to quit? That's too bad, but I suppose it cannot be helped. Your clan must have concerns of its own...
|
||||
</body></html>
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
You wish to quit? That's too bad, but I suppose it cannot be helped. Your clan must have concerns of its own...
|
||||
</body></html>
|
5
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/31331-7.htm
vendored
Normal file
5
L2J_Mobius_C6_Interlude/dist/game/data/scripts/quests/Q510_AClansReputation/31331-7.htm
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
<html><body>Grand Magister Valdis:<br>
|
||||
Well done! I'll spread the news that your brave Clan hat defeated Tyrannosaurus!<br>
|
||||
<a action="bypass -h Quest Q510_AClansReputation 31331-5.htm">"I want to continue killing Tyrannosaurus."</a><br>
|
||||
<a action="bypass -h Quest Q510_AClansReputation 31331-6.htm">"I wish to stop now."</a>
|
||||
</body></html>
|
@ -0,0 +1,154 @@
|
||||
/*
|
||||
* This file is part of the L2J Mobius project.
|
||||
*
|
||||
* This program 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.
|
||||
*
|
||||
* This program 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 quests.Q510_AClansReputation;
|
||||
|
||||
import org.l2jmobius.gameserver.model.actor.instance.NpcInstance;
|
||||
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
|
||||
import org.l2jmobius.gameserver.model.clan.Clan;
|
||||
import org.l2jmobius.gameserver.model.quest.Quest;
|
||||
import org.l2jmobius.gameserver.model.quest.QuestState;
|
||||
import org.l2jmobius.gameserver.model.quest.State;
|
||||
import org.l2jmobius.gameserver.network.SystemMessageId;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.PledgeShowInfoUpdate;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.SystemMessage;
|
||||
|
||||
public class Q510_AClansReputation extends Quest
|
||||
{
|
||||
private static final String qn = "Q510_AClansReputation";
|
||||
|
||||
// NPC
|
||||
private static final int Valdis = 31331;
|
||||
|
||||
// Quest Item
|
||||
private static final int Claw = 8767;
|
||||
|
||||
// Reward
|
||||
private static final int CLAN_POINTS_REWARD = 50; // Quantity of points
|
||||
|
||||
public Q510_AClansReputation()
|
||||
{
|
||||
super(510, qn, "A Clan's Reputation");
|
||||
|
||||
registerQuestItems(Claw);
|
||||
|
||||
addStartNpc(Valdis);
|
||||
addTalkId(Valdis);
|
||||
|
||||
addKillId(22215, 22216, 22217);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onAdvEvent(String event, NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
String htmltext = event;
|
||||
QuestState st = player.getQuestState(qn);
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
if (event.equalsIgnoreCase("31331-3.htm"))
|
||||
{
|
||||
st.set("cond", "1");
|
||||
st.setState(State.STARTED);
|
||||
st.playSound(QuestState.SOUND_ACCEPT);
|
||||
}
|
||||
else if (event.equalsIgnoreCase("31331-6.htm"))
|
||||
{
|
||||
st.playSound(QuestState.SOUND_FINISH);
|
||||
st.exitQuest(true);
|
||||
}
|
||||
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onTalk(NpcInstance npc, PlayerInstance player)
|
||||
{
|
||||
QuestState st = player.getQuestState(qn);
|
||||
String htmltext = getNoQuestMsg();
|
||||
if (st == null)
|
||||
{
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
switch (st.getState())
|
||||
{
|
||||
case State.CREATED:
|
||||
if (!player.isClanLeader())
|
||||
{
|
||||
st.exitQuest(true);
|
||||
htmltext = "31331-0.htm";
|
||||
}
|
||||
else if (player.getClan().getLevel() < 5)
|
||||
{
|
||||
st.exitQuest(true);
|
||||
htmltext = "31331-0.htm";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "31331-1.htm";
|
||||
}
|
||||
break;
|
||||
|
||||
case State.STARTED:
|
||||
if (st.getInt("cond") == 1)
|
||||
{
|
||||
int count = st.getQuestItemsCount(Claw);
|
||||
if (count > 0)
|
||||
{
|
||||
int reward = (CLAN_POINTS_REWARD * count);
|
||||
st.takeItems(Claw, -1);
|
||||
Clan clan = player.getClan();
|
||||
clan.setReputationScore(clan.getReputationScore() + reward, true);
|
||||
player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.CLAN_QUEST_COMPLETED_AND_S1_POINTS_GAINED).addNumber(reward));
|
||||
clan.broadcastToOnlineMembers(new PledgeShowInfoUpdate(clan));
|
||||
|
||||
htmltext = "31331-7.htm";
|
||||
}
|
||||
else
|
||||
{
|
||||
htmltext = "31331-4.htm";
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
return htmltext;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String onKill(NpcInstance npc, PlayerInstance player, boolean isPet)
|
||||
{
|
||||
// Retrieve the qs of the clan leader.
|
||||
QuestState st = getClanLeaderQuestState(player, npc);
|
||||
if ((st == null) || !st.isStarted())
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
st.giveItems(Claw, 1);
|
||||
st.playSound(QuestState.SOUND_MIDDLE);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
new Q510_AClansReputation();
|
||||
}
|
||||
}
|
@ -292,6 +292,9 @@ import quests.Q432_BirthdayPartySong.Q432_BirthdayPartySong;
|
||||
import quests.Q501_ProofOfClanAlliance.Q501_ProofOfClanAlliance;
|
||||
import quests.Q504_CompetitionForTheBanditStronghold.Q504_CompetitionForTheBanditStronghold;
|
||||
import quests.Q505_BloodOffering.Q505_BloodOffering;
|
||||
import quests.Q508_AClansReputation.Q508_AClansReputation;
|
||||
import quests.Q509_TheClansPrestige.Q509_TheClansPrestige;
|
||||
import quests.Q510_AClansReputation.Q510_AClansReputation;
|
||||
import quests.Q601_WatchingEyes.Q601_WatchingEyes;
|
||||
import quests.Q602_ShadowOfLight.Q602_ShadowOfLight;
|
||||
import quests.Q603_DaimonTheWhiteEyed_Part1.Q603_DaimonTheWhiteEyed_Part1;
|
||||
@ -641,9 +644,9 @@ public class QuestMasterHandler
|
||||
// TODO: Q503_PursuitClanAmbition.class,
|
||||
Q504_CompetitionForTheBanditStronghold.class,
|
||||
Q505_BloodOffering.class,
|
||||
// TODO: Q508_TheClansReputation.class,
|
||||
// TODO: Q509_TheClansPrestige.class,
|
||||
// TODO: Q510_AClansReputation.class,
|
||||
Q508_AClansReputation.class,
|
||||
Q509_TheClansPrestige.class,
|
||||
Q510_AClansReputation.class,
|
||||
Q601_WatchingEyes.class,
|
||||
Q602_ShadowOfLight.class,
|
||||
Q603_DaimonTheWhiteEyed_Part1.class,
|
||||
|
@ -1935,4 +1935,35 @@ public class Quest extends ManagedScript
|
||||
{
|
||||
return ScriptEngineManager.getInstance().getCurrentLoadingScript();
|
||||
}
|
||||
|
||||
public QuestState getClanLeaderQuestState(PlayerInstance player, NpcInstance npc)
|
||||
{
|
||||
// If player is the leader, retrieves directly the qS and bypass others checks
|
||||
if (player.isClanLeader() && player.isInsideRadius(npc, Config.ALT_PARTY_RANGE, true, false))
|
||||
{
|
||||
return player.getQuestState(getName());
|
||||
}
|
||||
|
||||
// Verify if the player got a clan
|
||||
Clan clan = player.getClan();
|
||||
if (clan == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Verify if the leader is online
|
||||
PlayerInstance leader = clan.getLeader().getPlayerInstance();
|
||||
if (leader == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// Verify if the player is on the radius of the leader. If true, send leader's quest state.
|
||||
if (leader.isInsideRadius(npc, Config.ALT_PARTY_RANGE, true, false))
|
||||
{
|
||||
return leader.getQuestState(getName());
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user