Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Feb 9th, 2010 | Syntax: Python | Size: 0.38 KB | Hits: 36 | Expires: Never
Copy text to clipboard
  1.                 elif event.type == EVENT_SHIPCHANGE:
  2.                         if event.old_ship == 8:
  3.                                 ship_old = 'spec'
  4.                         else:
  5.                                 ship_old = event.old_ship + 1
  6.                         if event.player.ship == 8:
  7.                                 ship_new = 'spec'
  8.                         else:
  9.                                 ship_new = event.player.ship + 1
  10.                         if not ship_old == ship_new:
  11.                                 bot.queueArenaMessagePacket(event.player.name + ' changed ships from ' + str(ship_old) + ' to ' + str(ship_new))