@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
case "some event":
{
String some_html = "<button ... -bypass COMMAND .../>";
showResult(player, some_html, null);
break;
}
if(event.startsWith("COMMAND"))
{
SOME CODE HERE.. AND FROM HERE I NEED REDIRECT PLAYER BACK to THE "some event"
}
return htmltext;
// it's example :\
}
This some_html contains another bypass command, I need redirecting player again to the "some event" after using this command.
Can you help me? Pls....
Last edited by KGB1st on Wed Nov 18, 2015 7:27 am, edited 1 time in total.
First at all it should be like this (only one event now ) And now I don't get that what you wanna do next. You wanna call this event again or another one?
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
case "some event":
{
String some_html = "<button ... -bypass COMMAND .../>";
showResult(player, some_html, null);
break;
}
if(event.startsWith("COMMAND"))
{
SOME CODE HERE.. AND FROM HERE I NEED REDIRECT PLAYER BACK to THE "some event"
}
return htmltext;
// it's example :\
}
You wanna call that event again? Why? You can call just for htmltext some_html to show that bypass again from COMMAND event. Or its gonna do something when you call some_event again? It would be easier when you would say what that thing should do, because for now its retarded (no offense).
wtf? Is my request hard? I need use some functon for this bypass and redirect player again on the same html.
I told about it because I'm too lazy for creating new html files.
Gladicek wrote:You wanna call that event again? Why? You can call just for htmltext some_html to show that bypass again from COMMAND event. Or its gonna do something when you call some_event again? It would be easier when you would say what that thing should do, because for now its retarded (no offense).
@Override
public String onAdvEvent(String event, L2Npc npc, L2PcInstance player)
{
String htmltext = null;
switch (event)
{
case "COMMAND":
// do COMMAND things
// don't put break; so "some event" is executed after this "COMMAND" and when event is "some event"
case "some event":
htmltext = "<button ... -bypass COMMAND .../>";
break;
}
return htmltext;
}
Gladicek wrote: ↑Mon Nov 16, 2015 1:55 pm
You wanna call that event again? Why? You can call just for htmltext some_html to show that bypass again from COMMAND event. Or its gonna do something when you call some_event again référenceur freelance paris ? It would be easier when you would say what that thing should do, because for now its retarded (no offense).
Maybe it's just a small delay to the too many deliveries they have to make.