how do you go about coding in lua to check for a keypress event?
i want to be able to press any key, which will then call a function that figures out which key was pressed, and acts accordingly
thanks
Search found 7 matches
- Fri Nov 27, 2009 9:47 am
- Forum: Runes of Magic
- Topic: Keypress Event
- Replies: 1
- Views: 996
- Sat Oct 03, 2009 4:31 am
- Forum: Runes of Magic
- Topic: Event Handling ?
- Replies: 1
- Views: 836
Event Handling ?
Please correct me if i'm wrong, but as far as I know and tested, it is not possible to implement event handling in rombot. (If there is actually a way, can someone please inform me or write a tutorial on it?) So my question/suggestion is... Is it possible to create an empty addon which registers all...
- Thu Oct 01, 2009 4:24 am
- Forum: Runes of Magic
- Topic: 2 Questions about LUA scripting
- Replies: 3
- Views: 1130
Re: 2 Questions about LUA scripting
I phrased my question badly sorry =p
eg.
sendMacro("SendChatMessage("Not Found","SAY");");
I want to use the Function SendChatMessage, but the above will not work due to multiple " " " " ....
U get my meaning? xD
eg.
sendMacro("SendChatMessage("Not Found","SAY");");
I want to use the Function SendChatMessage, but the above will not work due to multiple " " " " ....
U get my meaning? xD
- Thu Oct 01, 2009 3:49 am
- Forum: Runes of Magic
- Topic: 2 Questions about LUA scripting
- Replies: 3
- Views: 1130
2 Questions about LUA scripting
<waypoints> <!-- # 1 --><waypoint x="-432" z="-5974"> local test1, test2, test3 = RoMScript("GetBagItemInfo(3);"); if(test3 == "Sharp Bear Claw") then sendMacro("PickupBagItem( %test3 );"); <----HERE 1 sendMacro("PickupBagItem(5);"); else ...
- Wed Sep 16, 2009 9:18 am
- Forum: Runes of Magic
- Topic: Setting Camera Position - Daily Quests Made Easy
- Replies: 10
- Views: 4507
Setting Camera Position - Daily Quests Made Easy
You ever wished you were able to fully automate your alts to hand in dailies for you? Well I've got a solution for you As many of you who have already discovered, rombot tends to change the camera position,angle and zoom as you walk around. This makes clicking on the daily board a hellish experience...
- Tue Aug 04, 2009 9:51 am
- Forum: Runes of Magic
- Topic: Bot pauses after death, can't figure out how to fix this.
- Replies: 10
- Views: 2564
Re: Bot pauses after death, can't figure out how to fix this.
i have this problem too, so i went searching my solution for you is: goto functions.lua and search "have died" you should see this function pauseOnDeath() local sk = startKey; if( getVersion() >= 100 ) then sk = getStartKey(); end; cprintf(cli.red, "You have died... Sorry.\n"); p...
- Sun Aug 02, 2009 9:05 pm
- Forum: Runes of Magic
- Topic: RoM bot
- Replies: 2213
- Views: 929159
Re: RoM bot
I'm currently botting in an area where theres several kinds of mobs I wish to attack a certain kind of mob only From reading through your code.. Is seems possible to check the mosnter name b4 attacking can you instruct me on how to add a new section in the profile for DoNotAttack monsters? and then ...