[release]Wedding Couples NPC WEDDING COUPLES RANKING

Results 1 to 14 of 14
  1. #1
    Account Upgraded | Title Enabled! Auku1 is offline
    MemberRank
    Mar 2008 Join Date
    204Posts

    [release]Wedding Couples NPC WEDDING COUPLES RANKING

    NO FLAMING! Don't Needs it? Don't use it :D

    Heres A Wedding NPC Script!
    Since a lot of odin Servers DON'T Get the Heart when you get married, Here's a NPC That TELLS What players are married,
    Note: You'll have to update the Spots when players get married,

    Heres The code! Copy and Paste this into the NPC Of Your Choice :D

    Code:
    /*
    ########################################################
    #OdinMS Wedding Poster NPC!          #    #   #    #   #  #   #  #    # #      
    
    #MADE BY [GM] Auku Of LostGM!         #    #    #    #   #   #  #   #   #
    ########################################################
    */
    function start() {
        cm.sendSimple ("<Wedding> \r\n Heres All the Lovly Couples 
    
    That have been Married :D<3\r\n\r\n#B100#\r\n#L0##bGm 
    
    Weddings\r\n\#L1#Gold Rank Couples\r\n#L2#Silver Rank 
    
    Couples\r\n#L3#Bronze Rank Couples\r\n#L4#Normal Rank 
    
    Marriages\r\n#L5##gHow to Use\r\n#B100#");
        }
    
    function action(mode, type, selection) {
        cm.dispose();
        if (selection == 0) {
            cm.sendOk ("#B100#\r\nHere's All the GM 
    
    Couples<3\r\n#b \r\nBlank Spot#v5200002#\r\n 
    
    Blank spot#v5200002#\r\n#B100#");
        } else if (selection == 1) {
            cm.sendOk ("Here's All the Gold Couples\r\nEmpty 
    
    Slot #v5200002#\r\nEmpty Slot #v5200002#\r\nEmpty Slot 
    
    #v5200002#\r\nEmpty Slot #v5200002#\r\nEmpty Slot 
    
    #v5200002#\r\nEmpty Slot #v5200002#\r\nEmpty Slot 
    
    #v5200002#\r\nEmpty Slot #v5200002#\r\nEmpty Slot 
    
    #v5200002#\r\nEmpty Slot #v5200002#\r\n");
        } else if (selection == 2) {
            cm.sendOk ("Here's All the Silver Couples\r\nEmpty 
    
    Slot #v5200001#\r\nEmpty Slot #v5200001#\r\nEmpty Slot 
    
    #v5200001#\r\nEmpty Slot #v5200001#\r\nEmpty Slot 
    
    #v5200001#\r\nEmpty Slot #v5200001#\r\nEmpty Slot 
    
    #v5200001#\r\nEmpty Slot #v5200001#\r\nEmpty Slot 
    
    #v5200001#\r\nEmpty Slot #v5200001#\r\n");
        } else if (selection == 3) {
            cm.sendOk ("Here's All the Bronze Couples\r\nEmpty 
    
    Slot #v5200000#\r\nEmpty Slot #v5200000#\r\nEmpty Slot 
    
    #v5200000#\r\nEmpty Slot #v5200000#\r\nEmpty Slot 
    
    #v5200000#\r\nEmpty Slot #v5200000#\r\nEmpty Slot 
    
    #v5200000#\r\nEmpty Slot #v5200000#\r\nEmpty Slot 
    
    #v5200000#\r\nEmpty Slot #v5200000#\r\n");
        } else if (selection == 4) {
            cm.sendOk ("Here's All the Plain Couples\r\nEmpty 
    
    Slot #v5220000#\r\nEmpty Slot #v5220000#\r\nEmpty Slot 
    
    #v5220000#\r\nEmpty Slot #v5220000#\r\nEmpty Slot 
    
    #v5220000#\r\nEmpty Slot #v5220000#\r\nEmpty Slot 
    
    #v5220000#\r\nEmpty Slot #v5220000#\r\nEmpty Slot 
    
    #v5220000#\r\nEmpty Slot #v5220000#\r\n");
        } else if (selection == 5) {
            cm.sendOk ("This is How you use this NPC!\r\n First of 
    
    all, To get posted on this NPC You'll need to talk to GM [Auku]\r\n1. Get 
    
    Married\r\n2. Talk to Auku to APQ\r\n3. The Better You and your Partner are 
    
    in APQ, The higher Rank You'll Get! \r\n (Please note that you cant APQ For 
    
    rankings yet, Thanks you :D) ALL NEW MARRIAGES WILL GET A SILVER 
    
    RANK!");
        } else {
            cm.dispose();
        }
    }

    Last edited by Savage; 23-01-09 at 04:17 AM.


  2. #2
    Visit my hompage Vi3tb0i2ty is offline
    MemberRank
    May 2008 Join Date
    1,788Posts

    Re: [release]Wedding Couples NPC WEDDING COUPLES RANKING

    so could you show a ss?

  3. #3
    Infraction Baɴɴed holthelper is offline
    MemberRank
    Apr 2008 Join Date
    1,765Posts

    Re: [release]Wedding Couples NPC WEDDING COUPLES RANKING

    o wow you have to manually add the peoples names...

    no offense but not a good idea for weddings

  4. #4
    Alpha Member Markii is offline
    MemberRank
    Nov 2008 Join Date
    NewyorkLocation
    1,917Posts

    Re: [release]Wedding Couples NPC WEDDING COUPLES RANKING

    Here Use this instead


    Code:
    /*
    ################################################## ######
    #OdinMS Wedding Poster NPC! # # # # # # # # # #
    
    #MADE BY [GM] Auku Of LostGM! # # # # # # # # #
    ################################################## ######
    */
    function start() {
    cm.sendSimple ("<Wedding> \r\n Heres All the Lovly Couples
    
    That have been Married :D<3\r\n\r\n#B100#\r\n#L0##bGm
    
    Weddings\r\n\#L1#Gold Rank Couples\r\n#L2#Silver Rank
    
    Couples\r\n#L3#Bronze Rank Couples\r\n#L4#Normal Rank
    
    Marriages\r\n#L5##gHow to Use\r\n#B100#");
    }
    
    function action(mode, type, selection) {
    cm.dispose();
    if (selection == 0) {
    cm.sendOk ("#B100#\r\nHere's All the GM
    
    Couples<3\r\n#b \r\nBlank Spot#v5200002#\r\n
    
    Blank spot#v5200002#\r\n#B100#");
    } else if (selection == 1) {
    cm.sendOk ("Here's All the Gold Couples\r\nEmpty
    
    Slot #v5200002#\r\nEmpty Slot #v5200002#\r\nEmpty Slot
    
    #v5200002#\r\nEmpty Slot #v5200002#\r\nEmpty Slot
    
    #v5200002#\r\nEmpty Slot #v5200002#\r\nEmpty Slot
    
    #v5200002#\r\nEmpty Slot #v5200002#\r\nEmpty Slot
    
    #v5200002#\r\nEmpty Slot #v5200002#\r\n");
    } else if (selection == 2) {
    cm.sendOk ("Here's All the Silver Couples\r\nEmpty
    
    Slot #v5200001#\r\nEmpty Slot #v5200001#\r\nEmpty Slot
    
    #v5200001#\r\nEmpty Slot #v5200001#\r\nEmpty Slot
    
    #v5200001#\r\nEmpty Slot #v5200001#\r\nEmpty Slot
    
    #v5200001#\r\nEmpty Slot #v5200001#\r\nEmpty Slot
    
    #v5200001#\r\nEmpty Slot #v5200001#\r\n");
    } else if (selection == 3) {
    cm.sendOk ("Here's All the Bronze Couples\r\nEmpty
    
    Slot #v5200000#\r\nEmpty Slot #v5200000#\r\nEmpty Slot
    
    #v5200000#\r\nEmpty Slot #v5200000#\r\nEmpty Slot
    
    #v5200000#\r\nEmpty Slot #v5200000#\r\nEmpty Slot
    
    #v5200000#\r\nEmpty Slot #v5200000#\r\nEmpty Slot
    
    #v5200000#\r\nEmpty Slot #v5200000#\r\n");
    } else if (selection == 4) {
    cm.sendOk ("Here's All the Plain Couples\r\nEmpty
    
    Slot #v5220000#\r\nEmpty Slot #v5220000#\r\nEmpty Slot
    
    #v5220000#\r\nEmpty Slot #v5220000#\r\nEmpty Slot
    
    #v5220000#\r\nEmpty Slot #v5220000#\r\nEmpty Slot
    
    #v5220000#\r\nEmpty Slot #v5220000#\r\nEmpty Slot
    
    #v5220000#\r\nEmpty Slot #v5220000#\r\n");
    } else if (selection == 5) {
    cm.sendOk ("This is How you use this NPC!\r\n First of
    
    all, To get posted on this NPC You'll need to talk to GM [Auku]\r\n1. Get
    
    Married\r\n2. Talk to Auku to APQ\r\n3. The Better You and your Partner are
    
    in APQ, The higher Rank You'll Get! \r\n (Please note that you cant APQ For
    
    rankings yet, Thanks you :D) ALL NEW MARRIAGES WILL GET A SILVER
    
    RANK!");
    } else {
    cm.dispose();
    }
    }

  5. #5
    Account Upgraded | Title Enabled! Davidkun is offline
    MemberRank
    Apr 2008 Join Date
    254Posts

    Re: [release]Wedding Couples NPC WEDDING COUPLES RANKING

    It would probably be pretty easy to code it so that it lists the names of characters who are currently married using the "Married set to 1" status in the database.

  6. #6
    Account Upgraded | Title Enabled! Chinese is offline
    MemberRank
    Dec 2008 Join Date
    Taiwan/CanadaLocation
    327Posts

    Re: [release]Wedding Couples NPC WEDDING COUPLES RANKING

    Quote Originally Posted by Davidkun View Post
    It would probably be pretty easy to code it so that it lists the names of characters who are currently married using the "Married set to 1" status in the database.
    Yeah, it is easy to code it. Code the Wedding NPC to add in the database from 0 to 1 in wedding. And then add into the wesbsite script: (SELECT FROM Characters * weddingid)

    Or something of that sort, and there you have it, auto printing of wedding page o.o

  7. #7
    Enthusiast candyman4444 is offline
    MemberRank
    Jan 2009 Join Date
    43Posts

    Re: [release]Wedding Couples NPC WEDDING COUPLES RANKING

    Quote Originally Posted by Chinese View Post
    Yeah, it is easy to code it. Code the Wedding NPC to add in the database from 0 to 1 in wedding. And then add into the wesbsite script: (SELECT FROM Characters * weddingid)

    Or something of that sort, and there you have it, auto printing of wedding page o.o
    Why do you rely on the sql database so much?

  8. #8

    Re: [release]Wedding Couples NPC WEDDING COUPLES RANKING

    Quote Originally Posted by candyman4444 View Post
    Why do you rely on the sql database so much?
    How else?

  9. #9
    Account Upgraded | Title Enabled! lxCrAzYsEl is offline
    MemberRank
    May 2008 Join Date
    Her heart :)Location
    281Posts

    Re: [release]Wedding Couples NPC WEDDING COUPLES RANKING

    SQL is the easiest way to store these stuffs.
    If not whr would u wan to store them ?

  10. #10
    Account Upgraded | Title Enabled! Dontus is offline
    MemberRank
    Oct 2008 Join Date
    Inside a never ending tunnel.Location
    416Posts

    Re: [release]Wedding Couples NPC WEDDING COUPLES RANKING

    Does this work? o_O The Script Seems Ehh.. to me.. >.<

  11. #11
    Mother effin' clouds SaintsIan is offline
    MemberRank
    Apr 2008 Join Date
    fyrechat.netLocation
    2,809Posts

    Re: [release]Wedding Couples NPC WEDDING COUPLES RANKING

    Jeeeesh, I hate manually edited scripts that shows "RANK" related stuff.
    Just add getCouple or something in Maplecharacter and add the function to NPCConversationManager then you can easily retrieve the couples by looping an array with for(). Its all up to you, but I suggest you go SQL.

  12. #12
    Member xSen is offline
    MemberRank
    Nov 2008 Join Date
    (。◕‿◕。) Malaysia (。◕‿◕。)Location
    79Posts

    Re: [release]Wedding Couples NPC WEDDING COUPLES RANKING

    Post some SS show us

  13. #13
    Account Upgraded | Title Enabled! Auku1 is offline
    MemberRank
    Mar 2008 Join Date
    204Posts

    Re: [release]Wedding Couples NPC WEDDING COUPLES RANKING

    Heres a Pic


  14. #14
    Infraction Banned XxOsirisxX is offline
    MemberRank
    Jul 2008 Join Date
    2,456Posts

    Re: [release]Wedding Couples NPC WEDDING COUPLES RANKING

    better add with SQL as said before and change the byte to make the heart effect.



Advertisement