def onLoad(): wolfpack.registerglobal(EVENT_SKILLUSE, "skills") # Load all the neccesary data from the definitions for i in range(0, ALLSKILLS): skilldef = wolfpack.getdefinition(WPDT_SKILL, str(i)) # Load the skill information if skilldef: SKILLS[i] = { SKILL_GAINFACTOR: 1.0, SKILL_STRCHANCE: 0.0, SKILL_DEXCHANCE: 0.0, SKILL_INTCHANCE: 0.0 } for j in range(0, skilldef.childcount): child = skilldef.getchild(j) if child.name == 'name': SKILLS[i][SKILL_NAME] = child.value elif child.name == 'title': SKILLS[i][SKILL_TITLE] = child.value elif child.name == 'defname': SKILLS[i][SKILL_DEFNAME] = child.value elif child.name == 'gainchance': SKILLS[i][SKILL_GAINFACTOR] = float(child.value) elif child.name == 'strchance': SKILLS[i][SKILL_STRCHANCE] = float(child.value) elif child.name == 'dexchance': SKILLS[i][SKILL_DEXCHANCE] = float(child.value) elif child.name == 'intchance': SKILLS[i][SKILL_INTCHANCE] = float(child.value)
def onLoad(): wolfpack.registerglobal(EVENT_SKILLGAIN, "system.skillgain") # Load all the neccesary data from the definitions for i in range(0, ALLSKILLS): skilldef = wolfpack.getdefinition(WPDT_SKILL, str(i)) # Load the skill information if skilldef: SKILLS[i] = { SKILL_GAINFACTOR: 1.0, SKILL_STRCHANCE: 0.0, SKILL_DEXCHANCE: 0.0, SKILL_INTCHANCE: 0.0 } for j in range(0, skilldef.childcount): child = skilldef.getchild(j) if child.name == 'name': SKILLS[i][SKILL_NAME] = child.value elif child.name == 'title': SKILLS[i][SKILL_TITLE] = child.value elif child.name == 'defname': SKILLS[i][SKILL_DEFNAME] = child.value elif child.name == 'gainchance': SKILLS[i][SKILL_GAINFACTOR] = float(child.value) elif child.name == 'strchance': SKILLS[i][SKILL_STRCHANCE] = float(child.value) elif child.name == 'dexchance': SKILLS[i][SKILL_DEXCHANCE] = float(child.value) elif child.name == 'intchance': SKILLS[i][SKILL_INTCHANCE] = float(child.value)
def onLoad(): global pages pages = Pages() wolfpack.registerglobal(EVENT_HELP, "system.pages") wolfpack.registercommand("page", page) if not wolfpack.isstarting(): pages.load()
def onLoad(): global pages global page pages = Pages() wolfpack.registerglobal(EVENT_HELP, "system.pages") wolfpack.registercommand("page", page) if not wolfpack.isstarting(): pages.load()
def onLoad(): wolfpack.registerglobal(EVENT_SKILLGAIN, "system.skillgain")
def onLoad(): wolfpack.registerglobal(EVENT_SELECTABILITY, "combat.specialmoves")
def onLoad(): wolfpack.registerglobal( EVENT_SKILLUSE, "skills" )
def onLoad(): wolfpack.registerglobal( EVENT_CHLEVELCHANGE, "signpost" )
def onLoad(): wolfpack.registerglobal(EVENT_SERVERHOUR, "weather")
def onLoad(): wolfpack.registerglobal( EVENT_LOGIN, "shardscripts.virtues" ) wolfpack.registercommand( "virtues", virtueDisplay ) wolfpack.registercommand( "virtuereset", virtueReset ) return
def onLoad(): wolfpack.registerglobal(EVENT_CASTSPELL, "magic")
def onLoad(): wolfpack.registerglobal(EVENT_WORLDSAVE, "worldsave")
def onLoad(): wolfpack.registerglobal(EVENT_UPDATEACCTDATABASE, 'system.dbupdate') wolfpack.registerglobal(EVENT_UPDATEDATABASE, 'system.dbupdate')
def onLoad(): wolfpack.registerglobal(EVENT_DEATH, "system.loot")
def onLoad(): wolfpack.registerglobal(EVENT_UPDATEDATABASE, 'system.dbupdate')
def onLoad(): wolfpack.registerglobal(EVENT_CHLEVELCHANGE, "signpost")
def onLoad(): wolfpack.registerglobal( EVENT_TRADESTART, 'system.trading' ) wolfpack.registerglobal( EVENT_TRADE, 'system.trading' )
def onLoad(): wolfpack.registerglobal(EVENT_SWING, "combat") wolfpack.registerglobal(EVENT_SHOWSTATUS, "combat")