Advertisement
Guest User

Untitled

a guest
Aug 1st, 2013
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. Begin Container_Week_sct ; скрипт кладем на контейнер chest_1
  2.  
  3. short currentDay
  4. short Week
  5.  
  6. if ( CurrentDay != Day )
  7. set CurrentDay to Day
  8. set week to week + 1
  9. elseif ( Week == 7 )
  10. set Week to 0
  11. additem misc_1 1
  12. additem misc_2 1
  13. endif
  14.  
  15. END
  16.  
  17. __________________________________
  18.  
  19. Begin Random_sct ; вешаем на НПЦ, который должен исчезать
  20.  
  21. short rand
  22. short Once
  23.  
  24. if ( GEtPCCell CELLID ) ; CELLID - локация, где размещен НПЦ
  25. set Once to 1
  26. if ( Once )
  27. set rand to random 2
  28. set Once to 0
  29. elseif ( rand )
  30. disable
  31. endif
  32. else
  33. enable
  34. endif
  35.  
  36. END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement