You are not logged in.

Applications: [GameMaster: OPEN] | [Volunteer Testers: OPEN]


This forum will be permanently shut down on Friday 13.07.2018
Please copy or save all important information from old forum before they will be deactivated
We have moved to new board. https://forum.runesofmagic.gameforge.com/Come join us.

Peryl

Intermediate

  • "Peryl" started this thread

Posts: 313

Location: Elsewhere

  • Send private message

1

Friday, November 18th 2011, 5:32am

[Addon / Toy] Piratey (Yarrrr!)

Piratey
Ahoy thar' lads. Thi' wee thing will turn your chat text in t' Pirate speech. Ye can now also slur your speech like drunken sailor (wi'out the swearin' tho').

Tha's right ya scallywags, ya need not know how to Cap'n a ship to speak like one.

Alas, 'tis not International Speak Like A Pirate Day. But ye be prepare for it now tho'

------------

I cooked this up real quick because of a comment by MMOCowboy in a thread about language translation. Thought I'd have a little fun.

When you first start the game, the add-on will load but will not translate automatically.

The slash commands:[indent]/piratey Toggles add-on on/off. This is useful in case you need to talk to a GM etc.
/piratey pirate toggles pirate speak on/off
/piratey drunk toggles drunken slurring on/off
[/indent]

The default is to have pirate speech on and slurring off. Again, the add-on starts with all translations turned off.

New for version 1.4:
Drunken Slurring
[indent]You can now have your text slurred like a drunken sailor, or just slurred without the pirate conversions. Your choice!
Also added directional tokens $left$, $right$, $forward$,and $back$

Due to the slurring mode, I added extra sub-commands to the slash command (see above)
[/indent]

New with version 1.3:
Pirate Sayings
[indent]Added some special tokens you can place in your text to give special pirate sayings (only a few for now).
Current tokens are $attack$, $insult$, $cryout$, $surprise$, and $prepare$.
Try them out!
[/indent]

Cap'n's Log:

Quoted


  • v1.4
    • Added drunken slurring!
    • Added sub-commands to toggle translation modes (pirate, drunk)
    • A few more code tweaks and minor bug fixes
    • A few small dictionary updates
    • Added pirate saying tokens $left$, $right$, $forward$, $back$

  • v1.3
    • Simplified the hooking system, should now also work for *any* add-on/macro sending chat as well.
    • Fixed a problem with it not converting text between two or more hyperlinks.
    • Some code optimization/tweaks.
    • Yet more words added to dictionary
    • Added pirate sayings!

  • v1.2
    • Forgot to actually not bother with convertion if turned off. D'oh! fixed now!

  • v1.1
    • Fixed order of word replacements. (now does multi-words first, as it should have)
    • Added another capitalization rule.
    • Removed the debug message when a hyperlink is in the text.
    • Added more words to the dictionary

  • v1.0
    • Initial Release



Anywho, here's the file (version 1.4):
Peryl has attached the following file:
  • Piratey.zip (5.81 kB - 43 times downloaded - latest: Oct 26th 2017, 8:41pm)
2013... The year from hell....

ghostwolf82

Professional

Posts: 859

Location: Kalvans Trunk

Occupation: It's dark in here

  • Send private message

2

Friday, November 18th 2011, 6:38am

Next September 19 my guild will hate you Peryl. My guild I ran when I played WoW loved to hate that day due to the addon there that did the same. It's one of the best holidays ever!

:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D:D

:cool:

3

Friday, November 18th 2011, 12:25pm

Oh, this is awsome!!! Tyvm! :D
LOL...

Quoted from "turboreaper666;443339"

Here you go little angry troll....



My new favorite GM

Quoted from "Asteria;438081"

Really...

Hey look over there!

/closed.


Who says "you don't matter" better? :p

Quoted from "Kalvan;480948"

I'm always sorry when a player leaves our game, but making a forum announcement about it is...pointless.
/closed

trav42073

Professional

Posts: 806

Location: Arizona

Occupation: welder/fabricator/antagonist

  • Send private message

4

Friday, November 18th 2011, 1:01pm

awesome.
95r/62m/63s/ Soultwist.
Ryaderr wrd/s/w erobos

RoMage

rustyx is lame rogue

Posts: 2,694

Location: web

Occupation: DB Admin

Mood: Unsure

  • Send private message

5

Friday, November 18th 2011, 1:04pm

Almost like my RL vocabulary... :D

Posts: 779

Location: USA

Occupation: Student

  • Send private message

6

Friday, November 18th 2011, 1:34pm

I need to hide this from my guild right now. :o
Easily, our most looked forward to holiday as a guild.

Source code

1
    ['peryl'] =       { "tha' Great, Grand old Cap'n Peryl!" },


Oh, lord.

Peryl

Intermediate

  • "Peryl" started this thread

Posts: 313

Location: Elsewhere

  • Send private message

7

Friday, November 18th 2011, 2:03pm

Quoted from "CharlieBananas;484229"

I need to hide this from my guild right now. :o
Easily, our most looked forward to holiday as a guild.

Source code

1
    ['peryl'] =       { "tha' Great, Grand old Cap'n Peryl!" },


Oh, lord.


Arrr.. ye found me Easter-egg. Had to put meself in thar somewheres :D

Anyway, updated to version 1.1 (actually now 1.2). Added more phrases, fixed the order it does things a bit, added a capitalization rule, and removed a left over debug message.

Edit
Updated it again! (forgot to actually not translate if translations turned off!)
2013... The year from hell....

Peryl

Intermediate

  • "Peryl" started this thread

Posts: 313

Location: Elsewhere

  • Send private message

8

Saturday, November 19th 2011, 4:37am

Updated yet again.
Version 1.3 uses a much better function hook which should allow the Pirate text to work for anything that send chat messages.

Also added some special tokens for pirate sayings. (only a few for now, can add more later).
2013... The year from hell....

trav42073

Professional

Posts: 806

Location: Arizona

Occupation: welder/fabricator/antagonist

  • Send private message

9

Saturday, November 19th 2011, 1:51pm

this and some captains brandy made siege a hilarious event.
95r/62m/63s/ Soultwist.
Ryaderr wrd/s/w erobos

Peryl

Intermediate

  • "Peryl" started this thread

Posts: 313

Location: Elsewhere

  • Send private message

10

Sunday, November 20th 2011, 3:21pm

Piratey now updated to version 1.4 (likely the last update for a while).

The big thing is Piratey now can do drunken slurring with or without the pirate speech (added slash commands to handle this, see first post for details).
Also did some minor bug fixes...
2013... The year from hell....