Jump to content

Recommended Posts

Posted

I did the script, to counting, but unfortunately is out of order. What can the problem be in?

 

var
a:integer;
begin
for a:=0 to 2 do
buf:=#$49;
WriteS(a);
WriteD(0);
SendToServer;
end.

 

Screen here

skrypt.th.jpg

 

sorry for my english. ThX

 

 

 

Posted

Use it like that:

 

var
a:integer;
begin
for a:=0 to 2 do
buf:=#$49;
WriteS('a');
WriteD(0);
SendToServer;
end.

 

There was a mistake.

Posted

Use it like that:

 

var
a:integer;
begin
for a:=0 to 2 do
buf:=#$49;
WriteS('a');
WriteD(0);
SendToServer;
end.

 

There was a mistake.

 

Then I will see on chat only 'a' but i need 1,2,3,4...... from loop

Posted

i need it for SPAM :) loop for a:=0 to 50000 do :) so could you help me please?

Give me some minutes, I'll log in and try to code it properly.
Posted

I thank for the interest, if I dont make this scipt i will try L2net. Thanks a lot

My pleasure dude.

I wish you good luck.

Posted

Program arrayz;
uses crt;

Const
max = 5000;

VAR
marks : array [1..MAX] of integer;
a : integer;
begin
for a := 1 to MAX do
begin
buf:=#$49;
WriteS(a);
WriteD(0);
SendToServer;
end.
end;

 

no tested

Posted

Program arrayz;
uses crt;

Const
max = 5000;

VAR
marks : array [1..MAX] of integer;
a : integer;
begin
for a := 1 to MAX do
begin
buf:=#$49;
WriteS(a);
WriteD(0);
SendToServer;
end.
end;

 

no tested

the same problem :(. In l2 phx numbers must be in

''

for example loop:

for a:=0 to 2 do

 

and it looks

WriteS('0');

WriteS('1');

WriteS('2');

 

but i need place it by variable a, so it must be

WriteS(a) but I need to add to that letter exactly these quotation marks

 

 

 

Posted

the problem is that you are trying to call WriteS (write a string) using an integer variable

 

try to use this

var
a:integer;
begin
for a:=0 to 2 do
buf:=#$49;
WriteS(IntToStr(a));
WriteD(0);
SendToServer;
end.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock