Jump to content
  • 0
Sign in to follow this  
imabigkidnow

Task System!

Question

667 Server, i was wondering on how i can remove the task system? and Add Buttons, or just text there instead?
Thanks could use the help!

Share this post


Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 0
[quote name='imabigkidnow']667 Server, i was wondering on how i can remove the task system? and Add Buttons, or just text there instead?
Thanks could use the help![/QUOTE]

Do you mean the task tab?

Share this post


Link to post
Share on other sites
  • 0
[quote name='Fuzen Seth']Do you mean the task tab?[/QUOTE]


Yes i want to redesign it, but idk how to get rid of all the tasks it has, so i can put like simple text's and links in it? can you help?

Share this post


Link to post
Share on other sites
  • 0
remember to change the imports though;

you can do this;

ActionTab.java
[CODE]package org.ethereal.game.player.content;

import org.ethereal.game.World;
import org.ethereal.game.player.Player;
import org.ethereal.game.tasks.WorldTask;
import org.ethereal.game.tasks.WorldTasksManager;

/**
* @author Carbs.
* [MENTION=3199]Sin[/MENTION]ce Aug 22, 2014.
* [MENTION=49618]info[/MENTION] Replaces the Task Tab with a new tab for viable information regarding
* the server and player.
*/

public class ActionTab {

/**
*
* [MENTION=75098]Para[/MENTION]m player
*/
public static void sendTab(final Player player) {
WorldTasksManager.schedule(new WorldTask() {
[MENTION=15855]Over[/MENTION]ride
public void run() {
player.getPackets().sendIComponentText(930, 10,
"Game Information.");
player.getPackets()
.sendIComponentText(
930,
16,
"<col=00ffff>---- Server Information ----"
+ "<br>"
+ "<br>Server Name: <col=FFFFFF>Ethereal"
+ "<br>Revision: <col=FFFFFF>718"
+ "<br>Players Online: <col=FFFFFF>"
+ World.getPlayers().size()
+ ""
+ "<br>"
+ "<br><col=66ff00>---- Account Information ----"
+ "<br>"
+ "<br>Kills: <col=FFFFFF>"
+ player.getKillCount()
+ ""
+ "<br>Death: <col=FFFFFF>"
+ player.getDeathCount()
+ ""
+ "<br>Vote Points: <col=FFFFFF>"
+ player.getVotes()
+ ""
+ "<br>XP (Un)Locked: <col=FFFFFF>"
+ player.isXpLocked()
+ ""
+ "<br>"
+ "<br><col=4da6ff>- Miscellaneous Information -"
+ "<br>"
+ "<br><col=4dffa6>Latest Updates:"
+ "<br>"
+ "<br>-Task Tab replaced."
+ "<br>"
+ "<br>-Achievements are working."
+ "<br>"
+ "<br>-NPCs at home for teleports."
+ "<br>" + "<br>-Hello World!" + "<br>"

);
}
}, 0, 5);

}
}
[/CODE]

In InterfaceManager add;
[CODE]public void sendTaskSystem() {
ActionTab.sendTab(player);
sendTab(resizableScreen ? 112 : 172, 930);
} [/CODE]

and you should get this;

[IMG]http://puu.sh/bgWTX/093c95dab5.png[/IMG]

Share this post


Link to post
Share on other sites
  • 0
So i added the code you put, and all the imports, and changed up the stuf from yours to mine.
but it still does not show?? any reason why it still shows this?

[IMG]http://i.imgur.com/5ULiIqH.png[/IMG]

Share this post


Link to post
Share on other sites
  • 0
[quote name='imabigkidnow']So i added the code you put, and all the imports, and changed up the stuf from yours to mine.
but it still does not show?? any reason why it still shows this?

[IMG]http://i.imgur.com/5ULiIqH.png[/IMG][/QUOTE]

I'm not too sure why but here, try this link on R-S,

[url]http://www.************.org/runescape-development/rs-503-client-server/downloads/565411-667-adrastos-release.html[/url]

It's a 667 so the code should be familiar (not sure if theres a huge difference between 667/718 code wise. Nonetheless, it has the same tab I gave you so search around for it and hopefully it will work then!

Share this post


Link to post
Share on other sites
  • 0
He's just putting it in the wrong area. It's the same as 718.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×