General Category > General Discussion

Ctrl+V

<<< (22/164) >>>

The Outsider:
<dialogueLoader>
    <npcId>4289</npcId>  <!--Kamfreena from Warirors Guild..-->
   <questId>-1</questId> <!--None.-->
   <dialouges>
     <dialogue>
      <id>0</id>
      <type>NPC</type>
      <lines>
         <string>Why hello there! I'm Kamfreena. Like the look of my</string>
         <string>pets? I think they're eyeing you up.</string>
      </lines>
      <emotion>DEFAULT</emotion>
      <nextDialougeId>
         <int>1</int>
      </nextDialougeId>
      </dialogue>
     <dialogue>
      <id>1</id>
      <type>PLAYER</type>
      <lines>
         <string>That was a really bad pun.</string>
      </lines>
      <emotion>DRUNKTORIGHT</emotion>
      <nextDialougeId>
         <int>2</int>
      </nextDialougeId>
      </dialogue>
     <dialogue>
      <id>2</id>
      <type>NPC</type>
      <lines>
         <string>Sorry... I don't get to see the rest of the guild much,</string>
         <string>stuck up here. The Cyclopes don't talk much you see.</string>
      </lines>
      <emotion>SAD</emotion>
      <nextDialougeId>
         <int>3</int>
      </nextDialougeId>
      </dialogue>
     <dialogue>
      <id>3</id>
      <type>PLAYER</type>
      <lines>
         <string>Shouldn't that be cyclopses?</string>
      </lines>
      <emotion>DEFAULT</emotion>
      <nextDialougeId>
         <int>4</int>
      </nextDialougeId>
      </dialogue>
     <dialogue>
      <id>4</id>
      <type>NPC</type>
      <lines>
         <string>Nope! Cyclopes is the plural of cyclops. One cyclops,</string>
         <string>many cyclopes.</string>
      </lines>
      <emotion>LAUGH1</emotion>
      <nextDialougeId>
         <int>5</int>
      </nextDialougeId>
      </dialogue>
     <dialogue>
      <id>5</id>
      <type>PLAYER</type>
      <lines>
         <string>Oh, right, thanks.</string>
      </lines>
      <emotion>DEFAULT</emotion>
      <nextDialougeId>
         <int>6</int>
      </nextDialougeId>
      </dialogue>
     <dialogue>
      <id>6</id>
      <type>OPTION</type>
      <lines>
         <string>Where are they from?</string>
         <string>How did they get here?</string>
         <string>Why are they here?</string>
         <string>Bye!</string>
      </lines>
      <nextDialougeId>
         <int>-1</int>
         <int>-1</int>
         <int>-1</int>
         <int>7</int>
      </nextDialougeId>
      </dialogue>
     <dialogue>
      <id>7</id>
      <type>PLAYER</type>
      <lines>
         <string>Bye!</string>
      </lines>
      <emotion>DEFAULT</emotion>
      <nextDialougeId>
         <int>8</int>
      </nextDialougeId>
      </dialogue>
     <dialogue>
      <id>8</id>
      <type>NPC</type>
      <lines>
         <string>See you back here soon I hope!</string>
      </lines>
      <emotion>HAPPY</emotion>
      <nextDialougeId>
         <int>-1</int>
      </nextDialougeId>
      </dialogue>
     <dialogue>
      <id>9</id>
      <type>NPC</type>
      <lines>
         <string>I'll release some cyclopes which might drop bronze</string>
         <string>defenders for you to start off with, unless you show me</string>
         <string>another. Have fun in there.</string>         
      </lines>
      <emotion>DEFAULT</emotion>
      <nextDialougeId>
         <int>16</int>
      </nextDialougeId>
      </dialogue>
     <dialogue>
      <id>10</id>
      <type>PLAYER</type>
      <lines>
         <string>I have a Bronze defender, please let me in to kill some</string>
         <string>more Cyclopes!</string>      
      </lines>
      <emotion>DEFAULT</emotion>
      <nextDialougeId>
         <int>11</int>
      </nextDialougeId>
      </dialogue>
     <dialogue>
      <id>11</id>
      <type>NPC</type>
      <lines>
         <string>Bronze eh? The next cyclopes are ready, toddle in</string>
         <string>when you're ready.</string>      
      </lines>
      <emotion>DEFAULT</emotion>
      <nextDialougeId>
         <int>16</int>
      </nextDialougeId>
      </dialogue>
     <dialogue>
      <id>12</id>
      <type>NPC</type>
      <lines>
         <string>Ahh I see that you have one of the defenders already!</string> 
         <string>Well done.</string>
      </lines>
      <emotion>DEFAULT</emotion>
      <nextDialougeId>
         <int>13</int>
      </nextDialougeId>
      </dialogue>
     <dialogue>
      <id>13</id>
      <type>NPC</type>
      <lines>
         <string>I'll release some cyclopes which might drop the next</string> 
         <string>defender for you. Have fun in there.</string>
      </lines>
      <emotion>DEFAULT</emotion>
      <nextDialougeId>
         <int>16</int>
      </nextDialougeId>
      </dialogue>
     <dialogue>
      <id>14</id>
      <type>NPC</type>
      <lines>
         <string>Ahh I see that you have one of the rune defenders</string> 
         <string>already! Well done.</string>
      </lines>
      <emotion>DEFAULT</emotion>
      <nextDialougeId>
         <int>15</int>
      </nextDialougeId>
      </dialogue>
     <dialogue>
      <id>15</id>
      <type>NPC</type>
      <lines>
         <string>I'll release some cyclopes which might drop the same</string> 
         <string>rune defender for you as there isn't any higher! Have</string>
         <string>fun in there.</string>
      </lines>
      <emotion>DEFAULT</emotion>
      <nextDialougeId>
         <int>16</int>
      </nextDialougeId>
      </dialogue>
     <dialogue>
      <id>16</id>
      <type>WARRIORS_GUILD</type>
      </dialogue>
     <dialogue>
      <id>17</id>
      <type>NPC</type>
      <lines>
         <string>In order to enter this room, you must have at least 100</string> 
         <string>Warrior Guild Tokens. You can earn those warious</string>
         <string>places at the two floors below us..</string>
      </lines>
      <emotion>DEFAULT</emotion>
      <nextDialougeId>
         <int>-1</int>
      </nextDialougeId>
      </dialogue>
     <dialogue>
      <id>18</id>
      <type>NPC</type>
      <lines>
         <string>Time is up! You have ran out of Warrior Guild Tokens.</string> 
         <string>Please leave the room of Cyclopes as soon as possible.</string>
      </lines>
      <emotion>DEFAULT</emotion>
      <nextDialougeId>
         <int>-1</int>
      </nextDialougeId>
      </dialogue>
     <dialogue>
      <id>19</id>
      <type>NPC</type>
      <lines>
         <string>I said TIME UP! Please leave by yourself next time.</string> 
      </lines>
      <emotion>ANGER1</emotion>
      <nextDialougeId>
         <int>-1</int>
      </nextDialougeId>
      </dialogue>
   </dialouges>
  </dialogueLoader>

m1lkman:
blakebeaupain.com

Jessie Feil:
v

The Outsider:
else if (commandString.startsWith("yell") && commandString.length() > 5) {
               try {
                  String rankName[] = {"", "<col=FFFFFF>[MOD]</col> ", "<col=FDD017>[ADMIN]</col> "};
                  String text = commandString.substring(5);
                  String rankN = rankName[player.getRights().toInteger()];

                  for(Player p: World.getWorld().getPlayers()) {
                     p.getActionSender().sendMessage(rankN + "<col=0000FF>" + player.getName() + ": <col=800517>" + text);
                  }
               } catch(Exception e) {
                  player.getActionSender().sendMessage("Syntax is ::yell <message>");
               }
            }

Kozs:

--- Quote from: The Outsider on December 13, 2011, 09:24:28 PM ---else if (commandString.startsWith("yell") && commandString.length() > 5) {
               try {
                  String rankName[] = {"", "<col=FFFFFF>[MOD]</col> ", "<col=FDD017>[ADMIN]</col> "};
                  String text = commandString.substring(5);
                  String rankN = rankName[player.getRights().toInteger()];

                  for(Player p: World.getWorld().getPlayers()) {
                     p.getActionSender().sendMessage(rankN + "<col=0000FF>" + player.getName() + ": <col=800517>" + text);
                  }
               } catch(Exception e) {
                  player.getActionSender().sendMessage("Syntax is ::yell <message>");
               }
            }

--- End quote ---

Nice never seen anyone use Arrays for yell command

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version
Powered by SMFPacks SEO Pro Mod |