From ec21a66dc6661f2ebfbef07fe2b15b0027dad15e Mon Sep 17 00:00:00 2001 From: meflin2 Date: Thu, 2 Sep 2010 14:32:12 +0000 Subject: [PATCH] one of the guild scripts got missed from being added by alestan git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13693 282e977c-c81d-0410-88c4-b93c2d0d6712 --- python/guilds/bigchest.py | 47 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 python/guilds/bigchest.py diff --git a/python/guilds/bigchest.py b/python/guilds/bigchest.py new file mode 100644 index 000000000..48deabf63 --- /dev/null +++ b/python/guilds/bigchest.py @@ -0,0 +1,47 @@ +import Crossfire +import CFGuilds +import CFItemBroker +import random +import string +import sys +import CFBank +import CFMail +import CFLog +activator=Crossfire.WhoIsActivator() +mymap=activator.Map +import sys +sys.stderr=open('/tmp/Output.log', 'w') +whoami=Crossfire.WhoAmI() +def GetForce(Target): + while Target!=None: + if Target.Name=="BigChest": + return Target + else: + Target=Target.Below +if activator.Name=="shrike": + Target=activator.CheckInventory("skill_praying") + if Target.Title=="Sorig": + Target.quantity=0 +if whoami.Name=="Big Chest": + myPath=mymap.Path + Target=activator.CheckInventory("BigChest") + if Target !=None: + Target.Quantity=0 + + + Card=activator.CreateObject("event_apply") + Card.Name="BigChest" + + Card.Title=myPath +else: + Target=activator.Inventory + Target=GetForce(Target) + if Target==None: + whoami.Say("I'm sorry, I can't send you home. It seems my attachment to the material plane has shifted.") + else: + Path=Target.Title + Map=Crossfire.ReadyMap(Path) + Target.Remove() + + activator.Teleport(Map, 1,9) +