当前位置: 首页>>代码示例>>Python>>正文


Python Location.create方法代码示例

本文整理汇总了Python中org.rs2server.rs2.model.Location.create方法的典型用法代码示例。如果您正苦于以下问题:Python Location.create方法的具体用法?Python Location.create怎么用?Python Location.create使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.rs2server.rs2.model.Location的用法示例。


在下文中一共展示了Location.create方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: objectOptionOne_1740

# 需要导入模块: from org.rs2server.rs2.model import Location [as 别名]
# 或者: from org.rs2server.rs2.model.Location import create [as 别名]
def objectOptionOne_1740(player, obj):
	if(obj.getLocation().getX() == 3417 and obj.getLocation().getY() == 3493):
		player.setTeleportTarget(Location.create(3416, 3485, 0))
	elif(obj.getLocation().getX() == 3417 and obj.getLocation().getY() == 3485):
		player.setTeleportTarget(Location.create(3417, 3485, 0))
	else:
		player.setTeleportTarget(Location.create(3205, 3209, 1))
开发者ID:ThomasPapp,项目名称:turtle93765scape635,代码行数:9,代码来源:objectinteract.py

示例2: objectOptionOne_1738

# 需要导入模块: from org.rs2server.rs2.model import Location [as 别名]
# 或者: from org.rs2server.rs2.model.Location import create [as 别名]
def objectOptionOne_1738(player, obj):
	if(obj.getLocation().getX() == 3417 and obj.getLocation().getY() == 3492):
		player.setTeleportTarget(Location.create(3417, 3492, 1))
	elif(obj.getLocation().getX() == 3417 and obj.getLocation().getY() == 3484):
		player.setTeleportTarget(Location.create(3417, 3484, 1))
	elif(obj.getLocation().getX() == 3204 and obj.getLocation().getY() == 3207):
		player.setTeleportTarget(Location.create(3205, 3209, 1))
开发者ID:ThomasPapp,项目名称:turtle93765scape635,代码行数:9,代码来源:objectinteract.py

示例3: objectOptionOne_9368

# 需要导入模块: from org.rs2server.rs2.model import Location [as 别名]
# 或者: from org.rs2server.rs2.model.Location import create [as 别名]
def objectOptionOne_9368(player, obj):
	if(player.getLocation().equals(Location.create(2399, 5167, 0))):
		if(player.getMinigame() != None):
			player.getMinigame().quit(player)
		
	elif(player.getLocation().equals(Location.create(2399, 5169, 0))):
		player.getActionSender().sendMessage('The heat of the barrier prevents you from walking through.')
开发者ID:ThomasPapp,项目名称:turtle93765scape635,代码行数:9,代码来源:objectinteract.py

示例4: objectOptionOne_2185

# 需要导入模块: from org.rs2server.rs2.model import Location [as 别名]
# 或者: from org.rs2server.rs2.model.Location import create [as 别名]
def objectOptionOne_2185(player, obj):
	if(player.getQuestStorage().getQuestStage(TreeGnomeVillage.QUEST_ID) >= 8):
		if(player.getLocation().equals(Location.create(2509, 3252, 0))):
			player.setTeleportTarget(Location.create(2509, 3254, 0))
			DialogueManager.openDialogue(player, 469)
		elif(player.getLocation().equals(Location.create(2509, 3254, 0))):
			player.setTeleportTarget(Location.create(2509, 3252, 0))
开发者ID:SiF2,项目名称:Project_PS,代码行数:9,代码来源:objectinteract.py

示例5: objectOptionOne_26439

# 需要导入模块: from org.rs2server.rs2.model import Location [as 别名]
# 或者: from org.rs2server.rs2.model.Location import create [as 别名]
def objectOptionOne_26439(player, obj):
	if(obj.getLocation().getY() == 5344):
		player.setTeleportTarget(Location.create(player.getLocation().getX(), 5333, 2))
	elif(obj.getLocation().getY() == 5333):
		player.setTeleportTarget(Location.create(player.getLocation().getX(), 5344, 2))
		player.getSkills().setLevel(5, 0)
		player.getCombatState().setSpecialEnergy(0)
		player.getActionSender().sendMessage('The extreme evil of this area leaves your Prayer drained.')
