• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TalkAction Sing script

Crypton3

Retired
Joined
Mar 13, 2010
Messages
549
Reaction score
139
Hello,
I was bored so I decided to write this simple script.
Usage: /sing player-name, song-id
After using it, player will start singing a song!

Song list:
1. Pink Floyd - Another Brick in The Wall (part 2)
2. Justin Bieber - Baby
3. PSY - Gangnam Style
4. Carly Rae Jepsen - Call Me Maybe
5. Belinda Carlisle - Heaven in a Place on Earth
6. Portal - Still Alive
7. Pink Floyd - Comfortably Numb
8. Pink Floyd - Wish You Were Here
9. Crazy Frog - Axel F

Talkactions.xml:
HTML:
<talkaction log="yes" words="/sing" access="6" event="script" value="sing.lua"/>

Sing.lua:
Code:
local songs = {
    [1] = {
        "We don't need no education.",
        "We don't need no thoughts control.",
        "No dark sarcasm in the classroom.",
        "Teacher, leave them, kids, alone.",
        "Hey, Teacher, leave them, kids, alone!",
        "All in all it's just another brick in the wall.",
        "All in all you're just another brick in the wall.",

        "We don't need no education.",
        "We don't need no thoughts control.",
        "No dark sarcasm in the classroom.",
        "Teachers, leave them, kids, alone.",
        "Hey, Teacher, leave us, kids, alone!",
        "All in all you're just another brick in the wall.",
        "All in all you're just another brick in the wall.",
    },
    [2] = {
        "ouooooooo",
        "ouooooooo",
        "ouoooooooooooooooo",
        "...",
        "(Justin Bieber)",
        "You know you love me",
        "I know you care",
        "Just shout whenever, and I'll be there",
        "You want my love",
        "You want my heart",
        "And we would never, ever, ever be apart",
        "...",
        "Are we an item?",
        "Girl, quit playing!",
        "We're just friends,",
        "What are you saying?!",
        "Said there's another,",
        "and look right in my eyes",
        "My first love broke my heart for the first time",
        "...",
        "And I was like",
        "Baby, baby, baby, oh",
        "Like",
        "Baby, baby, baby, no",
        "Like",
        "Baby, baby, baby, oh",
        "I thought you'd always be mine (mine)"
    },
    [3] = {
        "Oppan Gangnam Style",
        "Gangnam Style",
        "...",
        "Najeneun ttasaroun inganjeogin yeoja",
        "Keopi hanjanui yeoyureul aneun pumgyeok inneun yeoja",
        "Bami omyeon simjangi tteugeowojineun yeoja",
        "Geureon banjeon inneun yeoja",
        "...",
        "Naneun sanai",
        "Najeneun neomankeum ttasaroun geureon sanai",
        "Keopi sikgido jeone wonsyat ttaerineun sanai",
        "Bami omyeon simjangi teojyeobeorineun sanai",
        "Geureon sanai",
        "...",
        "Areumdawo sarangseureowo,",
        "Geurae neo hey geurae baro neo hey",
        "...",
        "Areumdawo sarangseureowo",
        "Geurae neo hey geurae baro neo hey",
        "...",
        "Jigeumbuteo gal dekkaji gabolka",
        "...",
        "Oppan Gangnam Style",
        "Gangnam Style",
        "...",
        "Op, op, op, op",
        "Oppan Gangnam Style",
        "Gangnam Style"
    },
    [4] = {
        "I threw a wish in the well",
        "Don't ask me, I'll never tell",
        "I looked to you as it fell",
        "And now you're in my way",
        "...",
        "I trade my soul for a wish",
        "Pennies and dimes for a kiss",
        "I wasn't looking for this",
        "But now you're in my way",
        "...",
        "Your stare was holding",
        "Ripped jeans, skin was showing",
        "Hot night, wind was blowing",
        "Where you think going, baby?",
        "...",
        "Hey, I just meet you, and this is crazy,",
        "But here's my number, so call me, maybe?",
        "It's hard to look right, at you baby,",
        "But here's my number, so call me, maybe?",
        "Hey, I just meet you, and this is crazy,",
        "But here's my number, so call me, maybe?",
        "And all the other boys,try to chase me,",
        "But here's my number, so call me, maybe?",
    },
    [5] = {
        "Ooh, baby, do you know what that's worth ?",
        "Ooh heaven is a place on Earth",
        "They say in heaven love comes first",
        "We'll make heaven a place on Earth",
        "Ooh heaven is a place on Earth",
        "...",
        "When the night falls down",
        "I wait for you",
        "And you come around",
        "And the world's alive",
        "With the sound of kids",
        "On the street outside",
        "...",
        "When you walk into the room",
        "You pull me close and we start to move",
        "And we're spinning with the stars above",
        "And you lift me up in a wave of love...",
        "...",
        "Ooh, baby, do you know what that's worth ?",
        "Ooh heaven is a place on Earth",
        "They say in heaven love comes first",
        "We'll make heaven a place on Earth",
        "Ooh heaven is a place on Earth"
    },
    [6] = {
        "This was a triumph.",
        "I'm making a note here:",
        "HUGE SUCCESS.",
        "...",
        "It's hard to overstate",
        "my satisfaction.",
        "...",
        "Aperture Science",
        "We do what we must,",
        "because we can.",
        "...",
        "For the good of all of us.",
        "Except the ones who are dead.",
        "...",
        "But there's no sense crying",
        "over every mistake.",
        "You just keep on trying",
        "till you run out of cake.",
        "And the Science gets done.",
        "And you make a neat gun.",
        "For the people who are",
        "still alive."
    },
    [7] = {
        "Hello",
        "Is there anybody in there?",
        "Just nod if you can hear me",
        "Is there anyone at home?",
        "Come on now",
        "I hear your feeling down",
        "I can ease your pain",
        "And get you on your feet again",
        "Relax",
        "I'll need some information first",
        "Just the basic facts",
        "Can you show me where it hurts?",
        "...",
        "There is no pain you are receding",
        "A distant ship smoke on the horizon",
        "You are only coming through in waves",
        "Your lips move but I can't hear what you're saying",
        "When I was a child I had a fever",
        "My hands felt just like two ballons",
        "Now I've got that feeling once again",
        "I can't explain, you would not understand",
        "This is not how I am",
        "I have become comfortably numb.",
        "I have become comfortably numb.",
    },
    [8] = {
        "So, so you think you can tell",
        "Heaven from Hell,",
        "Blue skies from pain.",
        "Can you tell a green field",
        "From a cold steel rail?",
        "A smile from a veil?",
        "Do you think you can tell?",
        "...",
        "Did they get you to trade",
        "Your heroes for ghosts?",
        "Hot ashes for trees?",
        "Hot air for a cool breeze?",
        "And cold comfort for change?",
        "Did you exchange",
        "A walk on part in the war,",
        "For a lead role in a cage?",
        "...",
        "How I wish, how I wish you were here.",
        "We're just two lost souls",
        "Swimming in a fish bowl,",
        "Year after year,",
        "Running over the same old ground.",
        "What have we found",
        "The same old fears.",
        "Wish you were here. "
    },
    [9] = {
        "A ring ding ding ding d-ding baa aramba baa baa barooumba",
        "Wh-Wha-Whats going on-on",
        "Ding ding",
        "Lets do the crazy froogg",
        "Ding ding",
        "A Bram Bram",
        "A ring ding ding ding ding",
        "A Ring Ding Ding Dingdemgdemg",
        "A ring ding ding ding ding",
        "Ring ding",
        "Baa-Baa",
        "...",
        "Ring ding ding ding ding",
        "A Ring Ding Ding Dingdemgdemg",
        "A ring ding ding ding ding",
        "a Bram ba am baba weeeeeee",
        "...",
        "BREAK DOWN!",
        "Ding ding",
        "Br-Br-Break It",
        "dum dum dumda dum dum dum dum dumda dum dum dum dum dum dumda dum dum",
        "Brem daem",
        "dum dum dumda dum dum dum dum dumda dum dum dum dum dum dumda dum dum",
        "weeeeeeee",
        "A ram da am da am da am da weeeeeaaaaaaaaaaaaaaaa",
        "Wh-Whats Going On?",
        "ding ding",
        "Bem De Dem",
        "ding ding",
        "da da"
    },
}

function sing(cid, song, i)
    if not isPlayer(cid) then
        return true
        end

    doCreatureSay(cid, songs[song][i], TALKTYPE_ORANGE_1)
    if math.random(1,10) == 10 then
        doSendMagicEffect(getCreaturePosition(cid), 2)
    end
    doSendMagicEffect(getCreaturePosition(cid), math.random(21,24))

    i = i + 1
    if not (i > #songs[song]) then
        addEvent(sing, 3250, cid, song, i)
    end
end

function onSay(cid, words, param, channel)
    if  param == '' then
        doPlayerSendTextMessage(cid,25,'Usage: /song player-nick, song-number')
        return true
    end

    local t = {}
    t = string.explode(param, ",")
    local name = t[1]
    local song = tonumber(t[2])

    tid = getPlayerByNameWildcard(name)
    if not tid or (isPlayerGhost(tid) and getPlayerGhostAccess(tid) > getPlayerGhostAccess(cid)) then
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " not found.")
        return true
    end
    sing(tid, song, 1)
    return true
end

Have fun! :)
 
Last edited:
Skrypt 10/10 tylko trzeba poprawić coś, bo jak się wylogujesz skrypt nadal działa i są błędy w konsoli ale ogólnie to bardzo fajny skrypt :p
 
Skrypt 10/10 tylko trzeba poprawić coś, bo jak się wylogujesz skrypt nadal działa i są błędy w konsoli ale ogólnie to bardzo fajny skrypt :p
Thanks, fixed.

@down
Forgot to test it :) Now it should work.
 
Last edited:
Hello! Really nice script, is really funny =) Could you improve it? For example: to use only "/sing, (number of the song), and not to make another Sing. And also not being able to "sing" two songs at once, with a message like "You cannot sing more than one song at once!".

Really nice Script! =)
 
Hello! Really nice script, is really funny =) Could you improve it? For example: to use only "/sing, (number of the song), and not to make another Sing. And also not being able to "sing" two songs at once, with a message like "You cannot sing more than one song at once!".

Really nice Script! =)

Improved it so you can't song 2 songs at once i can't understand your first question Sorry
Code:
local songs = {
    [1] = {
        "We don't need no education.",
        "We don't need no thoughts control.",
        "No dark sarcasm in the classroom.",
        "Teacher, leave them, kids, alone.",
        "Hey, Teacher, leave them, kids, alone!",
        "All in all it's just another brick in the wall.",
        "All in all you're just another brick in the wall.",

        "We don't need no education.",
        "We don't need no thoughts control.",
        "No dark sarcasm in the classroom.",
        "Teachers, leave them, kids, alone.",
        "Hey, Teacher, leave us, kids, alone!",
        "All in all you're just another brick in the wall.",
        "All in all you're just another brick in the wall.",
    },
    [2] = {
        "ouooooooo",
        "ouooooooo",
        "ouoooooooooooooooo",
        "...",
        "(Justin Bieber)",
        "You know you love me",
        "I know you care",
        "Just shout whenever, and I'll be there",
        "You want my love",
        "You want my heart",
        "And we would never, ever, ever be apart",
        "...",
        "Are we an item?",
        "Girl, quit playing!",
        "We're just friends,",
        "What are you saying?!",
        "Said there's another,",
        "and look right in my eyes",
        "My first love broke my heart for the first time",
        "...",
        "And I was like",
        "Baby, baby, baby, oh",
        "Like",
        "Baby, baby, baby, no",
        "Like",
        "Baby, baby, baby, oh",
        "I thought you'd always be mine (mine)"
    },
    [3] = {
        "Oppan Gangnam Style",
        "Gangnam Style",
        "...",
        "Najeneun ttasaroun inganjeogin yeoja",
        "Keopi hanjanui yeoyureul aneun pumgyeok inneun yeoja",
        "Bami omyeon simjangi tteugeowojineun yeoja",
        "Geureon banjeon inneun yeoja",
        "...",
        "Naneun sanai",
        "Najeneun neomankeum ttasaroun geureon sanai",
        "Keopi sikgido jeone wonsyat ttaerineun sanai",
        "Bami omyeon simjangi teojyeobeorineun sanai",
        "Geureon sanai",
        "...",
        "Areumdawo sarangseureowo,",
        "Geurae neo hey geurae baro neo hey",
        "...",
        "Areumdawo sarangseureowo",
        "Geurae neo hey geurae baro neo hey",
        "...",
        "Jigeumbuteo gal dekkaji gabolka",
        "...",
        "Oppan Gangnam Style",
        "Gangnam Style",
        "...",
        "Op, op, op, op",
        "Oppan Gangnam Style",
        "Gangnam Style"
    },
    [4] = {
        "I threw a wish in the well",
        "Don't ask me, I'll never tell",
        "I looked to you as it fell",
        "And now you're in my way",
        "...",
        "I trade my soul for a wish",
        "Pennies and dimes for a kiss",
        "I wasn't looking for this",
        "But now you're in my way",
        "...",
        "Your stare was holding",
        "Ripped jeans, skin was showing",
        "Hot night, wind was blowing",
        "Where you think going, baby?",
        "...",
        "Hey, I just meet you, and this is crazy,",
        "But here's my number, so call me, maybe?",
        "It's hard to look right, at you baby,",
        "But here's my number, so call me, maybe?",
        "Hey, I just meet you, and this is crazy,",
        "But here's my number, so call me, maybe?",
        "And all the other boys,try to chase me,",
        "But here's my number, so call me, maybe?",
    },
    [5] = {
        "Ooh, baby, do you know what that's worth ?",
        "Ooh heaven is a place on Earth",
        "They say in heaven love comes first",
        "We'll make heaven a place on Earth",
        "Ooh heaven is a place on Earth",
        "...",
        "When the night falls down",
        "I wait for you",
        "And you come around",
        "And the world's alive",
        "With the sound of kids",
        "On the street outside",
        "...",
        "When you walk into the room",
        "You pull me close and we start to move",
        "And we're spinning with the stars above",
        "And you lift me up in a wave of love...",
        "...",
        "Ooh, baby, do you know what that's worth ?",
        "Ooh heaven is a place on Earth",
        "They say in heaven love comes first",
        "We'll make heaven a place on Earth",
        "Ooh heaven is a place on Earth"
    },
    [6] = {
        "This was a triumph.",
        "I'm making a note here:",
        "HUGE SUCCESS.",
        "...",
        "It's hard to overstate",
        "my satisfaction.",
        "...",
        "Aperture Science",
        "We do what we must,",
        "because we can.",
        "...",
        "For the good of all of us.",
        "Except the ones who are dead.",
        "...",
        "But there's no sense crying",
        "over every mistake.",
        "You just keep on trying",
        "till you run out of cake.",
        "And the Science gets done.",
        "And you make a neat gun.",
        "For the people who are",
        "still alive."
    },
    [7] = {
        "Hello",
        "Is there anybody in there?",
        "Just nod if you can hear me",
        "Is there anyone at home?",
        "Come on now",
        "I hear your feeling down",
        "I can ease your pain",
        "And get you on your feet again",
        "Relax",
        "I'll need some information first",
        "Just the basic facts",
        "Can you show me where it hurts?",
        "...",
        "There is no pain you are receding",
        "A distant ship smoke on the horizon",
        "You are only coming through in waves",
        "Your lips move but I can't hear what you're saying",
        "When I was a child I had a fever",
        "My hands felt just like two ballons",
        "Now I've got that feeling once again",
        "I can't explain, you would not understand",
        "This is not how I am",
        "I have become comfortably numb.",
        "I have become comfortably numb.",
    },
    [8] = {
        "So, so you think you can tell",
        "Heaven from Hell,",
        "Blue skies from pain.",
        "Can you tell a green field",
        "From a cold steel rail?",
        "A smile from a veil?",
        "Do you think you can tell?",
        "...",
        "Did they get you to trade",
        "Your heroes for ghosts?",
        "Hot ashes for trees?",
        "Hot air for a cool breeze?",
        "And cold comfort for change?",
        "Did you exchange",
        "A walk on part in the war,",
        "For a lead role in a cage?",
        "...",
        "How I wish, how I wish you were here.",
        "We're just two lost souls",
        "Swimming in a fish bowl,",
        "Year after year,",
        "Running over the same old ground.",
        "What have we found",
        "The same old fears.",
        "Wish you were here. "
    },
    [9] = {
        "A ring ding ding ding d-ding baa aramba baa baa barooumba",
        "Wh-Wha-Whats going on-on",
        "Ding ding",
        "Lets do the crazy froogg",
        "Ding ding",
        "A Bram Bram",
        "A ring ding ding ding ding",
        "A Ring Ding Ding Dingdemgdemg",
        "A ring ding ding ding ding",
        "Ring ding",
        "Baa-Baa",
        "...",
        "Ring ding ding ding ding",
        "A Ring Ding Ding Dingdemgdemg",
        "A ring ding ding ding ding",
        "a Bram ba am baba weeeeeee",
        "...",
        "BREAK DOWN!",
        "Ding ding",
        "Br-Br-Break It",
        "dum dum dumda dum dum dum dum dumda dum dum dum dum dum dumda dum dum",
        "Brem daem",
        "dum dum dumda dum dum dum dum dumda dum dum dum dum dum dumda dum dum",
        "weeeeeeee",
        "A ram da am da am da am da weeeeeaaaaaaaaaaaaaaaa",
        "Wh-Whats Going On?",
        "ding ding",
        "Bem De Dem",
        "ding ding",
        "da da"
    },
}

