Jump to content

Featured Replies

Posted
comment_50250

Hello Everyone, 

I have just downloaded a new 718 source and client, and I'm logged in to begin testing for suitability.

I have noticed Kuradal's 'Get Task' option doesn't do anything. I obviously want to get this working but I'm having difficulty getting it right...

Does anyone have a working 'Get Task' option they could show me?

My attempt is below, probably embarassing...

Kuradal.java

public static boolean getTask(Player player) { //stuck here!
		player.setTalkedWithKuradal(true);
			if (player.getTask() == null) {
				SlayerTask.random(player, Master.KURADAL);
				sendEntityDialogue(IS_NPC, "Kuradal", 9085, 9827,
						"Excellent, your task is to kill "
								+ player.getTask().getTaskAmount() + " "
								+ player.getTask().getName().toLowerCase()
								+ "s..");
				stage = 7;
			} else {
				sendEntityDialogue(IS_NPC, "Kuradal", 9085, 9827,
						"It seems like you already got an assignment. ",
						"Your task is to kill "
								+ player.getTask().getTaskAmount() + " "
								+ player.getTask().getName().toLowerCase()
								+ "s.");
				stage = 4;
			}
	}

NPCHandler.java (Under Option2)

if (npc.getId() == 9805){
Kuradal.getTask();}

Best Regards,

Wzrd

Edited by Wzrdary

Create an account or sign in to comment