开发者ID:ThomasPapp,项目名称:turtle93765scape635,代码行数:10,代码来源:objectinteract.py

示例6: objectOptionOne_lever

# 需要导入模块: from org.rs2server.rs2.model import Location [as 别名]
# 或者: from org.rs2server.rs2.model.Location import create [as 别名]
def objectOptionOne_lever(player, obj):
	loc = None
	if player.getLocation().getX() > 3089 and player.getLocation().getY() < 3959:
		loc = Location.create(2539, 4712, 0)
		TeleportAction.getTeleportAction(player).castTeleport(loc)
	elif player.getLocation().getX() < 3000 and player.getLocation().getY() > 4700:
		loc = Location.create(3091, 3956, 0)
		TeleportAction.getTeleportAction(player).castTeleport(loc)
开发者ID:ThomasPapp,项目名称:turtle93765scape635,代码行数:10,代码来源:objectinteract.py

示例7: objectOptionOne_2112

# 需要导入模块: from org.rs2server.rs2.model import Location [as 别名]
# 或者: from org.rs2server.rs2.model.Location import create [as 别名]
def objectOptionOne_2112(player, obj):
	if(player.getLocation().getY() >= 9757):
		if(player.getSkills().getLevelForExperience(Skills.MINING) < 60):
			player.getActionSender().sendMessage('You need a Mining level of 60 to enter the Mining Guild.')
			return
		
		player.setTeleportTarget(Location.create(3046, 9756, 0))
	else:
		player.setTeleportTarget(Location.create(3046, 9757, 0))
开发者ID:ThomasPapp,项目名称:turtle93765scape635,代码行数:11,代码来源:objectinteract.py

示例8: objectOptionOne_2623

# 需要导入模块: from org.rs2server.rs2.model import Location [as 别名]
# 或者: from org.rs2server.rs2.model.Location import create [as 别名]
def objectOptionOne_2623(player, obj):
	if(player.getInventory().contains(1590)):
		if(player.getLocation().equals(Location.create(2924, 9803, 0))):
			player.getWalkingQueue().addStep(2923, 9803)
		elif(player.getLocation().equals(Location.create(2923, 9803, 0))):
			player.getWalkingQueue().addStep(2924, 9803)
		
		if(!player.getWalkingQueue().isEmpty()):
			player.getWalkingQueue().finish()
开发者ID:ThomasPapp,项目名称:turtle93765scape635,代码行数:11,代码来源:objectinteract.py

示例9: objectOptionOne_26338

# 需要导入模块: from org.rs2server.rs2.model import Location [as 别名]
# 或者: from org.rs2server.rs2.model.Location import create [as 别名]
def objectOptionOne_26338(player, obj):
	if(player.getLocation().getY() <= 3715):
		if(player.getSkills().getLevel(Skills.STRENGTH) < 60):
			player.getActionSender().sendMessage('You need a Strength level of 60 to move this boulder.')
			return
		
		player.setTeleportTarget(Location.create(player.getLocation().getX(), player.getLocation().getY() + 4, 0))
	else:
		player.setTeleportTarget(Location.create(player.getLocation().getX(), player.getLocation().getY() - 4, 0))
开发者ID:ThomasPapp,项目名称:turtle93765scape635,代码行数:11,代码来源:objectinteract.py

示例10: objectOptionOne_12045

# 需要导入模块: from org.rs2server.rs2.model import Location [as 别名]
# 或者: from org.rs2server.rs2.model.Location import create [as 别名]
def objectOptionOne_12045(player, obj):
	if(player.getLocation().equals(
		Location.create(2466, 4433, 0))):
		player.getWalkingQueue().addStep(2466, 4434)
	elif(player.getLocation().equals(
		Location.create(2470, 4438, 0))):
		player.getWalkingQueue().addStep(2469, 4438)
	
	if(!player.getWalkingQueue().isEmpty()):
		player.getWalkingQueue().finish()
开发者ID:ThomasPapp,项目名称:turtle93765scape635,代码行数:12,代码来源:objectinteract.py

示例11: objectOptionOne_3444

# 需要导入模块: from org.rs2server.rs2.model import Location [as 别名]
# 或者: from org.rs2server.rs2.model.Location import create [as 别名]
def objectOptionOne_3444(player, obj):
	if(player.getLocation().equals(
		Location.create(3405, 9895, 0))):
		player.getWalkingQueue().addStep(3405, 9894)
	elif(player.getLocation().equals(
		Location.create(3405, 9894, 0))):
		player.getWalkingQueue().addStep(3405, 9895)
	
	if(!player.getWalkingQueue().isEmpty()):
		player.getWalkingQueue().finish()
开发者ID:ThomasPapp,项目名称:turtle93765scape635,代码行数:12,代码来源:objectinteract.py

示例12: objectOptionOne_swamp_boaty

# 需要导入模块: from org.rs2server.rs2.model import Location [as 别名]
# 或者: from org.rs2server.rs2.model.Location import create [as 别名]
def objectOptionOne_swamp_boaty(player, obj):
	if(obj.getLocation().equals(Location.create(3523, 3284, 0))):
		player.getActionSender().sendMessage('You board the boat...')
		player.setTeleportTarget(Location.create(3500, 3380, 0))
		player.getActionSender().sendMessage('You arrive at the other end of the river.')
		
	elif(obj.getLocation().equals(Location.create(3498, 3377, 0))):
		player.getActionSender().sendMessage('You board the boat...')
		player.setTeleportTarget(Location.create(3522, 3284, 0))
		player.getActionSender().sendMessage('You arrive at the other end of the river.')	
开发者ID:ThomasPapp,项目名称:turtle93765scape635,代码行数:12,代码来源:objectinteract.py

示例13: objectOptionOne_2186

# 需要导入模块: from org.rs2server.rs2.model import Location [as 别名]
# 或者: from org.rs2server.rs2.model.Location import create [as 别名]
def objectOptionOne_2186(player, obj):
	if(player.getLocation().equals(Location.create(2515, 3161, 0))):
		player.getWalkingQueue().addStep(2515, 3160)
		player.getActionSender().sendMessage('You squeeze through the railing.')
	elif(player.getLocation().equals(Location.create(2515, 3160, 0))):
		player.getWalkingQueue().addStep(2515, 3161)
		player.getActionSender().sendMessage('You squeeze through the railing.')
	
	if(!player.getWalkingQueue().isEmpty()):
		player.getWalkingQueue().finish()
开发者ID:ThomasPapp,项目名称:turtle93765scape635,代码行数:12,代码来源:objectinteract.py

示例14: objectOptionOne_3445

# 需要导入模块: from org.rs2server.rs2.model import Location [as 别名]
# 或者: from org.rs2server.rs2.model.Location import create [as 别名]
def objectOptionOne_3445(player, obj):
	if(player.getLocation().equals(
		Location.create(3432, 9897, 0))):
		player.getWalkingQueue().addStep(3431, 9897)
	elif(player.getLocation().equals(
		Location.create(3431, 9897, 0))):
		player.getWalkingQueue().addStep(3432, 9897)
	
	if(!player.getWalkingQueue().isEmpty()):
		player.getWalkingQueue().finish()
开发者ID:ThomasPapp,项目名称:turtle93765scape635,代码行数:12,代码来源:objectinteract.py

示例15: objectOptionOne_9369

# 需要导入模块: from org.rs2server.rs2.model import Location [as 别名]
# 或者: from org.rs2server.rs2.model.Location import create [as 别名]
def objectOptionOne_9369(player, obj):
	if(player.getLocation().equals(Location.create(2399, 5177, 0))):
		World.getWorld().getFightPits().addWaitingPlayer(player)
		player.getWalkingQueue().reset()
		player.getWalkingQueue().addStep(2399, 5175)
		player.getWalkingQueue().finish()
	elif(player.getLocation().equals(Location.create(2399, 5175, 0))):
		player.getWalkingQueue().reset()
		player.getWalkingQueue().addStep(2399, 5177)
		player.getWalkingQueue().finish()
开发者ID:ThomasPapp,项目名称:turtle93765scape635,代码行数:12,代码来源:objectinteract.py


注:本文中的org.rs2server.rs2.model.Location.create方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。