mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-06 08:40:03 +00:00
Add get_dialogue method in dialogue.rb.
This commit is contained in:
@@ -74,6 +74,12 @@ def declare_emote(name, id)
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
# Sends the dialogue from the specified Conversation with the specified name.
|
||||||
|
def get_dialogue(conversation, name)
|
||||||
|
CONVERSATIONS[conversation].part(name)
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
# Sends the specified dialogue.
|
# Sends the specified dialogue.
|
||||||
def send_dialogue(player, dialogue)
|
def send_dialogue(player, dialogue)
|
||||||
type = dialogue.type
|
type = dialogue.type
|
||||||
|
|||||||
Reference in New Issue
Block a user