Avencast

Official 'Avencast - Rise of the Mage' discussion board
It is currently Wed Sep 20, 2017 6:45 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Scripting Roadblocks (I need help!)
PostPosted: Sun Sep 22, 2013 7:06 pm 
Offline

Joined: Tue Sep 06, 2011 8:42 am
Posts: 4
I've started making more spells for my mod and it's been a real doozy creating the behaviors I need for said spells.

One in particular -Ice Wall- for which I simply took a few things from the Fire Wall scripts. However, the damage script is almost completely random in how enemies trigger it. Enemies often walk right through the area without even triggering the effect!

I eventually decided I'd have to resort to something more practical, like invisible explosions that occur throughout the duration Ice Wall. I'm not a scripter, so I have to resort to backwards engineering. I used the MagmaShower script as a base and altered it to my needs. This setup has one complication: I've added damage ticks via the invisible explosions, but how am I going to apply influences such as slow, freeze, stun, or weaken with the same method? After reviewing the Avenscript reference, it's clearly not possible because the AddInfluence script does not have any kind of positional input.

Here's the script for explosions (still has graphics but I'll remove them after the other problems are solved):

Code:
int floatCompare(float f1,float f2) {
   return int(f1*10000+0.5)==int(f2*10000+0.5);
}

float manaCosts=50.0;

float fieldWidth = 75.0;
float duration = 12.0;
float frequency = 1;

float damage=20.0;  // also set in action.cfg for display
float explosionRadius=64.0;
int damageType=2;

