fixed bugs with guild scripts
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13629 282e977c-c81d-0410-88c4-b93c2d0d6712master
parent
c41bb9c8df
commit
7bd104454a
|
@ -17,7 +17,6 @@
|
|||
# author:Avion temitchell@sourceforge.net
|
||||
|
||||
import Crossfire,CFGuilds,CFItemBroker,random,string,sys,CFBank,CFMail,CFLog
|
||||
|
||||
log = CFLog.CFLog()
|
||||
priceMailScroll = 5
|
||||
priceFactor = 50
|
||||
|
@ -194,14 +193,19 @@ if whoami.Name=='Jack':
|
|||
|
||||
|
||||
ClearanceApproved = (text1[5])
|
||||
if ClearanceApproved=="GuildMaster":
|
||||
ClearanceAproved=5
|
||||
whoami.Say(repr(ClearanceApproved))
|
||||
if ClearanceApproved=="'GuildMaster',":
|
||||
ClearanceApproved=5
|
||||
whoami.Say("Welcome Guild Master")
|
||||
elif ClearanceApproved=="'Master',":
|
||||
ClearanceApproved=4
|
||||
else:
|
||||
ClearanceApproved=0
|
||||
else:
|
||||
ClearanceApproved=0
|
||||
if ClearanceApproved<4:
|
||||
|
||||
if ClearanceApproved<5:
|
||||
|
||||
message="Only guild masters and GMs can withdraw funds from the guild."
|
||||
message="Only guild masters, masters, and GMs can withdraw funds from the guild."
|
||||
else:
|
||||
try:
|
||||
Amount=int(text[1])
|
||||
|
|
|
@ -41,9 +41,7 @@ if (guildname):
|
|||
guild = CFGuilds.CFGuild(guildname)
|
||||
text = Crossfire.WhatIsMessage().split()
|
||||
guildrecord = CFGuilds.CFGuildHouses().info(guildname)
|
||||
whoami.Say(str(type(guildrecord)))
|
||||
found = 0
|
||||
whoami.Say(guildrecord['Status'])
|
||||
if text[0] == 'enter' or text[0] == 'Enter':
|
||||
|
||||
if guildrecord['Status'] == 'inactive':
|
||||
|
|
Loading…
Reference in New Issue