Jump to content

Search the Community

Showing results for tags 'dialouges'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RuneLocus
    • News & Announcements
    • Information Booth
    • Website Support
    • Introductions
    • Chat
    • Forum Games
  • RuneScape Development
    • RSPS General
    • RuneScape Private Server (RS2)
    • RuneScape Private Server (503+)
    • RuneScape Private Server (EoC 742+)
  • Other
    • Digital Art
    • Gaming
    • Webdevelopment
    • Computers
  • Marketplace
    • RuneScape Market
    • RSPS Market
    • Others Market
    • Freelance Middleman Services
  • Super Secret Club's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 1 result

  1. Zoda

    [718] Dialouges help?

    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]
×