Code:
Name: 'dg_cast by level', VNum: [ 132], RNum: [ 132]
Trigger Intended Assignment: Mobiles
Trigger Type: Fight , Numeric Arg: 10, Arg list: None
Commands:
* By Rumble of The Builder Academy tbamud.com 9091
switch %actor.level%
case 1
case 2
case 3
dg_cast 'magic missile' %actor%
break
case 5
dg_cast 'chill touch' %actor%
break
case 6
dg_cast 'burning hands' %actor%
break
case 7
dg_cast 'shocking grasp' %actor%
break
case 8
case 9
dg_cast 'lightning bolt' %actor%
break
case 10
dg_cast 'blindness' %actor%
break
case 11
dg_cast 'color spray' %actor%
break
case 12
dg_cast 'lightning bolt' %actor%
break
case 13
dg_cast 'energy drain' %actor%
break
case 14
dg_cast 'curse' %actor%
break
case 15
dg_cast 'poison' %actor%
break
case 16
if %actor.align% > 0
dg_cast 'dispel good' %actor%
else
dg_cast 'dispel evil' %actor%
end
break
case 17
dg_cast 'call lightning' %actor%
break
case 18
case 19
dg_cast 'harm' %actor%
break
* Level 20 and above gets fireball!
default
dg_cast 'fireball' %actor%
break
done
for TBA.