function sing(cid, song, i)
    if not isPlayer(cid) then
        return true
        end

    doCreatureSay(cid, songs[song][i], TALKTYPE_ORANGE_1)
    if math.random(1,10) == 10 then
        doSendMagicEffect(getCreaturePosition(cid), 2)
    end
    doSendMagicEffect(getCreaturePosition(cid), math.random(21,24))

    i = i + 1
    if not (i > #songs[song]) then
        addEvent(sing, 3250, cid, song, i)
    end
end

function onSay(cid, words, param, channel)
    if  param == '' then
        doPlayerSendTextMessage(cid,25,'Usage: /song player-nick, song-number')
        return true
    end
   
    if getPlayerStorageValue(cid, 5005) == 1 then
    doPlayerSendCancel(cid, "You cannot sing more than one song at once.")
    return true
    end

    local t = {}
    t = string.explode(param, ",")
    local name = t[1]
    local song = tonumber(t[2])

    tid = getPlayerByNameWildcard(name)
    if not tid or (isPlayerGhost(tid) and getPlayerGhostAccess(tid) > getPlayerGhostAccess(cid)) then
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " not found.")
        return true
    end
    sing(tid, song, 1)
doPlayerSetStorageValue(cid, 5005, 1)
    return true
end
 
Thanks for the reply and improvement, works perfectly except when finnishing one song; it still says "You cannot sing more than one song at once" :). What I wanted to say was: Your script allows to make another player sing by making /sing, player-name, song-id, and what I asked was if you could erase the "player-name" part, so the command would be just "/sing, song-id" (not allowing you making another player sing). Another two things that just came up to my mind are, first making another command wich allows you to stop singing, for example "/Sing stop", and secondly, a command wich allows you to sing a random song "/Sing random" ^^ Sorry if I'm asking too much, but it's a really nice script and idea and I want to help ! =)
 
