Thread: ≈ AmpeDx64
View Single Post
Old 08.10.2006, 11:28   #2
TheTester
Архивный участник
 
Join Date: Oct 2006
Posts: 112
Default

Quote:
Originally Posted by Mirror View Post
thetester, how about trying to increase the limit from the .ini ?
Safe limit - 2xx.xx0 with 1 slot. If amount of slots - 20, then max amount for any slot - xx.xx0. Any user can make a mistake and input wrong digit... and he will be kicked from server. You think it's allright?

---

Script for hLaPEx by Hint (russian util) from russian forum:
Quote:
//Anti limit 999
var
ICount,SCount,Add,i:integer;
ListID,ItemID:integer;
first:boolean=true;
max:integer=999;

procedure SendMsg(msg:string);
begin
buf:=#$4A;
WriteD(0);
WriteD(10);
WriteS('');
WriteS(msg);
SendToClient;
end;

begin
if FromServer then exit;
if pck[1]=#$1F then
begin
i:=2;
ListID:=ReadD(i);
if ReadD(i)<>1 then
begin
SendMsg('Use only one slot!');
exit;
end;
ItemID:=ReadD(i);
ICount:=ReadD(i);
SCount:=(ICount div max);
Add:=ICount mod max;
if Add>0 then inc(SCount);
if SCount>200 then
begin
SendMsg('Maximum '+IntToStr(200*max)+' items!');
exit;
end;
buf:=#$1F;
WriteD(ListID);
WriteD(SCount);
for i:=1 to (ICount div max) do
begin
WriteD(ItemID);
WriteD(max);
end;
if Add>0 then
begin
WriteD(ItemID);
WriteD(Add);
end;
pck:=buf;
if SCount>1 then SendMsg('Packet was modified ');
end;
end.
TheTester is offline