[04-17 22:44] | [Chat] | Icewolfz: you can make things repeat and all tha tgood stuff |
[04-17 22:45] | [Chat] | Icewolfz: in the old one you have ot use setInterval to do repeatining |
[04-17 22:45] | [Chat] | Icewolfz: eg you coul ddo windows.tick=setInterval(()=>client.sendCommand('#sh tick'), 1000) |
[04-17 22:45] | [Chat] | Icewolfz: would display tick every second to the string |
[04-17 22:46] | [Chat] | Icewolfz: and you can turn ti off doing clearInterval(window.tick) |
[04-17 22:46] | [Chat] | Icewolfz: grabnted shold be window.tick not windows.tick |
[04-17 22:46] | [Chat] | Icewolfz: with out the window.tick you would never beable ot stop it with out relaoding the web page |
[04-17 22:47] | [Chat] | Icewolfz: anwyas thats the cloest you cna get to a 'tick' timer in web client |
[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 |
|
Back to List |