Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ffc script supercool{
- void run(int x, int y, int x2, int y2, int xleft, int xright, int ytop, int ybottom){
- bool deiced;
- int damagecounter;
- int damagecounter2;
- int ycutoff;
- if(Game->GetCurMap() == 45 && Game->GetCurScreen() == 0x74)
- ycutoff = 56;
- else
- ycutoff = 176;
- if(FlamesBurning() && !(Game->GetCurMap() == 45 && (Game->GetCurScreen() == 0x43 || Game->GetCurScreen() == 0x44))){
- for(int i = 0; i < 176; i++){
- SetLayerComboD(1, i, 0);
- if(Screen->ComboF[i] == 3){
- Screen->ComboD[i] = 389;
- SetLayerComboD(2, i, 0);
- }
- if(Screen->ComboT[i] == CT_WATER)
- SetLayerComboD(2, i, 0);
- }
- Quit();
- }
- else{
- for(int i = 0; i < 176; i++){
- if(ComboY(i) <= ycutoff){
- if((GetLayerComboT(0, i) == CT_WATER || GetLayerComboT(0, i) == CT_HSGRAB) && GetLayerComboD(1, i) != 2124){
- SetLayerComboD(1, i, 2124);
- }
- if(Screen->ComboF[i] == 3){
- if(Screen->ComboD[i] == 389){
- Screen->ComboD[i] = 4667;
- SetLayerComboD(2, i, 4668);
- }
- }
- }
- }
- }
- while(true){
- if(!FlamesBurning() || (Game->GetCurMap() == 45 && (Game->GetCurScreen() == 0x43 || Game->GetCurScreen() == 0x44)) ){
- if(Screen->LoadFFC(FindFFCRunning(74)) == this){
- if(Link->Y < ycutoff){
- 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){
- Link->HP -= 16 * G[G_DAMAGE_CORRECTION_FACTOR];
- Game->PlaySound(23);
- damagecounter = 4;
- }
- if(damagecounter >0)
- damagecounter--;
- if(G[G_MULTIPLAYER_ENABLED] == 1){
- 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){
- Link->HP -= 16 * G[G_DAMAGE_CORRECTION_FACTOR];
- Game->PlaySound(23);
- damagecounter2 = 4;
- }
- if(damagecounter2 >0)
- damagecounter2--;
- }
- }
- }
- }
- else if(FlamesBurning() && !(Game->GetCurMap() == 45 && (Game->GetCurScreen() == 0x43 || Game->GetCurScreen() == 0x44))){
- for(int i = 0; i < 176; i++){
- SetLayerComboD(1, i, 0);
- if(Screen->ComboF[i] == 3){
- Screen->ComboD[i] = 389;
- SetLayerComboD(2, i, 0);
- }
- if(Screen->ComboT[i] == CT_WATER)
- SetLayerComboD(2, i, 0);
- }
- Quit();
- }
- Waitframe();
- }
- }
- bool FlamesBurning(){
- 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))
- return false;
- 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))
- return false;
- else
- return true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement