本文整理汇总了Python中org.rs2server.rs2.model.Location类的典型用法代码示例。如果您正苦于以下问题:Python Location类的具体用法?Python Location怎么用?Python Location使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Location类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: objectOptionOne_1740
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))
示例2: objectOptionOne_1738
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))
示例3: objectOptionOne_9368
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.')
示例4: objectOptionOne_2185
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))
示例5: objectOptionOne_26439
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.')
示例6: objectOptionOne_lever
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)
示例7: objectOptionOne_2112
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))
示例8: objectOptionOne_2623
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()
示例9: objectOptionOne_26338
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))
示例10: objectOptionOne_12045
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()
示例11: objectOptionOne_3444
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()
示例12: objectOptionOne_swamp_boaty
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.')
示例13: objectOptionOne_2186
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()
示例14: objectOptionOne_3445
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()
示例15: objectOptionOne_9369
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()