} else if (command.equalsIgnoreCase("GrandE")) {
if (teleblock == true) {
sendMessage("A magical force stops you from teleporting."); // made by rang34nub
} else {
teleportToX = 3253;
teleportToY = 3421;
sendMessage(
"You teleport to ge sell stuff here");
sendMessage(
"some items are not in the database more items will be added soon");
}
and for the coustom comand
Code:
case 167:
if (teleblock == true) { // Made by rang34nub
sendMessage("A magical force stops you from teleporting.");
} else {
customCommand("GrandE"); // made by rang34nub
}
break;
and this to youre autospawn.cfg
Code:
spawn = 793 3252 3423 0 0 0 0 0 1 ge banker
Add this to your npcs speaking to do this go into npchandler.java and search for moo you should see something like this or something similar
Code:
if (npcs[i].npcType == 409) {
if (misc.random2(30) <= 2) {
npcs[i].updateRequired = true;
npcs[i].textUpdateRequired = true;
npcs[i].textUpdate = "Type ::info to begin";
}
}
under that add this
Code:
if (npcs[i].npcType == 793) {
if (misc.random2(30) <= 2) {
npcs[i].updateRequired = true;
npcs[i].textUpdateRequired = true;
npcs[i].textUpdate = "Welcome to the grand Exchange Sell stuff here";
}
} }
there u go post errors here
Ucan add a block off or anything else u like
Looks decent for your first try, but I do have to ask, wtf is with your formatting here:
Code:
} else if (useItemID == 15334 && atObjectID == 75) // Ge reward
{
PlayerHandler.messageToAll = (playerName
+ " is selling bandos godsword at Ge!:)");
} else if (useItemID == 15350 && atObjectID == 75) // Ge reward
{
PlayerHandler.messageToAll = (playerName
+ " is selling bandos boots at Ge!:)");
} else if (useItemID == 15348 && atObjectID == 75) // Ge reward
{
PlayerHandler.messageToAll = (playerName
+ " is selling bandos chest at Ge!:)");
} else if (useItemID == 15349 && atObjectID == 75) // Ge reward
{
PlayerHandler.messageToAll = (playerName
+ " is selling bandos tasset at Ge!:)");
} else if (useItemID == 15348 && atObjectID == 75) // Ge reward
{
PlayerHandler.messageToAll = (playerName
+ " is selling sara gs at Ge!:)");
} else if (useItemID == 15335 && atObjectID == 75) // Ge reward
{
PlayerHandler.messageToAll = (playerName
+ " is selling zammy gs at Ge!:)");
} else if (useItemID == 15333 && atObjectID == 75) // Ge reward
{
PlayerHandler.messageToAll = (playerName
+ " is selling arm gs at Ge!:)");
} else if (useItemID == 15351 && atObjectID == 75) // Ge reward
{
PlayerHandler.messageToAll = (playerName
+ " is selling sara sword at Ge!:)");
} else if (useItemID == 9099 && atObjectID == 75) // Ge reward
{
PlayerHandler.messageToAll = (playerName
+ " is selling zammy cloak at Ge!:)");
{
[Only registered and activated users can see links. ]
[Only registered and activated users can see links. ] | [Only registered and activated users can see links. ] | [Only registered and activated users can see links. ]