rem stringlengths 1 322k | add stringlengths 0 2.05M | context stringlengths 4 228k | meta stringlengths 156 215 |
|---|---|---|---|
gump.addText(200, 333, self.submaterials2[index][0], 0x480) | gump.addText(200, 333, self.submaterials2[index][0], enabbledhue) | def addbuttons(self, gump, player, arguments, submenu = 0): # Allow repairing items. if self.allowrepair: gump.addButton(350, 310, 4005, 4007, 10) gump.addText(385, 313, tr("Repair Item"), 0x480) | 0d89a4bc8e80f0d0c5ebc39da765d50080b61588 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/0d89a4bc8e80f0d0c5ebc39da765d50080b61588/makemenus.py |
gump.addText(50, yoffset + 3, self.submenus[actions + j].title, 0x480) | gump.addText(50, yoffset + 3, self.submenus[actions + j].title, enabbledhue) | def send(self, player, args = []): if self.requiretool and not self.checktool(player, wolfpack.finditem(args[0])): return | 0d89a4bc8e80f0d0c5ebc39da765d50080b61588 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/0d89a4bc8e80f0d0c5ebc39da765d50080b61588/makemenus.py |
gump.addXmfHtmlGump(255, yoffset+3, 275, 20, int(self.subactions[menus + j].title), False, False, 0xFFFFFF) | gump.addXmfHtmlGump(255, yoffset+3, 275, 20, int(self.subactions[menus + j].title), False, False, 0x7FFF) | def send(self, player, args = []): if self.requiretool and not self.checktool(player, wolfpack.finditem(args[0])): return | 0d89a4bc8e80f0d0c5ebc39da765d50080b61588 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/0d89a4bc8e80f0d0c5ebc39da765d50080b61588/makemenus.py |
gump.addXmfHtmlGump(255, yoffset+3, 275, 20, int(self.subactions[menus + j].title), False, False, 0xFFFFFF) | gump.addXmfHtmlGump(255, yoffset+3, 275, 20, int(self.subactions[menus + j].title), False, False, 0x7FFF) | def send(self, player, args = []): if self.requiretool and not self.checktool(player, wolfpack.finditem(args[0])): return | 0d89a4bc8e80f0d0c5ebc39da765d50080b61588 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/0d89a4bc8e80f0d0c5ebc39da765d50080b61588/makemenus.py |
gump.addText(255, yoffset+3, self.subactions[menus + j].title, 0x480) | gump.addText(255, yoffset+3, self.subactions[menus + j].title, enabbledhue) | def send(self, player, args = []): if self.requiretool and not self.checktool(player, wolfpack.finditem(args[0])): return | 0d89a4bc8e80f0d0c5ebc39da765d50080b61588 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/0d89a4bc8e80f0d0c5ebc39da765d50080b61588/makemenus.py |
gump.addXmfHtmlGump(255, yoffset+3, 275, 20, int(self.subactions[menus + j].title), False, False, 0xDDDDDD) | gump.addXmfHtmlGump(255, yoffset+3, 275, 20, int(self.subactions[menus + j].title), 0, 0, disabledcolor) | def send(self, player, args = []): if self.requiretool and not self.checktool(player, wolfpack.finditem(args[0])): return | 0d89a4bc8e80f0d0c5ebc39da765d50080b61588 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/0d89a4bc8e80f0d0c5ebc39da765d50080b61588/makemenus.py |
gump.addXmfHtmlGump(255, yoffset+3, 275, 20, int(self.subactions[menus + j].title), False, False, 0xDDDDDD) | gump.addXmfHtmlGump(255, yoffset+3, 275, 20, int(self.subactions[menus + j].title), 0, 0, disabledcolor) | def send(self, player, args = []): if self.requiretool and not self.checktool(player, wolfpack.finditem(args[0])): return | 0d89a4bc8e80f0d0c5ebc39da765d50080b61588 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/0d89a4bc8e80f0d0c5ebc39da765d50080b61588/makemenus.py |
gump.addText(255, yoffset+3, self.subactions[menus + j].title, 0x3b1) | gump.addText(255, yoffset+3, self.subactions[menus + j].title, disabledhue) | def send(self, player, args = []): if self.requiretool and not self.checktool(player, wolfpack.finditem(args[0])): return | 0d89a4bc8e80f0d0c5ebc39da765d50080b61588 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/0d89a4bc8e80f0d0c5ebc39da765d50080b61588/makemenus.py |
gump.addText(50, 293, tr("Previous Page"), 0x480) | gump.addText(50, 293, tr("Previous Page"), enabbledhue) | def send(self, player, args = []): if self.requiretool and not self.checktool(player, wolfpack.finditem(args[0])): return | 0d89a4bc8e80f0d0c5ebc39da765d50080b61588 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/0d89a4bc8e80f0d0c5ebc39da765d50080b61588/makemenus.py |
gump.addText(385, 293, tr("Next Page"), 0x480) | gump.addText(385, 293, tr("Next Page"), enabbledhue) | def send(self, player, args = []): if self.requiretool and not self.checktool(player, wolfpack.finditem(args[0])): return | 0d89a4bc8e80f0d0c5ebc39da765d50080b61588 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/0d89a4bc8e80f0d0c5ebc39da765d50080b61588/makemenus.py |
ownerser = "invalid" | ownerser = "-1" | def charinfo( socket, char ): if not char or not socket: return page_ = 0 pages = 0 if char.npc: pages = 5 else: pages = 5 gump = cGump( 0, 0, 0, 0, 40 ) gump.setCallback( "commands.info.charinfo_response" ) gump.setArgs( [char] ) gump.startPage( page_ ) gump.addResizeGump( 0, 40, 0xA28, 450, 350 ) # Background gump... | 446f6a3007b6c351324097cb5aa350acc2235bce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/446f6a3007b6c351324097cb5aa350acc2235bce/info.py |
char.owner = wolfpack.findChar( int( hex2dec( textentries[ key ] ) ) ) | owner = wolfpack.findchar( int( hex2dec( textentries[ key ] ) ) ) if owner: char.owner = owner | def charinfo_response( player, args, choice ): socket = player.socket char = args[0] if choice.button == 0 or not char or not socket: return 1 textentries = choice.text keys = textentries.keys() for key in keys: if key == 1: char.name = textentries[ key ] elif key == 2: char.title = textentries[ key ] elif key == 3: ... | 446f6a3007b6c351324097cb5aa350acc2235bce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/446f6a3007b6c351324097cb5aa350acc2235bce/info.py |
value = int(char.gettag(tagname)) totalskills -= value / 10.0 | tagvalue = int(char.gettag(tagname)) totalskills -= tagvalue / 10.0 | def onSkillGain(char, skill, lower, higher, success): # See if we can gain at all # GMs don't gain skills if char.dead or char.gm or char.polymorph: return if not SKILLS.has_key(skill): char.log(LOG_ERROR, "Is using an unidentified skill: %u\n" % skill) return info = SKILLS[skill] skills = char.skill value = skills[s... | c81cd9e21ca0072585fc71d530fbe3195135820b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/c81cd9e21ca0072585fc71d530fbe3195135820b/skillgain.py |
if value < lower or value >= higher: | if value >= higher: | def onSkillGain(char, skill, lower, higher, success): # See if we can gain at all # GMs don't gain skills if char.dead or char.gm or char.polymorph: return if not SKILLS.has_key(skill): char.log(LOG_ERROR, "Is using an unidentified skill: %u\n" % skill) return info = SKILLS[skill] skills = char.skill value = skills[s... | 431a7bbcd4d2950155ef757a96148fdd81b3e5fb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/431a7bbcd4d2950155ef757a96148fdd81b3e5fb/skillgain.py |
socket.sysmessage('Usage: send <x, y, z, map>|<location>') | player.socket.sysmessage('Usage: send <x, y, z, map>|<location>') | def sendresponse(player, arguments, target): if target.item: object = target.item elif target.char: if target.char.rank >= player.rank and player != target.char: player.socket.sysmessage("You've burnt your fingers!") return object = target.char else: player.socket.sysmessage('You need to target a character or an item.... | 3234d730b8b64e2a24af0e9918556624c4c2061f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/3234d730b8b64e2a24af0e9918556624c4c2061f/go.py |
gump.addInputField( 284, 160, 200, 16, 0x834, 40, unicode( char.fixedlight ) ) | gump.addInputField( 284, 160, 200, 16, 0x834, 40, unicode( char.lightbonus ) ) | def charinfo( socket, char ): if not char or not socket: return gump = wolfpack.gumps.cGump() gump.setCallback( "commands.info.charinfo_response" ) gump.setArgs( [char] ) gump.startPage(0) gump.addResizeGump( 64, 34, 9260, 464, 462 ) #Background gump.addGump(30, 33, 10421, 0) gump.addGump(59, 22, 10420, 0) gump.addGu... | 639008bc5044b98a9fcdeabf4f72bbca0b44dea7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/639008bc5044b98a9fcdeabf4f72bbca0b44dea7/info.py |
char.fixedlight = int( textentries[ key ] ) | char.lightbonus = int( textentries[ key ] ) | def charinfo_response( player, args, choice ): socket = player.socket char = args[0] if choice.button == 0 or not char or not socket: return 1 # check for rank #if char.rank >= player.rank and not player == char: # socket.sysmessage( "You've burnt your fingers!" ) # return 1 textentries = choice.text keys = textentri... | 639008bc5044b98a9fcdeabf4f72bbca0b44dea7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/639008bc5044b98a9fcdeabf4f72bbca0b44dea7/info.py |
if target.char.socket: | if target.char.player: | def response1( char, args, target ): socket = char.socket instrument = wolfpack.finditem(args[0]) if target.item: socket.clilocmessage( 0x7A755, "", 0x3b2, 3 ) # You can't incite that! return False if target.char: if target.char.socket: socket.clilocmessage( 0x7A754, "", 0x3b2, 3 ) # Verbal taunts might be more effec... | a92b0e7b0dd94f018f5a72cd4c3ee374b2d111b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/a92b0e7b0dd94f018f5a72cd4c3ee374b2d111b2/provocation.py |
if target.char.priv or target.char.dead: | if target.char.invulnerable or target.char.dead: | def response1( char, args, target ): socket = char.socket instrument = wolfpack.finditem(args[0]) if target.item: socket.clilocmessage( 0x7A755, "", 0x3b2, 3 ) # You can't incite that! return False if target.char: if target.char.socket: socket.clilocmessage( 0x7A754, "", 0x3b2, 3 ) # Verbal taunts might be more effec... | a92b0e7b0dd94f018f5a72cd4c3ee374b2d111b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/a92b0e7b0dd94f018f5a72cd4c3ee374b2d111b2/provocation.py |
creature1.target = target.char | creature1.attacktarget = target.char creature1.fight(target.char) | def response2( char, args, target ): socket = char.socket if not target.char: return False creature1 = wolfpack.findchar(args[0]) tobardtarget1 = args[1] instrument = wolfpack.finditem(args[2]) tobardtarget2 = tobard( target.char, "provoke" ) minimum = int( ( ( tobardtarget1 + tobardtarget2 ) / 2.0 ) - 25.0 ) maximum... | a92b0e7b0dd94f018f5a72cd4c3ee374b2d111b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/a92b0e7b0dd94f018f5a72cd4c3ee374b2d111b2/provocation.py |
target.char.target = creature1 | target.char.attacktarget = creature1 target.char.fight(creature1) | def response2( char, args, target ): socket = char.socket if not target.char: return False creature1 = wolfpack.findchar(args[0]) tobardtarget1 = args[1] instrument = wolfpack.finditem(args[2]) tobardtarget2 = tobard( target.char, "provoke" ) minimum = int( ( ( tobardtarget1 + tobardtarget2 ) / 2.0 ) - 25.0 ) maximum... | a92b0e7b0dd94f018f5a72cd4c3ee374b2d111b2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/a92b0e7b0dd94f018f5a72cd4c3ee374b2d111b2/provocation.py |
player.socket.sysmessage('Creating items from %u,%u to %u,%u at z=%d.' % (x1, y1, x2, y2, z)) | player.log(LOG_MESSAGE, "Tiling %u items (%s) from %u,%u to %u,%u at z=%d.\n" % (count, ", ".join(ids), x1, y1, x2, y2, z)) player.socket.sysmessage('Creating %u items from %u,%u to %u,%u at z=%d.' % (count, x1, y1, x2, y2, z)) | def tileResponse(player, arguments, target): if len(arguments) < 3: player.socket.sysmessage('Please select the second corner.') player.socket.attachtarget("commands.tile.tileResponse", list(arguments) + [target.pos]) return x1 = min(arguments[2].x, target.pos.x) x2 = max(arguments[2].x, target.pos.x) y1 = min(argumen... | 0346ab8e51c4979194597dbd433dc9bd5ffe93f8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/0346ab8e51c4979194597dbd433dc9bd5ffe93f8/tile.py |
char.socket.clilocmessage(500641) | if char.socket: char.socket.clilocmessage(500641) | def onDamage(char, type, amount, source): # You cannot be disturbed while using protection if char.propertyflags & 0x20000: return amount char.socket.clilocmessage(500641) fizzle(char) return amount | 1f8de2ccb69468bcecef54218b5cc1b979e10067 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/1f8de2ccb69468bcecef54218b5cc1b979e10067/__init__.py |
def splashdamage(attacker, effect): | def splashdamage(attacker, effect, excludechar = None): | def splashdamage(attacker, effect): (physical, cold, fire, poison, energy) = (0, 0, 0, 0, 0) if effect == SPLASHPHYSICAL: sound = 0x10e hue = 50 physical = 100 elif effect == SPLASHFIRE: sound = 0x11d hue = 1160 fire = 100 elif effect == SPLASHCOLD: sound = 0xfc hue = 2100 cold = 100 elif effect == SPLASHPOISON: sound... | 783ee189b24a33cc17f852627cfa7f75766b55c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/783ee189b24a33cc17f852627cfa7f75766b55c8/aos.py |
chariterator = wolfpack.charregion(pos.x - 10, pos.y - 10, pos.x + 10, pos.y + 10, pos.map) | chariterator = wolfpack.charregion(pos.x - 3, pos.y - 3, pos.x + 3, pos.y + 3, pos.map) | def splashdamage(attacker, effect): (physical, cold, fire, poison, energy) = (0, 0, 0, 0, 0) if effect == SPLASHPHYSICAL: sound = 0x10e hue = 50 physical = 100 elif effect == SPLASHFIRE: sound = 0x11d hue = 1160 fire = 100 elif effect == SPLASHCOLD: sound = 0xfc hue = 2100 cold = 100 elif effect == SPLASHPOISON: sound... | 783ee189b24a33cc17f852627cfa7f75766b55c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/783ee189b24a33cc17f852627cfa7f75766b55c8/aos.py |
if attacker != target and (not party or party != target.party) and (not guild or guild != target.guild): if not target.dead and not target.invulnerable and not target.invisible and not target.hidden: tpos = target.pos distance = sqrt((pos.x - tpos.x) * (pos.x - tpos.x) + (pos.y - tpos.y) * (pos.y - tpos.y)) factor = ... | if attacker != target and excludechar != target and mayAreaHarm(attacker, target): tpos = target.pos distance = sqrt((pos.x - tpos.x) * (pos.x - tpos.x) + (pos.y - tpos.y) * (pos.y - tpos.y)) factor = min(1.0, (4 - distance) / 3) if factor > 0.0: damage = int(random.randint(mindamage, maxdamage) * factor) if damage ... | def splashdamage(attacker, effect): (physical, cold, fire, poison, energy) = (0, 0, 0, 0, 0) if effect == SPLASHPHYSICAL: sound = 0x10e hue = 50 physical = 100 elif effect == SPLASHFIRE: sound = 0x11d hue = 1160 fire = 100 elif effect == SPLASHCOLD: sound = 0xfc hue = 2100 cold = 100 elif effect == SPLASHPOISON: sound... | 783ee189b24a33cc17f852627cfa7f75766b55c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/783ee189b24a33cc17f852627cfa7f75766b55c8/aos.py |
splashdamage(attacker, effectid) | splashdamage(attacker, effectid, excludechar = defender) | def hit(attacker, defender, weapon, time): combat.utilities.playhitsound(attacker, defender) (mindamage, maxdamage) = properties.getdamage(attacker) damage = random.randint(mindamage, maxdamage) damage = scaledamage(attacker, damage, checkability = True) # Slaying? (only against NPCs) if weapon and defender.npc and ... | 783ee189b24a33cc17f852627cfa7f75766b55c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/783ee189b24a33cc17f852627cfa7f75766b55c8/aos.py |
range( 6038, 6067 ) + \ range( 13422, 13446 ) + \ range( 13456, 13484 ) + \ range( 13493, 13256 ) | range( 6038, 6067 ) + \ range( 13422, 13446 ) + \ range( 13456, 13484 ) + \ range( 13493, 13526 ) | def iswater( tile ): return tile in range( 168, 172 ) + \ range( 6038, 6067 ) + \ range( 13422, 13446 ) + \ range( 13456, 13484 ) + \ range( 13493, 13256 ) | 9eb447d2d4ac054de6d036f335909b85df1ab3f0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/9eb447d2d4ac054de6d036f335909b85df1ab3f0/utilities.py |
break | return 1 | def onSpeech( listener, speaker, text, keywords ): for keyword in keywords: # withdraw if keyword == 0x0: # Search for the amount we want to withdraw (should be the only digits in there) result = amountre.search( text ) amount = 0 if result: amount = int( result.group( 1 ) ) # Invalid Withdraw Amount if not amount: #... | b51333462420581066d95aa398e35a9466b249c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/b51333462420581066d95aa398e35a9466b249c0/banker.py |
return 1 | return False | def onSpeech( listener, speaker, text, keywords ): for keyword in keywords: # withdraw if keyword == 0x0: # Search for the amount we want to withdraw (should be the only digits in there) result = amountre.search( text ) amount = 0 if result: amount = int( result.group( 1 ) ) # Invalid Withdraw Amount if not amount: #... | b51333462420581066d95aa398e35a9466b249c0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/b51333462420581066d95aa398e35a9466b249c0/banker.py |
if not char.canreach( item, 2 ) or item.getoutmostchar(): | if not char.canreach( item, 2 ): | def dyingtub( char, item ): if not char.canreach( item, 2 ) or item.getoutmostchar(): char.socket.sysmessage( localemsg( 6 ) ) return 1 char.socket.sysmessage( localemsg( 18 ) ) char.socket.attachtarget( 'environment.dyingtub_response', [ item.serial ] ) return 1 | 087043c72862a16806af2a1c86b346e1166c966e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/087043c72862a16806af2a1c86b346e1166c966e/environment.py |
if not dyetub or (not char.canreach( dyetub, 2 ) and dyetub.getoutmostchar() != char): | if not dyetub or not char.canreach( dyetub, 2 ): | def dyingtub_response( char, args, target ): dyetub = wolfpack.finditem( args[0] ) if not dyetub or (not char.canreach( dyetub, 2 ) and dyetub.getoutmostchar() != char): char.message( localemsg( 6 ) ) return if not target.item: char.message( localemsg( 8 ) ) return # Valid Target? if not char.gm: if target.item.geto... | 087043c72862a16806af2a1c86b346e1166c966e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/087043c72862a16806af2a1c86b346e1166c966e/environment.py |
char.socket.sysmessage(tr('The book has to be in your belongings to be used.')) | char.socket.clilocmessage( 500207 ) | def onUse( char, item ): if item.getoutmostchar() != char: char.socket.sysmessage(tr('The book has to be in your belongings to be used.')) return True # This is annoying and eats bandwith but its the only way to "reopen" the spellbook # once its already open. #char.socket.removeobject(item) if item.container and item.... | c3d11da03e79500e49df12b16d1dc0bfca5c3c56 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/c3d11da03e79500e49df12b16d1dc0bfca5c3c56/spellbook.py |
def checkQt(): | def checkQt(options): | def checkQt(): sys.stdout.write("Checking QT Configuration:\n") if sys.platform == "win32": QMAKE_EXECUTABLE = "qmake.exe" else: QMAKE_EXECUTABLE = "qmake" sys.stdout.write( " Checking QTDIR enviroment variable: " ) if ( os.environ.has_key("QTDIR") and os.path.exists( os.environ["QTDIR"] ) ): sys.stdout.write( gree... | 78484cd2a4d87b0d0e002bff43e1f469895e77f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/78484cd2a4d87b0d0e002bff43e1f469895e77f6/configure.py |
sys.stdout.write( " Checking QTDIR enviroment variable: " ) if ( os.environ.has_key("QTDIR") and os.path.exists( os.environ["QTDIR"] ) ): | global qt_dir sys.stdout.write( " Checking QT installation: " ) if not options.qt_dir: if ( os.environ.has_key("QTDIR") and os.path.exists( os.environ["QTDIR"] ) ): qt_dir = os.environ["QTDIR"] sys.stdout.write( green("Pass\n") ) sys.stdout.write( " Found value for QTDIR: %s\n" % qt_dir )... | def checkQt(): sys.stdout.write("Checking QT Configuration:\n") if sys.platform == "win32": QMAKE_EXECUTABLE = "qmake.exe" else: QMAKE_EXECUTABLE = "qmake" sys.stdout.write( " Checking QTDIR enviroment variable: " ) if ( os.environ.has_key("QTDIR") and os.path.exists( os.environ["QTDIR"] ) ): sys.stdout.write( gree... | 78484cd2a4d87b0d0e002bff43e1f469895e77f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/78484cd2a4d87b0d0e002bff43e1f469895e77f6/configure.py |
sys.stdout.write( " Found value for QTDIR: %s\n" % os.environ["QTDIR"] ) | sys.stdout.write( " Manually specified value: %s\n" % qt_dir ) sys.stdout.write( " Verifying QT installation: " ) if ( qt_dir and qt_dir != "" and os.path.exists( qt_dir ) ): sys.stdout.write( green("Pass\n") ) | def checkQt(): sys.stdout.write("Checking QT Configuration:\n") if sys.platform == "win32": QMAKE_EXECUTABLE = "qmake.exe" else: QMAKE_EXECUTABLE = "qmake" sys.stdout.write( " Checking QTDIR enviroment variable: " ) if ( os.environ.has_key("QTDIR") and os.path.exists( os.environ["QTDIR"] ) ): sys.stdout.write( gree... | 78484cd2a4d87b0d0e002bff43e1f469895e77f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/78484cd2a4d87b0d0e002bff43e1f469895e77f6/configure.py |
sys.stdout.write( " You must properly setup the QTDIR environment variable!\n" ) | sys.stdout.write( " You must properly setup the QTDIR environment variable or use --qt-directory parameter!\n" ) | def checkQt(): sys.stdout.write("Checking QT Configuration:\n") if sys.platform == "win32": QMAKE_EXECUTABLE = "qmake.exe" else: QMAKE_EXECUTABLE = "qmake" sys.stdout.write( " Checking QTDIR enviroment variable: " ) if ( os.environ.has_key("QTDIR") and os.path.exists( os.environ["QTDIR"] ) ): sys.stdout.write( gree... | 78484cd2a4d87b0d0e002bff43e1f469895e77f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/78484cd2a4d87b0d0e002bff43e1f469895e77f6/configure.py |
QMAKESEARCHPATH = [ os.path.join(os.path.join(os.environ["QTDIR"], "bin"), QMAKE_EXECUTABLE) ] | QMAKESEARCHPATH = [ os.path.join(os.path.join(qt_dir, "bin"), QMAKE_EXECUTABLE) ] | def checkQt(): sys.stdout.write("Checking QT Configuration:\n") if sys.platform == "win32": QMAKE_EXECUTABLE = "qmake.exe" else: QMAKE_EXECUTABLE = "qmake" sys.stdout.write( " Checking QTDIR enviroment variable: " ) if ( os.environ.has_key("QTDIR") and os.path.exists( os.environ["QTDIR"] ) ): sys.stdout.write( gree... | 78484cd2a4d87b0d0e002bff43e1f469895e77f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/78484cd2a4d87b0d0e002bff43e1f469895e77f6/configure.py |
checkQt() | checkQt (options) | def main(): # Options for qmake DEFINES = "" CONFIG = "" # Setup command line parser parser = OptionParser(version="%prog 0.4") parser.add_option("--dsp", action="store_true", dest="dsp", help="also Generate Visual Studio project files") parser.add_option("--nocolor", action="store_true", dest="nocolor", help="disable ... | 78484cd2a4d87b0d0e002bff43e1f469895e77f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/78484cd2a4d87b0d0e002bff43e1f469895e77f6/configure.py |
sys.stdout.write("Checking MySQL Configuration:\n") | sys.stdout.write(green("Enabled") + "\n") | def main(): # Options for qmake DEFINES = "" CONFIG = "" # Setup command line parser parser = OptionParser(version="%prog 0.4") parser.add_option("--dsp", action="store_true", dest="dsp", help="also Generate Visual Studio project files") parser.add_option("--nocolor", action="store_true", dest="nocolor", help="disable ... | 78484cd2a4d87b0d0e002bff43e1f469895e77f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/78484cd2a4d87b0d0e002bff43e1f469895e77f6/configure.py |
sys.stdout.write("Enabled\n") else: sys.stdout.write("Disabled\n") | def main(): # Options for qmake DEFINES = "" CONFIG = "" # Setup command line parser parser = OptionParser(version="%prog 0.4") parser.add_option("--dsp", action="store_true", dest="dsp", help="also Generate Visual Studio project files") parser.add_option("--nocolor", action="store_true", dest="nocolor", help="disable ... | 78484cd2a4d87b0d0e002bff43e1f469895e77f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/78484cd2a4d87b0d0e002bff43e1f469895e77f6/configure.py | |
sys.stdout.write("Generating makefile... ") | sys.stdout.write("\nGenerating makefile... ") | def main(): # Options for qmake DEFINES = "" CONFIG = "" # Setup command line parser parser = OptionParser(version="%prog 0.4") parser.add_option("--dsp", action="store_true", dest="dsp", help="also Generate Visual Studio project files") parser.add_option("--nocolor", action="store_true", dest="nocolor", help="disable ... | 78484cd2a4d87b0d0e002bff43e1f469895e77f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/78484cd2a4d87b0d0e002bff43e1f469895e77f6/configure.py |
try: args = args.split( ' ' ) if len( args ) >= 5: return False if len( args ) == 1: action = args[0] action = action.lower() if action == 'reload': char.log( LOG_MESSAGE, "Reloaded accounts.\n" % char.serial ) wolfpack.accounts.reload() return True elif action == 'save': char.log( LOG_MESSAGE, "Saved accounts.\n" ... | args = args.split( ' ' ) if len( args ) >= 5: useageerror( socket ) return False if len( args ) == 1: action = args[0] action = action.lower() if action == 'reload': char.log( LOG_MESSAGE, "Reloaded accounts.\n" % char.serial ) wolfpack.accounts.reload() return True elif action == 'save': char.log( LOG_MESSAGE, "Sa... | def commandAccount( socket, cmd, args ): char = socket.player args = args.strip() if len(args) == 0: socket.sysmessage( usage0 ) socket.sysmessage( usage1 ) socket.sysmessage( usage2 ) socket.sysmessage( usage3 ) socket.sysmessage( usage4 ) return False elif len( args ) > 0: # Command with arguments try: args = args.sp... | ce12bb8246b5f95ae00872ac6a4fe4d7f5d8a568 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/ce12bb8246b5f95ae00872ac6a4fe4d7f5d8a568/account.py |
minskill = (1.0 - chance) * 1200 | minskill = min(char.skill[skill], (1.0 - chance) * 1200) | def checkskill(char, skill, chance): # Normalize chance = min(1.0, max(0.02, chance)) minskill = (1.0 - chance) * 1200 maxskill = 1200 char.checkskill(skill, minskill, maxskill) return chance >= random.random() | ceb992d56e183a6824e20745f3bbc43e2d13f99e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/ceb992d56e183a6824e20745f3bbc43e2d13f99e/aos.py |
if not item.getoutchar() == char: | if not item.getoutmostchar() == char: | def onUse( char, item ): if not item.getoutchar() == char: char.socket.clilocmessage( 1042001 ) # That must be in your pack for you to use it. return True if not actions.has_key( item.baseid ): menu = findmenu('COOKING') if menu: menu.send(char, [item.serial]) return True # simply open the sack if item.baseid in ["10... | 2560473745d010abf6a40661fdfbbbff87b1fdc2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/2560473745d010abf6a40661fdfbbbff87b1fdc2/cooking.py |
return True if not actions.has_key( item.baseid ): menu = findmenu('COOKING') if menu: menu.send(char, [item.serial]) | def onUse( char, item ): if not item.getoutchar() == char: char.socket.clilocmessage( 1042001 ) # That must be in your pack for you to use it. return True if not actions.has_key( item.baseid ): menu = findmenu('COOKING') if menu: menu.send(char, [item.serial]) return True # simply open the sack if item.baseid in ["10... | 2560473745d010abf6a40661fdfbbbff87b1fdc2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/2560473745d010abf6a40661fdfbbbff87b1fdc2/cooking.py | |
return | return True if not actions.has_key( item.baseid ): menu = findmenu('COOKING') if menu: menu.send(char, [item.serial]) return True | def onUse( char, item ): if not item.getoutchar() == char: char.socket.clilocmessage( 1042001 ) # That must be in your pack for you to use it. return True if not actions.has_key( item.baseid ): menu = findmenu('COOKING') if menu: menu.send(char, [item.serial]) return True # simply open the sack if item.baseid in ["10... | 2560473745d010abf6a40661fdfbbbff87b1fdc2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/2560473745d010abf6a40661fdfbbbff87b1fdc2/cooking.py |
return | def Dough( char, args, target ): dough = wolfpack.finditem( args[0] ) if not dough or not target.item: return False backpack = char.getbackpack() if not target.item.getoutmostchar() == char: char.socket.clilocmessage( 1042001 ) # That must be in your pack for you to use it. return True # Eggs if target.item.baseid ==... | 2560473745d010abf6a40661fdfbbbff87b1fdc2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/2560473745d010abf6a40661fdfbbbff87b1fdc2/cooking.py | |
player.mana = player.mana - self.mana | def make(self, player, args, nodelay=0): if not checktool(player, wolfpack.finditem(args[0]), 0): return False # spell scrolls # FIXME : spell no. is not correct if self.titleid > 1027980 and self.titleid < 1028045: if self.titleid == 1027981: self.spell = 6 elif self.titleid > 1027988: self.spell = self.titleid - 1027... | 3e7a862260f65c2ee96c6d32301634e54b3280e6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/3e7a862260f65c2ee96c6d32301634e54b3280e6/inscription.py | |
elif player.checkskill(TAILORING, 0, 1000): | elif player.checkskill(BOWCRAFT, 0, 1000): | def repair(self, player, arguments, target): if not checktool(player, wolfpack.finditem(arguments[0])): return | 6f0d8c50b1267a268ab5c3ba15b1240a40ee7451 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/6f0d8c50b1267a268ab5c3ba15b1240a40ee7451/bowcraft.py |
if target.item and target.item.container: player.socket.sysmessage("You can't add the npc there.") return npc = wolfpack.addnpc(str(arguments[0]), target.pos) npc.update() | if target.item and target.item.container: player.socket.sysmessage("You can't add the npc there.") return npc = wolfpack.addnpc(str(arguments[0]), target.pos) npc.update() | def addnpc(player, arguments, target): if target.item and target.item.container: player.socket.sysmessage("You can't add the npc there.") return npc = wolfpack.addnpc(str(arguments[0]), target.pos) npc.update() | 626fa489ecaf272e77099cb6a1429cfb12d020c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/626fa489ecaf272e77099cb6a1429cfb12d020c8/add.py |
if target.item and target.item.container: player.socket.sysmessage("You can't add the multi there.") return multi = wolfpack.addmulti(str(arguments[0])) multi.moveto(target.pos) multi.update() | if target.item and target.item.container: player.socket.sysmessage("You can't add the multi there.") return multi = wolfpack.addmulti(str(arguments[0])) multi.moveto(target.pos) multi.update() | def addmulti(player, arguments, target): if target.item and target.item.container: player.socket.sysmessage("You can't add the multi there.") return multi = wolfpack.addmulti(str(arguments[0])) multi.moveto(target.pos) multi.update() | 626fa489ecaf272e77099cb6a1429cfb12d020c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/626fa489ecaf272e77099cb6a1429cfb12d020c8/add.py |
item = wolfpack.additem(str(arguments[0])) if target.item: if target.item.type == 1: target.item.additem(item, 1, 1, 0) elif target.item.container: target.item.container.additem(item, 1, 1, 0) else: item.moveto(target.item.pos) elif target.char: item.moveto(target.char.pos) else: item.moveto(target.pos) item.update() | item = wolfpack.additem(str(arguments[0])) if target.item: if target.item.type == 1: target.item.additem(item, 1, 1, 0) elif target.item.container: target.item.container.additem(item, 1, 1, 0) else: item.moveto(target.item.pos) elif target.char: item.moveto(target.char.pos) else: item.moveto(target.pos) item.update() | def additem(player, arguments, target): item = wolfpack.additem(str(arguments[0])) if target.item: if target.item.type == 1: target.item.additem(item, 1, 1, 0) elif target.item.container: target.item.container.additem(item, 1, 1, 0) else: item.moveto(target.item.pos) elif target.char: item.moveto(target.char.pos) else:... | 626fa489ecaf272e77099cb6a1429cfb12d020c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/626fa489ecaf272e77099cb6a1429cfb12d020c8/add.py |
if len(arguments) > 0: if wolfpack.getdefinition(WPDT_ITEM, arguments): socket.sysmessage("Where do you want to place the item '%s'?" % arguments) socket.attachtarget("commands.add.additem", [arguments]) elif wolfpack.getdefinition(WPDT_NPC, arguments): socket.sysmessage("Where do you want to spawn the npc '%s'?" % arg... | if len(arguments) > 0: if wolfpack.getdefinition(WPDT_ITEM, arguments): socket.sysmessage("Where do you want to place the item '%s'?" % arguments) socket.attachtarget("commands.add.additem", [arguments]) elif wolfpack.getdefinition(WPDT_NPC, arguments): socket.sysmessage("Where do you want to spawn the npc '%s'?" % arg... | def add(socket, command, arguments): if len(arguments) > 0: if wolfpack.getdefinition(WPDT_ITEM, arguments): socket.sysmessage("Where do you want to place the item '%s'?" % arguments) socket.attachtarget("commands.add.additem", [arguments]) elif wolfpack.getdefinition(WPDT_NPC, arguments): socket.sysmessage("Where do y... | 626fa489ecaf272e77099cb6a1429cfb12d020c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/626fa489ecaf272e77099cb6a1429cfb12d020c8/add.py |
def __init__(self, parent, title, definition): MakeAction.__init__(self, parent, title) self.definition = definition self.description = '' self.other = '' self.materials = '' self.skills = '' def make(self, player, arguments): player.socket.sysmessage("Where do you want to spawn the npc '%s'?" % self.definition) playe... | def __init__(self, parent, title, definition): MakeAction.__init__(self, parent, title) self.definition = definition self.description = '' self.other = '' self.materials = '' self.skills = '' def make(self, player, arguments): player.socket.sysmessage("Where do you want to spawn the npc '%s'?" % self.definition) playe... | def __init__(self, parent, title, definition): MakeAction.__init__(self, parent, title) self.definition = definition self.description = '' self.other = '' self.materials = '' self.skills = '' | 626fa489ecaf272e77099cb6a1429cfb12d020c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/626fa489ecaf272e77099cb6a1429cfb12d020c8/add.py |
def __init__(self, parent, title, itemid, definition): MakeItemAction.__init__(self, parent, title, itemid, definition) def make(self, player, arguments): player.socket.sysmessage("Where do you want to place the item '%s'?" % self.definition) player.socket.attachtarget("commands.add.additem", [self.definition]) MakeAc... | def __init__(self, parent, title, itemid, definition): MakeItemAction.__init__(self, parent, title, itemid, definition) def make(self, player, arguments): player.socket.sysmessage("Where do you want to place the item '%s'?" % self.definition) player.socket.attachtarget("commands.add.additem", [self.definition]) MakeAc... | def __init__(self, parent, title, itemid, definition): MakeItemAction.__init__(self, parent, title, itemid, definition) | 626fa489ecaf272e77099cb6a1429cfb12d020c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/626fa489ecaf272e77099cb6a1429cfb12d020c8/add.py |
items = wolfpack.getdefinitions(WPDT_ITEM) addmenu= MakeMenu('ADDMENU', None, 'Add Menu') submenus = {} for item in items: if not item.hasattribute('id'): continue child = item.findchild('category') if not child: continue categories = ['Items'] + child.text.split('\\') description = categories[len(categories)-1] ca... | items = wolfpack.getdefinitions(WPDT_ITEM) addmenu= MakeMenu('ADDMENU', None, 'Add Menu') submenus = {} for item in items: if not item.hasattribute('id'): continue child = item.findchild('category') if not child: continue categories = ['Items'] + child.text.split('\\') description = categories[len(categories)-1] ca... | def generateAddMenu(): items = wolfpack.getdefinitions(WPDT_ITEM) addmenu= MakeMenu('ADDMENU', None, 'Add Menu') submenus = {} for item in items: if not item.hasattribute('id'): continue child = item.findchild('category') if not child: continue categories = ['Items'] + child.text.split('\\') description = categorie... | 626fa489ecaf272e77099cb6a1429cfb12d020c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/626fa489ecaf272e77099cb6a1429cfb12d020c8/add.py |
generateAddMenu() wolfpack.registercommand('add', add) | wolfpack.registercommand('add', add) | def onLoad(): generateAddMenu() wolfpack.registercommand('add', add) | 626fa489ecaf272e77099cb6a1429cfb12d020c8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/626fa489ecaf272e77099cb6a1429cfb12d020c8/add.py |
socket.sendpacket( trade ) | trade.send( socket ) | def sendtradepacket( socket, action, partnerserial, box1serial, box2serial, playername ): #Sending 0x6F packet. Length may vary when playername is defined packetlength = 0x10 trade = wolfpack.packet( 0x6F, packetlength ) if playername != "": packetlength += len( playername ) + 2 trade.resize( packetlength ) trade.setb... | 886c52990f48772f4dededf55a90c8d51283b2b5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/886c52990f48772f4dededf55a90c8d51283b2b5/trading.py |
char.stealthedsteps = 5 | char.stealthedsteps = int(ceil(char.skill[STEALTH] / 50.0)) | def stealth( char, skill ): if char.socket.hastag( 'skill_delay' ): cur_time = servertime() if cur_time < char.socket.gettag( 'skill_delay' ): char.socket.clilocmessage( 500118, "", 0x3b2, 3 ) return 1 else: char.socket.deltag( 'skill_delay' ) # use hiding first if not char.hidden: char.socket.clilocmessage( 502725, "... | 7ceaf5468ad6cabb8a34418f077c1b633a1b1941 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/7ceaf5468ad6cabb8a34418f077c1b633a1b1941/stealth.py |
self.allowrepair = 1 self.submaterial3missing = 1060884 self.submaterial2missing = 1060884 self.submaterial1missing = 1044037 self.submaterial1noskill = 1044268 | self.allowrepair = 0 self.allowenhance = 0 self.allowsmelt = 0 self.submaterial3 = METALS self.submaterial4 = CLOTH self.submaterial1missing = 1041524 self.submaterial2missing = 1042598 self.submaterial3missing = 1042081 self.submaterial4missing = 1042081 self.submaterial1noskill = 500586 | def __init__(self, id, parent, title): MakeMenu.__init__(self, id, parent, title) self.allowmark = 1 self.allowrepair = 1 #self.allowenhance = 1 #self.allowsmelt = 1 self.submaterial3missing = 1060884 self.submaterial2missing = 1060884 self.submaterial1missing = 1044037 self.submaterial1noskill = 1044268 self.gumptype ... | 0007058e54af3eb61ba1ac1e28a7f6b55583e386 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/0007058e54af3eb61ba1ac1e28a7f6b55583e386/carpentry.py |
action.submaterial2 = hex2dec(subchild.getattribute('amount', '0')) | action.submaterial3 = hex2dec(subchild.getattribute('amount', '0')) | itemdef = child.getattribute('definition') | 0007058e54af3eb61ba1ac1e28a7f6b55583e386 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/0007058e54af3eb61ba1ac1e28a7f6b55583e386/carpentry.py |
action.submaterial3 = hex2dec(subchild.getattribute('amount', '0')) | action.submaterial4 = hex2dec(subchild.getattribute('amount', '0')) | itemdef = child.getattribute('definition') | 0007058e54af3eb61ba1ac1e28a7f6b55583e386 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/0007058e54af3eb61ba1ac1e28a7f6b55583e386/carpentry.py |
try: penalty = hex2dec(subchild.getattribute('penalty','0')) except: console.log(LOG_ERROR, "%s element with invalid max value in menu %s.\n" % (subchild.name, menu.id)) action.skills[skill] = [minimum, maximum, penalty] | action.skills[skill] = [minimum, maximum] | itemdef = child.getattribute('definition') | 0007058e54af3eb61ba1ac1e28a7f6b55583e386 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/0007058e54af3eb61ba1ac1e28a7f6b55583e386/carpentry.py |
if not char.canreach( target.char, 4 ): char.socket.clilocmessage( 0x7A27F, "", 0x3b2, 3 ) return False | if target.char: if not char.canreach( target.char, 4 ): char.socket.clilocmessage( 0x7A27F, "", 0x3b2, 3 ) return False | def response( char, args, target ): if skills.skilltable[ ARMSLORE ][ skills.UNHIDE ] and char.hidden: char.removefromview() char.hidden = False char.update() backpack = char.getbackpack() item = target.item if item: if not item.getoutmostchar() == char: top = item.getoutmostitem() if top.container and top.container... | 51fa6f3f8b84ef0dc152b87275f04a0f0c4c7a78 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/51fa6f3f8b84ef0dc152b87275f04a0f0c4c7a78/armslore.py |
if not char.distanceto ( target.char ) < 5: char.socket.clilocmessage( 0x7A27E, "", 0x3b2, 3 ) return False | if not char.distanceto ( target.char ) < 5: char.socket.clilocmessage( 0x7A27E, "", 0x3b2, 3 ) return False | def response( char, args, target ): if skills.skilltable[ ARMSLORE ][ skills.UNHIDE ] and char.hidden: char.removefromview() char.hidden = False char.update() backpack = char.getbackpack() item = target.item if item: if not item.getoutmostchar() == char: top = item.getoutmostitem() if top.container and top.container... | 51fa6f3f8b84ef0dc152b87275f04a0f0c4c7a78 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/51fa6f3f8b84ef0dc152b87275f04a0f0c4c7a78/armslore.py |
if not player.cansee(target.pos, 1): | if not player.canreach(target.pos, 3): | def response(player, args, target): if player.guild: player.socket.sysmessage('You have to leave your guild before founding a new one.') return deed = wolfpack.finditem(args[0]) if deed: if deed.getoutmostchar() != player: player.socket.clilocmessage(500364) elif not player.cansee(deed) or not player.canpickup(deed):... | ca52702aec783aef45a7b72cd0450e5e879109af /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/ca52702aec783aef45a7b72cd0450e5e879109af/deed.py |
elif target.pos.distance(player.pos) > 3: player.socket.clilocmessage(500251) | def response(player, args, target): if player.guild: player.socket.sysmessage('You have to leave your guild before founding a new one.') return deed = wolfpack.finditem(args[0]) if deed: if deed.getoutmostchar() != player: player.socket.clilocmessage(500364) elif not player.cansee(deed) or not player.canpickup(deed):... | ca52702aec783aef45a7b72cd0450e5e879109af /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/ca52702aec783aef45a7b72cd0450e5e879109af/deed.py | |
else: overview += "<td> </td>\n"; | else: overview += "<td> </td>\n"; | def namesort(a, b): return cmp(a['name'], b['name']) | 05a16b4c4adfb718aebc1075fb6c54dab4041fdb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/05a16b4c4adfb718aebc1075fb6c54dab4041fdb/generate_html.py |
else: overview += "<td> </td>\n"; | else: overview += "<td> </td>\n"; | def namesort(a, b): return cmp(a['name'], b['name']) | 05a16b4c4adfb718aebc1075fb6c54dab4041fdb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/05a16b4c4adfb718aebc1075fb6c54dab4041fdb/generate_html.py |
else: overview += "<td> </td>\n"; | else: overview += "<td> </td>\n"; | def propertycmp(a, b): return cmp(a['property'], b['property']) | 05a16b4c4adfb718aebc1075fb6c54dab4041fdb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/05a16b4c4adfb718aebc1075fb6c54dab4041fdb/generate_html.py |
overview += '<td>-& else: overview += "<td> </td>\n"; | overview += '<td width="15%%">-& else: overview += "<td width=\"15%\"> </td>\n"; | def propertycmp(a, b): return cmp(a['property'], b['property']) | 05a16b4c4adfb718aebc1075fb6c54dab4041fdb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/05a16b4c4adfb718aebc1075fb6c54dab4041fdb/generate_html.py |
overview += '<td>-& else: overview += "<td> </td>\n"; | overview += '<td width="15%%">-& else: overview += "<td width=\"15%\"> </td>\n"; | def propertycmp(a, b): return cmp(a['property'], b['property']) | 05a16b4c4adfb718aebc1075fb6c54dab4041fdb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/05a16b4c4adfb718aebc1075fb6c54dab4041fdb/generate_html.py |
else: overview += "<td> </td>\n"; | else: overview += "<td> </td>\n"; | def propertycmp(a, b): return cmp(a['property'], b['property']) | 05a16b4c4adfb718aebc1075fb6c54dab4041fdb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/05a16b4c4adfb718aebc1075fb6c54dab4041fdb/generate_html.py |
else: overview += "<td> </td>\n"; | else: overview += "<td> </td>\n"; | def propertycmp(a, b): return cmp(a['property'], b['property']) | 05a16b4c4adfb718aebc1075fb6c54dab4041fdb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/05a16b4c4adfb718aebc1075fb6c54dab4041fdb/generate_html.py |
x = 0 y = 0 z = 0 | def parseWsc( file, map ): warnings = '' count = 0 while 1: line = file.readline() if not line: break # Replace \r and \n's line = line.replace( "\r", "" ) line = line.replace( "\n", "" ) # SECTION WORLDITEM : 17 byte if line[:17] == 'SECTION WORLDITEM': item = {} while 1: line = file.readline() if not line or le... | 31e394cf58ebbec20845e8144250830cd5c8d496 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/31e394cf58ebbec20845e8144250830cd5c8d496/import.py | |
else: z = 0 | def parseWsc( file, map ): warnings = '' count = 0 while 1: line = file.readline() if not line: break # Replace \r and \n's line = line.replace( "\r", "" ) line = line.replace( "\n", "" ) # SECTION WORLDITEM : 17 byte if line[:17] == 'SECTION WORLDITEM': item = {} while 1: line = file.readline() if not line or le... | 31e394cf58ebbec20845e8144250830cd5c8d496 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/31e394cf58ebbec20845e8144250830cd5c8d496/import.py | |
newitem.moveto( x, y, z, map ) | newposition = "%i,%i,%i,%i" % (x, y, z, map) newitem.pos = newposition | def parseWsc( file, map ): warnings = '' count = 0 while 1: line = file.readline() if not line: break # Replace \r and \n's line = line.replace( "\r", "" ) line = line.replace( "\n", "" ) # SECTION WORLDITEM : 17 byte if line[:17] == 'SECTION WORLDITEM': item = {} while 1: line = file.readline() if not line or le... | 31e394cf58ebbec20845e8144250830cd5c8d496 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/31e394cf58ebbec20845e8144250830cd5c8d496/import.py |
item = wolfpack.additem( "eed" ) | item = wolfpack.additem("eed") | def onSpeech( listener, speaker, text, keywords ): for keyword in keywords: # withdraw if keyword == 0x0: # Search for the amount we want to withdraw (should be the only digits in there) result = amountre.search( text ) amount = 0 if result: amount = int( result.group( 1 ) ) # Invalid Withdraw Amount if not amount: #... | 20dce21a158c39caae52229dc1ed719c5a919a47 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/20dce21a158c39caae52229dc1ed719c5a919a47/banker.py |
item.container = backpack amount -= min( [ amount, 65535 ] ) | amount -= item.amount if not wolfpack.utilities.tocontainer(item, backpack): item.update() | def onSpeech( listener, speaker, text, keywords ): for keyword in keywords: # withdraw if keyword == 0x0: # Search for the amount we want to withdraw (should be the only digits in there) result = amountre.search( text ) amount = 0 if result: amount = int( result.group( 1 ) ) # Invalid Withdraw Amount if not amount: #... | 20dce21a158c39caae52229dc1ed719c5a919a47 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/20dce21a158c39caae52229dc1ed719c5a919a47/banker.py |
self.definition = definition | self.definition = str(definition) | def __init__(self, parent, title, itemid, definition, amount = 1): MakeAction.__init__(self, parent, title) self.itemid = itemid self.definition = definition self.amount = amount self.otherhtml = '' self.materialshtml = '' self.skillshtml = '' self.hasdetails = 1 | 08fd4d21f876c63596100977b08ed1357780ec09 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/08fd4d21f876c63596100977b08ed1357780ec09/makemenus.py |
if char.player and char.controlslots + 2 > 5: | if char.player and char.controlslots + 1 > 5: | def cast(self, char, mode, args=[], target=None, item=None): if char.player and char.controlslots + 2 > 5: if char.socket: char.socket.clilocmessage(1049645) return return Spell.cast(self, char, mode) | 903d46e285a1f1a2daa3b9a2f4e313088976c2f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/903d46e285a1f1a2daa3b9a2f4e313088976c2f2/circle5.py |
if char.player and char.controlslots + 2 > 5: | if char.player and char.controlslots + 1 > 5: | def target(self, char, mode, targettype, target, args, item): char.turnto(target) | 903d46e285a1f1a2daa3b9a2f4e313088976c2f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/903d46e285a1f1a2daa3b9a2f4e313088976c2f2/circle5.py |
npcid = random.choice( ['polar_bear', 'grizzly_bear', 'black_bear', 'brown_bear', 'horse_1', 'walrus', 'great_hart', 'hind', 'dog', 'boar', 'chicken', 'rabbit'] ) | npcid = random.choice( ['polar_bear', 'grizzly_bear', 'black_bear', 'brown_bear', 'horse_1', 'walrus', 'great_hart', 'hind', 'dog', 'boar', 'chicken', 'rabbit'] ) | def target(self, char, mode, targettype, target, args, item): char.turnto(target) | 903d46e285a1f1a2daa3b9a2f4e313088976c2f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/903d46e285a1f1a2daa3b9a2f4e313088976c2f2/circle5.py |
creature.tamed = 1 creature.addevent('speech.pets') creature.controlslots = 2 creature.owner = char creature.summontime = wolfpack.time.servertime() + int(char.skill[MAGERY] * 400) creature.summoned = 1 creature.ai = "Animal_Domestic" creature.soundeffect(0x215) | if creature.controlslots + char.controlslots > 5: creature.delete() char.socket.clilocmessage(1049645) else: creature.tamed = 1 creature.addevent('speech.pets') creature.owner = char creature.summontime = wolfpack.time.servertime() + int(char.skill[MAGERY] * 400) creature.summoned = 1 creature.ai = "Animal_Domestic" cr... | def target(self, char, mode, targettype, target, args, item): char.turnto(target) | 903d46e285a1f1a2daa3b9a2f4e313088976c2f2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/903d46e285a1f1a2daa3b9a2f4e313088976c2f2/circle5.py |
player.log(LOG_MESSAGE, tr("%s changes category of gm page from %s to %s.\n") % (player.name, old_category, page.category)) player.socket.sysmessage( tr("You change the category and requeue the page.") ) pages_gump(player) | player.log(LOG_MESSAGE, tr("%s changes category of gm page from %s to %s.\n") % (player.name, old_category, page.category)) player.socket.sysmessage( tr("You change the category and requeue the page.") ) pages_gump(player) | def change_category_response(player, arguments, response): page = arguments[0] old_category = page.category if response.button == 1: page.assigned = None if 1 in response.switches: page.category = tr('BUG') elif 2 in response.switches: page.category = tr('STUCK') elif 3 in response.switches: page.category = tr('GAMEPLA... | f1b91435c04cd9738ca488c120f1995885651633 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/f1b91435c04cd9738ca488c120f1995885651633/pages.py |
socket.clilocmessage( 500235, '', GRAY ) | socket.clilocmessage( 500235 ) | def healPotion( char, potion, healtype ): socket = char.socket if not canUsePotion( char, potion ): return False if char.poison > -1: # You can not heal yourself in your current state. socket.clilocmessage(1005000) return False if char.hitpoints >= char.maxhitpoints: socket.clilocmessage(1049547) if char.hitpoints > c... | fb1a33e0dad9ab9f681d19cd6e3562f553071c3f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/fb1a33e0dad9ab9f681d19cd6e3562f553071c3f/potions.py |
socket.sysmessage( 'You have had ' + str( amount ) + ' hit points of damage healed.', GRAY ) | socket.sysmessage( 'You have had ' + str( amount ) + ' hit points of damage healed.' ) | def healPotion( char, potion, healtype ): socket = char.socket if not canUsePotion( char, potion ): return False if char.poison > -1: # You can not heal yourself in your current state. socket.clilocmessage(1005000) return False if char.hitpoints >= char.maxhitpoints: socket.clilocmessage(1049547) if char.hitpoints > c... | fb1a33e0dad9ab9f681d19cd6e3562f553071c3f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/fb1a33e0dad9ab9f681d19cd6e3562f553071c3f/potions.py |
char.log(LOG_MESSAGE, "Casting spell %u (%s) from %s.\n" % (self.spellid, self.__class__.__name__, source)) | if type(self.spellid) == int: char.log(LOG_MESSAGE, "Casting spell %u (%s) from %s.\n" % (self.spellid, self.__class__.__name__, source)) else: char.log(LOG_MESSAGE, "Casting spell %s from %s.\n" % (self.__class__.__name__, source)) | def precast(self, char, mode=0, args=[], target = None, item = None): socket = char.socket # Casting from a scroll and no scroll was passed if mode == MODE_SCROLL and not item: return # Casting from a wand and no wand was passed if mode == MODE_WAND and not item: return | 48d3ba04731efcaedf7dc4b4ba16fa27d7b02a49 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/48d3ba04731efcaedf7dc4b4ba16fa27d7b02a49/spell.py |
pos = player.pos pos.x = target[0] pos.y = target[1] pos.z = target[2] if len(target) > 3: pos.map = target[3] | try: m = target[3] except: m = player.pos.map pos = wolfpack.coord( target[0], target[1], target[2], m ) | def onCollide(player, item): if item.hastag('playersonly') and player.npc: return False if not item.hastag('target'): if player.socket: player.socket.sysmessage( tr('This gate leads nowhere...') ) else: console.log(LOG_ERROR, tr("NPC [%x] using gate [%x] without target.\n") % (player.serial, item.serial)) return False... | f44c4416a5cc204dd710bc9f14fc052f542b73fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/f44c4416a5cc204dd710bc9f14fc052f542b73fc/gate.py |
if not utilities.isMapAvailableTo(player, pos.map): | if not utilities.isValidPosition( pos ): player.socket.sysmessage( tr('This gate leads nowhere...') ) return False if not utilities.isMapAvailableTo( player, pos.map ): | def onCollide(player, item): if item.hastag('playersonly') and player.npc: return False if not item.hastag('target'): if player.socket: player.socket.sysmessage( tr('This gate leads nowhere...') ) else: console.log(LOG_ERROR, tr("NPC [%x] using gate [%x] without target.\n") % (player.serial, item.serial)) return False... | f44c4416a5cc204dd710bc9f14fc052f542b73fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/f44c4416a5cc204dd710bc9f14fc052f542b73fc/gate.py |
follower.update(0) | follower.update() | def onCollide(player, item): if item.hastag('playersonly') and player.npc: return False if not item.hastag('target'): if player.socket: player.socket.sysmessage( tr('This gate leads nowhere...') ) else: console.log(LOG_ERROR, tr("NPC [%x] using gate [%x] without target.\n") % (player.serial, item.serial)) return False... | f44c4416a5cc204dd710bc9f14fc052f542b73fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/f44c4416a5cc204dd710bc9f14fc052f542b73fc/gate.py |
player.update(0) | player.update() | def onCollide(player, item): if item.hastag('playersonly') and player.npc: return False if not item.hastag('target'): if player.socket: player.socket.sysmessage( tr('This gate leads nowhere...') ) else: console.log(LOG_ERROR, tr("NPC [%x] using gate [%x] without target.\n") % (player.serial, item.serial)) return False... | f44c4416a5cc204dd710bc9f14fc052f542b73fc /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/f44c4416a5cc204dd710bc9f14fc052f542b73fc/gate.py |
if lowerreagentcost == 0 or lowerreagentcost > random.randint(0, 99): | if lowerreagentcost == 0 or lowerreagentcost < random.randint(0, 99): | def consumerequirements(self, char, mode, args=[], target=None, item=None): if char.gm: return True | f7d8c569d9ce16ac1dc93411072f719e0e54ca48 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/f7d8c569d9ce16ac1dc93411072f719e0e54ca48/spell.py |
npc.say('CHECKING SLAYING: ' + str(self.npcs)) | def slays(self, npc): npc.say('CHECKING SLAYING: ' + str(self.npcs)) if not npc.hasstrproperty('slayer_group'): return False | a6acaa4d27bd7fb30f71523b14a0472143d85f8d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/a6acaa4d27bd7fb30f71523b14a0472143d85f8d/slayer.py | |
chance = ( (player.skill[CARPENTRY] - minskill) / (maxskill - minskill) ) / 5.0 | if minskill == maxskill or maxskill == 0: maxskill += 1 chance = ( (player.skill[CARPENTRY]) / (maxskill) ) / 5.0 | def getexceptionalchance(self, player, arguments): # Only works if this item requires carpentry if not self.skills.has_key(CARPENTRY): return False | 81baadd2910f7222dd8120c9a0b37bec47eb3c5d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/81baadd2910f7222dd8120c9a0b37bec47eb3c5d/carpentry.py |
if not found: | if not found or found.rank > socket.player.rank: | def goname(socket, command, arguments): if len(arguments) == 0: socket.sysmessage('Usage: goname <name>') return chars = wolfpack.chariterator() char = chars.first found = None name = hash(arguments.lower()) while char: if hash(char.name.lower()) == name: found = char break char = chars.next if not found: socket.s... | e7db73f6b65f54de112aa961543e24d5e3d5f46c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/e7db73f6b65f54de112aa961543e24d5e3d5f46c/__init__.py |
if char: | if char and char.rank <= socket.player.rank: | def gouid(socket, command, arguments): try: uid = hex2dec(arguments) except: socket.symsessage('Usage: gouid <serial>') return if uid > 0x40000000: item = wolfpack.finditem(uid) if item: container = item.getoutmostitem() if container.container: container = container.container # Going to container socket.sysmessage('... | e7db73f6b65f54de112aa961543e24d5e3d5f46c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/e7db73f6b65f54de112aa961543e24d5e3d5f46c/__init__.py |
char.socket.clilocmessage(500295) | char.socket.clilocmessage(500294) | def onUse( char, item ): # Bandages have to be in backpack if item.getoutmostchar() != char: char.socket.clilocmessage(500295) return 1 # Already Bandaging ?? if char.socket.hastag( 'using_bandages' ): char.socket.sysmessage( 'You are already using bandages.' ) return 1 # Display Target if item.id == 0xe21 or item.id... | f21c62a48bcce26f0bc5f78e0fc183b7bb65d5be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/f21c62a48bcce26f0bc5f78e0fc183b7bb65d5be/bandages.py |
char.socket.sysmessage("You can't reach that.") | char.socket.clilocmessage(500312) | def wash_response( char, args, target ): bandages = wolfpack.finditem( args[0] ) if not bandages: return if (target.item and target.item.getoutmostchar() and target.item.getoutmostchar() != char) or not char.canreach(target.pos, 5): char.socket.sysmessage("You can't reach that.") return # Did we target something wet... | f21c62a48bcce26f0bc5f78e0fc183b7bb65d5be /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/f21c62a48bcce26f0bc5f78e0fc183b7bb65d5be/bandages.py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.