Fixing python indentation
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18698 282e977c-c81d-0410-88c4-b93c2d0d6712master
parent
beb58156f7
commit
5313de3438
|
@ -29,32 +29,29 @@ if activator == None or activator.Type != Crossfire.Type.PLAYER:
|
||||||
|
|
||||||
|
|
||||||
if (Approved != 'Access granted'):
|
if (Approved != 'Access granted'):
|
||||||
if (ActionRequired == "A"):
|
if (ActionRequired == "A"):
|
||||||
activator.Teleport(Crossfire.ReadyMap('/scorn/misc/jail'),int(15),random.choice([1,3,5,9,11]))
|
activator.Teleport(Crossfire.ReadyMap('/scorn/misc/jail'),int(15),random.choice([1,3,5,9,11]))
|
||||||
elif (ActionRequired == "D"):
|
elif (ActionRequired == "D"):
|
||||||
|
x4=random.randint(21, 23)
|
||||||
x4=random.randint(21, 23)
|
y4=random.randint(22,24)
|
||||||
y4=random.randint(22,24)
|
Corpse = activator.Map.ObjectAt(int (21), int (0))
|
||||||
Corpse = activator.Map.ObjectAt(int (21), int (0))
|
Curse = activator.Map.ObjectAt(int(x4),int(y4))
|
||||||
Curse = activator.Map.ObjectAt(int(x4),int(y4))
|
mymap = activator.Map
|
||||||
mymap = activator.Map
|
Corpse.Name = str("%s's body" %(activator.Name))
|
||||||
Corpse.Name = str("%s's body" %(activator.Name))
|
Corpse.Race = str("%s's Curse" %(activator.Name))
|
||||||
Corpse.Race = str("%s's Curse" %(activator.Name))
|
Corpse.Weight = 1
|
||||||
Corpse.Weight = 1
|
Curse.Name = str("%s's Curse" %(activator.Name))
|
||||||
Curse.Name = str("%s's Curse" %(activator.Name))
|
Corpse.Teleport(mymap, activator.X, activator.Y)
|
||||||
Corpse.Teleport(mymap, activator.X, activator.Y)
|
Curse.InsertInto(activator)
|
||||||
Curse.InsertInto(activator)
|
Curse1=activator.CheckArchInventory("amulet")
|
||||||
Curse1=activator.CheckArchInventory("amulet")
|
#whoami.Say(str(Curse1))
|
||||||
#whoami.Say(str(Curse1))
|
#whoami.Say(str(Curse))
|
||||||
#whoami.Say(str(Curse))
|
Curse1.Applied = 1
|
||||||
Curse1.Applied = 1
|
|
||||||
|
|
||||||
|
|
||||||
activator.Teleport(mymap,int(23),int(0))
|
activator.Teleport(mymap,int(23),int(0))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# whoami.Say('y')
|
# whoami.Say('y')
|
||||||
# whoami.Say(Approved)
|
# whoami.Say(Approved)
|
||||||
#activator.Teleport(mymap,int(x1),int(Y1))
|
#activator.Teleport(mymap,int(x1),int(Y1))
|
||||||
|
|
Loading…
Reference in New Issue