Last edited:
Try This One
Code:
local songs = {
    [1] = {
        "We don't need no education.",
        "We don't need no thoughts control.",
        "No dark sarcasm in the classroom.",
        "Teacher, leave them, kids, alone.",
        "Hey, Teacher, leave them, kids, alone!",
        "All in all it's just another brick in the wall.",
        "All in all you're just another brick in the wall.",

        "We don't need no education.",
        "We don't need no thoughts control.",
        "No dark sarcasm in the classroom.",
        "Teachers, leave them, kids, alone.",
        "Hey, Teacher, leave us, kids, alone!",
        "All in all you're just another brick in the wall.",
        "All in all you're just another brick in the wall.",
    },
    [2] = {
        "ouooooooo",
        "ouooooooo",
        "ouoooooooooooooooo",
        "...",
        "(Justin Bieber)",
        "You know you love me",
        "I know you care",
        "Just shout whenever, and I'll be there",
        "You want my love",
        "You want my heart",
        "And we would never, ever, ever be apart",
        "...",
        "Are we an item?",
        "Girl, quit playing!",
        "We're just friends,",
        "What are you saying?!",
        "Said there's another,",
        "and look right in my eyes",
        "My first love broke my heart for the first time",
        "...",
        "And I was like",
        "Baby, baby, baby, oh",
        "Like",
        "Baby, baby, baby, no",
        "Like",
        "Baby, baby, baby, oh",
        "I thought you'd always be mine (mine)"
    },
    [3] = {
        "Oppan Gangnam Style",
        "Gangnam Style",
        "...",
        "Najeneun ttasaroun inganjeogin yeoja",
        "Keopi hanjanui yeoyureul aneun pumgyeok inneun yeoja",
        "Bami omyeon simjangi tteugeowojineun yeoja",
        "Geureon banjeon inneun yeoja",
        "...",
        "Naneun sanai",
        "Najeneun neomankeum ttasaroun geureon sanai",
        "Keopi sikgido jeone wonsyat ttaerineun sanai",
        "Bami omyeon simjangi teojyeobeorineun sanai",
        "Geureon sanai",
        "...",
        "Areumdawo sarangseureowo,",
        "Geurae neo hey geurae baro neo hey",
        "...",
        "Areumdawo sarangseureowo",
        "Geurae neo hey geurae baro neo hey",
        "...",
        "Jigeumbuteo gal dekkaji gabolka",
        "...",
        "Oppan Gangnam Style",
        "Gangnam Style",
        "...",
        "Op, op, op, op",
        "Oppan Gangnam Style",
        "Gangnam Style"
    },
    [4] = {
        "I threw a wish in the well",
        "Don't ask me, I'll never tell",
        "I looked to you as it fell",
        "And now you're in my way",
        "...",
        "I trade my soul for a wish",
        "Pennies and dimes for a kiss",
        "I wasn't looking for this",
        "But now you're in my way",
        "...",
        "Your stare was holding",
        "Ripped jeans, skin was showing",
        "Hot night, wind was blowing",
        "Where you think going, baby?",
        "...",
        "Hey, I just meet you, and this is crazy,",
        "But here's my number, so call me, maybe?",
        "It's hard to look right, at you baby,",
        "But here's my number, so call me, maybe?",
        "Hey, I just meet you, and this is crazy,",
        "But here's my number, so call me, maybe?",
        "And all the other boys,try to chase me,",
        "But here's my number, so call me, maybe?",
    },
    [5] = {
        "Ooh, baby, do you know what that's worth ?",
        "Ooh heaven is a place on Earth",
        "They say in heaven love comes first",
        "We'll make heaven a place on Earth",
        "Ooh heaven is a place on Earth",
        "...",
        "When the night falls down",
        "I wait for you",
        "And you come around",
        "And the world's alive",
        "With the sound of kids",
        "On the street outside",
        "...",
        "When you walk into the room",
        "You pull me close and we start to move",
        "And we're spinning with the stars above",
        "And you lift me up in a wave of love...",
        "...",
        "Ooh, baby, do you know what that's worth ?",
        "Ooh heaven is a place on Earth",
        "They say in heaven love comes first",
        "We'll make heaven a place on Earth",
        "Ooh heaven is a place on Earth"
    },
    [6] = {
        "This was a triumph.",
        "I'm making a note here:",
        "HUGE SUCCESS.",
        "...",
        "It's hard to overstate",
        "my satisfaction.",
        "...",
        "Aperture Science",
        "We do what we must,",
        "because we can.",
        "...",
        "For the good of all of us.",
        "Except the ones who are dead.",
        "...",
        "But there's no sense crying",
        "over every mistake.",
        "You just keep on trying",
        "till you run out of cake.",
        "And the Science gets done.",
        "And you make a neat gun.",
        "For the people who are",
        "still alive."
    },
    [7] = {
        "Hello",
        "Is there anybody in there?",
        "Just nod if you can hear me",
        "Is there anyone at home?",
        "Come on now",
        "I hear your feeling down",
        "I can ease your pain",
        "And get you on your feet again",
        "Relax",
        "I'll need some information first",
        "Just the basic facts",
        "Can you show me where it hurts?",
        "...",
        "There is no pain you are receding",
        "A distant ship smoke on the horizon",
        "You are only coming through in waves",
        "Your lips move but I can't hear what you're saying",
        "When I was a child I had a fever",
        "My hands felt just like two ballons",
        "Now I've got that feeling once again",
        "I can't explain, you would not understand",
        "This is not how I am",
        "I have become comfortably numb.",
        "I have become comfortably numb.",
    },
    [8] = {
        "So, so you think you can tell",
        "Heaven from Hell,",
        "Blue skies from pain.",
        "Can you tell a green field",
        "From a cold steel rail?",
        "A smile from a veil?",
        "Do you think you can tell?",
        "...",
        "Did they get you to trade",
        "Your heroes for ghosts?",
        "Hot ashes for trees?",
        "Hot air for a cool breeze?",
        "And cold comfort for change?",
        "Did you exchange",
        "A walk on part in the war,",
        "For a lead role in a cage?",
        "...",
        "How I wish, how I wish you were here.",
        "We're just two lost souls",
        "Swimming in a fish bowl,",
        "Year after year,",
        "Running over the same old ground.",
        "What have we found",
        "The same old fears.",
        "Wish you were here. "
    },
    [9] = {
        "A ring ding ding ding d-ding baa aramba baa baa barooumba",
        "Wh-Wha-Whats going on-on",
        "Ding ding",
        "Lets do the crazy froogg",
        "Ding ding",
        "A Bram Bram",
        "A ring ding ding ding ding",
        "A Ring Ding Ding Dingdemgdemg",
        "A ring ding ding ding ding",
        "Ring ding",
        "Baa-Baa",
        "...",
        "Ring ding ding ding ding",
        "A Ring Ding Ding Dingdemgdemg",
        "A ring ding ding ding ding",
        "a Bram ba am baba weeeeeee",
        "...",
        "BREAK DOWN!",
        "Ding ding",
        "Br-Br-Break It",
        "dum dum dumda dum dum dum dum dumda dum dum dum dum dum dumda dum dum",
        "Brem daem",
        "dum dum dumda dum dum dum dum dumda dum dum dum dum dum dumda dum dum",
        "weeeeeeee",
        "A ram da am da am da am da weeeeeaaaaaaaaaaaaaaaa",
        "Wh-Whats Going On?",
        "ding ding",
        "Bem De Dem",
        "ding ding",
        "da da"
    },
}

function sing(cid, song, i)
    if not isPlayer(cid) then
        return true
        end

    doCreatureSay(cid, songs[song][i], TALKTYPE_ORANGE_1)
    if math.random(1,10) == 10 then
        doSendMagicEffect(getCreaturePosition(cid), 2)
    end
    doSendMagicEffect(getCreaturePosition(cid), math.random(21,24))

    i = i + 1
    if not (i > #songs[song]) then
        addEvent(sing, 3250, cid, song, i)
    end
end

function onSay(cid, words, param, channel)
    if  param == '' then
        doPlayerSendTextMessage(cid,25,'Usage: /song song-number')
        return true
    end
 
    if getPlayerStorageValue(cid, 5005) == 1 then
    doPlayerSendCancel(cid, "You cannot sing more than one song at once.")
    return true
    end

    local t = {}
    t = string.explode(param, ",")
    local song = tonumber(t[1])

    tid = getPlayerByNameWildcard(name)
    sing(tid, song, 1)
doPlayerSetStorageValue(cid, 5005, 1)
addEvent(doPlayerSetStorageValue,20*1000,cid,5005,-1)
    return true
end
 
Back
Top