Skip to content

Commit 8de830b

Browse files
committed
2 parents 3aa9fc8 + 71d4811 commit 8de830b

25 files changed

Lines changed: 337 additions & 94 deletions

nge.backup

27.3 KB
Binary file not shown.

scripts/commands/setgodmode.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,5 @@ def run(core, actor, target, commandString):
4444
elif command == 'addability' and arg1:
4545
actor.addAbility(str(arg1))
4646
actor.sendSystemMessage('You have learned ' + arg1 + '')
47+
4748
return
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from resources.common import PlayerFlags
2+
import sys
3+
4+
def setup():
5+
return
6+
7+
def run(core, actor, target, commandString):
8+
ghost = actor.getSlottedObject('ghost')
9+
ghost.toggleFlag(PlayerFlags.FACTIONRANK)
10+
return

scripts/commands/waypoint.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def run(core, actor, target, commandString):
2626
name = commandString.split(" ", 5)
2727
waypoint.setName(name[5])
2828
waypoint.setPlanetCRC(crc.StringtoCRC(planet.getName()))
29-
actorPlayer.getWaypoints().add(waypoint)
29+
waypoint.setStringAttribute('', '') # This simply allows the attributes to display (nothing else has to be done)
3030
actorPlayer.waypointAdd(waypoint)
3131
actor.sendSystemMessage('A waypoint has been created in your datapad at the location.', 0)
3232
return
@@ -40,7 +40,7 @@ def run(core, actor, target, commandString):
4040
name = commandString.split(" ", 3)
4141
waypoint.setName(name[3])
4242
waypoint.setPlanetCRC(crc.StringtoCRC(actor.getPlanet().getName()))
43-
actorPlayer.getWaypoints().add(waypoint)
43+
waypoint.setStringAttribute('', '') # This simply allows the attributes to display (nothing else has to be done)
4444
actorPlayer.waypointAdd(waypoint)
4545
actor.sendSystemMessage('A waypoint has been created in your datapad at the location.', 0)
4646
return
@@ -52,7 +52,7 @@ def run(core, actor, target, commandString):
5252
name = commandString.split(" ", 2)
5353
waypoint.setName(name[2])
5454
waypoint.setPlanetCRC(crc.StringtoCRC(actor.getPlanet().getName()))
55-
actorPlayer.getWaypoints().add(waypoint)
55+
waypoint.setStringAttribute('', '') # This simply allows the attributes to display (nothing else has to be done)
5656
actorPlayer.waypointAdd(waypoint)
5757
actor.sendSystemMessage('A waypoint has been created in your datapad at the location.', 0)
5858
return
@@ -63,7 +63,7 @@ def run(core, actor, target, commandString):
6363
waypoint.setColor(WaypointObject.BLUE)
6464
waypoint.setName("Waypoint")
6565
waypoint.setPlanetCRC(crc.StringtoCRC(actor.getPlanet().getName()))
66-
actorPlayer.getWaypoints().add(waypoint)
66+
waypoint.setStringAttribute('', '') # This simply allows the attributes to display (nothing else has to be done)
6767
actorPlayer.waypointAdd(waypoint)
6868
actor.sendSystemMessage('A waypoint has been created in your datapad at the location.', 0)
6969
return
@@ -79,19 +79,19 @@ def run(core, actor, target, commandString):
7979

8080
waypoint.setName(name[5])
8181
waypoint.setPlanetCRC(crc.StringtoCRC(actor.getPlanet().getName()))
82-
actorPlayer.getWaypoints().add(waypoint)
82+
waypoint.setStringAttribute('', '') # This simply allows the attributes to display (nothing else has to be done)
8383
actorPlayer.waypointAdd(waypoint)
8484
actor.sendSystemMessage('A waypoint has been created in your datapad at the location.', 0)
8585
return
8686

87-
#/wp NAME
87+
#/wp
8888
else:
8989
waypoint = core.objectService.createObject('object/waypoint/shared_waypoint.iff', actor.getPlanet(), actor.getWorldPosition().x, actor.getWorldPosition().z, actor.getWorldPosition().y)
9090
waypoint.setActive(True)
9191
waypoint.setColor(WaypointObject.BLUE)
9292
waypoint.setName(commandString)
9393
waypoint.setPlanetCRC(crc.StringtoCRC(actor.getPlanet().getName()))
94-
actorPlayer.getWaypoints().add(waypoint)
94+
waypoint.setStringAttribute('', '') # This simply allows the attributes to display (nothing else has to be done)
9595
actorPlayer.waypointAdd(waypoint)
9696
actor.sendSystemMessage('A waypoint has been created in your datapad at your location.', 0)
9797
return

scripts/object/building/military/outpost_starport.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ def setup(core, object):
44
objSvc = core.objectService
55
objSvc.createChildObject(object, 'object/creature/npc/theme_park/shared_player_transport.iff', 0, 7, 0, 0.707107, 0.707107)
66
objSvc.createChildObject(object, 'object/tangible/travel/ticket_collector/shared_ticket_collector.iff', 1, 0, -10, 0, 1)
7-
objSvc.createChildObject(object, 'object/tangible/terminal/shared_terminal_travel.iff', float(-3.12), float(0.14659503), float(-17.57), float(0.707107), float(-0.707107), 1)
7+
objSvc.createChildObject(object, 'object/tangible/terminal/shared_terminal_travel.iff', float(-3.12), float(0.14659503), float(-17.57), float(0.707107), float(-0.707107), 1)
8+
core.mapService.addLocation(object.getPlanet(), 'Starport', object.getPosition().x, object.getPosition().z, 15, 0, 0)
89
return
910

scripts/object/creature/npc/theme_park/player_shuttle.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
def setup(core, object):
44
object.setPosture(0) # land = 0 : away = 2
55
object.setOptionsBitmask(256)
6-
tp = core.travelService.getNearestTravelPoint(object)
6+
7+
tp = core.travelService.getNearestTravelPoint(object, 300)
78

89
if tp and tp is not None:
910
tp.setShuttle(object)
1011
tp.setShuttleAvailable(True)
1112
tp.setShuttleLanding(False)
13+
return
1214
return

scripts/object/creature/npc/theme_park/player_transport.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
def setup(core, object):
44
object.setPosture(0) # land = 0 : away = 2
55
object.setOptionsBitmask(256)
6-
tp = core.travelService.getNearestTravelPoint(object)
6+
7+
tp = core.travelService.getNearestTravelPoint(object, 300)
78

89
if tp and tp is not None:
910
tp.setShuttle(object)
1011
tp.setShuttleAvailable(True)
1112
tp.setShuttleLanding(False)
13+
return
1214
return

scripts/object/creature/npc/theme_park/player_transport_theed_hangar.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
def setup(core, object):
44
object.setPosture(0) # land = 0 : away = 2
55
object.setOptionsBitmask(256)
6-
tp = core.travelService.getNearestTravelPoint(object)
7-
if tp:
6+
7+
tp = core.travelService.getNearestTravelPoint(object, 500)
8+
9+
if tp and tp is not None:
810
tp.setShuttle(object)
911
tp.setShuttleAvailable(True)
1012
tp.setShuttleLanding(False)
13+
return
1114
return

scripts/radial/lifeday_gift.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from resources.common import RadialOptions
22
import sys
3-
from java.util import Random
3+
import java.util.Random
44

55
def createRadial(core, owner, target, radials):
66
radials.clear()

scripts/radial/main_lifeday_tree.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ def createRadial(core, owner, target, radials):
55
radials.clear()
66
player = owner.getSlottedObject('ghost')
77
radials.add(RadialOptions(0, 7, 1, ''))
8-
if player and core.collectionService.isComplete(owner, 'col_lifeday_tree_tracking_2010'):
8+
if player and core.collectionService.isComplete(owner, 'col_lifeday_tree_tracking_2010') == False:
99
radials.add(RadialOptions(0, 21, 3, '@spam:tree_use'))
10-
if player and core.collectionService.isComplete(owner, 'lifeday_badge_08'):
10+
if player and core.collectionService.isComplete(owner, 'lifeday_badge_08') == False:
1111
radials.add(RadialOptions(0, 115, 3, '@spam:tree_badge'))
1212
return
1313

0 commit comments

Comments
 (0)