mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-09-21 06:13:13 -04:00
Added "Addability" to Setgodmode and experimenting with Mediate
Use /Setgodmod addability <String format> IE bh_sh3
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import sys
|
||||
|
||||
def setup():
|
||||
return
|
||||
|
||||
def run(core, actor, target, commandString):
|
||||
##To do make it reset moodanimations when meditation is cancled.
|
||||
|
||||
if actor.getPosture() != 0x08:
|
||||
actor.sendSystemMessage('You need to sit',0)
|
||||
actor.setMoodAnimation('neutral')
|
||||
return
|
||||
if actor.getPosture() == 0x08:
|
||||
actor.setMoodAnimation('meditating')
|
||||
return
|
||||
if actor.getPosture() == 0x00:
|
||||
actor.setMoodAnimation('neutral')
|
||||
return
|
||||
return
|
||||
|
||||
@@ -40,4 +40,8 @@ def run(core, actor, target, commandString):
|
||||
elif command == 'cash' and arg1 is int(arg1):
|
||||
actor.setCash(actor.getCash() + int(arg1))
|
||||
actor.sendSystemMessage('The Galactic Empire has transferred ' + arg1 + ' credits to you for your service.')
|
||||
|
||||
elif command == 'addability' and arg1:
|
||||
actor.addAbility(str(arg1))
|
||||
actor.sendSystemMessage('You have learned ' + arg1 + '')
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user