Files
NGECore2/scripts/commands/setcurrentskilltitle.py
Seefo d00aa83050 Fixed a few exploits. See extended.
Skills obtained through the expertise system are now validated to make
sure they are legitimate expertise skills.
Player expertise points are also now factored in instead of letting the
client do all the calculations.
Command "setcurrentskilltitle" now checks if the player has obtained the
skill title to prevent abuse of the command.
2014-03-23 12:27:42 -04:00

16 lines
487 B
Python

import sys
def setup():
return
def run(core, actor, target, commandString):
playerObject = actor.getSlottedObject('ghost')
#print ("Title set to: " + commandString)
#print ("List of Titles: " + playerObject.getTitleList().toString())
if playerObject is None:
return
if str(commandString) in playerObject.getTitleList() or str(commandString) == "citizenship" or str(commandString) == "": playerObject.setTitle(str(commandString))
return