我想在一段時間後觸發一個動作,我一直在Google上如何做,但我沒有運氣,我想這只是我的遊戲編碼方式。 無論如何,我需要在代碼a1觸發後30分鐘後觸發代碼a2。Java定時觸發器
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);
你肯定* * [RUNESCAPE](http://www.rune-server.org/runescape-development/rs2-server/downloads/283605-project- insanity.html)是你的遊戲嗎? – oldrinb 2012-08-07 01:52:58
你想要計時器有多準確? – MadProgrammer 2012-08-07 01:58:30