- 0
This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
Question
Kenrix
What is problem?
PURE_UNICORN not give quest
sorry for my bad english...
case FALLEN_UNICORN: if (cond == 9) htmltext = "31746-1.htm"; else if (cond == 10) { htmltext = "31746-2.htm"; startQuestTimer("1", 3000, npc, player); } break; case CORNERSTONE: if (cond == 9) { if (st.getQuestItemsCount(ORB_OF_BINDING) == 0) htmltext = "31748-1.htm"; else { htmltext = "31748-2.htm"; st.takeItems(ORB_OF_BINDING, 1); npc.doDie(npc); st.set("cornerstones", "cornerstones"+1); st.playSound("ItemSound.quest_middle"); } if (cornerstones == 3) { st.set("cond", "10"); st.playSound("ItemSound.quest_middle"); } } break; case PURE_UNICORN: if (cond == 10) { st.set("cond", "11"); st.playSound("ItemSound.quest_middle"); htmltext = "31747-1.htm"; startQuestTimer("2", 3000, npc, player); } else if (cond == 11) htmltext = "31747-2.htm"; break; } } return htmltext; } @Override public String onKill(L2Npc npc, L2PcInstance player, boolean isPet) { QuestState st = player.getQuestState(qn); if (st == null) return null; L2PcInstance partyMember = getRandomPartyMember(player, "awaitsDrops", "1"); if (partyMember == null) return null; st = partyMember.getQuestState(qn); if (st.getInt("cond") == 9 && st.getQuestItemsCount(ORB_OF_BINDING) <= 5) { st.giveItems(ORB_OF_BINDING, 1); st.playSound("ItemSound.quest_itemget"); if (st.getQuestItemsCount(ORB_OF_BINDING) == 5) st.unset("awaitsDrops"); } return null; } public static void main(String[] args) { new Q242_PossessorOfAPreciousSoul_2(242, qn, "Possessor Of A Precious Soul - 2"); } }4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now