File: python_pickup.py

package info (click to toggle)
crossfire-maps 1.75.0%2Bdfsg1-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 275,656 kB
  • sloc: python: 7,711; sql: 92; sh: 73; makefile: 7
file content (14 lines) | stat: -rw-r--r-- 301 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import Crossfire

Crossfire.SetReturnValue( 1 )

whoami = Crossfire.WhoAmI()
who = Crossfire.WhoIsActivator()
where = Crossfire.WhoIsOther()

whoami.Say("i'm %s pickup by %s"%(whoami.Name, who.Name))
if (where) :
	whoami.Say("i'm about to be put into %s"%where.Name)
else:
	whoami.Say('put nowhere')