Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.02 KB | None | 0 0
  1. ffc script supercool{
  2. void run(int x, int y, int x2, int y2, int xleft, int xright, int ytop, int ybottom){
  3. bool deiced;
  4. int damagecounter;
  5. int damagecounter2;
  6. int ycutoff;
  7. if(Game->GetCurMap() == 45 && Game->GetCurScreen() == 0x74)
  8. ycutoff = 56;
  9. else
  10. ycutoff = 176;
  11. if(FlamesBurning() && !(Game->GetCurMap() == 45 && (Game->GetCurScreen() == 0x43 || Game->GetCurScreen() == 0x44))){
  12. for(int i = 0; i < 176; i++){
  13. SetLayerComboD(1, i, 0);
  14. if(Screen->ComboF[i] == 3){
  15. Screen->ComboD[i] = 389;
  16. SetLayerComboD(2, i, 0);
  17. }
  18. if(Screen->ComboT[i] == CT_WATER)
  19. SetLayerComboD(2, i, 0);
  20. }
  21. Quit();
  22. }
  23. else{
  24. for(int i = 0; i < 176; i++){
  25. if(ComboY(i) <= ycutoff){
  26. if((GetLayerComboT(0, i) == CT_WATER || GetLayerComboT(0, i) == CT_HSGRAB) && GetLayerComboD(1, i) != 2124){
  27. SetLayerComboD(1, i, 2124);
  28. }
  29. if(Screen->ComboF[i] == 3){
  30. if(Screen->ComboD[i] == 389){
  31. Screen->ComboD[i] = 4667;
  32. SetLayerComboD(2, i, 4668);
  33. }
  34. }
  35. }
  36. }
  37. }
  38. while(true){
  39. if(!FlamesBurning() || (Game->GetCurMap() == 45 && (Game->GetCurScreen() == 0x43 || Game->GetCurScreen() == 0x44)) ){
  40. if(Screen->LoadFFC(FindFFCRunning(74)) == this){
  41. if(Link->Y < ycutoff){
  42. if(Screen->ComboT[ComboAt(Link->X+8, Link->Y+8)] == CT_WATER && (Link->Action == LA_SWIMMING || Link->Action == LA_DIVING) && damagecounter == 0 && Link->Action != LA_SCROLLING && enemycountdelay < 20){
  43. Link->HP -= 16 * G[G_DAMAGE_CORRECTION_FACTOR];
  44. Game->PlaySound(23);
  45. damagecounter = 4;
  46. }
  47. if(damagecounter >0)
  48. damagecounter--;
  49. if(G[G_MULTIPLAYER_ENABLED] == 1){
  50. if(Screen->ComboT[ComboAt(G[G_PLAYER_TWO_X]+8, G[G_PLAYER_TWO_Y]+8)] == CT_WATER && (G[G_PLAYER_TWO_ACTION] == LA_SWIMMING || G[G_PLAYER_TWO_ACTION] == LA_DIVING) && damagecounter2 == 0 && Link->Action != LA_SCROLLING && enemycountdelay < 20){
  51. Link->HP -= 16 * G[G_DAMAGE_CORRECTION_FACTOR];
  52. Game->PlaySound(23);
  53. damagecounter2 = 4;
  54. }
  55. if(damagecounter2 >0)
  56. damagecounter2--;
  57. }
  58. }
  59. }
  60. }
  61. else if(FlamesBurning() && !(Game->GetCurMap() == 45 && (Game->GetCurScreen() == 0x43 || Game->GetCurScreen() == 0x44))){
  62. for(int i = 0; i < 176; i++){
  63. SetLayerComboD(1, i, 0);
  64. if(Screen->ComboF[i] == 3){
  65. Screen->ComboD[i] = 389;
  66. SetLayerComboD(2, i, 0);
  67. }
  68. if(Screen->ComboT[i] == CT_WATER)
  69. SetLayerComboD(2, i, 0);
  70. }
  71. Quit();
  72. }
  73. Waitframe();
  74. }
  75. }
  76. bool FlamesBurning(){
  77. if(Game->GetCurMap() == 6 && (Game->GetDMapScreenD(17, 3, 0) == 0 || Game->GetDMapScreenD(17, 5, 0) == 0 || Game->GetDMapScreenD(17, 35, 0) == 0|| Game->GetDMapScreenD(17, 37, 0) == 0))
  78. return false;
  79. else if(Game->GetCurMap() == 45 && (Game->GetDMapScreenD(69, 81, 0) == 0|| Game->GetDMapScreenD(69, 83, 0) == 0 || Game->GetDMapScreenD(69, 113, 0) == 0|| Game->GetDMapScreenD(69, 115, 0) == 0))
  80. return false;
  81. else
  82. return true;
  83. }
  84. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement