@@ -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
0 commit comments