rem stringlengths 1 322k | add stringlengths 0 2.05M | context stringlengths 4 228k | meta stringlengths 156 215 |
|---|---|---|---|
gump.addText(x=235, y=65, text='The lock id of this key:', hue=0x835) gump.addResizeGump(x=235, y=88, id=0xBB8, width=160, height=25) gump.addInputField(x=240, y=90, width=150, height=20, hue=0x834, id=2, starttext=lock) | gump.addText(x=235, y=65, text='The lock id of this key:', hue=0x835) gump.addResizeGump(x=235, y=88, id=0xBB8, width=160, height=25) gump.addInputField(x=240, y=90, width=150, height=20, hue=0x834, id=2, starttext=lock) | def rename_key(char, key): | 516c1fcdf800cd69abc81c17dada3a6bf321ca8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/516c1fcdf800cd69abc81c17dada3a6bf321ca8c/key.py |
return | return | def lock_response(char, args, target): if len(args) != 1: return key = wolfpack.finditem(args[0]) if not key or not char.canreach(key,5): char.socket.clilocmessage(501661) return # Check for an item target. if not target.item or not char.canreach(target.item,5): char.socket.clilocmessage(501666) return if target.ite... | 516c1fcdf800cd69abc81c17dada3a6bf321ca8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/516c1fcdf800cd69abc81c17dada3a6bf321ca8c/key.py |
char.socket.clilocmessage(501661) return | char.socket.clilocmessage(501661) return | def lock_response(char, args, target): if len(args) != 1: return key = wolfpack.finditem(args[0]) if not key or not char.canreach(key,5): char.socket.clilocmessage(501661) return # Check for an item target. if not target.item or not char.canreach(target.item,5): char.socket.clilocmessage(501666) return if target.ite... | 516c1fcdf800cd69abc81c17dada3a6bf321ca8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/516c1fcdf800cd69abc81c17dada3a6bf321ca8c/key.py |
char.socket.clilocmessage(501666) return | char.socket.clilocmessage(501666) return | def lock_response(char, args, target): if len(args) != 1: return key = wolfpack.finditem(args[0]) if not key or not char.canreach(key,5): char.socket.clilocmessage(501661) return # Check for an item target. if not target.item or not char.canreach(target.item,5): char.socket.clilocmessage(501666) return if target.ite... | 516c1fcdf800cd69abc81c17dada3a6bf321ca8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/516c1fcdf800cd69abc81c17dada3a6bf321ca8c/key.py |
rename_key(char,key) | rename_key(char,key) | def lock_response(char, args, target): if len(args) != 1: return key = wolfpack.finditem(args[0]) if not key or not char.canreach(key,5): char.socket.clilocmessage(501661) return # Check for an item target. if not target.item or not char.canreach(target.item,5): char.socket.clilocmessage(501666) return if target.ite... | 516c1fcdf800cd69abc81c17dada3a6bf321ca8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/516c1fcdf800cd69abc81c17dada3a6bf321ca8c/key.py |
elif target.item.hasscript( 'lock' ): if target.item.hastag('locked') and int(target.item.gettag('locked')) == 1: target.item.deltag('locked') else: target.item.settag('locked',1) char.soundeffect(0x241) | elif target.item.hasscript( 'lock' ) and target.item.hastag('lock'): door_lock = str(target.item.gettag('lock')) key_lock = str(key.gettag('lock')) if door_lock == key_lock: if target.item.hastag('locked') and int(target.item.gettag('locked')) == 1: target.item.deltag('locked') else: target.item.settag('locked',1) cha... | def lock_response(char, args, target): if len(args) != 1: return key = wolfpack.finditem(args[0]) if not key or not char.canreach(key,5): char.socket.clilocmessage(501661) return # Check for an item target. if not target.item or not char.canreach(target.item,5): char.socket.clilocmessage(501666) return if target.ite... | 516c1fcdf800cd69abc81c17dada3a6bf321ca8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/516c1fcdf800cd69abc81c17dada3a6bf321ca8c/key.py |
char.socket.clilocmessage(501666) | char.socket.clilocmessage(501666) | def lock_response(char, args, target): if len(args) != 1: return key = wolfpack.finditem(args[0]) if not key or not char.canreach(key,5): char.socket.clilocmessage(501661) return # Check for an item target. if not target.item or not char.canreach(target.item,5): char.socket.clilocmessage(501666) return if target.ite... | 516c1fcdf800cd69abc81c17dada3a6bf321ca8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/516c1fcdf800cd69abc81c17dada3a6bf321ca8c/key.py |
return | return | def copy_response(char, args, target): if len(args) != 1: return key = wolfpack.finditem(args[0]) if not key or not char.canreach(key,5): char.socket.clilocmessage(501661) return # Check if the targetted item is a key if not target.item or not target.item.hasscript( 'key' ): char.socket.clilocmessage(501679) return ... | 516c1fcdf800cd69abc81c17dada3a6bf321ca8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/516c1fcdf800cd69abc81c17dada3a6bf321ca8c/key.py |
char.socket.clilocmessage(501661) return | char.socket.clilocmessage(501661) return | def copy_response(char, args, target): if len(args) != 1: return key = wolfpack.finditem(args[0]) if not key or not char.canreach(key,5): char.socket.clilocmessage(501661) return # Check if the targetted item is a key if not target.item or not target.item.hasscript( 'key' ): char.socket.clilocmessage(501679) return ... | 516c1fcdf800cd69abc81c17dada3a6bf321ca8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/516c1fcdf800cd69abc81c17dada3a6bf321ca8c/key.py |
char.socket.clilocmessage(501679) return | char.socket.clilocmessage(501679) return | def copy_response(char, args, target): if len(args) != 1: return key = wolfpack.finditem(args[0]) if not key or not char.canreach(key,5): char.socket.clilocmessage(501661) return # Check if the targetted item is a key if not target.item or not target.item.hasscript( 'key' ): char.socket.clilocmessage(501679) return ... | 516c1fcdf800cd69abc81c17dada3a6bf321ca8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/516c1fcdf800cd69abc81c17dada3a6bf321ca8c/key.py |
char.socket.clilocmessage(501675) return | char.socket.clilocmessage(501675) return | def copy_response(char, args, target): if len(args) != 1: return key = wolfpack.finditem(args[0]) if not key or not char.canreach(key,5): char.socket.clilocmessage(501661) return # Check if the targetted item is a key if not target.item or not target.item.hasscript( 'key' ): char.socket.clilocmessage(501679) return ... | 516c1fcdf800cd69abc81c17dada3a6bf321ca8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/516c1fcdf800cd69abc81c17dada3a6bf321ca8c/key.py |
char.socket.clilocmessage(501661) return | char.socket.clilocmessage(501661) return | def copy_response(char, args, target): if len(args) != 1: return key = wolfpack.finditem(args[0]) if not key or not char.canreach(key,5): char.socket.clilocmessage(501661) return # Check if the targetted item is a key if not target.item or not target.item.hasscript( 'key' ): char.socket.clilocmessage(501679) return ... | 516c1fcdf800cd69abc81c17dada3a6bf321ca8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/516c1fcdf800cd69abc81c17dada3a6bf321ca8c/key.py |
key.settag('lock',target.item.gettag('lock')) key.resendtooltip() char.socket.clilocmessage(501676) | key.settag('lock',target.item.gettag('lock')) key.resendtooltip() char.socket.clilocmessage(501676) | def copy_response(char, args, target): if len(args) != 1: return key = wolfpack.finditem(args[0]) if not key or not char.canreach(key,5): char.socket.clilocmessage(501661) return # Check if the targetted item is a key if not target.item or not target.item.hasscript( 'key' ): char.socket.clilocmessage(501679) return ... | 516c1fcdf800cd69abc81c17dada3a6bf321ca8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/516c1fcdf800cd69abc81c17dada3a6bf321ca8c/key.py |
char.socket.clilocmessage(501677) | char.socket.clilocmessage(501677) | def copy_response(char, args, target): if len(args) != 1: return key = wolfpack.finditem(args[0]) if not key or not char.canreach(key,5): char.socket.clilocmessage(501661) return # Check if the targetted item is a key if not target.item or not target.item.hasscript( 'key' ): char.socket.clilocmessage(501679) return ... | 516c1fcdf800cd69abc81c17dada3a6bf321ca8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/516c1fcdf800cd69abc81c17dada3a6bf321ca8c/key.py |
if random.randint(1,4) == 1: char.socket.clilocmessage(501678) key.remove() | if random.randint(1,4) == 1: char.socket.clilocmessage(501678) key.remove() | def copy_response(char, args, target): if len(args) != 1: return key = wolfpack.finditem(args[0]) if not key or not char.canreach(key,5): char.socket.clilocmessage(501661) return # Check if the targetted item is a key if not target.item or not target.item.hasscript( 'key' ): char.socket.clilocmessage(501679) return ... | 516c1fcdf800cd69abc81c17dada3a6bf321ca8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/516c1fcdf800cd69abc81c17dada3a6bf321ca8c/key.py |
char.socket.clilocmessage(501663) char.socket.attachtarget('key.copy_response',[key.serial]) | char.socket.clilocmessage(501663) char.socket.attachtarget('key.copy_response',[key.serial]) | def onUse(char, key): # Does this key open a lock? if not key.hastag('lock'): # The key is blank so we wan't to make a copy of it char.socket.clilocmessage(501663) char.socket.attachtarget('key.copy_response',[key.serial]) else: char.socket.clilocmessage(501662) char.socket.attachtarget('key.lock_response',[key.serial]... | 516c1fcdf800cd69abc81c17dada3a6bf321ca8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/516c1fcdf800cd69abc81c17dada3a6bf321ca8c/key.py |
char.socket.clilocmessage(501662) char.socket.attachtarget('key.lock_response',[key.serial]) | char.socket.clilocmessage(501662) char.socket.attachtarget('key.lock_response',[key.serial]) | def onUse(char, key): # Does this key open a lock? if not key.hastag('lock'): # The key is blank so we wan't to make a copy of it char.socket.clilocmessage(501663) char.socket.attachtarget('key.copy_response',[key.serial]) else: char.socket.clilocmessage(501662) char.socket.attachtarget('key.lock_response',[key.serial]... | 516c1fcdf800cd69abc81c17dada3a6bf321ca8c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/516c1fcdf800cd69abc81c17dada3a6bf321ca8c/key.py |
gem.settag( 'resourcecount', orespawnamount ) gem.settag( 'resname', 'iron' ) | gem.settag('resourcecount', orespawnamount) gem.settag('resname', 'iron') | def createoregem( pos ): gem = wolfpack.additem( 'ore_gem' ) gem.settag( 'resourcecount', orespawnamount ) # 10 - 34 ore gem.settag( 'resname', 'iron' ) # All veins should default to iron ore. # This will give it a chance to be a random ore type, this can change later. colorchance = randint( 0, 100 ) if colorchance >= ... | e80d92b998df2f23599096b560b78532960359fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/e80d92b998df2f23599096b560b78532960359fe/mining.py |
colorchance = randint( 0, 100 ) | colorchance = randint(0, 100) | def createoregem( pos ): gem = wolfpack.additem( 'ore_gem' ) gem.settag( 'resourcecount', orespawnamount ) # 10 - 34 ore gem.settag( 'resname', 'iron' ) # All veins should default to iron ore. # This will give it a chance to be a random ore type, this can change later. colorchance = randint( 0, 100 ) if colorchance >= ... | e80d92b998df2f23599096b560b78532960359fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/e80d92b998df2f23599096b560b78532960359fe/mining.py |
gem.settag( 'resname2', 'valorite' ) | gem.settag('resname2', 'valorite') | def createoregem( pos ): gem = wolfpack.additem( 'ore_gem' ) gem.settag( 'resourcecount', orespawnamount ) # 10 - 34 ore gem.settag( 'resname', 'iron' ) # All veins should default to iron ore. # This will give it a chance to be a random ore type, this can change later. colorchance = randint( 0, 100 ) if colorchance >= ... | e80d92b998df2f23599096b560b78532960359fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/e80d92b998df2f23599096b560b78532960359fe/mining.py |
gem.settag( 'resname2', 'verite') | gem.settag('resname2', 'verite') | def createoregem( pos ): gem = wolfpack.additem( 'ore_gem' ) gem.settag( 'resourcecount', orespawnamount ) # 10 - 34 ore gem.settag( 'resname', 'iron' ) # All veins should default to iron ore. # This will give it a chance to be a random ore type, this can change later. colorchance = randint( 0, 100 ) if colorchance >= ... | e80d92b998df2f23599096b560b78532960359fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/e80d92b998df2f23599096b560b78532960359fe/mining.py |
gem.settag( 'resname2', 'agapite') | gem.settag('resname2', 'agapite') | def createoregem( pos ): gem = wolfpack.additem( 'ore_gem' ) gem.settag( 'resourcecount', orespawnamount ) # 10 - 34 ore gem.settag( 'resname', 'iron' ) # All veins should default to iron ore. # This will give it a chance to be a random ore type, this can change later. colorchance = randint( 0, 100 ) if colorchance >= ... | e80d92b998df2f23599096b560b78532960359fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/e80d92b998df2f23599096b560b78532960359fe/mining.py |
gem.settag( 'resname2', 'gold') | gem.settag('resname2', 'gold') | def createoregem( pos ): gem = wolfpack.additem( 'ore_gem' ) gem.settag( 'resourcecount', orespawnamount ) # 10 - 34 ore gem.settag( 'resname', 'iron' ) # All veins should default to iron ore. # This will give it a chance to be a random ore type, this can change later. colorchance = randint( 0, 100 ) if colorchance >= ... | e80d92b998df2f23599096b560b78532960359fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/e80d92b998df2f23599096b560b78532960359fe/mining.py |
gem.settag( 'resname2', 'bronze') | gem.settag('resname2', 'bronze') | def createoregem( pos ): gem = wolfpack.additem( 'ore_gem' ) gem.settag( 'resourcecount', orespawnamount ) # 10 - 34 ore gem.settag( 'resname', 'iron' ) # All veins should default to iron ore. # This will give it a chance to be a random ore type, this can change later. colorchance = randint( 0, 100 ) if colorchance >= ... | e80d92b998df2f23599096b560b78532960359fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/e80d92b998df2f23599096b560b78532960359fe/mining.py |
gem.settag( 'resname2', 'copper') | gem.settag('resname2', 'copper') | def createoregem( pos ): gem = wolfpack.additem( 'ore_gem' ) gem.settag( 'resourcecount', orespawnamount ) # 10 - 34 ore gem.settag( 'resname', 'iron' ) # All veins should default to iron ore. # This will give it a chance to be a random ore type, this can change later. colorchance = randint( 0, 100 ) if colorchance >= ... | e80d92b998df2f23599096b560b78532960359fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/e80d92b998df2f23599096b560b78532960359fe/mining.py |
gem.settag( 'resname2', 'shadowiron') | gem.settag('resname2', 'shadowiron') | def createoregem( pos ): gem = wolfpack.additem( 'ore_gem' ) gem.settag( 'resourcecount', orespawnamount ) # 10 - 34 ore gem.settag( 'resname', 'iron' ) # All veins should default to iron ore. # This will give it a chance to be a random ore type, this can change later. colorchance = randint( 0, 100 ) if colorchance >= ... | e80d92b998df2f23599096b560b78532960359fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/e80d92b998df2f23599096b560b78532960359fe/mining.py |
gem.settag( 'resname2', 'dullcopper') | gem.settag('resname2', 'dullcopper') | def createoregem( pos ): gem = wolfpack.additem( 'ore_gem' ) gem.settag( 'resourcecount', orespawnamount ) # 10 - 34 ore gem.settag( 'resname', 'iron' ) # All veins should default to iron ore. # This will give it a chance to be a random ore type, this can change later. colorchance = randint( 0, 100 ) if colorchance >= ... | e80d92b998df2f23599096b560b78532960359fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/e80d92b998df2f23599096b560b78532960359fe/mining.py |
if not veingem.hastag( 'resname' ) or not veingem.hastag( 'resourcecount' ): return OOPS if veingem.hastag( 'resname2' ): chance = randint( 1, 10 ) if chance >= 6: resname = veingem.gettag( 'resname2' ) else: resname = veingem.gettag( 'resname' ) elif not veingem.hastag( 'resname2' ) and veingem.hastag( 'resname' ): ... | if not veingem.hastag('resname') or not veingem.hastag('resourcecount'): return OOPS if veingem.hastag('resname2') and random.random() >= 0.50: resname = veingem.gettag('resname2') else: resname = veingem.gettag('resname') resourcecount = veingem.gettag('resourcecount') reqskill = oretable[resname][REQSKILL] chance... | def domining( time, args ): char = args[0] char.soundeffect( args[1] ) tool = args[2] pos = args[3] socket = char.socket if char.socket.hastag( 'ore_gem' ): veingem = wolfpack.finditem( char.socket.gettag( 'ore_gem' ) ) if not veingem: veingem = getvein( socket, pos ) if not veingem: char.socket.deltag( 'ore_gem' ) ve... | e80d92b998df2f23599096b560b78532960359fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/e80d92b998df2f23599096b560b78532960359fe/mining.py |
if char.pos.map != pos.map or char.pos.distance( pos ) > MINING_MAX_DISTANCE: char.socket.clilocmessage( 501867, '', GRAY ) | if char.pos.map != pos.map or char.pos.distance(pos) > MINING_MAX_DISTANCE: char.socket.clilocmessage(501867, '', GRAY) | def domining( time, args ): char = args[0] char.soundeffect( args[1] ) tool = args[2] pos = args[3] socket = char.socket if char.socket.hastag( 'ore_gem' ): veingem = wolfpack.finditem( char.socket.gettag( 'ore_gem' ) ) if not veingem: veingem = getvein( socket, pos ) if not veingem: char.socket.deltag( 'ore_gem' ) ve... | e80d92b998df2f23599096b560b78532960359fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/e80d92b998df2f23599096b560b78532960359fe/mining.py |
if not tool.hastag( 'remaining_uses' ): tool.settag( 'remaining_uses', tool.health ) | if not tool.hastag('remaining_uses'): tool.settag('remaining_uses', tool.health) | def domining( time, args ): char = args[0] char.soundeffect( args[1] ) tool = args[2] pos = args[3] socket = char.socket if char.socket.hastag( 'ore_gem' ): veingem = wolfpack.finditem( char.socket.gettag( 'ore_gem' ) ) if not veingem: veingem = getvein( socket, pos ) if not veingem: char.socket.deltag( 'ore_gem' ) ve... | e80d92b998df2f23599096b560b78532960359fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/e80d92b998df2f23599096b560b78532960359fe/mining.py |
socket.sysmessage( "There is no metal here to mine.", GRAY ) if not veingem.hastag( 'resource_empty' ): wolfpack.addtimer( orerespawndelay, "skills.mining.respawnvein", [ veingem ], 1 ) veingem.settag( 'resource_empty', 'true' ) | socket.sysmessage("There is no ore here to mine.", GRAY) if not veingem.hastag('resource_empty'): wolfpack.addtimer(orerespawndelay, "skills.mining.respawnvein", [veingem], 1) veingem.settag('resource_empty', 1) | def domining( time, args ): char = args[0] char.soundeffect( args[1] ) tool = args[2] pos = args[3] socket = char.socket if char.socket.hastag( 'ore_gem' ): veingem = wolfpack.finditem( char.socket.gettag( 'ore_gem' ) ) if not veingem: veingem = getvein( socket, pos ) if not veingem: char.socket.deltag( 'ore_gem' ) ve... | e80d92b998df2f23599096b560b78532960359fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/e80d92b998df2f23599096b560b78532960359fe/mining.py |
if gem.gettag( 'resourcecount' ) == 0: if not gem.hastag ( 'resource_empty' ) and gem.gettag( 'resourcecount' ) == 0: gem.settag( 'resource_empty', 'true' ) wolfpack.addtimer( orerespawndelay, "skills.mining.respawnvein", [ gem ], 1 ) | if not gem.hastag('resource_empty') and gem.gettag('resourcecount') == 0: gem.settag('resource_empty', 1) wolfpack.addtimer(orerespawndelay, "skills.mining.respawnvein", [gem], 1) | def successmining( char, gem, table, resname, amount, ore ): socket = char.socket message = table[ resname ][ SUCCESSCLILOC ] backpack = char.getbackpack() if not backpack: return OOPS resore = "%s%s" % ( resname, ore ) resourceitem = wolfpack.additem( str(resore) ) resourceitem.decay = 1 if (FELUCIA2XRESGAIN == TRUE) ... | e80d92b998df2f23599096b560b78532960359fe /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/e80d92b998df2f23599096b560b78532960359fe/mining.py |
if account.rank > 1 and playeraccount.authorized( 'Misc', 'May Block Staff Accounts' ): continue else: | if account.rank <= 1 or not playeraccount.authorized( 'Misc', 'May Block Staff Accounts' ): | def commandUnban( socket, cmd, args ): player = socket.player playeraccount = player.account myrank = playeraccount.rank if len( args ) > 0: accname = args.lower() account = wolfpack.accounts.find( accname ) if account and account.rank <= myrank: if account.rank > 1 and playeraccount.authorized( 'Misc', 'May Block Staf... | 979b2dec3719a8fdb6607b119901a659c394eb26 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/979b2dec3719a8fdb6607b119901a659c394eb26/kickban.py |
for i in range( 0, packet.size ): if (packet.getbyte(i) != statusRequest[i]): | for i in range(0, packet.size): if packet.getbyte(i) != statusRequest[i]: | def handleStatus(socket, packet): statusPacket = 1 for i in range( 0, packet.size ): if (packet.getbyte(i) != statusRequest[i]): statusPacket = 0 break if statusPacket: status = 'olfpack, Clients=%i, Items=%i, Chars=%i, Version=%s' % (wolfpack.sockets.count(), wolfpack.itemcount(), wolfpack.charcount(), wolfpack.serve... | 4ea8e2ee044a4f575f9b51ea8c0f44eb3730efb3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/4ea8e2ee044a4f575f9b51ea8c0f44eb3730efb3/uogstatus.py |
status = 'olfpack, Clients=%i, Items=%i, Chars=%i, Version=%s' % (wolfpack.sockets.count(), wolfpack.itemcount(), wolfpack.charcount(), wolfpack.serverversion()) | status = 'olfpack, Clients=%i, Items=%i, Chars=%i, Version="%s"' % (wolfpack.sockets.count(), wolfpack.itemcount(), wolfpack.charcount(), wolfpack.serverversion()) | def handleStatus(socket, packet): statusPacket = 1 for i in range( 0, packet.size ): if (packet.getbyte(i) != statusRequest[i]): statusPacket = 0 break if statusPacket: status = 'olfpack, Clients=%i, Items=%i, Chars=%i, Version=%s' % (wolfpack.sockets.count(), wolfpack.itemcount(), wolfpack.charcount(), wolfpack.serve... | 4ea8e2ee044a4f575f9b51ea8c0f44eb3730efb3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/4ea8e2ee044a4f575f9b51ea8c0f44eb3730efb3/uogstatus.py |
packet = wolfpack.packet(87, len(status) + 1) | packet = wolfpack.packet(87, len(status) + 2) | def handleStatus(socket, packet): statusPacket = 1 for i in range( 0, packet.size ): if (packet.getbyte(i) != statusRequest[i]): statusPacket = 0 break if statusPacket: status = 'olfpack, Clients=%i, Items=%i, Chars=%i, Version=%s' % (wolfpack.sockets.count(), wolfpack.itemcount(), wolfpack.charcount(), wolfpack.serve... | 4ea8e2ee044a4f575f9b51ea8c0f44eb3730efb3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/4ea8e2ee044a4f575f9b51ea8c0f44eb3730efb3/uogstatus.py |
elif magic.utilities.hasSpell(char, 32): | elif magic.utilities.hasSpell(char, 31): | def callback(char, args, target): if target.button == 100000: return # Automatic Close item = wolfpack.finditem(args[0]) closeGump(char, item) if target.button == 0: return if not char.canreach(item, 1): return maymodify = item.getoutmostchar() == char or char.gm if target.button == 1000: if not maymodify: char.so... | 3e9544f1c607323927924485825fdd9ff571db00 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/3e9544f1c607323927924485825fdd9ff571db00/runebook.py |
self.message[0] = unquote(values[5]) self.message[1] = unquote(values[6]) self.message[2] = unquote(values[7]) self.message[3] = unquote(values[8]) | self.message[0] = unicode(unquote(values[5])) self.message[1] = unicode(unquote(values[6])) self.message[2] = unicode(unquote(values[7])) self.message[3] = unicode(unquote(values[8])) | def __init__(self, char): if type(char) == str: values = char.split(';') self.account = unquote( values[0] ) self.serial = int(values[1]) self.name = unquote(values[2]) (x, y, z, m) = values[3].split(',') self.pos = wolfpack.coord(int(x), int(y), int(z), int(m)) self.category = unquote(values[4]) self.message = ['', ''... | 909beb9ce3ffef13a5d74bb0f124548b305f43ce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/909beb9ce3ffef13a5d74bb0f124548b305f43ce/pages.py |
html = u"<body text=\" | html = u"<body text=\" | def details(self, player): char = wolfpack.findchar(self.serial) if not char: return # Assign the page to the viewer if not self.assigned: # Requeue an old page the gm is assigned to global pages page = pages.findassigned(player.serial) if page: page.assigned = None player.socket.sysmessage('You requeue your previous... | 909beb9ce3ffef13a5d74bb0f124548b305f43ce /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/909beb9ce3ffef13a5d74bb0f124548b305f43ce/pages.py |
tooltip.add( 1050045, " \t | tooltip.add( 1050045, " \t | def onShowTooltip( sender, target, tooltip ): if target.isitem(): name = target.getname() if isarmor ( target ): armor( target, tooltip ) elif ishat( target ): hat( target, tooltip ) elif isshield( target ): shield( target, tooltip ) elif isweapon( target ): weapon( target, tooltip ) else: # if target.name == ... | 0107af009ab15ac3fa53fb663c0324dff033dce4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/0107af009ab15ac3fa53fb663c0324dff033dce4/tooltip.py |
html = "<body text=\" | html = u"<body text=\" | def details(self, player): char = wolfpack.findchar(self.serial) if not char: return # Assign the page to the viewer if not self.assigned: # Requeue an old page the gm is assigned to global pages page = pages.findassigned(player.serial) if page: page.assigned = None player.socket.sysmessage('You requeue your previous... | 4faf98f4b633e1c7c98586b239544a9921bf16e5 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/4faf98f4b633e1c7c98586b239544a9921bf16e5/pages.py |
parser = xml.sax.make_parser() handler = DecorationHandler() parser.setContentHandler(handler) parser.parse( atts.getValue("file") ) | path = atts.getValue("file") if not os.path.isfile(path): console.log(LOG_ERROR, tr("File '%s' not found.\n") % (path)) return parser = xml.sax.make_parser() handler = DecorationHandler() parser.setContentHandler(handler) parser.parse(path) | def startElement( self, name, atts ): if name == "item": self.itemid = str(atts.getValue("id")); if atts.has_key("hue"): self.hue = int(hex2dec(str(atts.getValue("hue")))); else: self.hue = 0 if atts.has_key("amount"): self.amount = int(atts.getValue("amount")); else: self.amount = 0 self.statements = [] elif name == "... | f1ea0e888b6a61a0acd06ce5104aad9301e84bd4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/f1ea0e888b6a61a0acd06ce5104aad9301e84bd4/decoration.py |
potionexplosion( item, [ char.serial, 4] ) | potionexplosion( item, [char, 4, item.amount] ) | def onUse( char, item ): socket = char.socket # Potions need to be on your body to use them, or in arms reach. if item.getoutmostchar() != char: char.message( "This potion is out of your reach..." ) return False # Lets make sure the tag exists. if not item.hastag( 'potiontype' ): return False else: potiontype = item.g... | 143e0ea045e4e7382cb3250d86e1ae2232e02e9f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/143e0ea045e4e7382cb3250d86e1ae2232e02e9f/potions.py |
char = wolfpack.findchar(args[0]) counter = args[1] bonus = potion.amount if not bonus: bonus = 1 if counter > 0: potion.addtimer( 1000, "potions.potioncountdown", [char.serial, counter, bonus] ) return | if args[1] > 0: potion.addtimer( 1000, "potions.potioncountdown", [args[0], args[1], args[2]] ) | def potionexplosion( potion, args ): char = wolfpack.findchar(args[0]) counter = args[1] bonus = potion.amount if not bonus: bonus = 1 if counter > 0: potion.addtimer( 1000, "potions.potioncountdown", [char.serial, counter, bonus] ) return else: potion.soundeffect(0x307) # Boom! potion.effect( explosions[randint( 0, 2 ... | 143e0ea045e4e7382cb3250d86e1ae2232e02e9f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/143e0ea045e4e7382cb3250d86e1ae2232e02e9f/potions.py |
potionregion( [char, potion, bonus] ) | potionregion( args[0], potion, args[2] ) | def potionexplosion( potion, args ): char = wolfpack.findchar(args[0]) counter = args[1] bonus = potion.amount if not bonus: bonus = 1 if counter > 0: potion.addtimer( 1000, "potions.potioncountdown", [char.serial, counter, bonus] ) return else: potion.soundeffect(0x307) # Boom! potion.effect( explosions[randint( 0, 2 ... | 143e0ea045e4e7382cb3250d86e1ae2232e02e9f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/143e0ea045e4e7382cb3250d86e1ae2232e02e9f/potions.py |
return | return | def potionexplosion( potion, args ): char = wolfpack.findchar(args[0]) counter = args[1] bonus = potion.amount if not bonus: bonus = 1 if counter > 0: potion.addtimer( 1000, "potions.potioncountdown", [char.serial, counter, bonus] ) return else: potion.soundeffect(0x307) # Boom! potion.effect( explosions[randint( 0, 2 ... | 143e0ea045e4e7382cb3250d86e1ae2232e02e9f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/143e0ea045e4e7382cb3250d86e1ae2232e02e9f/potions.py |
bonus = args[2] | def potioncountdown( potion, args ): counter = args[1] bonus = args[2] if potion: if not bonus: bonus = 1 if counter >= 0: if counter > 0: if (counter - 1) > 0: potion.say("%u" % (counter - 1)) counter -= 1 potion.addtimer( 0, "potions.potionexplosion", [ args[0], counter, bonus ] ) return | 143e0ea045e4e7382cb3250d86e1ae2232e02e9f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/143e0ea045e4e7382cb3250d86e1ae2232e02e9f/potions.py | |
if not bonus: bonus = 1 | def potioncountdown( potion, args ): counter = args[1] bonus = args[2] if potion: if not bonus: bonus = 1 if counter >= 0: if counter > 0: if (counter - 1) > 0: potion.say("%u" % (counter - 1)) counter -= 1 potion.addtimer( 0, "potions.potionexplosion", [ args[0], counter, bonus ] ) return | 143e0ea045e4e7382cb3250d86e1ae2232e02e9f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/143e0ea045e4e7382cb3250d86e1ae2232e02e9f/potions.py | |
potion.addtimer( 0, "potions.potionexplosion", [ args[0], counter, bonus ] ) | potion.addtimer( 0, "potions.potionexplosion", [args[0], counter, args[2]] ) return def chainpotiontimer( char, potion, bomb, outradius ): if not checkLoS( potion, bomb, outradius ): | def potioncountdown( potion, args ): counter = args[1] bonus = args[2] if potion: if not bonus: bonus = 1 if counter >= 0: if counter > 0: if (counter - 1) > 0: potion.say("%u" % (counter - 1)) counter -= 1 potion.addtimer( 0, "potions.potionexplosion", [ args[0], counter, bonus ] ) return | 143e0ea045e4e7382cb3250d86e1ae2232e02e9f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/143e0ea045e4e7382cb3250d86e1ae2232e02e9f/potions.py |
def potionregion( args ): char = args[0] potion = args[1] bonus = args[2] | def potionregion( char, potion, bonus=0 ): | def potionregion( args ): char = args[0] potion = args[1] bonus = args[2] if potion.gettag('potiontype') == 11: outradius = 1 elif potion.gettag('potiontype') == 12: outradius = 2 elif potion.gettag('potiontype') == 13: outradius = randint(2,3) else: outradius = 1 # Potion Keg Radius Override! if potion.hastag('kegfill... | 143e0ea045e4e7382cb3250d86e1ae2232e02e9f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/143e0ea045e4e7382cb3250d86e1ae2232e02e9f/potions.py |
potion_chainlist = [] | outradius = max( 1, outradius ) | def potionregion( args ): char = args[0] potion = args[1] bonus = args[2] if potion.gettag('potiontype') == 11: outradius = 1 elif potion.gettag('potiontype') == 12: outradius = 2 elif potion.gettag('potiontype') == 13: outradius = randint(2,3) else: outradius = 1 # Potion Keg Radius Override! if potion.hastag('kegfill... | 143e0ea045e4e7382cb3250d86e1ae2232e02e9f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/143e0ea045e4e7382cb3250d86e1ae2232e02e9f/potions.py |
x1 = int(potion.pos.x - outradius) y1 = int(potion.pos.y - outradius) x2 = int(potion.pos.x + outradius) y2 = int(potion.pos.y + outradius) | x1 = min( int(potion.pos.x - outradius), int(potion.pos.x + outradius) ) x2 = max( int(potion.pos.x - outradius), int(potion.pos.x + outradius) ) y1 = min( int(potion.pos.y - outradius), int(potion.pos.y + outradius) ) y2 = max( int(potion.pos.y - outradius), int(potion.pos.y + outradius) ) | def potionregion( args ): char = args[0] potion = args[1] bonus = args[2] if potion.gettag('potiontype') == 11: outradius = 1 elif potion.gettag('potiontype') == 12: outradius = 2 elif potion.gettag('potiontype') == 13: outradius = randint(2,3) else: outradius = 1 # Potion Keg Radius Override! if potion.hastag('kegfill... | 143e0ea045e4e7382cb3250d86e1ae2232e02e9f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/143e0ea045e4e7382cb3250d86e1ae2232e02e9f/potions.py |
def potionregion( args ): char = args[0] potion = args[1] bonus = args[2] if potion.gettag('potiontype') == 11: outradius = 1 elif potion.gettag('potiontype') == 12: outradius = 2 elif potion.gettag('potiontype') == 13: outradius = randint(2,3) else: outradius = 1 # Potion Keg Radius Override! if potion.hastag('kegfill... | 143e0ea045e4e7382cb3250d86e1ae2232e02e9f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/143e0ea045e4e7382cb3250d86e1ae2232e02e9f/potions.py | ||
potiondamage(char, target, potion, bonus) | potiondamage( char, target, potion, bonus ) | def potionregion( args ): char = args[0] potion = args[1] bonus = args[2] if potion.gettag('potiontype') == 11: outradius = 1 elif potion.gettag('potiontype') == 12: outradius = 2 elif potion.gettag('potiontype') == 13: outradius = randint(2,3) else: outradius = 1 # Potion Keg Radius Override! if potion.hastag('kegfill... | 143e0ea045e4e7382cb3250d86e1ae2232e02e9f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/143e0ea045e4e7382cb3250d86e1ae2232e02e9f/potions.py |
def potionregion( args ): char = args[0] potion = args[1] bonus = args[2] if potion.gettag('potiontype') == 11: outradius = 1 elif potion.gettag('potiontype') == 12: outradius = 2 elif potion.gettag('potiontype') == 13: outradius = randint(2,3) else: outradius = 1 # Potion Keg Radius Override! if potion.hastag('kegfill... | 143e0ea045e4e7382cb3250d86e1ae2232e02e9f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/143e0ea045e4e7382cb3250d86e1ae2232e02e9f/potions.py | ||
if not checkLoS( potion, chainbomb, outradius ): chainbomb = chainregion.next if chainbomb.hastag('exploding'): chainbomb = chainregion.next if not potion.hastag('potiontype') or not chainbomb.gettag('potiontype') in [11,12,13]: chainbomb = chainregion.next potion_chainlist.append( chainbomb ) | chainpotiontimer( char, potion, chainbomb, outradius ) | def potionregion( args ): char = args[0] potion = args[1] bonus = args[2] if potion.gettag('potiontype') == 11: outradius = 1 elif potion.gettag('potiontype') == 12: outradius = 2 elif potion.gettag('potiontype') == 13: outradius = randint(2,3) else: outradius = 1 # Potion Keg Radius Override! if potion.hastag('kegfill... | 143e0ea045e4e7382cb3250d86e1ae2232e02e9f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/143e0ea045e4e7382cb3250d86e1ae2232e02e9f/potions.py |
for bomb in potion_chainlist: bomb.settag( 'exploding', char.serial ) if chainbomb.hastag( 'kegfill' ) and int( chainbomb.gettag( 'kegfill' ) ) >= 1: bomb.addtimer( randint(1000,2250), "potions.potioncountdown", [ char.serial, 0, int( bomb.gettag( 'kegfill' ) ) ] ) else: bomb.addtimer( randint( 1000, 2250 ), "potions.... | def potionregion( args ): char = args[0] potion = args[1] bonus = args[2] if potion.gettag('potiontype') == 11: outradius = 1 elif potion.gettag('potiontype') == 12: outradius = 2 elif potion.gettag('potiontype') == 13: outradius = randint(2,3) else: outradius = 1 # Potion Keg Radius Override! if potion.hastag('kegfill... | 143e0ea045e4e7382cb3250d86e1ae2232e02e9f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/143e0ea045e4e7382cb3250d86e1ae2232e02e9f/potions.py | |
x1 = int(char.pos.x - outradius) y1 = int(char.pos.y - outradius) x2 = int(char.pos.x + outradius) y2 = int(char.pos.y + outradius) damageregion = wolfpack.charregion( x1, y1, x2, y2, char.pos.map ) | x1 = min( int(char.pos.x - outradius), int(char.pos.x + outradius) ) x2 = max( int(char.pos.x - outradius), int(char.pos.x + outradius) ) y1 = min( int(char.pos.y - outradius), int(char.pos.y + outradius) ) y2 = max( int(char.pos.y - outradius), int(char.pos.y + outradius) ) | def potionregion( args ): char = args[0] potion = args[1] bonus = args[2] if potion.gettag('potiontype') == 11: outradius = 1 elif potion.gettag('potiontype') == 12: outradius = 2 elif potion.gettag('potiontype') == 13: outradius = randint(2,3) else: outradius = 1 # Potion Keg Radius Override! if potion.hastag('kegfill... | 143e0ea045e4e7382cb3250d86e1ae2232e02e9f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/143e0ea045e4e7382cb3250d86e1ae2232e02e9f/potions.py |
potiondamage(char, target, potion, bonus) | potiondamage( char, target, potion, bonus ) | def potionregion( args ): char = args[0] potion = args[1] bonus = args[2] if potion.gettag('potiontype') == 11: outradius = 1 elif potion.gettag('potiontype') == 12: outradius = 2 elif potion.gettag('potiontype') == 13: outradius = randint(2,3) else: outradius = 1 # Potion Keg Radius Override! if potion.hastag('kegfill... | 143e0ea045e4e7382cb3250d86e1ae2232e02e9f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/143e0ea045e4e7382cb3250d86e1ae2232e02e9f/potions.py |
if not checkLoS( potion, chainbomb, outradius ): chainbomb = chainregion.next if chainbomb.hastag('exploding'): chainbomb = chainregion.next if not potion.hastag('potiontype') or not chainbomb.gettag('potiontype') in [11,12,13]: chainbomb = chainregion.next potion_chainlist.append( chainbomb ) | chainpotiontimer( char, potion, chainbomb, outradius ) | def potionregion( args ): char = args[0] potion = args[1] bonus = args[2] if potion.gettag('potiontype') == 11: outradius = 1 elif potion.gettag('potiontype') == 12: outradius = 2 elif potion.gettag('potiontype') == 13: outradius = randint(2,3) else: outradius = 1 # Potion Keg Radius Override! if potion.hastag('kegfill... | 143e0ea045e4e7382cb3250d86e1ae2232e02e9f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/143e0ea045e4e7382cb3250d86e1ae2232e02e9f/potions.py |
for bomb in potion_chainlist: bomb.settag( 'exploding', char.serial ) if chainbomb.hastag( 'kegfill' ) and int( chainbomb.gettag( 'kegfill' ) ) >= 1: bomb.addtimer( randint(1000,2250), "potions.potioncountdown", [ char.serial, 0, int( bomb.gettag( 'kegfill' ) ) ] ) else: bomb.addtimer( randint( 1000, 2250 ), "potions.... | def potionregion( args ): char = args[0] potion = args[1] bonus = args[2] if potion.gettag('potiontype') == 11: outradius = 1 elif potion.gettag('potiontype') == 12: outradius = 2 elif potion.gettag('potiontype') == 13: outradius = randint(2,3) else: outradius = 1 # Potion Keg Radius Override! if potion.hastag('kegfill... | 143e0ea045e4e7382cb3250d86e1ae2232e02e9f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/143e0ea045e4e7382cb3250d86e1ae2232e02e9f/potions.py | |
socket.sysmessage( "An account with this name already exists!" ) | socket.sysmessage( "Error: Account %s exists!" % username ) | def accountCreate( socket, username, password ): char = socket.player characcount = wolfpack.accounts.find( char.account.name ) # Usernames and passwords are limited to 16 characters in length if len( username ) > 16 or len( password ) > 16: if len( username ) > 16: socket.sysmessage( "Error: Username exceeds the 16 ch... | 9b08d276127cd5f43ba1f492f282aefa82854dd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/9b08d276127cd5f43ba1f492f282aefa82854dd7/account.py |
wolfpack.accounts.add( username, password ) | newaccount = wolfpack.accounts.add( username, password ) newaccount.acl = 'player' | def accountCreate( socket, username, password ): char = socket.player characcount = wolfpack.accounts.find( char.account.name ) # Usernames and passwords are limited to 16 characters in length if len( username ) > 16 or len( password ) > 16: if len( username ) > 16: socket.sysmessage( "Error: Username exceeds the 16 ch... | 9b08d276127cd5f43ba1f492f282aefa82854dd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/9b08d276127cd5f43ba1f492f282aefa82854dd7/account.py |
socket.sysmessage( "Account creation failed!" ) | socket.sysmessage( "Error: Account creation failed!" ) | def accountCreate( socket, username, password ): char = socket.player characcount = wolfpack.accounts.find( char.account.name ) # Usernames and passwords are limited to 16 characters in length if len( username ) > 16 or len( password ) > 16: if len( username ) > 16: socket.sysmessage( "Error: Username exceeds the 16 ch... | 9b08d276127cd5f43ba1f492f282aefa82854dd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/9b08d276127cd5f43ba1f492f282aefa82854dd7/account.py |
characcount = wolfpack.accounts.find( char.account ) key = key.lower() | characcount = wolfpack.accounts.find( char.account.name ) | def accountShow( socket, username, key ): char = socket.player characcount = wolfpack.accounts.find( char.account ) key = key.lower() # Usernames are limited to 16 characters in length if len( username ) > 16: socket.sysmessage( "The given username exceeds the 16 character limit!" ) return True # Find the account else:... | 9b08d276127cd5f43ba1f492f282aefa82854dd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/9b08d276127cd5f43ba1f492f282aefa82854dd7/account.py |
if len( username ) > 16: socket.sysmessage( "The given username exceeds the 16 character limit!" ) return True | if len( username ) > 16 or len( username ) == 0: if len( username ) > 16: socket.sysmessage( "Error: Username exceeds the 16 character limit!" ) if len( username ) == 0: socket.sysmessage( "Error: Username is NULL!" ) return False | def accountShow( socket, username, key ): char = socket.player characcount = wolfpack.accounts.find( char.account ) key = key.lower() # Usernames are limited to 16 characters in length if len( username ) > 16: socket.sysmessage( "The given username exceeds the 16 character limit!" ) return True # Find the account else:... | 9b08d276127cd5f43ba1f492f282aefa82854dd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/9b08d276127cd5f43ba1f492f282aefa82854dd7/account.py |
def accountShow( socket, username, key ): char = socket.player characcount = wolfpack.accounts.find( char.account ) key = key.lower() # Usernames are limited to 16 characters in length if len( username ) > 16: socket.sysmessage( "The given username exceeds the 16 character limit!" ) return True # Find the account else:... | 9b08d276127cd5f43ba1f492f282aefa82854dd7 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/9b08d276127cd5f43ba1f492f282aefa82854dd7/account.py | ||
char.say('Bombing a character with %s!' % (object.name) ) | def throwobject( char, object, target, sendobject=0, movable=1, speed=10, fixeddir=0, explodes=0, hue=0, rendermode=0 ): # This will make the object leave the character's pack and land at the target location. if sendobject > 0 and object: if target.char: # Container Workaround if object.container: object.container = 0 ... | af326a1cdbd7a4173cdba63e8e1962bf5045d1ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/af326a1cdbd7a4173cdba63e8e1962bf5045d1ab/utilities.py | |
char.say('Bombing an item with %s!' % (object.name) ) | def throwobject( char, object, target, sendobject=0, movable=1, speed=10, fixeddir=0, explodes=0, hue=0, rendermode=0 ): # This will make the object leave the character's pack and land at the target location. if sendobject > 0 and object: if target.char: # Container Workaround if object.container: object.container = 0 ... | af326a1cdbd7a4173cdba63e8e1962bf5045d1ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/af326a1cdbd7a4173cdba63e8e1962bf5045d1ab/utilities.py | |
char.say('Bombing something else with %s!' % (object.name) ) | def throwobject( char, object, target, sendobject=0, movable=1, speed=10, fixeddir=0, explodes=0, hue=0, rendermode=0 ): # This will make the object leave the character's pack and land at the target location. if sendobject > 0 and object: if target.char: # Container Workaround if object.container: object.container = 0 ... | af326a1cdbd7a4173cdba63e8e1962bf5045d1ab /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/af326a1cdbd7a4173cdba63e8e1962bf5045d1ab/utilities.py | |
gainstat(char, 2) def onSkillGain(char, skill, lower, higher, success): 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[skill] / 10.0 lower /= 10.0 h... | gainstat(char, 2) | def gainskill(char, skill, totalskill, totalcap): value = char.skill[skill] / 10.0 lock = char.skilllock[skill] cap = char.skillcap[skill] / 10.0 info = SKILLS[skill] if lock == 0 and value < cap: # Skills lower than 10.0% will gain 0.1% - 0.5% at once if value < 10.0: points = randint(1, 5) / 10.0 else: points = 0.1 ... | fb252ce25cef342b4cf9b64c1e0fa46c8d73e607 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/fb252ce25cef342b4cf9b64c1e0fa46c8d73e607/skillgain.py |
gump.addHtmlGump( 50, 180, 340, 80, html ) | gump.addHtmlGump( 50, 180, 340, 80, unicode(html) ) | def details(self, player): char = wolfpack.findchar(self.serial) if not char: return # Assign the page to the viewer if not self.assigned: # Requeue an old page the gm is assigned to global pages page = pages.findassigned(player.serial) if page: page.assigned = None player.socket.sysmessage('You requeue your previous... | 80f0db2d52447642c849dea5edfa85b377d744a1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/80f0db2d52447642c849dea5edfa85b377d744a1/pages.py |
def setspelldelay(self, char, mode): if char.npc: pass elif char.socket: castrecovery = - properties.fromchar(char, CASTRECOVERYBONUS) castrecovery += 6 castrecovery += self.castrecovery | d04583b8c48b2a5137e998b2f6f9ab2bbf202ef8 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/d04583b8c48b2a5137e998b2f6f9ab2bbf202ef8/spell.py | ||
trade.setascii( 17, playername ) | trade.setascii( 17, unicode(playername) ) | 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... | 7a1e18c1d281674bef90d52012e8c6467f8a6348 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/7a1e18c1d281674bef90d52012e8c6467f8a6348/trading.py |
if nightsight: | if nightsight and char.player: | def onEquip(char, item, layer): changed = 0 # Bonus Str bonus = properties.fromitem(item, BONUSSTRENGTH) if char.strength + bonus < 1: bonus = 1 - char.strength if char.strength + bonus > char.strengthcap: bonus = max(0, char.strengthcap - char.strength) if bonus != 0: char.strength += bonus char.strength2 += bonus it... | 7e1f8bec6179e778f4585884224fd2a47b4bf08b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/7e1f8bec6179e778f4585884224fd2a47b4bf08b/equipment.py |
def consumematerial(self, player, arguments, half = 0): if self.stackable: return True else: return CraftItemAction.consumematerial(player, arguments, half) | def getexceptionalchance(self, player, arguments): if not self.skills.has_key(BOWCRAFT): return False | 1d7f535db662eeea4243d03f48af824dfe798462 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/1d7f535db662eeea4243d03f48af824dfe798462/bowcraft.py | |
result = srcpos.lineofsightnew(targpos) | result = char.canreach(targpos, 20, True) | def newlostarget(char, arguments, target): targpos = target.pos if target.item: targpos = target.item elif target.char: targpos = target.char srcpos = char.pos srcpos.z += 15 result = srcpos.lineofsightnew(targpos) char.socket.sysmessage('RESULT: ' + str(result)) | 2e4fdf71d61ef5c75eaac8989549498b1083b314 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/2e4fdf71d61ef5c75eaac8989549498b1083b314/__init__.py |
def generateNamefromDef(itemdef): name = '' item = wolfpack.getdefinition(WPDT_ITEM, itemdef) if not item: return name # If items name is given use it itemchild = item.findchild('name') if itemchild: name = itemchild.value if name != '': # Remove leading # of clilocids if name.startswith('#') and len(name) > 1: name =... | 0d89a4bc8e80f0d0c5ebc39da765d50080b61588 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/0d89a4bc8e80f0d0c5ebc39da765d50080b61588/makemenus.py | ||
def generateNamefromDef(itemdef): name = '' item = wolfpack.getdefinition(WPDT_ITEM, itemdef) if not item: return name # If items name is given use it itemchild = item.findchild('name') if itemchild: name = itemchild.value if name != '': # Remove leading # of clilocids if name.startswith('#') and len(name) > 1: name =... | 0d89a4bc8e80f0d0c5ebc39da765d50080b61588 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/0d89a4bc8e80f0d0c5ebc39da765d50080b61588/makemenus.py | ||
gump.addXmfHtmlGump(180, 12, 510, 20, self.title, False, False, 0xFFFFFF) | gump.addXmfHtmlGump(180, 12, 510, 20, self.title, False, False, enabledcolor) | def details(self, player, arguments): if self.parent.gumptype != 0: player.socket.closegump(self.parent.gumptype, 0xFFFF) | 0d89a4bc8e80f0d0c5ebc39da765d50080b61588 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/0d89a4bc8e80f0d0c5ebc39da765d50080b61588/makemenus.py |
gump.addXmfHtmlGump(180, 12, 510, 20, int(self.title), False, False, 0xFFFFFF) | gump.addXmfHtmlGump(180, 12, 510, 20, int(self.title), False, False, enabledcolor) | def details(self, player, arguments): if self.parent.gumptype != 0: player.socket.closegump(self.parent.gumptype, 0xFFFF) | 0d89a4bc8e80f0d0c5ebc39da765d50080b61588 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/0d89a4bc8e80f0d0c5ebc39da765d50080b61588/makemenus.py |
gump.addText(50, 389, tr("Back"), 0x480) | gump.addText(50, 389, tr("Back"), enabbledhue) | def details(self, player, arguments): if self.parent.gumptype != 0: player.socket.closegump(self.parent.gumptype, 0xFFFF) | 0d89a4bc8e80f0d0c5ebc39da765d50080b61588 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/0d89a4bc8e80f0d0c5ebc39da765d50080b61588/makemenus.py |
gump.addText(410, 389, tr("Make Now"), 0x480) | gump.addText(410, 389, tr("Make Now"), enabbledhue) | def details(self, player, arguments): if self.parent.gumptype != 0: player.socket.closegump(self.parent.gumptype, 0xFFFF) | 0d89a4bc8e80f0d0c5ebc39da765d50080b61588 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/0d89a4bc8e80f0d0c5ebc39da765d50080b61588/makemenus.py |
gump.addXmfHtmlGump(245, 39, 285, 20, self.title, False, False, 0xFFFFFF) | gump.addXmfHtmlGump(245, 39, 285, 20, self.title, False, False, enabledcolor) | def details(self, player, arguments): if self.parent.gumptype != 0: player.socket.closegump(self.parent.gumptype, 0xFFFF) | 0d89a4bc8e80f0d0c5ebc39da765d50080b61588 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/0d89a4bc8e80f0d0c5ebc39da765d50080b61588/makemenus.py |
gump.addXmfHtmlGump(245, 39, 285, 20, int(self.title), False, False, 0xFFFFFF) | gump.addXmfHtmlGump(245, 39, 285, 20, int(self.title), False, False, enabledcolor) | def details(self, player, arguments): if self.parent.gumptype != 0: player.socket.closegump(self.parent.gumptype, 0xFFFF) | 0d89a4bc8e80f0d0c5ebc39da765d50080b61588 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/0d89a4bc8e80f0d0c5ebc39da765d50080b61588/makemenus.py |
gump.addText(245, 39, self.title, 0x480) | gump.addText(245, 39, self.title, enabbledhue) | def details(self, player, arguments): if self.parent.gumptype != 0: player.socket.closegump(self.parent.gumptype, 0xFFFF) | 0d89a4bc8e80f0d0c5ebc39da765d50080b61588 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/0d89a4bc8e80f0d0c5ebc39da765d50080b61588/makemenus.py |
gump.addXmfHtmlGump(255, yoffset + 3, 275, 20, menu.subactions[action].title, False, False, 0xFFFFFF) | gump.addXmfHtmlGump(255, yoffset + 3, 275, 20, menu.subactions[action].title, False, False, enabledcolor) | def makehistory(self, player, arguments): gump = self.generate(arguments) self.addbuttons(gump, player, arguments, 1) | 0d89a4bc8e80f0d0c5ebc39da765d50080b61588 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/0d89a4bc8e80f0d0c5ebc39da765d50080b61588/makemenus.py |
gump.addText(255, yoffset + 3, menu.subactions[action].title, 0x480) | gump.addText(255, yoffset + 3, menu.subactions[action].title, enabbledhue) | def makehistory(self, player, arguments): gump = self.generate(arguments) self.addbuttons(gump, player, arguments, 1) | 0d89a4bc8e80f0d0c5ebc39da765d50080b61588 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/0d89a4bc8e80f0d0c5ebc39da765d50080b61588/makemenus.py |
gump.addText(xoffset + 35, yoffset + 3, materials[i][0], 0x3b1) | gump.addText(xoffset + 35, yoffset + 3, materials[i][0], disabledhue) | def materialselection(self, player, arguments, secondary = 0): gump = self.generate(arguments) self.addbuttons(gump, player, arguments, 1) | 0d89a4bc8e80f0d0c5ebc39da765d50080b61588 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/0d89a4bc8e80f0d0c5ebc39da765d50080b61588/makemenus.py |
gump.addText(xoffset + 35, yoffset + 3, materials[i][0], 0x480) | gump.addText(xoffset + 35, yoffset + 3, materials[i][0], enabbledhue) | def materialselection(self, player, arguments, secondary = 0): gump = self.generate(arguments) self.addbuttons(gump, player, arguments, 1) | 0d89a4bc8e80f0d0c5ebc39da765d50080b61588 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/2534/0d89a4bc8e80f0d0c5ebc39da765d50080b61588/makemenus.py |
gump.addText(385, 313, tr("Repair Item"), 0x480) | gump.addText(385, 313, tr("Repair Item"), 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(385, 333, tr("Enhance Item"), 0x480) | gump.addText(385, 333, tr("Enhance Item"), 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(385, 353, tr("Smelt Item"), 0x480) | gump.addText(385, 353, tr("Smelt Item"), 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, 353, tr("Exit"), 0x480) | gump.addText(50, 353, tr("Exit"), 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, 333, self.name_makelast, 0x480) | gump.addText(50, 333, self.name_makelast, 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, 313, tr("Back"), 0x480) | gump.addText(50, 313, tr("Back"), 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, 313, tr("Previous Menu"), 0x480) | gump.addText(50, 313, tr("Previous Menu"), 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, 63, tr("Last Ten"), 0x480) | gump.addText(50, 63, tr("Last Ten"), 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(200, 353, message, 0x480) | gump.addText(200, 353, message, 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(200, 313, self.submaterials1[index][0], 0x480) | gump.addText(200, 313, self.submaterials1[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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.