ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
New BOT Where command code available... (Wishlist)
New BOT Where command code available... // Wishlistandon colemanAug 17, 1998, 4:16am
Okay, I have improved upon the existing code sooo much that it's a must
have, I give it 6 out of 5 stars =P. Tested it for bugs, only bug occurs when you have 2 bots running it and calling where at eachother all the time, that's a HamBot bug... (Requires HamBot 16) Here's the source : Label=ShowWhere Set A=1000 Set B=-1 Set C=t/A Set D=u/A Set N=C Set S=C*B Set W=D Set E=D*B Set H=l/100 IfGreater=H,Z,Above IfEqual=H,Z,Level IfLess=H,Z,Below Label=Above Set H$=and my altitude is %H meters above the ground. goto Next Label=Level Set H$=and I am standing on the ground. goto Next Label=Below Set I=H*B Set H$=and my altitude is %I meters below the ground. Label=Next IfEqual=C,Z,NS IfGreater=t,Z,N IfLess=t,Z,S Label=N IfGreater=u,Z,NW IfLess=u,Z,NE Label=S IfGreater=u,Z,SW IfLess=u,Z,SE Label=NS IfEqual=D,Z,GZ IfGreater=u,Z,SW IfLess=u,Z,SE Label=NW Say I'm currently at %NN %WW %H$ Goto MainLoop Label=SW Say I'm currently at %SS %WW %H$ Goto MainLoop Label=NE Say I'm currently at %NN %EE %H$ Goto MainLoop Label=SE Say I'm currently at %SS %EE %H$ Goto MainLoop Label=GZ Say I'm currently at Ground Zero %H$ Goto MainLoop andon colemanAug 17, 1998, 4:20am
Forgot to mention... I feel like an idiot :) You must add this to the
script, I have it in the very beginning.. Set Z=0 |