Advertisement
Guest User

Untitled

a guest
Nov 29th, 2012
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. Begin DN_Mastery_script
  2.  
  3. short pDestForUp
  4.  
  5. if ( Player->GetDestruction < pDestForUp ) ;Чтобы завершался, если навык игрока < нужного для апгрейда
  6. StopScript, "DN_Mastery_script"
  7. Return
  8. endif
  9.  
  10. if ( pDestForUp == 100 )
  11. if ( Player->GetDestruction == 100 )
  12. Player->AddSpell "DN_Mastery_3L"
  13. Player->RemoveSpell "DN_Mastery_2L"
  14. Set Bed_Standard.DestDone to ( Bed_Standard.DestDone + 1 )
  15. Set pDestForUp to 150
  16. Return
  17. endif
  18. endif
  19. if ( pDestForUp == 95 )
  20. if ( Player->GetDestruction >= 95 )
  21. Player->AddSpell "DN_Mastery_2L"
  22. Player->RemoveSpell "DN_Mastery_1L"
  23. Set pDestForUp to 100
  24. Return
  25. endif
  26. endif
  27. if ( pDestForUp == 80 )
  28. if ( Player->GetDestruction >= 80 )
  29. Player->AddSpell "DN_Mastery_1L"
  30. Player->RemoveSpell "DN_Mastery_0L"
  31. Set pDestForUp to 95
  32. Return
  33. endif
  34. endif
  35. if ( pDestForUp == 0 )
  36. if ( Player->GetDestruction >= 60 )
  37. Player->AddSpell "DN_Mastery_0L"
  38. Set pDestForUp to 80
  39. endif
  40. endif
  41.  
  42. End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement