Can I actually do like this?
main code
[bla bla bla]
if (class == MELEE) then
include("melee.lua");
elseif (class == RANGED) then
include("ranged.lua");
end
[bla bla bla]
function main()
while(1) do
mainloop()
end
end
While the mainloop function resides in both melee.lua and ranged.lua ...
Search found 5 matches
- Thu Oct 09, 2008 9:58 pm
- Forum: MicroMacro general & support
- Topic: Include enquiry...
- Replies: 1
- Views: 1593
- Wed Oct 08, 2008 10:36 pm
- Forum: MicroMacro general & support
- Topic: Scripts - closed source
- Replies: 12
- Views: 5058
Re: Scripts - closed source
What about if I just want to hide the main code but let the user modify the parameters? Sort of idiot-proofing my scripts...
Spam?
E-mails from this board's registration is marked as Spam in Yahoo!Mail... what gives?
- Wed Oct 08, 2008 8:24 pm
- Forum: MicroMacro scripts
- Topic: World of Kungfu Bot (Updated)
- Replies: 71
- Views: 120807
Re: World of Kungfu Bot (Updated)
Interesting... but I used pixel reading with some success right now, using 2-3 pixel matches. I *think* it works as it is right now because HP bars are either reddish color or blackish color, and not some other colors, same with MP/SP bars. However, I do have to avoid the numbers because it screws ...
- Wed Oct 08, 2008 12:39 pm
- Forum: MicroMacro scripts
- Topic: World of Kungfu Bot (Updated)
- Replies: 71
- Views: 120807
Re: World of Kungfu Bot (Updated)
Wouldn't it be better to just read the HP/MP/SP bar using pixels? I know it won't be as accurate but it saves the hassle of getting the address each time a patch is out...hmm?