Jump to content
Superman

Help!

Recommended Posts

I am making a script.

~ is the button that autotargets monsters

1-8 are the number keys needed to use the skill or item you put in the box

space bar is the button needed to pickup items

 

program CombatBot;

 

procedure OpenSkillBox;

begin

PressKey('~');

KeyUp('~');

wait(20000);

end;

 

 

// Main loop

begin

OpenSkillBox;

Keydown(1);

KeyUp(1);

wait(20000);

Keydown(2);

KeyUp(2);

Keydown(3);

KeyUp(3);

Keydown(32);

KeyUp(32);

wait(20000);

Keydown(32);

KeyUp(32);

wait(20000);

Keydown(32);

KeyUp(32);

wait(20000);

Keydown(32);

KeyUp(32);

wait(20000);

Keydown(32);

KeyUp(32);

wait(20000);

end.

 

Complier Error 14 Type Mismatch :confused:

Link to comment
Share on other sites

Nvm. Use VKeyToChar instead of that list I sent you. Do CTRL+Space then type VK to look at the vk codes. They have some for control, alt, F1, etc.

Vkeys

 

Just use the PressKey function. If you want to press any normal character do PressKey('a'); or PressKey('~');

Take out all the keydowns and ups

 

You could just use PressVKey with the VK codes if you want too.

Link to comment
Share on other sites

program CombatBot;

 

procedure OpenSkillBox;

begin

PressVKey (0xC0);

wait(20000);

end;

 

 

// Main loop

begin

OpenSkillBox;

PressVKey (0x31);

wait(20000);

PressVKey (0x32);

wait(20000);

PressVKey (0x33);

wait(20000);

PressVKey (0x34);

wait(20000);

PressVKey (0x20);

wait(20000);

PressVKey (0x20);

wait(20000);

PressVKey (0x20);

wait(20000);

PressVKey (0x20);

wait(20000);

PressVKey (0x20);

wait(20000);

end.

 

Complier Error 5 comma (',') excepted

 

Spacebar

VK_SPACE

0x20

 

1 key

0x31

 

2 key

0x32

 

3 key

0x33

 

4 key

0x34

 

`

VK_OEM_3

0xC0

 

~ the autotarget button is supposed to be ` :rolleyes: the vk code for ` is the same as ~

Link to comment
Share on other sites

Use [-scar][/-scar] tags around your code without the dashes(-).

 

You're getting this all mixed up.

 

Use these new procedures i made for you:

AutoTargetMonster;

PickupItem;

DoSkill(0); ...Replace 0 with whatever skill you want to use. 0 through 8

 

Do not change anything above the begin end. block that I did...if you want this to still work

 

Here:

 

[scar]

program New;

 

const

TotalNumberOfSkills = 8;

 

procedure AutoTargetMonster;

begin

PressKey('~');

end;

 

procedure PickupItem;

begin

PressVKey(VK_SPACE);

end;

 

procedure DoSkill(Number: Integer);

begin

if (Number < 1) or (Number > TotalNumberOfSkills) then Exit;

case Number of

1: PressVKey(VK_NUMPAD1);

2: PressVKey(VK_NUMPAD2);

3: PressVKey(VK_NUMPAD3);

4: PressVKey(VK_NUMPAD4);

5: PressVKey(VK_NUMPAD5);

6: PressVKey(VK_NUMPAD6);

7: PressVKey(VK_NUMPAD7);

8: PressVKey(VK_NUMPAD8);

end;

end;

 

begin

GetClient.Activate;

AutoTargetMonster;

PickupItem;

DoSkill(0);

end.

 

[/scar]

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...