rem
stringlengths
0
322k
add
stringlengths
0
2.05M
context
stringlengths
8
228k
if sender.gm and 'lock' in target.events: lock = 'None'
if target.visible == 0 and sender.gm: tooltip.add(3000507, "") modifiers( target, tooltip ) if sender.gm and 'lock' in target.events: lock = 'None'
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 == '#' o...
wolfpack.addtimer( 2000, "weapons.blades.chop_tree", [char, pos] ) wolfpack.addtimer( 3500, "weapons.blades.chop_tree", [char, pos] ) wolfpack.addtimer( 4000, "weapons.blades.successlumberjacking", [char, pos, resource, amount, tool, resname, woodtable ] )
wolfpack.addtimer( 2000, "skills.lumberjacking.chop_tree", [char, pos] ) wolfpack.addtimer( 3500, "skills.lumberjacking.chop_tree", [char, pos] ) wolfpack.addtimer( 4000, "skills.lumberjacking.successlumberjacking", [char, pos, resource, amount, tool, resname, woodtable ] )
def hack_logs( char, target, tool, resource ): socket = char.socket pos = target.pos resname = resource.gettag( 'resname' ) amount = resource.gettag( 'resourcecount' ) resourcecount = resource.gettag( 'resourcecount' ) # No resource left to harvest? if resourcecount <= 0: socket.clilocmessage( 500488, '', GRAY ) ret...
if not char.checkskill(resource, LUMBERJACKING, reqskill, 1200):
if not char.checkskill( LUMBERJACKING, reqskill, 1200 ):
def successlumberjacking( time, args ): char = args[0] pos = args[1] # Target POS resource = args[2] amount = args[3] tool = args[4] resname = args[5] table = args[6] socket = char.socket # Lets make sure we stayed next to the tree # Player can reach that ? if char.pos.map != pos.map or char.pos.distance( pos ) > chop...
self.allowmark = 1
self.allowmark = True
def __init__(self, id, parent, title): MakeMenu.__init__(self, id, parent, title) self.allowmark = 1 #self.allowrepair = 1 self.submaterials1 = skills.blacksmithing.METALS self.submaterial1missing = 1042081 # Ingots self.submaterial1noskill = 500586 self.gumptype = 0x4f6ba469 # This should be unique self.requiretool = ...
if item.hastag('protected'): char.message('This book is read only.') return if item.hastag( 'pages' ): pages = int(item.gettag('pages')) else: pages = 64 if page > pages or page < 1: return if not content or len(content.strip()) == 0: item.deltag('page%u' % page) return item.settag( 'page%u' % page, content )
if item.hastag('protected'): char.message('This book is read only.') return if item.hastag( 'pages' ): pages = int(item.gettag('pages')) else: pages = 64 if page > pages or page < 1: return if not content or len(content.strip()) == 0: item.deltag('page%u' % page) return item.settag( 'page%u' % page, content ) item....
def onBookUpdatePage(char, item, page, content): if item.hastag('protected'): char.message('This book is read only.') return if item.hastag( 'pages' ): pages = int(item.gettag('pages')) else: pages = 64 if page > pages or page < 1: return if not content or len(content.strip()) == 0: item.deltag('page%u' % page) retu...
tile = wolfpack.tiledata( item.id )
tile = wolfpack.tiledata( item[0] )
def response( char, args, target ): socket = char.socket pos = target.pos if skills.skilltable[ FISHING ][ skills.UNHIDE ] and char.hidden: char.reveal() # Check Map/Static/Dynamic Water and eventual blocking stuff above it validspot = 0 blockedspot = 0 deepwater = 0 mapTile = wolfpack.map( pos.x, pos.y, pos.map...
target.char.socket.disconnect()
if target.char.socket: target.char.socket.disconnect()
def disconnecttarget( char, args, target ): if not target.char or target.char.npc: char.socket.sysmessage( "That is not a valid character." ) if target.char: target.char.socket.disconnect() target.char.update() return 1
trashcan.say( "*hungry*" )
def timerPass( timer, args ): trashcan = wolfpack.finditem(args[0]) if trashcan.baseid != "trashcan": return False if trashcan.hastag( 'trash_timer' ) and trashcan.gettag( 'trash_timer' ) <= wolfpack.time.currenttime(): trashlist = wolfpack.utilities.itemsincontainer( trashcan.serial ) if len( trashlist ) == 0: trashc...
trashcan.say( "Deleted %i items!" % i )
def timerPass( timer, args ): trashcan = wolfpack.finditem(args[0]) if trashcan.baseid != "trashcan": return False if trashcan.hastag( 'trash_timer' ) and trashcan.gettag( 'trash_timer' ) <= wolfpack.time.currenttime(): trashlist = wolfpack.utilities.itemsincontainer( trashcan.serial ) if len( trashlist ) == 0: trashc...
p.x = p.x + 1
def SetFacing( boat, direction ): # Checking collision newboatid = boat.id if direction == Forward: newboatid = int( boat.gettag('boat_id_north') ) elif direction == Backward: newboatid = int( boat.gettag('boat_id_south') ) elif direction == Left: newboatid = int( boat.gettag('boat_id_west') ) elif direction == Right:...
return path + os.path.pathsep + file
return path + os.path.sep + file
def buildLibLine( path, file ): if path == "" or file == "": return "" if sys.platform == "win32": return path + os.path.pathsep + file else: if file[0:3] == "lib": file = file[3:] if file[-3:] == ".so": file = file[0:-3] result = "-L%s -l%s" % ( path, file ) return result
PYTHONINCSEARCHPATH = [ distutils.sysconfig.get_python_inc() ] PYTHONLIBSEARCHPATH = [ distutils.sysconfig.get_config_vars()["DESTSHARED"] + os.path.sep + "libpython*" ]
PYTHONINCSEARCHPATH = [ distutils.sysconfig.get_python_inc() + os.path.sep + "Python.h" ] if distutils.sysconfig.get_config_vars().has_key("DESTSHARED"): PYTHONLIBSEARCHPATH = [ distutils.sysconfig.get_config_vars()["DESTSHARED"] + os.path.sep + "libpython*" ] else: PYTHONLIBSEARCHPATH = []
def checkPython(options): PYTHONINCSEARCHPATH = [ distutils.sysconfig.get_python_inc() ] PYTHONLIBSEARCHPATH = [ distutils.sysconfig.get_config_vars()["DESTSHARED"] + os.path.sep + "libpython*" ] PYTHONLIBSTATICSEARCHPATH = [] if sys.platform == "win32": PYTHONLIBSEARCHPATH += [ sys.prefix + "\Libs\python*.lib" ] PYTHO...
parser = OptionParser(version="%prog 0.1")
parser = OptionParser(version="%prog 0.2")
def main(): # Options for qmake DEFINES = "" CONFIG = "" # Setup command line parser parser = OptionParser(version="%prog 0.1") 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...
if options.nocolor:
if options.nocolor or sys.platform == "win32":
def main(): # Options for qmake DEFINES = "" CONFIG = "" # Setup command line parser parser = OptionParser(version="%prog 0.1") 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...
CONFIG += "debug "
CONFIG += "debug warn_on " else: CONFIG += "release warn_off "
def main(): # Options for qmake DEFINES = "" CONFIG = "" # Setup command line parser parser = OptionParser(version="%prog 0.1") 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...
gump.addInputField( 284, 360, 200, 16, 0x834, 10, unicode( char.pos.x )+","+unicode( char.pos.y )+","+unicode( char.pos.z )+","+unicode( char.pos.map ) )
gump.addInputField( 284, 360, 200, 16, 0x834, 11, unicode( char.pos.x )+","+unicode( char.pos.y )+","+unicode( char.pos.z )+","+unicode( char.pos.map ) )
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...
gump.addInputField( 284, 200, 200, 16, 0x834, 42, unicode( char.gettag('notoriety') ) )
gump.addInputField( 284, 200, 200, 16, 0x834, 43, unicode( char.gettag('notoriety') ) )
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...
gump.addInputField( 284, 200, 200, 16, 0x834, 42, '' )
gump.addInputField( 284, 200, 200, 16, 0x834, 43, '' )
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...
gump.addInputField( 284, 200, 200, 16, 0x834, 42, unicode( char.gettag('poisoned') ) )
gump.addInputField( 284, 200, 200, 16, 0x834, 44, unicode( char.gettag('poisoned') ) )
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...
gump.addInputField( 284, 200, 200, 16, 0x834, 42, '' )
gump.addInputField( 284, 200, 200, 16, 0x834, 44, '' )
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...
char.invulnerable = int( textentries[ key ] )
char.invulnerable = str2bool( 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...
char.hidden = int( textentries[ key ] )
char.hidden = str2bool( 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...
char.dead = int( textentries[ key ] )
char.dead = str2bool( 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...
char.polymorph = int( textentries[ key ] )
char.polymorph = str2bool( 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...
char.incognito = int( textentries[ key ] )
char.incognito = str2bool( 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...
char.war = int( textentries[ key ] )
char.war = str2bool( 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...
char.invisible = int( textentries[ key ] )
char.invisible = str2bool( 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...
char.frozen = int( textentries[ key ] )
char.frozen = str2bool( 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...
armor = defender.itemonlayer(LAYER_LEGS)
armor = defender.itemonlayer(LAYER_PANTS)
def absorbdamage(defender, damage): # I think RunUO does this in a good fashion. # Determine the layer using a floating point chance. position = random.random() armor = None # 7% chance: Neck if position <= 0.07: armor = defender.itemonlayer(LAYER_NECK) # 7% chance: Gloves elif position <= 0.14: armor = defender.item...
socket.attachtarget( "commands.remove.doKick", [] )
socket.attachtarget( "commands.kickban.doKick", [] )
def commandKick( socket, cmd, args ): if len( args ) > 0: accname = args.lower() account = wolfpack.accounts.find( accname ) accountAction( socket, account, 'kick' ) return else: socket.sysmessage( "Please select the character to kick." ) socket.attachtarget( "commands.remove.doKick", [] ) return True
socket.attachtarget( "commands.remove.doBan", [] )
socket.attachtarget( "commands.kickban.doBan", [] )
def commandBan( socket, cmd, args ): if len( args ) > 0: accname = args.lower() account = wolfpack.accounts.find( accname ) accountAction( socket, account, 'ban' ) return else: socket.sysmessage( "Please select the character to kick-ban." ) socket.attachtarget( "commands.remove.doBan", [] ) return False
wolfpack.setoption('page_%u' % i, page.tostring()) wolfpack.setoption('pages', i)
wolfpack.setoption('page_' + str(i), page.tostring()) wolfpack.setoption('pages', str(i))
def save(self): i = 0 for page in self.pages: i += 1 wolfpack.setoption('page_%u' % i, page.tostring()) wolfpack.setoption('pages', i)
if not ( target.item.hasscript( 'food' ) or target.item.hasscript( 'blades' ) ): char.socket.clilocmessage( 502145 )
global ALLOWED if not target.item.id in ALLOWED: char.socket.clilocmessage(1060204)
def selecttarget( char, args, target ): # you cannot use skill while dead if char.dead: socket.clilocmessage( 502796 ) return potion = wolfpack.finditem(args[ 0 ]) if not potion: return # target item must exists in backpack #if not target.item.getoutmostitem() == char.backpack: # char.socket.clilocmessage( 500295 ) #...
strength = int( potion.gettag( 'potiontype' ) ) - 13
strength = int( potion.gettag( 'potiontype' ) ) - 14
def poisonit( char, args ): potion = wolfpack.finditem(args[ 0 ]) item = wolfpack.finditem(args[ 1 ]) if not potion or not item: return skill = char.skill[ POISONING ] # poison strength : lesser(1), normal, greater, deadly(4) strength = int( potion.gettag( 'potiontype' ) ) - 13 # consume the potion / add a blank bot...
bottle.moveto( char.pos.x, char.pos.y, char.pos.z, char.pos.map ) bottle.update()
bottle.update()
def poisonit( char, args ): potion = wolfpack.finditem(args[ 0 ]) item = wolfpack.finditem(args[ 1 ]) if not potion or not item: return skill = char.skill[ POISONING ] # poison strength : lesser(1), normal, greater, deadly(4) strength = int( potion.gettag( 'potiontype' ) ) - 13 # consume the potion / add a blank bot...
if skill < ( strength + 0.8 ) * 200:
if not char.checkskill( POISONING, MINSKILLS[strength], MAXSKILLS[strength] ):
def poisonit( char, args ): potion = wolfpack.finditem(args[ 0 ]) item = wolfpack.finditem(args[ 1 ]) if not potion or not item: return skill = char.skill[ POISONING ] # poison strength : lesser(1), normal, greater, deadly(4) strength = int( potion.gettag( 'potiontype' ) ) - 13 # consume the potion / add a blank bot...
char.checkskill( POISONING, 0, 1000 ) if random.randint( 0, 20 ) > ( skill - strength * 200 ): strength = strength - 1 if strength < 1: char.socket.clilocmessage( 502148 ) return 1 char.socket.clilocmessage( 1010518 ) else: char.socket.clilocmessage( 1010517 )
char.socket.clilocmessage(1010517)
def poisonit( char, args ): potion = wolfpack.finditem(args[ 0 ]) item = wolfpack.finditem(args[ 1 ]) if not potion or not item: return skill = char.skill[ POISONING ] # poison strength : lesser(1), normal, greater, deadly(4) strength = int( potion.gettag( 'potiontype' ) ) - 13 # consume the potion / add a blank bot...
item.settag( 'poisoning_uses', 20 - strength * 2 )
item.settag( 'poisoning_uses', 18 - strength * 2 )
def poisonit( char, args ): potion = wolfpack.finditem(args[ 0 ]) item = wolfpack.finditem(args[ 1 ]) if not potion or not item: return skill = char.skill[ POISONING ] # poison strength : lesser(1), normal, greater, deadly(4) strength = int( potion.gettag( 'potiontype' ) ) - 13 # consume the potion / add a blank bot...
file.replace('\\', '/')
file.replace("\\", '/')
def translate_path(self, uri): """ Translate a /-separated PATH to the local filename syntax.
filepath = os.path.normpath(os.path.abspath('web\\'))
filepath = os.path.normpath( os.path.abspath( 'web/' ) )
def run( self ):
chance = max(0, char.skill[MINING] - mining.ORES[resname][mining.MINSKILL]) / 1000.0 if not char.skill[MINING] >= reqskill:
minskill = reqskill - 250 maxskill = reqskill + 250 if char.skill[MINING] < reqskill:
def dosmelt(char, args): ore = args[0] forge = args[1] resname = args[2] if not mining.ORES.has_key(resname): char.socket.sysmessage('You cannot smelt that kind of ore.') return 0 success = 0 reqskill = mining.ORES[resname][mining.REQSKILL] chance = max(0, char.skill[MINING] - mining.ORES[resname][mining.MINSKILL]) /...
if not skills.checkskill(char, MINING, chance):
if not char.checkskill(MINING, minskill, maxskill):
def dosmelt(char, args): ore = args[0] forge = args[1] resname = args[2] if not mining.ORES.has_key(resname): char.socket.sysmessage('You cannot smelt that kind of ore.') return 0 success = 0 reqskill = mining.ORES[resname][mining.REQSKILL] chance = max(0, char.skill[MINING] - mining.ORES[resname][mining.MINSKILL]) /...
return _wolfpack.allitemsserials()
return _wolfpack.allcharsserials()
def allcharsserials(): return _wolfpack.allitemsserials()
gump.setType(0x87bde41a)
gump.setType(0x77bde41a)
def pages_gump(player, i=0): player.socket.closegump(0x87bde41a) global pages pages.check() # Make sure all pages are valid count = (pages.count() + 4) / 5 if count < 1: count = 1 if i >= count or i < 0: i = 0 gump = wolfpack.gumps.cGump() #gump.startPage(0) # Gump Background gump.addBackground( 0xE10, 480, 360 )...
baseid = argstring
if argstring.lower() == "nomulti": socket.sysmessage("You choose to nuke anything except items in multis") baseid = argstring else: if argstring.lower() == "onlymulti": socket.sysmessage("You choose to nuke just items in multis") baseid = argstring else: baseid = argstring
def nuke( socket, command, argstring ): argstring = argstring.strip() # Remove trailing and leading whitespaces if len( argstring ) > 0: if argstring.lower() == "all": gump = WarningGump( 1060635, 30720, "Wiping <i>all</i> items in the world.<br>Do you wish to proceed?", 0xFFC000, 420, 400, wipeAllWorld, [] ) gump.send...
message = "Casting spell %u (%s) on item %s (0x%x).\n" % (spell.spellid, spell.__class__.__name__, target.item.getname(), target.item.serial)
message = u"Casting spell %u (%s) on item %s (0x%x).\n" % (spell.spellid, spell.__class__.__name__, target.item.getname(), target.item.serial)
def target_response( char, args, target ): if char.socket: char.socket.deltag('cast_target') spell = args[0] mode = args[1] item = args[3] args = args[2] if type(item) == int: item = wolfpack.findobject(item) # Object went out of scope if not item: fizzle(char) return # Char Targets if target.char and (spell.validtar...
anvil = 1
anvil = True
def checkanvilandforge(char): # Check dynamic items. # We should later check for statics too forge = 0 anvil = 0 items = wolfpack.items(char.pos.x, char.pos.y, char.pos.map, 5) for item in items: if item.id == 0xFAF or item.id == 0xFB0: anvil = 1 elif item.id == 0xFB1 or (item.id >= 0x197A and item.id <= 0x19A9): forge...
forge = 1
forge = True
def checkanvilandforge(char): # Check dynamic items. # We should later check for statics too forge = 0 anvil = 0 items = wolfpack.items(char.pos.x, char.pos.y, char.pos.map, 5) for item in items: if item.id == 0xFAF or item.id == 0xFB0: anvil = 1 elif item.id == 0xFB1 or (item.id >= 0x197A and item.id <= 0x19A9): forge...
char.socket.cloclocmessage( 1011350 )
char.socket.cliclocmessage( 1011350 )
def tracking( char, skill ): if skill != TRACKING: return 0 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' ) char.socket.cloclocmessage( 1011350 ) # Wh...
if target.char.priv & 0x04 or target.char.dead:
if target.char.invulnerable or target.char.dead:
def response( char, args, target ): socket = char.socket # you cannot use skill while dead if char.dead: socket.clilocmessage( 502796, "", 0x3b2, 3, char ) return # Check for a valid target if not target.char: socket.clilocmessage( 502801, "", 0x3b2, 3, char ) return # it's a player if target.char.socket: socket.cl...
skills.animaltaming.removetags( totame )
removetags( totame )
def callback( char, args ): if len( args ) < 2: return # animal = args[ 1 ] totame = wolfpack.findchar( args[ 1 ] ) if not totame: return if not char: return # tamer dead : 502796 if char.dead: skills.animaltaming.removetags( totame ) char.socket.clilocmessage( 502796, "", 0x3b2, 3, totame ) return # out of range :...
totame.tamed = true
totame.tamed = 1
def callback( char, args ): if len( args ) < 2: return # animal = args[ 1 ] totame = wolfpack.findchar( args[ 1 ] ) if not totame: return if not char: return # tamer dead : 502796 if char.dead: skills.animaltaming.removetags( totame ) char.socket.clilocmessage( 502796, "", 0x3b2, 3, totame ) return # out of range :...
if not veingem: veingem = createwoodgem( target, pos )
def response( args ): target = args[0] tool = args[1] char = args[2] socket = char.socket pos = target.pos if not socket: return False if socket.hastag('is_lumberjacking') and ( socket.gettag( 'is_lumberjacking' ) > wolfpack.time.currenttime() ): socket.clilocmessage( 500119, "", GRAY ) return False else: socket.delt...
if resourcecount <= 0:
if resourcecount <= 0 and not resource.hastag( 'resource_empty' ): resource.settag( 'resource_empty', 'true' ) resource.addtimer( woodrespawndelay, "skills.lumberjacking.respawnvein", [], True ) socket.clilocmessage( 500488, '', GRAY ) return False elif resource.hastag( 'resource_empty' ):
def hack_logs( char, target, tool, resource ): socket = char.socket pos = target.pos resname = resource.gettag( 'resname' ) amount = resource.gettag( 'resourcecount' ) resourcecount = int(resource.gettag( 'resourcecount' )) # No resource left to harvest? if resourcecount <= 0: socket.clilocmessage( 500488, '', GRAY ...
elif resource.gettag( 'resourcecount' ) == 0: if not resource.hastag ('resource_empty') and int( resource.gettag( 'resourcecount' ) ) == 0: resource.settag( 'resource_empty', 'true' ) resource.addtimer( woodrespawndelay, "skills.lumberjacking.respawnvein", [], True )
def successlumberjacking( char, args ): socket = char.socket pos = args[0] # Target POS resource = wolfpack.finditem(args[1]) amount = args[2] tool = wolfpack.finditem(args[3]) resname = args[4] table = args[5] if not tool: return False # Lets make sure we stayed next to the tree # Player can reach that ? if char.pos...
socket.systemmessage(unicode(message))
socket.sysmessage(unicode(message))
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) ...
valid = 0 if valid and not item.hastag('spawntype') or not item.hastag('spawndef'): valid = 0
valid = False if valid and (not item.hastag('spawntype') or not item.hastag('spawndef')): valid = False
def processSpawns(process): # Process the designated partition for i in range(0, len(process)): item = wolfpack.finditem(process[i]) # Check if the spawn is valid. valid = item != None if valid and not item.hasscript( 'spawngem' ): valid = 0 if valid and not item.hastag('spawntype') or not item.hastag('spawndef'): val...
if response.button == 1 and player in guild.members:
if response.button == 1 and (player in guild.members or player in guild.canidates):
def guildMembershipResponse(player, arguments, response): guild = wolfpack.findguild(arguments[0]) if not guild: player.socket.sysmessage(tr('The guild you try to manage has already been disbanded.')) return if response.button == 1 and player in guild.members: # Toggle Guildsign if 1 in response.switches: if player i...
def parseSphere(file, map):
def parseSphere51a(file, map):
def parseSphere(file, map): itemid = -1 props = {} count = 0 warnings = '' while 1: line = file.readline() if not line: break line = line.strip() if line.startswith('[WORLDITEM ') and line.endswith(']'): itemid = int(line[11:len(line)-1], 16) elif itemid != -1 and "=" in line: (key, value) = line.split('=', 1) props[...
socket = player.socket
def npcquestmenu(npc, player, questamount): socket = player.socket dialog = cGump( nomove=1, x=100, y=30 ) dialog.addResizeGump(37, 14, 9260, 445, 422) dialog.addTiledGump(81, 35, 358, 386, 5124, 0) dialog.addTiledGump(55, 32, 30, 391, 10460, 0) dialog.addTiledGump(439, 32, 30, 391, 10460, 0) dialog.addGump(-12, 290,...
dialog.addText(136, 79, npc.name + ", from: " + npc.region.name, 1149)
if npc.region: dialog.addText(136, 79, npc.name + ", from: " + npc.region.name, 1149) else: dialog.addText(136, 79, npc.name, 1149)
def npcquestmenu(npc, player, questamount): socket = player.socket dialog = cGump( nomove=1, x=100, y=30 ) dialog.addResizeGump(37, 14, 9260, 445, 422) dialog.addTiledGump(81, 35, 358, 386, 5124, 0) dialog.addTiledGump(55, 32, 30, 391, 10460, 0) dialog.addTiledGump(439, 32, 30, 391, 10460, 0) dialog.addGump(-12, 290,...
value = fishItem[ 1 ] * skill + fishItem[ 2 ]
value = int( fishItem[ 1 ] * skill + fishItem[ 2 ] )
def getFish( fishSkill, deepwater ): # 120 is the maximum skill we're going to use here skill = min( 120, floor( fishSkill / 10 ) ) itemid = None itemname = None possibleitems = [] maxvalue = 0 # We calculate a random value from 0 to this value and # then check the array above for matching items # Fill items and nam...
gems = wolfpack.items( pos.x, pos.y, pos.map, 4 )
gems = wolfpack.items( pos.x, pos.y, pos.map, 0 )
def getvein( socket, pos, target ): #Check if we have wood_gems near ( range = 4) gems = wolfpack.items( pos.x, pos.y, pos.map, 4 ) for gem in gems: if wolfpack.finditem( gem.serial ): if gem.hastag('resource') and gem.gettag('resource') == 'wood' and gem.hastag('resname') and gem.id == hex2dec( 0x1ea7 ): return gem br...
if wolfpack.finditem( gem.serial ): if gem.hastag('resource') and gem.gettag('resource') == 'wood' and gem.hastag('resname') and gem.id == hex2dec( 0x1ea7 ): return gem break
if gem.hastag('resource') and gem.gettag('resource') == 'wood' and gem.hastag('resname') and gem.id == 0x1ea7: return gem break
def getvein( socket, pos, target ): #Check if we have wood_gems near ( range = 4) gems = wolfpack.items( pos.x, pos.y, pos.map, 4 ) for gem in gems: if wolfpack.finditem( gem.serial ): if gem.hastag('resource') and gem.gettag('resource') == 'wood' and gem.hastag('resname') and gem.id == hex2dec( 0x1ea7 ): return gem br...
return
return OOPS
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 # Lets make sure the tag exists. if not item.hastag( 'potiontype' ): return OOPS else: potiontype = item.gettag( ...
return
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 # Lets make sure the tag exists. if not item.hastag( 'potiontype' ): return OOPS else: potiontype = item.gettag( ...
if potiontype in [ 1, 2, 3 ]:
elif potiontype in [1,2,3]:
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 # Lets make sure the tag exists. if not item.hastag( 'potiontype' ): return OOPS else: potiontype = item.gettag( ...
char.socket.clilocmessage(1005000)
socket.clilocmessage(1005000)
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 # Lets make sure the tag exists. if not item.hastag( 'potiontype' ): return OOPS else: potiontype = item.gettag( ...
char.socket.clilocmessage(1049547)
socket.clilocmessage(1049547) if char.hitpoints > char.maxhitpoints: char.hitpoints = char.maxhitpoints char.updatehealth()
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 # Lets make sure the tag exists. if not item.hastag( 'potiontype' ): return OOPS else: potiontype = item.gettag( ...
return
return OK
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 # Lets make sure the tag exists. if not item.hastag( 'potiontype' ): return OOPS else: potiontype = item.gettag( ...
char.socket.clilocmessage(502173) return
socket.clilocmessage(502173) return OK
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 # Lets make sure the tag exists. if not item.hastag( 'potiontype' ): return OOPS else: potiontype = item.gettag( ...
char.socket.clilocmessage( 502173, '', GRAY ) return
socket.clilocmessage( 502173, '', GRAY ) return OK
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 # Lets make sure the tag exists. if not item.hastag( 'potiontype' ): return OOPS else: potiontype = item.gettag( ...
return elif potiontype in [ 0 ]: nightsightPotion( char, potion ) return
return OK elif potiontype in [ 18, 19 ]: refreshPotion( char, item, potiontype ) return OK
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 # Lets make sure the tag exists. if not item.hastag( 'potiontype' ): return OOPS else: potiontype = item.gettag( ...
socket.sysmessage( 'Unknown potion...' ) return
return OOPS
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 # Lets make sure the tag exists. if not item.hastag( 'potiontype' ): return OOPS else: potiontype = item.gettag( ...
def nightsightPotion( char, potion ): char.message( "This potion should help you to see in the dark!" ) char.message( "But... It's not done yet. Sorry :(" )
def consumePotion( char, potion, givebottle ): if potion.amount == 1: potion.delete() else: potion.amount -= 1 potion.update() if givebottle == TRUE: # Lets add an empty bottle! bottle = wolfpack.additem( 'f0e' ) # Empty Bottle Definition if not wolfpack.utilities.tocontainer( bottle, char.getbackpack() ): bottle.upd...
char.settag( "heal_timer", wolfpack.time.servertime() + HEAL_POT_DELAY ) return
char.settag( "heal_timer", time.servertime() + HEAL_POT_DELAY ) return OK
def checkHealTimer( char ): if not char.hastag( "heal_timer" ): char.settag( "heal_timer", wolfpack.time.servertime() + HEAL_POT_DELAY ) return # Compare elapsed = int( char.gettag( "heal_timer" ) ) if elapsed > wolfpack.time.servertime(): char.socket.clilocmessage( 500235, '', GRAY ) # You must wait 10 seconds befor...
if elapsed > wolfpack.time.servertime():
if elapsed > time.servertime():
def checkHealTimer( char ): if not char.hastag( "heal_timer" ): char.settag( "heal_timer", wolfpack.time.servertime() + HEAL_POT_DELAY ) return # Compare elapsed = int( char.gettag( "heal_timer" ) ) if elapsed > wolfpack.time.servertime(): char.socket.clilocmessage( 500235, '', GRAY ) # You must wait 10 seconds befor...
char.settag( "heal_timer", wolfpack.time.servertime() + HEAL_POT_DELAY ) return def healPotion( char, potion, healtype ): if not canUsePotion( char, potion ) or not checkHealTimer( char ): return OOPS amount = 0 if healtype == 1: amount = randint( POTION_LESSERHEAL_RANGE[0], POTION_LESSERHEAL_RANGE[1] ) elif he...
char.settag( "heal_timer", time.servertime() + HEAL_POT_DELAY ) return OK
def checkHealTimer( char ): if not char.hastag( "heal_timer" ): char.settag( "heal_timer", wolfpack.time.servertime() + HEAL_POT_DELAY ) return # Compare elapsed = int( char.gettag( "heal_timer" ) ) if elapsed > wolfpack.time.servertime(): char.socket.clilocmessage( 500235, '', GRAY ) # You must wait 10 seconds befor...
char.dexterity = char.dexterity - bonus char.maxstamina = char.maxstamina - bonus
char.dexterity2 -= bonus char.dexterity -= bonus
def effecttimer( time, args ): char = args[0] effecttype = args[1] bonus = args[2] if effecttype == 6 or effecttype == 7: if not char.hastag( 'agility_effect' ): return OOPS char.dexterity = char.dexterity - bonus char.maxstamina = char.maxstamina - bonus if char.stamina > char.maxstamina: char.stamina = char.maxstami...
return
return OK
def effecttimer( time, args ): char = args[0] effecttype = args[1] bonus = args[2] if effecttype == 6 or effecttype == 7: if not char.hastag( 'agility_effect' ): return OOPS char.dexterity = char.dexterity - bonus char.maxstamina = char.maxstamina - bonus if char.stamina > char.maxstamina: char.stamina = char.maxstami...
char.strength = char.strength - bonus
char.strength2 -= bonus char.strength -= bonus
def effecttimer( time, args ): char = args[0] effecttype = args[1] bonus = args[2] if effecttype == 6 or effecttype == 7: if not char.hastag( 'agility_effect' ): return OOPS char.dexterity = char.dexterity - bonus char.maxstamina = char.maxstamina - bonus if char.stamina > char.maxstamina: char.stamina = char.maxstami...
char.intelligence = char.intelligence - bonus char.maxmana = char.maxmana - bonus
char.intelligence2 -= bonus char.intelligence -= bonus
def effecttimer( time, args ): char = args[0] effecttype = args[1] bonus = args[2] if effecttype == 6 or effecttype == 7: if not char.hastag( 'agility_effect' ): return OOPS char.dexterity = char.dexterity - bonus char.maxstamina = char.maxstamina - bonus if char.stamina > char.maxstamina: char.stamina = char.maxstami...
return
return OK else: return OOPS """ ----------------------------- -- POTION FUNCTIONS -- ----------------------------- """ def nightsightPotion( char, potion ): if char.hastag('nightsight'): bonus = char.gettag('nightsight') char.lightbonus = max(0, char.lightbonus - bonus) bonus = min(18, math.floor(18 * (char.skill...
def effecttimer( time, args ): char = args[0] effecttype = args[1] bonus = args[2] if effecttype == 6 or effecttype == 7: if not char.hastag( 'agility_effect' ): return OOPS char.dexterity = char.dexterity - bonus char.maxstamina = char.maxstamina - bonus if char.stamina > char.maxstamina: char.stamina = char.maxstami...
if not canUsePotion( char, potion ): return OOPS
def agilityPotion( char, potion, agilitytype ): if not canUsePotion( char, potion ): return OOPS bonus = 0 # Agility if agilitytype == 6: bonus = 10 # Greater Agility elif agilitytype == 7: bonus = 20 else: return OOPS char.dexterity = char.dexterity + bonus char.maxstamina = char.maxstamina + bonus wolfpack.addti...
if agilitytype == 6:
if agilitytype == 7:
def agilityPotion( char, potion, agilitytype ): if not canUsePotion( char, potion ): return OOPS bonus = 0 # Agility if agilitytype == 6: bonus = 10 # Greater Agility elif agilitytype == 7: bonus = 20 else: return OOPS char.dexterity = char.dexterity + bonus char.maxstamina = char.maxstamina + bonus wolfpack.addti...
elif agilitytype == 7:
elif agilitytype == 8:
def agilityPotion( char, potion, agilitytype ): if not canUsePotion( char, potion ): return OOPS bonus = 0 # Agility if agilitytype == 6: bonus = 10 # Greater Agility elif agilitytype == 7: bonus = 20 else: return OOPS char.dexterity = char.dexterity + bonus char.maxstamina = char.maxstamina + bonus wolfpack.addti...
else: return OOPS char.dexterity = char.dexterity + bonus char.maxstamina = char.maxstamina + bonus
else: return OOPS char.dexterity2 = bonus char.dexterity += bonus
def agilityPotion( char, potion, agilitytype ): if not canUsePotion( char, potion ): return OOPS bonus = 0 # Agility if agilitytype == 6: bonus = 10 # Greater Agility elif agilitytype == 7: bonus = 20 else: return OOPS char.dexterity = char.dexterity + bonus char.maxstamina = char.maxstamina + bonus wolfpack.addti...
if strengthtype == 8:
if strengthtype == 9:
def strengthPotion( char, potion, strengthtype ): if not canUsePotion( char, potion ): return OOPS bonus = 0 # Agility if strengthtype == 8: bonus = 10 # Greater Agility elif strengthtype == 9: bonus = 20 else: return OOPS char.strength = char.strength + bonus char.maxhitpoints = char.maxhitpoints + bonus wolfpack...
elif strengthtype == 9:
elif strengthtype == 10:
def strengthPotion( char, potion, strengthtype ): if not canUsePotion( char, potion ): return OOPS bonus = 0 # Agility if strengthtype == 8: bonus = 10 # Greater Agility elif strengthtype == 9: bonus = 20 else: return OOPS char.strength = char.strength + bonus char.maxhitpoints = char.maxhitpoints + bonus wolfpack...
else: return OOPS char.strength = char.strength + bonus char.maxhitpoints = char.maxhitpoints + bonus
else: return OOPS char.strength2 = bonus char.strength += bonus
def strengthPotion( char, potion, strengthtype ): if not canUsePotion( char, potion ): return OOPS bonus = 0 # Agility if strengthtype == 8: bonus = 10 # Greater Agility elif strengthtype == 9: bonus = 20 else: return OOPS char.strength = char.strength + bonus char.maxhitpoints = char.maxhitpoints + bonus wolfpack...
char.socket.sysmessage( "You shouldn't drink that..." )
levels = [14, 15, 16, 17] if poisontype == levels[0]: poison.poison(char, 0) elif poisontype == levels[1]: poison.poison(char, 1) elif poisontype == levels[2]: poison.poison(char, 2) elif poisontype == levels[3]: poison.poison(char, 3) else: return OOPS char.action( ANIM_FIDGET3 ) char.soundeffect( SOUND_DRINK1 ) cons...
def poisonPotion( char, potion, poisontype ): char.socket.sysmessage( "You shouldn't drink that..." ) return
multiitem.delete() contador += 1
try: n = multiitem.player except: multiitem.delete() contador += 1
def demolish( char, item ): if not checkAccess(char, item.multi, ACCESS_OWNER): char.socket.sysmessage('You are not the owner of this house.') return # If Sign has no Multi, then we have problems here if not item.hastag( 'house' ): return # Assign the Multi multi = wolfpack.findobject( item.gettag( 'house' ) ) # Look...
thread = WebserverThread( WEBSERVER_THREAD )
thread = WebserverThread( REMOTEADMIN_PORT )
def onLoad(): web.sessions.clear_sessions() # Start the Thread global thread thread = WebserverThread( WEBSERVER_THREAD ) thread.start()
char.socket.attachtarget( "weapons.blades.response", [ item.serial ] )
char.socket.attachtarget( "blades.response", [ item.serial ] )
def onUse( char, item ): char.socket.clilocmessage( 0xF69A6 ) # What do you want to use this on? char.socket.attachtarget( "weapons.blades.response", [ item.serial ] ) return 1
fp.write(data)
fp.write(data.encode('utf-8'))
def run(self): while not self.stopped.isSet(): # Check if status data is available and process it data = None self.mutex.acquire() if self.data: data = self.data self.data = None self.mutex.release() if data: global outputfile try: fp = file(outputfile, 'wu') fp.write(data) fp.close() except Exception, e: console.log(...
MySQL_LIBSEARCHPATH = [ "/usr/local/lib/mysql/libmysqlclient*.so", \ "/usr/lib/mysql/libmysqlclient*.so", \ "/usr/local/lib/libmysqlclient*.so", \ "/usr/lib/libmysqlclient*.so" ] MySQL_LIBSTATICSEARCHPATH = [ "/usr/local/lib/mysql/libmysqlclient*.a", \ "/usr/lib/mysql/libmysqlclient*.a", \ "/usr/local/lib/libmysqlclien...
MySQL_LIBSEARCHPATH = [ \ "/usr/local/lib/libmysqlclient*.so", \ "/usr/local/lib/mysql/libmysqlclient*.so", \ "/usr/lib/libmysqlclient*.so", \ "/usr/lib/mysql/libmysqlclient*.so" ] MySQL_LIBSTATICSEARCHPATH = [ \ "/usr/local/lib/libmysqlclient*.a", \ "/usr/local/lib/mysql/libmysqlclient*.a", \ "/usr/lib/libmysqlclient*...
def checkMySQL(options): if sys.platform == "win32": MySQL_LIBSEARCHPATH = [ sys.prefix + "\Libs\mysqlclient*.lib" ] MySQL_INCSEARCHPATH = [ sys.prefix + "\include\mysql.h" ] elif sys.platform == "linux2": MySQL_LIBSEARCHPATH = [ "/usr/local/lib/mysql/libmysqlclient*.so", \ "/usr/lib/mysql/libmysqlclient*.so", \ "/usr/...
PYTHONLIBSEARCHPATH += [ "/usr/local/lib/libpython2.3*.so", \ "/usr/local/lib/[Pp]ython*/libpython2.3*.so", \ "/usr/lib/libpython2.3*.so", \ "/usr/lib/[Pp]ython*/libpython2.3*.so", \ "/usr/lib/[Pp]ython*/config/libpython2.3*.so", \ "/usr/local/lib/[Pp]ython*/config/libpython2.3*.so"] PYTHONLIBSTATICSEARCHPATH += [ "/us...
PYTHONLIBSEARCHPATH += [ \ "/usr/local/lib/libpython2.3*.so", \ "/usr/local/lib/[Pp]ython*/libpython2.3*.so", \ "/usr/local/lib/[Pp]ython*/config/libpython2.3*.so", \ "/usr/lib/libpython2.3*.so", \ "/usr/lib/[Pp]ython*/libpython2.3*.so", \ "/usr/lib/[Pp]ython*/config/libpython2.3*.so" ] PYTHONLIBSTATICSEARCHPATH += [ \...
def checkPython( options, lookForHeaders, lookForLib ): PYTHONINCSEARCHPATH = [ distutils.sysconfig.get_python_inc() + os.path.sep + "Python.h" ] if distutils.sysconfig.get_config_vars().has_key("DESTSHARED"): PYTHONLIBSEARCHPATH = [ distutils.sysconfig.get_config_vars()["DESTSHARED"] + os.path.sep + "libpython*" ] els...
PYTHONLIBSEARCHPATH += [ "/usr/local/lib/libpython2.3*.so", \ "/usr/local/lib/[Pp]ython2.3*/libpython2.3*.so", \ "/usr/lib/libpython2.3*.so", \ "/usr/lib/[Pp]ython2.3*/libpython2.3*.so", \ "/usr/lib/[Pp]ython2.3*/config/libpython2.3*.so", \ "/usr/local/lib/[Pp]ython2.3*/config/libpython2.3*.so"] PYTHONLIBSTATICSEARCHPA...
PYTHONLIBSEARCHPATH += [ \ "/usr/local/lib/libpython2.3*.so", \ "/usr/local/lib/[Pp]ython2.3*/libpython2.3*.so", \ "/usr/local/lib/[Pp]ython2.3*/config/libpython2.3*.so", \ "/usr/lib/libpython2.3*.so", \ "/usr/lib/[Pp]ython2.3*/libpython2.3*.so", \ "/usr/lib/[Pp]ython2.3*/config/libpython2.3*.so" ] PYTHONLIBSTATICSEARC...
def checkPython( options, lookForHeaders, lookForLib ): PYTHONINCSEARCHPATH = [ distutils.sysconfig.get_python_inc() + os.path.sep + "Python.h" ] if distutils.sysconfig.get_config_vars().has_key("DESTSHARED"): PYTHONLIBSEARCHPATH = [ distutils.sysconfig.get_config_vars()["DESTSHARED"] + os.path.sep + "libpython*" ] els...
PYTHONINCSEARCHPATH += [ "/System/Library/Frameworks/Python.framework/Versions/Current/Headers/Python.h" ]
PYTHONINCSEARCHPATH += [ \ "/System/Library/Frameworks/Python.framework/Versions/Current/Headers/Python.h" ]
def checkPython( options, lookForHeaders, lookForLib ): PYTHONINCSEARCHPATH = [ distutils.sysconfig.get_python_inc() + os.path.sep + "Python.h" ] if distutils.sysconfig.get_config_vars().has_key("DESTSHARED"): PYTHONLIBSEARCHPATH = [ distutils.sysconfig.get_config_vars()["DESTSHARED"] + os.path.sep + "libpython*" ] els...
PYTHONLIBSTATICSEARCHPATH += ["/System/Library/Frameworks/Python.framework/Versions/Current/Python", \ "/System/Library/Frameworks/Python.framework/Versions/Current/lib/[Pp]ython*/config/libpython*.a", \ "/usr/local/lib/[Pp]ython*/config/libpython*.a"]
PYTHONLIBSTATICSEARCHPATH += [ \ "/usr/local/lib/[Pp]ython*/config/libpython*.a", \ "/System/Library/Frameworks/Python.framework/Versions/Current/Python", \ "/System/Library/Frameworks/Python.framework/Versions/Current/lib/[Pp]ython*/config/libpython*.a" ]
def checkPython( options, lookForHeaders, lookForLib ): PYTHONINCSEARCHPATH = [ distutils.sysconfig.get_python_inc() + os.path.sep + "Python.h" ] if distutils.sysconfig.get_config_vars().has_key("DESTSHARED"): PYTHONLIBSEARCHPATH = [ distutils.sysconfig.get_config_vars()["DESTSHARED"] + os.path.sep + "libpython*" ] els...