Jump to content

  •  

Photo

Quest Events


  • Please log in to reply
No replies to this topic

#1 jupeto

jupeto

    Advanced Member

  • Members
  • PipPipPip
  • 39 posts
  • Github:jupeto

Posted 15 April 2017 - 04:18 PM

Code below stacks the mark icon of exclamation and question mark, the exclamation mark doesn't cleared by the QTYPE_NONE event

 

 

but without showevent(QTYPE_QUEST2,1);, the script removes the mark icon... what I want to achieve here is that the exclamation mark must be replaced by a question mark icon to indicate that the player still has some quest for that npc and that they need to accept it to proceed...

prontera,xxx,xxx,x	script	NPC1::npc1	4_EP16_LOUVIERE,{
    doevent("npc2::OnShowQuest");
}

prontera,xxx,xxx,x	script	NPC2::npc2	4_EP16_LOUVIERE,{
    showevent(QTYPE_NONE);
    showevent(QTYPE_QUEST2,1);
    end;

OnShowQuest:
    showevent(QTYPE_QUEST,1);
    end;

OnHideQuest:
    showevent(QTYPE_NONE);
    end;
}

 

Please enlighten me... thanks

[EDIT]

 

well I guess sleep2(1); did the job

 

prontera,xxx,xxx,x	script	NPC1::npc1	4_EP16_LOUVIERE,{
    doevent("npc2::OnShowQuest");
}

prontera,xxx,xxx,x	script	NPC2::npc2	4_EP16_LOUVIERE,{
    showevent(QTYPE_NONE);
    sleep2(1); // <------ this did the job, but is this the right thing to do?
    showevent(QTYPE_QUEST2,1);
    end;

OnShowQuest:
    showevent(QTYPE_QUEST,1);
    end;

OnHideQuest:
    showevent(QTYPE_NONE);
    end;
}

Edited by jupeto, 15 April 2017 - 05:22 PM.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users


This topic has been visited by 30 user(s)