void meteor(int x,int y) {
   int x1,x2,x3,x4,x5,x6,x7,y1,y2,y3,y4,y5,y6,y7

   float r,a;
   float Angle=GetAngle(obj[0]);
   float w=-sin(Angle);
   float z=cos(Angle);

   a=5;
   r=9;
   r*=fieldWidth*0.5;

   x1=x+w*r;
   y1=y+z*r;

   a=10;
   r=6;
   r*=fieldWidth*0.5;

   x2=x+w*r;
   y2=y+z*r;

   a=15;
   r=3;
   r*=fieldWidth*0.5;

   x3=x+w*r;
   y3=y+z*r;

   a=0;
   r=0;
   r*=fieldWidth*0.5;

   x4=x+w*r;
   y4=y+z*r;

   a=0;
   r=-3;
   r*=fieldWidth*0.5;

   x5=x+w*r;
   y5=y+z*r;

   a=0;
   r=-6;
   r*=fieldWidth*0.5;

   x6=x+w*r;
   y6=y+z*r;

   a=0;
   r=-9;
   r*=fieldWidth*0.5;

   x7=x+w*r;
   y7=y+z*r;

      AddEffect("F_S_Shower",x1,y1,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x1)+","+string(y1) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x1)+","+string(y1)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x2,y2,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x2)+","+string(y2) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x2)+","+string(y2)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x3,y3,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x3)+","+string(y3) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x3)+","+string(y3)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x4,y4,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x4)+","+string(y4) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x4)+","+string(y4)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x5,y5,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x5)+","+string(y5) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x5)+","+string(y5)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x6,y6,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x6)+","+string(y6) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x6)+","+string(y6)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x7,y7,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x7)+","+string(y7) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x7)+","+string(y7)+"),1.0);",0.2);
   Wait(1);return;
      AddEffect("F_S_Shower",x1,y1,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x1)+","+string(y1) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x1)+","+string(y1)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x2,y2,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x2)+","+string(y2) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x2)+","+string(y2)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x3,y3,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x3)+","+string(y3) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x3)+","+string(y3)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x4,y4,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x4)+","+string(y4) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x4)+","+string(y4)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x5,y5,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x5)+","+string(y5) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x5)+","+string(y5)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x6,y6,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x6)+","+string(y6) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x6)+","+string(y6)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x7,y7,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x7)+","+string(y7) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x7)+","+string(y7)+"),1.0);",0.2);
   Wait(1);return;
      AddEffect("F_S_Shower",x1,y1,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x1)+","+string(y1) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x1)+","+string(y1)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x2,y2,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x2)+","+string(y2) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x2)+","+string(y2)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x3,y3,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x3)+","+string(y3) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x3)+","+string(y3)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x4,y4,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x4)+","+string(y4) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x4)+","+string(y4)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x5,y5,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x5)+","+string(y5) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x5)+","+string(y5)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x6,y6,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x6)+","+string(y6) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x6)+","+string(y6)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x7,y7,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x7)+","+string(y7) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x7)+","+string(y7)+"),1.0);",0.2);
   Wait(1);return;
      AddEffect("F_S_Shower",x1,y1,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x1)+","+string(y1) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x1)+","+string(y1)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x2,y2,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x2)+","+string(y2) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x2)+","+string(y2)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x3,y3,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x3)+","+string(y3) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x3)+","+string(y3)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x4,y4,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x4)+","+string(y4) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x4)+","+string(y4)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x5,y5,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x5)+","+string(y5) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x5)+","+string(y5)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x6,y6,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x6)+","+string(y6) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x6)+","+string(y6)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x7,y7,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x7)+","+string(y7) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x7)+","+string(y7)+"),1.0);",0.2);
   Wait(1);return;
      AddEffect("F_S_Shower",x1,y1,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x1)+","+string(y1) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x1)+","+string(y1)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x2,y2,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x2)+","+string(y2) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x2)+","+string(y2)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x3,y3,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x3)+","+string(y3) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x3)+","+string(y3)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x4,y4,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x4)+","+string(y4) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x4)+","+string(y4)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x5,y5,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x5)+","+string(y5) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x5)+","+string(y5)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x6,y6,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x6)+","+string(y6) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x6)+","+string(y6)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x7,y7,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x7)+","+string(y7) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x7)+","+string(y7)+"),1.0);",0.2);
   Wait(1);return;

      AddEffect("F_S_Shower",x1,y1,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x1)+","+string(y1) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x1)+","+string(y1)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x2,y2,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x2)+","+string(y2) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x2)+","+string(y2)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x3,y3,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x3)+","+string(y3) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x3)+","+string(y3)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x4,y4,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x4)+","+string(y4) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x4)+","+string(y4)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x5,y5,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x5)+","+string(y5) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x5)+","+string(y5)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x6,y6,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x6)+","+string(y6) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x6)+","+string(y6)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x7,y7,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x7)+","+string(y7) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x7)+","+string(y7)+"),1.0);",0.2);
   Wait(1);return;
      AddEffect("F_S_Shower",x1,y1,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x1)+","+string(y1) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x1)+","+string(y1)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x2,y2,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x2)+","+string(y2) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x2)+","+string(y2)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x3,y3,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x3)+","+string(y3) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x3)+","+string(y3)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x4,y4,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x4)+","+string(y4) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x4)+","+string(y4)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x5,y5,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x5)+","+string(y5) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x5)+","+string(y5)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x6,y6,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x6)+","+string(y6) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x6)+","+string(y6)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x7,y7,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x7)+","+string(y7) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x7)+","+string(y7)+"),1.0);",0.2);
   Wait(1);return;
      AddEffect("F_S_Shower",x1,y1,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x1)+","+string(y1) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x1)+","+string(y1)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x2,y2,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x2)+","+string(y2) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x2)+","+string(y2)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x3,y3,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x3)+","+string(y3) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x3)+","+string(y3)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x4,y4,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x4)+","+string(y4) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x4)+","+string(y4)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x5,y5,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x5)+","+string(y5) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x5)+","+string(y5)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x6,y6,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x6)+","+string(y6) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x6)+","+string(y6)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x7,y7,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x7)+","+string(y7) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x7)+","+string(y7)+"),1.0);",0.2);
   Wait(1);return;
      AddEffect("F_S_Shower",x1,y1,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x1)+","+string(y1) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x1)+","+string(y1)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x2,y2,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x2)+","+string(y2) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x2)+","+string(y2)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x3,y3,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x3)+","+string(y3) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x3)+","+string(y3)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x4,y4,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x4)+","+string(y4) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x4)+","+string(y4)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x5,y5,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x5)+","+string(y5) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x5)+","+string(y5)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x6,y6,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x6)+","+string(y6) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x6)+","+string(y6)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x7,y7,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x7)+","+string(y7) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x7)+","+string(y7)+"),1.0);",0.2);
   Wait(1);return;
      AddEffect("F_S_Shower",x1,y1,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x1)+","+string(y1) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x1)+","+string(y1)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x2,y2,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x2)+","+string(y2) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x2)+","+string(y2)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x3,y3,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x3)+","+string(y3) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x3)+","+string(y3)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x4,y4,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x4)+","+string(y4) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x4)+","+string(y4)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x5,y5,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x5)+","+string(y5) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x5)+","+string(y5)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x6,y6,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x6)+","+string(y6) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x6)+","+string(y6)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x7,y7,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x7)+","+string(y7) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x7)+","+string(y7)+"),1.0);",0.2);
   Wait(1);return;
      AddEffect("F_S_Shower",x1,y1,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x1)+","+string(y1) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x1)+","+string(y1)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x2,y2,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x2)+","+string(y2) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x2)+","+string(y2)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x3,y3,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x3)+","+string(y3) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x3)+","+string(y3)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x4,y4,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x4)+","+string(y4) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x4)+","+string(y4)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x5,y5,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x5)+","+string(y5) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x5)+","+string(y5)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x6,y6,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x6)+","+string(y6) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x6)+","+string(y6)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x7,y7,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x7)+","+string(y7) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x7)+","+string(y7)+"),1.0);",0.2);
   Wait(1);return;
      AddEffect("F_S_Shower",x1,y1,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x1)+","+string(y1) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x1)+","+string(y1)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x2,y2,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x2)+","+string(y2) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x2)+","+string(y2)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x3,y3,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x3)+","+string(y3) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x3)+","+string(y3)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x4,y4,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x4)+","+string(y4) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x4)+","+string(y4)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x5,y5,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x5)+","+string(y5) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x5)+","+string(y5)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x6,y6,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x6)+","+string(y6) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x6)+","+string(y6)+"),1.0);",0.2);

      AddEffect("F_S_Shower",x7,y7,0,-1,0,3);
      RequestRunScript("ExplosionDamageMagic("+string(x7)+","+string(y7) +","+string(TransformBySpellPower(mc_ID, damage))+", 0, 1,"+string(explosionRadius)+",0,"+string(mc_ID)+","+string(damageType)+");SetLifeSpan(AddObject(\"F_S_Shower_Event\","+string(x7)+","+string(y7)+"),1.0);",0.2);
}

if(GetValidCursorPoint()) {
   if(GetMana(mc_ID)>=manaCosts)
   {
      SubtractMana(manaCosts);

      float x=fTmp[0];
      float y=fTmp[1];
      
         meteor(x,y);
   }
   else {
      NotifyNoMana(mc_ID);
   }
} else {
   PlaySound("GuiError");
   Message("DB:invalidtarget");
   ClearAction(obj[0]);
}


Please tell me there's still a scripter around these parts :cry:


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group