Jump to: navigation, search

Message

Contents

Message

Message.Room(roomID As Integer, message As String, Optional ignorepID As Integer = -1, Optional ignorepID2 As Integer = -1, Optional pIDIsPlayer As Boolean = True, Optional pIDIsPlayer2 As Boolean = True)
  • Description=Message a whole room. You can ignore up to two IDs. (Normally ignoring is used for when you have more specific messages to send to one or two players, such as direct attacks vs spectators.)
Values
  • roomID=The room number.
  • message=The message to send to the room.
  • ignorepID=The ignored ID. Use -1 to bypass. This will bypass sending the message to this player.
  • ignorepID2=The second ignored ID. Use -1 to bypass. This will bypass sending the message to this player.
  • pIDIsPlayer=Is the first pID a player? Does not matter if -1 is set.
  • pIDIsPlayer2=Is the second pID a player? Does not matter if -1 is set.
  • Example=Message.Room(50, "Hello room!", 2, 5, true, true)


Message.RoomVar(roomID As Integer, message As String, Optional ignorepID As Integer = -1, Optional ignorepID2 As Integer = -1, Optional pIDIsPlayer As Boolean = True, Optional pIDIsPlayer2 As Boolean = True)
  • Description=Message a group of rooms. You generally need to set the rooms before hand. Can ignore up to two IDs. (Normally ignoring is used for when you have more specific messages to send to one or two players, such as direct attacks vs spectators.) Do not send a room message to too many rooms at once!
Values
  • roomID=The room number that holds the group of rooms (aka parent room, typically where the script is.).
  • message=The message to send to the room.
  • ignorepID=The ignored ID. Use -1 to bypass. This will bypass sending the message to this player.
  • ignorepID2=The second ignored ID. Use -1 to bypass. This will bypass sending the message to this player.
  • pIDIsPlayer=Is the first pID a player? Does not matter if -1 is set.
  • pIDIsPlayer2=Is the second pID a player? Does not matter if -1 is set.
  • Example=Message.RoomVar(50, "Hello all rooms!", 2, 5, true, true)


Message.RoomNoParty(roomID As Integer, message As String, ignorepID As Integer, pIDIsPlayer As Boolean, partyID As Integer)
  • Description=Message everyone BUT the specific party in question. Will also ignore one other person if needed.
Values
  • roomID=The room number.
  • message=The message to send to the room.
  • ignorepID=The ignored ID. Use -1 to bypass. This will bypass sending the message to this player.
  • pIDIsPlayer=Is the first pID a player? Does not matter if -1 is set.
  • partyID=The party ID to ignore.
  • Example=Message.Room(50, "Hello non party members!", 2, true, 5)


Message.NPCSpeak(NPCID As Integer, message As String, Optional directID As Integer = -1, Optional directIsPlayer As Boolean = False, Optional messageDirect As String = ") As Integer
  • Description=Makes an NPC speak like it was as player speaking. Can also do /me commands if the message starts with '/'.
Values
  • NPCID=The NPC ID.
  • message=The message to send. Start with a forward slash to produce a /me command.
  • directID=Is this message directed to anyone, if so, what ID? -1 for no one.
  • directIsPlayer=Is the directID a player?
  • messageDirect"=The message that the player directed will see. This means that 'message' is the room message, and 'messageDirect' is the message only to the directed.
  • Example=Message.NPCSpeak(5, "/whispers to NiteHawk", 1, true, "I will end you.")


Message.Global(message As String)
  • Description=Global server message, to everyone on the server.
Values
  • message=The message to send.
  • Example=Message.Global("Something just spawned in Seamoor!")


Message.Alert(message As String, loud as boolean)
  • Description=Alert message, to everyone on the server. You can use two different alert sounds. One is the current broadcast message ding, and a less sensitive one which is on by default.
Values
  • message=The message to send.
  • loud=Use the loud alert message instead.
  • Example=Message.Alert("Something just spawned in Seamoor!", false)


Message.Area(area As String, message As String)
  • Description=Area message, to everyone on in the area.
Values
  • area=The area to send the message to.
  • message=The message to send.
  • Example=Message.Global("Seamoor City", "Something just spawned in Seamoor!")


Message.Area(zone As String, message As String)
  • Description=Zone message, to everyone on in the zone.
Values
  • zone=The zone to send the message to.
  • message=The message to send.
  • Example=Message.Global("Zone1", "Something just spawned in Seamoor!")


Message.Guild(guildName As String, message As String)
  • Description=Sends a message directly to a guild.
Values
  • guildName=The guild name to send the message too.
  • message=The message to send.
  • Example=Message.Guild("Staff", "Warning something got attacked!")


Message.DiscordGuild(guildName As String, message As String, everyoneSend as Boolean)
  • Description=Sends a message directly to a guild discord if available.
Values
  • guildName=The guild name to send the message too.
  • message=The message to send.
  • everyoneSend=Send the message starting with @everyone.
  • Example=Message.Guild("Staff", "Warning something got attacked!", false)


Message.Direct(pID As Integer, message As String, messageID as Byte = 1)
  • Description=Sends a message directly to a player slot.
Values
  • pID=The slot to send the message too.
  • messageID=The message ID. Use 1 if you are unsure.
  • message=The message to send.
  • Example=Message.Direct(1, "You fall to the ground!")
Message.Discord(DiscordChannelID As Integer, message As String, everyoneSend as Boolean)
  • Description=Sends a message directly to discord.
Values
  • DiscordChannelID=The channel ID to send the message too.
  • message=The message to send.
  • everyoneSend=Send the message starting with @everyone.
  • Example=Message.Discord(3213125412311, "Event starting!", true)


Message.StatusDirect(pID As Integer, message As String, Optional statusType as Integer = 0)
  • Description=Sends a message directly to a player slot. Will act as a buff/debuff message and will ding the player with a sound.
Values
  • pID=The slot to send the message too.
  • message=The message to send.
  • statusType=The status type, either 0 or 1. 1 Being a debuff message, 0 being buff.
  • Example=Message.StatusDirect(1, "You get hit by a flying canadian!!", 1)


Message.AttackDirect(pID As Integer, message As String)
  • Description=Sends a message directly to a player slot. Will act as a attack message and will ding the player with a sound.
Values
  • pID=The slot to send the message too.
  • message=The message to send.
  • Example=Message.AttackDirect(1, "You get hit by a flying canadian!!")


Message.AttackRoom(roomID As Integer, message As String, Optional ignorepID As Integer = -1, Optional ignorepID2 As Integer = -1, Optional pIDIsPlayer As Boolean = True, Optional pIDIsPlayer2 As Boolean = True)
  • Description=Message a whole room but also 'ding' the room like an attack message would. You can ignore up to two IDs. (Normally ignoring is used for when you have more specific messages to send to one or two players, such as direct attacks vs spectators.)
Values
  • roomID=The room number.
  • message=The message to send to the room.
  • ignorepID=The ignored ID. Use -1 to bypass. This will bypass sending the message to this player.
  • ignorepID2=The second ignored ID. Use -1 to bypass. This will bypass sending the message to this player.
  • pIDIsPlayer=Is the first pID a player? Does not matter if -1 is set.
  • pIDIsPlayer2=Is the second pID a player? Does not matter if -1 is set.
  • Example=Message.AttackRoom(50, "Everyone in the room takes 200 damage!", 2, 5, true, true)


Message.AttackGlobal(message As String)
  • Description="Global server message with ding noise, to everyone on the server. Armageddon anyone?
Values
  • message=The message to send.
  • Example=Message.AttackGlobal("You take 500 random damage for existing!")


Message.Facebook(message As String)
  • Description=Sends a message directly to facebook. This should NOT be used without permission.
Values
  • message=The message to send.
  • Example=Message.Facebook("New event starting soon!")