一定時間後にアクションをトリガーしたいのですが、これを行う方法をグーグルで調べましたが、運がありませんでした。それは私のゲームのコーディング方法だと思います。とにかく、コード a1 がトリガーされてから 30 分後に、コード a2 がトリガーされる場所に到達する必要があります。
a1:
if (itemId == 608) {
c.sendMessage("The scroll has brought you to the Revenants.");
c.sendMessage("They are very ghastly, powerful, undead creatures.");
c.sendMessage("If you defeat them, you may receive astounding treasures.");
c.sendMessage("If you donate you may visit the Revenants anytime without a scroll.");
c.getPA().movePlayer(3668, 3497, 0);
c.gfx0(398);
c.getItems().deleteItem(608, 1);
}
a2:
c.getPA().movePlayer(x, y, 0);