Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2014
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. uses sysutils;
  2. var
  3. I: Integer;
  4. begin
  5. Print('Мой NPC: ' + Npcs.GetNear('').name + ' дист: ' + inttostr(Round(User.DistTo(Npcs.GetNear))));
  6. Auction.GetList(True); // Смотрим свои продажи
  7. if Auction.Count >= 9 then
  8. begin
  9. Print('Все лоты для продажи заняты..');
  10. Exit;
  11. end;
  12. if Auction.count > 0 then
  13. Print('Мои текущие лоты:');
  14. for I := 0 to Auction.count - 1 do
  15. with Auction.Items(I) do
  16. Print('"' + name + '", кол-во: ' + inttostr(count) +
  17. ', цена за шт: ' + inttostr(Price div count) +
  18. ', ставка за 1 шт: ' + inttostr(BidPrice div count) +
  19. ', покупатель: ' + Bidder);
  20. Print('Свободных лотов: ' + inttostr(9 - Auction.count));
  21. Print('------------------------------');
  22. for I := 0 to inv.count - 1 do
  23. with inv.items(i) do
  24. if (name = 'Лимон') and (Grade = 0) then
  25. begin
  26. Engine.Print('Ставим на продажу ' + Name + ', кол-во ' + IntToStr(Count), 6763534);
  27. if Engine.auctionsellitem(inv.items(i), count * 100, count * 5000, 0) then // ставим на продажу по 5000 за штуку и по 100 для торга
  28. Engine.Print('Успешно..', 2345235);
  29. end;
  30. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement