コード例 #1
0
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
0
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
0
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
0
ファイル: objectinteract.py プロジェクト: SiF2/Project_PS
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
0
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
0
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
0
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
0
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
0
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
0
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
0
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
0
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
0
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
0
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
0
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()
コード例 #16
0
def objectOptionOne_2631(player, obj):
	if(player.getInventory().contains(1591)):
		if(player.getLocation().equals(
			Location.create(2931, 9690, 0))):
			player.getWalkingQueue().addStep(2931, 9689)
		elif(player.getLocation().equals(
			Location.create(2931, 9689, 0))):
			player.getWalkingQueue().addStep(2931, 9690)
		
		if(!player.getWalkingQueue().isEmpty()):
			player.getWalkingQueue().finish()
コード例 #17
0
def objectOptionOne_3463(player, obj):
	if(player.getInventory().contains(2945)):
		if(player.getLocation().equals(
			Location.create(3415, 3489, 2))):
			player.getWalkingQueue().addStep(3416, 3489)
		elif(player.getLocation().equals(
			Location.create(3416, 3489, 2))):
			player.getWalkingQueue().addStep(3415, 3489)
		
		if(!player.getWalkingQueue().isEmpty()):
			player.getWalkingQueue().finish()
コード例 #18
0
def objectOptionTwo_2634(player, obj):
	mining = Mining(player, obj)
	if(mining.canHarvest()):
		if(player.getSkills().getLevelForExperience(Skills.MINING) >= 50):
			player.getActionSender().sendMessage('You mine through the rocks.')
			if(player.getLocation().getX() == 2837):
				player.setTeleportTarget(Location.create(2840, player.getLocation().getY(), 0))
			elif(player.getLocation().getX() == 2840):
				player.setTeleportTarget(Location.create(2837, player.getLocation().getY(), 0))
			
	else:
		player.getActionSender().sendMessage('You need a mining level of 50 to do that.')	
コード例 #19
0
def objectOptionOne_3197(player, obj):
	if(player.getLocation().equals(
		Location.create(3312, 3234, 0))):
		player.getActionSender().sendMessage('Dueling is disabled for now.')
		#player.getWalkingQueue().addStep(3311, 3234)
	elif(player.getLocation().equals(
		Location.create(3311, 3234, 0))):
		player.getActionSender().sendMessage('Dueling is disabled for now.')
		#player.getWalkingQueue().addStep(3312, 3234)
	
	if(!player.getWalkingQueue().isEmpty()):
		player.getWalkingQueue().finish()
コード例 #20
0
def objectOptionOne_1551(player, obj):
	if(player.getLocation().equals(
		Location.create(3253, 3266, 0))):
		player.getWalkingQueue().addStep(3252, 3266)
	elif(player.getLocation().equals(
		Location.create(3252, 3266, 0))):
		player.getWalkingQueue().addStep(3253, 3266)
	elif(player.getLocation().equals(
		Location.create(3237, 3296, 0))):
		player.getWalkingQueue().addStep(3236, 3296)
	elif(player.getLocation().equals(
		Location.create(3236, 3296, 0))):
		player.getWalkingQueue().addStep(3237, 3296)
	
	if(!player.getWalkingQueue().isEmpty()):
		player.getWalkingQueue().finish()
コード例 #21
0
ファイル: commands.py プロジェクト: SiF2/Project_PS
def admin_command_tele(player, args):
	x = int(args[1])
	y = int(args[2])
	z = 0
	if len(args) > 3:
		z = int(args[3])
	player.setTeleportTarget(Location.create(x, y, z))	
コード例 #22
0
def objectOptionOne_11993(player, obj):
	if(player.getLocation().equals(
		Location.create(3108, 3162, 0))):
		player.getWalkingQueue().addStep(3107, 3162)
		player.getWalkingQueue().addStep(3106, 3161)
	elif(player.getLocation().equals(
		Location.create(3107, 3163, 0))):
		player.getWalkingQueue().addStep(3107, 3162)
		player.getWalkingQueue().addStep(3106, 3161)
	elif(player.getLocation().equals(
		Location.create(3108, 3163, 0))):
		player.getWalkingQueue().addStep(3107, 3162)
		player.getWalkingQueue().addStep(3106, 3161)
	elif(player.getLocation().equals(
		Location.create(3106, 3162, 0))):
		player.getWalkingQueue().addStep(3107, 3162)
		player.getWalkingQueue().addStep(3108, 3163)
	elif(player.getLocation().equals(
		Location.create(3107, 3161, 0))):
		player.getWalkingQueue().addStep(3107, 3162)
		player.getWalkingQueue().addStep(3108, 3163)
	elif(player.getLocation().equals(
		Location.create(3106, 3161, 0))):
		player.getWalkingQueue().addStep(3107, 3162)
		player.getWalkingQueue().addStep(3108, 3163)
	
	if(!player.getWalkingQueue().isEmpty()):
		player.getWalkingQueue().finish()
コード例 #23
0
def objectOptionOne_staircase(player, obj):
	oloc = obj.getLocation()
	top = None
	if oloc.getZ() == 3:
		if oloc.getX() == 3558 and oloc.getY() == 9703: # Ahrim
			top = Location.create(Misc.random(3563, 3566), Misc.random(3286, 3290), 0)
			player.setTeleportTarget(top)
		elif oloc.getX() == 3557 and oloc.getY() == 9718: # Dharok
			top = Location.create(Misc.random(3573, 3576), Misc.random(3296, 3300), 0)
			player.setTeleportTarget(top)
		elif oloc.getX() == 3534 and oloc.getY() == 9705: # Guthan
			top = Location.create(Misc.random(3575, 3580), Misc.random(3280, 3285), 0)
			player.setTeleportTarget(top)
		elif oloc.getX() == 3546 and oloc.getY() == 9685: # Karil
			top = Location.create(Misc.random(3564, 3567), Misc.random(3273, 3277), 0)
			player.setTeleportTarget(top)
		elif oloc.getX() == 3565 and oloc.getY() == 9683: # Torag
			top = Location.create(Misc.random(3551, 3556), Misc.random(3281, 3284), 0)
			player.setTeleportTarget(top)
		elif oloc.getX() == 3578 and oloc.getY() == 9703: # Verac
			top = Location.create(Misc.random(3555, 3559), Misc.random(3296, 3300), 0)
			player.setTeleportTarget(top)						
コード例 #24
0
def objectOptionOne_26425(player, obj):
	if(player.getLocation().getX() == 2863):
		player.setTeleportTarget(Location.create(player.getLocation().getX() + 1, 5354, 2))
	elif(player.getLocation().getX() == 2864):
		player.setTeleportTarget(Location.create(player.getLocation().getX() - 1, 5354, 2))
コード例 #25
0
def objectOptionTwo_26299(player, obj):
	player.setTeleportTarget(Location.create(2914, 5300, 1))
コード例 #26
0
def objectOptionOne_26293(player, obj):
	player.setTeleportTarget(Location.create(2916, 3747, 0))
コード例 #27
0
def objectOptionOne_26341(player, obj):
	player.setTeleportTarget(Location.create(2881, 5310, 2))
コード例 #28
0
def objectOptionOne_26305(player, obj):
	if(obj.getLocation().equals(Location.create(3008, 3462, 0))):
		player.setTeleportTarget(Location.create(2899, 3713, 0))
	elif(obj.getLocation().equals(Location.create(2900, 3713, 0))):
		player.setTeleportTarget(Location.create(3008, 3461, 0))
コード例 #29
0
def objectOptionOne_9359(player, obj):
	player.setTeleportTarget(Location.create(2862, 9572, 0))
コード例 #30
0
def objectOptionOne_9358(player, obj):
	player.setTeleportTarget(Location.create(2480, 5175, 0))