Can Anyone help me to convert this code at rathena scripting code.
I am not good at rathena scripting but still in learning.
I've write this code in Javascript
I want to respawn the Treasure Box chest at prontera every 1 hour
just the concept of setInterval, How Do I write that?
setInterval(function() {
// this is a scripting of rathena
// I know this line of code how it works
monster "prontera",0,0,"Treasure Box",2288,1,"Treasure Box Respawner::OnTBoxDestroyed";
OnTBoxDestroyed:
$TBoxDestroyed++;
if ($TBoxDestroyed > 0) {
announce "The Treasure box has been destroyed by " + strcharinfo(0) + "!",3;
$TBoxDestroyed = 0;
}
end;
},1000 * 60 * 60 * 1);
Question
Jinun
Can Anyone help me to convert this code at rathena scripting code.
I am not good at rathena scripting but still in learning.
I've write this code in Javascript
I want to respawn the Treasure Box chest at prontera every 1 hour
just the concept of setInterval, How Do I write that?
setInterval(function() { // this is a scripting of rathena // I know this line of code how it works monster "prontera",0,0,"Treasure Box",2288,1,"Treasure Box Respawner::OnTBoxDestroyed"; OnTBoxDestroyed: $TBoxDestroyed++; if ($TBoxDestroyed > 0) { announce "The Treasure box has been destroyed by " + strcharinfo(0) + "!",3; $TBoxDestroyed = 0; } end; },1000 * 60 * 60 * 1);
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.