mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-14 00:02:07 -04:00
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.
16 lines
487 B
Python
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 |