I copied the quest 623_TheFinestFood ... NPC also changed and added to the HTML folder / custom and added a line to the script to turn, but the game handles, and nothing happens, or no message in the log Thanks
# Tauti Zbrane - v0.1 by disKret & DrLecter
import sys
from com.l2jfrozen import Config
from com.l2jfrozen.gameserver.model.quest import State
from com.l2jfrozen.gameserver.model.quest import QuestState
from com.l2jfrozen.gameserver.model.quest.jython import QuestJython as JQuest
DISCORD :
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/hood-services
https://campsite.bio/utchihaamkt
Xmas Wolf Chariot Mount | Lineage 2 Mod
Celebrate the holiday spirit in Lineage 2 with this festive Xmas Wolf Chariot Mount! Created for protocol 166, this unique modification features majestic wolf mounts with holiday-themed harnesses pulling a decorative chariot.
If you have questions or want to add this updated skill to your game, feel free to contact me via Skype or Discord.
Download or in Discord Client Dev channel https://discord.gg/XdCb9dmTtf
06/12/2024 21:00 GMT +2
High Five - PvP server x45 - Aria Victoria Style 2004
NPC Buffer & Enchanted NPC Buffer.
Global Gatekeeper.
Clan Hall Teleports & Clan GM Shop (-20%).
Offline Shop.
GM shop up to B Grade.
Auto Farm system.
TvT - CTF - DM - Party Farm - Event Boss
Craftable Hero Weapon.
Instances Solo and Party, weekly and daily.
No kamael.
More informations can be found on our website including a "how to connect" greek guide
Valkyria is based on aCis
https://l2valkyria.com
Question
Lianne17
Someone good hearted boy for this code?
I copied the quest 623_TheFinestFood ... NPC also changed and added to the HTML folder / custom and added a line to the script to turn, but the game handles, and nothing happens, or no message in the log Thanks
# Tauti Zbrane - v0.1 by disKret & DrLecter
import sys
from com.l2jfrozen import Config
from com.l2jfrozen.gameserver.model.quest import State
from com.l2jfrozen.gameserver.model.quest import QuestState
from com.l2jfrozen.gameserver.model.quest.jython import QuestJython as JQuest
qn = "1010_TautiZbrane"
#NPC
VILEM = 25888
#ITEMS
LEAF_OF_FLAVA,BUFFALO_MEAT,ANTELOPE_HORN = range(7199,7202)
#MOBS, DROPS, CHANCES & REWARDS
BUFFALO,FLAVA,ANTELOPE = [ 21315,21316,21318 ]
DROPLIST = {BUFFALO:[bUFFALO_MEAT,99],FLAVA:[LEAF_OF_FLAVA,99],ANTELOPE:[ANTELOPE_HORN,99]}
REWARDS = [[7152,25000,0,11],[0,73000,34,100]]
#needed count
class Quest (JQuest) :
def __init__(self,id,name,descr): JQuest.__init__(self,id,name,descr)
def onEvent (self,event,st) :
cond = st.getInt("cond")
htmltext = event
leaf = st.getQuestItemsCount(LEAF_OF_FLAVA)
meat = st.getQuestItemsCount(BUFFALO_MEAT)
horn = st.getQuestItemsCount(ANTELOPE_HORN)
if event == "25888-03.htm" and cond == 0 :
if st.getPlayer().getLevel() >= 71 :
st.set("cond","1")
st.setState(STARTED)
st.playSound("ItemSound.quest_accept")
else :
htmltext = "25888-02.htm"
st.exitQuest(1)
elif event == "25888-07.htm" :
if cond == 2 and leaf == meat == horn == 100 :
htmltext = "25888-06.htm"
st.playSound("ItemSound.quest_finish")
random = st.getRandom(100)
i = 0
while i < len(REWARDS) :
item,adena,chance,chance2=REWARDS
if chance<=random<= chance2 :
break
i = i+1
st.giveItems(57,adena)
if item :
st.giveItems(item,1)
else :
st.addExpAndSp(230000,18250)
st.takeItems(LEAF_OF_FLAVA,-1)
st.takeItems(BUFFALO_MEAT,-1)
st.takeItems(ANTELOPE_HORN,-1)
st.exitQuest(1)
return htmltext
def onTalk (self,npc,player) :
htmltext = "<html><body>Bohuzel nesplnujes criteria k vykonu sluzby questu</body></html>"
st = player.getQuestState(qn)
if st :
cond = st.getInt("cond")
leaf = st.getQuestItemsCount(LEAF_OF_FLAVA)
meat = st.getQuestItemsCount(BUFFALO_MEAT)
horn = st.getQuestItemsCount(ANTELOPE_HORN)
if cond == 0 :
htmltext = "25888-01.htm"
elif st.getState() == STARTED :
if cond == 1 :
htmltext = "25888-05.htm"
elif cond == 2 and leaf == meat == horn == 100 :
htmltext = "25888-04.htm"
return htmltext
def onKill(self,npc,player,isPet):
# todo: with the current code, a player who has completed up to 2 out of 3
# item collections may consume the party drop (i.e. become the selected
# player in the random, but get nothing because it was the wrong mob)
# this ought to be corrected later...
partyMember = self.getRandomPartyMember(player,"1")
if not partyMember: return
st = partyMember.getQuestState(qn)
if st :
if st.getState() == STARTED :
item,chance = DROPLIST[npc.getNpcId()]
count = st.getQuestItemsCount(item)
if st.getInt("cond") == 1 and count < 100 :
numItems, chance = divmod(chance*Config.RATE_DROP_QUEST,100)
if st.getRandom(100) < chance :
numItems += 1
if count + numItems >= 100 :
numItems = 100 - count
if numItems != 0 :
st.giveItems(item,int(numItems))
if st.getQuestItemsCount(LEAF_OF_FLAVA) == st.getQuestItemsCount(BUFFALO_MEAT) == st.getQuestItemsCount(ANTELOPE_HORN) == 100 :
st.set("cond","2")
st.playSound("ItemSound.quest_middle")
else :
st.playSound("ItemSound.quest_itemget")
return
QUEST = Quest(1010,qn, "custom")
CREATED = State('Start', QUEST)
STARTED = State('Started', QUEST)
QUEST.setInitialState(CREATED)
QUEST.addStartNpc(VILEM)
QUEST.addTalkId(VILEM)
for mob in DROPLIST.keys() :
QUEST.addKillId(mob)
for item in range(7199,7202):
STARTED.addQuestDrop(VILEM,item,1)
1 answer to this question
Recommended Posts