Jump to content

Recommended Posts

Posted

cod:

 

//----------------------------------------------------------------

const

  ItemID = 9455; // ItemID шмотки

  myname = 'ник;

//----------------------------------------------------------------

var

  ItemBase: array of integer;

  Crystal: boolean;                                           

  //------------------------------------------------------------------

procedure SendMsg2(msg:string);

begin

  buf:=#$4A;

  WriteD(0);

  WriteD(10);

  WriteS('');

  WriteS(msg);

  SendToClientEx(myname);

end;

//----------------------------------------------------------------

procedure Init; //Вызывается при включении скрипта

begin

  SendMsg2('Начало инициализации скрипта, откройте инвентарь' );

  Crystal:=false;

end;

//-----------------------------------------------------------------

procedure Free; //Вызывается при выключении скрипта

begin

 

end;

 

//----------------------------------------------------------------

procedure CreateItemBase; //Создает базу ObjectID и ItemID, опять же не проверяет пакет на правильность для экономия ресурсов

var

  i,j: integer;

begin

  j:=8;

  SetLength(ItemBase,int((length(pck)-5)/14)); //1ый байт - идентификатор пакета, следующие 4 байта хз, далее для каждого итема отводится 28 байт, размер массива должен быть в 2 раза больше, чем итемов.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..

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