Jump to content
  • 0
Sign in to follow this  
Zoda

[718] Dialouges help?

Question

Here's my dial Don't mind the imports just imported the 1's i thought had to do with inventory and item..

[CODE]package com.rs.game.player.dialogues;

import com.rs.cache.loaders.ItemDefinitions;
import com.rs.game.item.Item;
import com.rs.game.ItemsContainer;
import com.rs.game.player.Skills;
import com.rs.game.player.Player;
import com.rs.game.player.Inventory;
import com.rs.game.net.decoders.handlers.InventoryOptionsHandler;


public class WhipChanger extends Dialogue {

int npcId;

[MENTION=15855]Over[/MENTION]ride
public void start() {
npcId = (Integer) parameters[0];
if (!player.getInventory().containsItem(995, 2500000) || !player.getInventory().containsItem(4151, 1)) {
sendDialogue( "You need 2500000 coins and a regular whip to change the colour of it.");

}else{
sendOptionsDialogue("Select a colour.",
"Yellow", "Blue",
"White", "Green", "None.");


}

[MENTION=15855]Over[/MENTION]ride
public void run(int interfaceId, int componentId) {
if (stage == -1) {
if (componentId == OPTION_1) {
player.getInventory().deleteItem(995, 2500000);
player.getInventory().deleteItem(4151, 1);
player.getInventory().addItem(15441, 1);
} else if (componentId == OPTION_2) {
player.getInventory().deleteItem(995, 2500000);
player.getInventory().deleteItem(4151, 1);
player.getInventory().addItem(15442, 1);
} else if (componentId == OPTION_3) {
player.getInventory().deleteItem(995, 2500000);
player.getInventory().deleteItem(4151, 1);
player.getInventory().addItem(15443, 1);
} else if (componentId == OPTION_4) {
player.getInventory().deleteItem(995, 2500000);
player.getInventory().deleteItem(4151, 1);
player.getInventory().addItem(15444, 1);
} else if (componentId == OPTION_5) {
end();
}


}

[MENTION=15855]Over[/MENTION]ride
public void finish() {


}

}
[/CODE]
Error i get:
[CODE]src\com\rs\game\player\dialogues\WhipChanger.java:31: error: ';' expected
public void run(int interfaceId, int componentId) {
^
src\com\rs\game\player\dialogues\WhipChanger.java:31: error: <identifier> expect
ed
public void run(int interfaceId, int componentId) {
^
src\com\rs\game\player\dialogues\WhipChanger.java:31: error: not a statement
public void run(int interfaceId, int componentId) {
^
src\com\rs\game\player\dialogues\WhipChanger.java:31: error: ';' expected
public void run(int interfaceId, int componentId) {
^
src\com\rs\game\player\dialogues\WhipChanger.java:57: error: ';' expected
public void finish() {
^
src\com\rs\game\player\dialogues\WhipChanger.java:62: error: reached end of file
while parsing
}
^
6 errors[/CODE] Edited by Zoda

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Sign in to follow this  

×