DartPower

Untitled

May 7th, 2014
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. // Кусок кода ACS
  2.  
  3. script 900 OPEN
  4. {
  5. if(CheckInventory("KillCount")>1)
  6. {
  7. setfont("BigFont");
  8. hudmessagebold(s:"Kill count: ",d:CheckInventory("KillCount");HUDMSG_PLAIN,1,CR_RED,0.95,0.15,1.0,1.0);
  9. }
  10. if(CheckInventory("KillCount")==5000)
  11. {
  12. consolecommand("kill monsters");
  13. }
  14. Delay(1);
  15. restart;
  16. }
  17.  
  18. script 901 (void)
  19. {
  20. SetActivatorToTarget(0);
  21. GiveInventory("KillCount",1);
  22. }
  23.  
  24. // при смерти моба:
  25.  
  26. ACS_Execute(901,0,0,0,0)
  27.  
  28. // Сам инвентарь
  29.  
  30. Actor KillCount : Inventory
  31. {
  32. Inventory.MaxAmount 5000
  33. }
  34.  
  35. // У ВСЕХ КЛАССОВ
  36.  
  37. Player.StartItem "KillCount", 1
Advertisement
Add Comment
Please, Sign In to add comment