This commit is contained in:
xbang21
2013-10-29 20:20:32 -04:00
2 changed files with 9 additions and 98 deletions
-98
View File
@@ -1,98 +0,0 @@
import sys
def setup():
return
def run(core, actor, target, commandString):
commandSvc = core.commandService
weapon = core.objectService.getObject(actor.getWeaponId())
if not weapon:
return
if not weapon.getWeaponType() == 12:
return
elementalType = weapon.getElementalType()
commandName = ''
if elementalType == '@obj_attr_n:elemental_heat':
if actor.getLevel() >= 58:
commandName = 'co_hw_dot_fire_1'
if actor.getLevel() >= 60:
commandName = 'co_hw_dot_fire_2'
if actor.getLevel() >= 70:
commandName = 'co_hw_dot_fire_3'
if actor.getLevel() >= 80:
commandName = 'co_hw_dot_fire_4'
if actor.getLevel() >= 90:
commandName = 'co_hw_dot_fire_5'
elif elementalType == '@obj_attr_n:elemental_cold':
if actor.getLevel() >= 58:
commandName = 'co_hw_dot_cold_1'
if actor.getLevel() >= 60:
commandName = 'co_hw_dot_cold_2'
if actor.getLevel() >= 70:
commandName = 'co_hw_dot_cold_3'
if actor.getLevel() >= 80:
commandName = 'co_hw_dot_cold_4'
if actor.getLevel() >= 90:
commandName = 'co_hw_dot_cold_5'
elif elementalType == '@obj_attr_n:elemental_acid':
if actor.getLevel() >= 58:
commandName = 'co_hw_dot_acid_1'
if actor.getLevel() >= 60:
commandName = 'co_hw_dot_acid_2'
if actor.getLevel() >= 70:
commandName = 'co_hw_dot_acid_3'
if actor.getLevel() >= 80:
commandName = 'co_hw_dot_acid_4'
if actor.getLevel() >= 90:
commandName = 'co_hw_dot_acid_5'
elif elementalType == '@obj_attr_n:elemental_electricity':
if actor.getLevel() >= 58:
commandName = 'co_hw_dot_electrical_1'
if actor.getLevel() >= 60:
commandName = 'co_hw_dot_electrical_2'
if actor.getLevel() >= 70:
commandName = 'co_hw_dot_electrical_3'
if actor.getLevel() >= 80:
commandName = 'co_hw_dot_electrical_4'
if actor.getLevel() >= 90:
commandName = 'co_hw_dot_electrical_5'
elif elementalType == '@obj_attr_n:elemental_energy':
if actor.getLevel() >= 58:
commandName = 'co_hw_dot_energy_1'
if actor.getLevel() >= 60:
commandName = 'co_hw_dot_energy_2'
if actor.getLevel() >= 70:
commandName = 'co_hw_dot_energy_3'
if actor.getLevel() >= 80:
commandName = 'co_hw_dot_energy_4'
if actor.getLevel() >= 90:
commandName = 'co_hw_dot_energy_5'
elif elementalType =='@obj_attr_n:elemental_kinetic':
if actor.getLevel() >= 58:
commandName = 'co_hw_dot_kinetic_1'
if actor.getLevel() >= 60:
commandName = 'co_hw_dot_kinetic_2'
if actor.getLevel() >= 70:
commandName = 'co_hw_dot_kinetic_3'
if actor.getLevel() >= 80:
commandName = 'co_hw_dot_kinetic_4'
if actor.getLevel() >= 90:
commandName = 'co_hw_dot_kinetic_5'
if commandName == '':
return
combatCommand = commandSvc.getCommandByName(commandName).clone()
if not combatCommand:
return
commandSvc.processCombatCommand(actor, target, combatCommand, 0, commandString)
return
@@ -0,0 +1,9 @@
import sys
def add(core, actor, name, base):
actor.addSkillMod(name, base)
return
def deduct(core, actor, name, base):
actor.deductSkillMod(name, base)
return