[04-17 22:48] | [Chat] | Icewolfz: i probably hsold add a #tick like zmud some day |
[04-17 22:49] | [Chat] | Icewolfz: anways window.tick = setInterval(()=>client.sendCommand('COMMAND'), MILLISECONDS) |
[04-17 22:49] | [Chat] | Icewolfz: for alaias of type javascript |
[04-17 22:49] | [Chat] | Icewolfz: and they just run the alias nd it will start it |
[04-17 22:49] | [Chat] | Icewolfz: and if(window.tick){clearInterval(window.tick); window.tick = 0;} |
[04-17 22:49] | [Chat] | Icewolfz: to stop it |
[04-17 22:49] | [Chat] | Icewolfz: for alias of type script |
[04-17 22:51] | [Chat] | Icewolfz: that code iwll work in old and new clients |
[04-17 22:51] | [Chat] | Icewolfz: and simlulat teh zmud timer |
[04-17 22:52] | [Chat] | Icewolfz: you just gotta fine toon the millisecons to get the period yo uwant |
[04-17 22:52] | [Chat] | Icewolfz: or you cna use oiMUD and ue alarm tirgger and hav ti repeat based on time or connect times |
[04-17 22:52] | [Chat] | Icewolfz: alarm triggers work exactly like zmud ones do |
[04-17 23:01] | [Chat] | Icewolfz: ther is also a nothe rway to fake timer |
[04-17 23:01] | [Chat] | Icewolfz: make an lais named tick |
[04-17 23:01] | [Chat] | Icewolfz: and do #sh tick&#wa 60000&timer |
[04-17 23:02] | [Chat] | Icewolfz: it will tick tick every 60 seconds |
[04-17 23:02] | [Chat] | Icewolfz: then call it self |
[04-17 23:02] | [Chat] | Icewolfz: and basically be an endless alias loop |
[04-17 23:02] | [Chat] | Icewolfz: hard part is stoping it but it is a way to do a semi repeating timer in the old client |
[04-17 23:02] | [Chat] | Icewolfz: you na replae #sh tick with any ocmmand |
|
Back to List |