Item Start Quest

Horyon

Пляшущий с бубном
Участник
Сообщения
182
Розыгрыши
0
Решения
4
Репутация
53
Реакции
68
Баллы
273
Хроники
  1. Prologue: Prelude of War
Исходники
Присутствуют
Сборка
L2jMobius Master class ch3
Hey guys... i try find how to start a quest via item.
Код:
<item id="35702" name="Zahak's Petra" type="EtcItem">
        <!-- Petra obtained after defeating Zahak in the Seed of Hellfire. You can find out about the quest by clicking on it. Quest start item. -->
        <set name="icon" val="icon.etc_torch_on_i00" />
        <set name="is_depositable" val="false" />
        <set name="is_tradable" val="false" />
        <set name="is_dropable" val="false" />
        <set name="is_sellable" val="false" />
        <set name="is_oly_restricted" val="true" />
        <set name="default_action" val="START_QUEST" />
        <set name="immediate_effect" val="true" />
        <set name="material" val="CRYSTAL" />
</item>

It tis oppening the window but, the similar itens have a bypess to quests, but it fails.



So far i understand is cause in the quest i have to set a NPC, who will be the npc the player talk to start the quest. But here is a item, there is no NPC.
1680508408798.png
Ty for any tip.
 
Looks as in one of updates added check on npc.
If any npc in target - will be null.
In sources which I have used some "last dummy npc" in player instance.
You can look at error what you get and move by exceptions.
Problem at "Quest" on 642 line.

And one more...
As I remember - Petra in mobius source has ItemHandler as "ShowTutorial", which have button for starting quest.
 
  • Ха-ха-ха
Реакции: kick
Maybe is cause i'm using free version. But the itens like this open a html with item ID, and ID 35702 petra is empy.
 
Looks as in one of updates added check on npc.
If any npc in target - will be null.
In sources which I have used some "last dummy npc" in player instance.
You can look at error what you get and move by exceptions.
Problem at "Quest" on 642 line.

And one more...
As I remember - Petra in mobius source has ItemHandler as "ShowTutorial", which have button for starting quest.
Ty for petra tip... i find in a random really old source the quest.java and the onItemTalk handler... i think will work now, cause it keep in newer sources of mobius
 
Назад
Сверху Снизу