summaryrefslogtreecommitdiffstats
path: root/TemplePushing.c4s/CliffPushing.c4d/Extra.c4d/Flint.c4d/Script.c
blob: b51418929249eb628522cddea5535e8493da5b8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* Flint herbeizaubern */

#strict
static FlintID;

public func Activate(pCaster,pRealcaster) {
  var pSlurp;
  var pFlint;
  
  FlintID=[FLNT,SFLN,EFLN];
  
  // Effekt prüfen
  var iResult;
  if (iResult = CheckEffect("FlintNSpell", 0, 125)) return(iResult!=-1 && RemoveObject());
  // Sound
  Sound("Magic*");
  // Effekt
  CreateParticle("MSpark", 0,0, 1000, RGBa(255,50,50,150));

  if(pRealcaster) pCaster=pRealcaster;
 { pFlint = CreateContents(FlintID[Random(GetLength(FlintID))],pCaster); }
 
  RemoveObject();
  
  return(1);
}

/* Zaubercombo */

public func GetSpellClass(object pMage) { return(EART); }
public func GetSpellCombo(pMage) { return("422"); } // (1: Backward; 2: Down; 3: Forward; 4: Throw; 5: Jump; 6: Dig)