[REL][SOURCE]More HC presents[SOURCE][REL]

Results 1 to 22 of 22
  1. #1
    Account Upgraded | Title Enabled! kuifjesjors is offline
    MemberRank
    Dec 2006 Join Date
    The Netherlands, Den BoschLocation
    746Posts

    [REL][SOURCE]More HC presents[SOURCE][REL]

    Hi, this is a very simple source code, but I want to post it :)
    Whit this source you could give members more than only 12 HC presents...

    Code:
    hcpresent(0) = ReadINI("HC", "present1", SettingIni) 'read saved presents
    hcpresent(1) = ReadINI("HC", "present2", SettingIni)
    hcpresent(2) = ReadINI("HC", "present3", SettingIni)
    hcpresent(3) = ReadINI("HC", "present4", SettingIni)
    hcpresent(4) = ReadINI("HC", "present5", SettingIni)
    hcpresent(5) = ReadINI("HC", "present6", SettingIni)
    hcpresent(6) = ReadINI("HC", "present7", SettingIni)
    hcpresent(7) = ReadINI("HC", "present8", SettingIni)
    hcpresent(8) = ReadINI("HC", "present9", SettingIni)
    hcpresent(9) = ReadINI("HC", "present10", SettingIni)
    hcpresent(10) = ReadINI("HC", "present11", SettingIni)
    hcpresent(11) = ReadINI("HC", "present12", SettingIni)
    hcpresent(12) = ReadINI("HC", "present13", SettingIni)
    hcpresent(13) = ReadINI("HC", "present14", SettingIni)
    hcpresent(14) = ReadINI("HC", "present15", SettingIni)
    If Val(hmonth) > 10 And Val(hmonth) <= 19 Then hmonth = Val(hmonth) - 9 'fix months who are highter than 10
    If Val(hmonth) > 19 And Val(hmonth) <= 28 Then hmonth = Val(hmonth) - 18
    PresentBoxContent = ""
    ToGet = Split(hcpresent(hmonth), ";")
    First = Split(hcpresent(hmonth), ";")(1)
    For a = 1 To UBound(ToGet) 'start creating furni(s)
        If Len(ToGet(a)) > 2 Then
            If Left(ToGet(a), 4) = "door" Then 'teleporters
                OldCount = Val(FSO.OpenTextFile(DBP & "furni\count.txt", ForReading).ReadAll)
                TheCount1 = OldCount + 1
                TheCount2 = TheCount1 + 1
                FSO.OpenTextFile(DBP & "furni\count.txt", ForWriting).Write TheCount2
                FSO.CopyFolder DBP & "buy_furni\club_furni\" & ToGet(a), DBP & "furni\" & TheCount1
                FSO.CopyFolder DBP & "buy_furni\club_furni\" & ToGet(a), DBP & "furni\" & TheCount2
                FSO.CreateTextFile (DBP & "furni\" & TheCount1 & "\destination.txt")
                FSO.OpenTextFile(DBP & "furni\" & TheCount1 & "\destination.txt", ForWriting).Write TheCount2
                FSO.CreateTextFile (DBP & "furni\" & TheCount2 & "\destination.txt")
                FSO.OpenTextFile(DBP & "furni\" & TheCount2 & "\destination.txt", ForWriting).Write TheCount1
                PresentBoxContent = TheCount1 & ";" & TheCount2 & ";"
            Else 'no teleporters
                OldCount = Val(FSO.OpenTextFile(DBP & "furni\count.txt", ForReading).ReadAll)
                TheCount = OldCount + 1
                FSO.OpenTextFile(DBP & "furni\count.txt", ForWriting).Write TheCount
                FSO.CopyFolder DBP & "buy_furni\club_furni\" & ToGet(a), DBP & "furni\" & TheCount
                PresentBoxContent = PresentBoxContent & TheCount & ";"
            End If
        End If
    Next a
    OldCount = Val(FSO.OpenTextFile(DBP & "furni\count.txt", ForReading).ReadAll) 'create the present
    TheCount = OldCount + 1
    FSO.OpenTextFile(DBP & "furni\count.txt", ForWriting).Write TheCount
    FSO.CopyFolder DBP & "buy_furni\club_furni\present", DBP & "furni\" & TheCount
    FSO.OpenTextFile(DBP & "furni\" & TheCount & "\inbox.txt", ForWriting).Write PresentBoxContent 'write content
    FSO.OpenTextFile(DBP & "furni\" & TheCount & "\inboxid.txt", ForWriting).Write "3 " & First 'write "First present" for the Icon
    Randomize Timer 'generate Present color
    pnum = Int(7 * Rnd)
    If pnum = 0 Then pnum = ""
    PresentName = "present_gen" & pnum
    FSO.OpenTextFile(DBP & "furni\" & TheCount & "\name.txt", ForWriting).Write PresentName
    FSO.OpenTextFile(DBP & "habbos\" & LCase(Client(Index).Name) & "\hand.txt", ForAppending).Write ";" & TheCount
    FSO.OpenTextFile(DBP & "furni\" & TheCount & "\var.txt", ForWriting).Write "H!" & locale("club_gift_name")
    End Function
    Public Function HClub_backuponly(ByVal Index As Integer, thmonth As String)
    Dim hcpresent(0 To 10) As String
    Dim Presents As String
    Dim PresentBoxContent As String
    Dim OldCount As String
    Dim TheCount As String
    Dim hmonth As String
    hmonth = thmonth
    hcpresent(0) = ";club_sofa" 'set presents
    hcpresent(1) = ";aqua_chair;aqua_chair;aqua_chair;aqua_chair;aqua_table"
    hcpresent(2) = ";mocchamaster"
    hcpresent(3) = ";edicehc"
    hcpresent(4) = ";hcamme"
    hcpresent(5) = ";doorD"
    hcpresent(6) = ";hcsohva"
    hcpresent(7) = ";hc_lmp"
    hcpresent(8) = ";hc_tbl"
    hcpresent(9) = ";hc_chr"
    hcpresent(10) = ";hc_dsk"
    hcpresent(11) = ";YOUR_PRESENT_CODE"
    hcpresent(12) = ";YOUR_PRESENT_CODE"
    hcpresent(13) = ";YOUR_PRESENT_CODE"
    hcpresent(14) = ";YOUR_PRESENT_CODE"
    hcpresent(15) = ";YOUR_PRESENT_CODE"
    Quote Originally Posted by Nillus View Post
    It goes in modHabboClub.bas. =]
    It'll make it able that you can have more than 12 Club Presents.

    Waves'
    Nillus
    Nillus said where to put this source, DON'T EXCHANGE EVERYTHING INSIDE modHabboClub, than can you make your source stuck!!!


  2. #2
    Alpha Member sisija is offline
    MemberRank
    Mar 2007 Join Date
    Western-EuropeLocation
    1,586Posts

    Re: [REL][SOURCE]More HC presents[SOURCE][REL]

    And where must that go, in source? :p

  3. #3
    The light can't stop me. Steven is offline
    MemberRank
    May 2007 Join Date
    United KingdomLocation
    1,531Posts

    Re: [REL][SOURCE]More HC presents[SOURCE][REL]

    It would help to say where to ADD :/

  4. #4
    Account Upgraded | Title Enabled! Michael is offline
    MemberRank
    Sep 2007 Join Date
    763Posts

    Re: [REL][SOURCE]More HC presents[SOURCE][REL]

    Nice release
    9/10

  5. #5
    BACON Fulzo is offline
    MemberRank
    Oct 1985 Join Date
    Up NorthLocation
    2,041Posts

    Re: [REL][SOURCE]More HC presents[SOURCE][REL]

    Hmmm.. useful
    Ill give it a try thanks

  6. #6
    Moar skilled than befoar. AlexyGalaxy is offline
    MemberRank
    Jan 2007 Join Date
    England, UKLocation
    1,394Posts

    Re: [REL][SOURCE]More HC presents[SOURCE][REL]

    Easy, but code is the sort of thing that SHOULD be released on this forum. Keep it up. =D

    Regards,
    Alex

  7. #7
    Thanks for the memories! Nillus is offline
    MemberRank
    Feb 2007 Join Date
    The NetherlandsLocation
    2,627Posts

    Re: [REL][SOURCE]More HC presents[SOURCE][REL]

    It goes in modHabboClub.bas. =]
    It'll make it able that you can have more than 12 Club Presents.

    Waves'
    Nillus

  8. #8
    The light can't stop me. Steven is offline
    MemberRank
    May 2007 Join Date
    United KingdomLocation
    1,531Posts

    Re: [REL][SOURCE]More HC presents[SOURCE][REL]

    TY Nillus

  9. #9
    Account Upgraded | Title Enabled! Herb is offline
    MemberRank
    Jul 2007 Join Date
    Why? You Stalking Me?Location
    505Posts

    Re: [REL][SOURCE]More HC presents[SOURCE][REL]

    nice release :D

  10. #10
    Account Upgraded | Title Enabled! StickHotel is offline
    MemberRank
    Apr 2007 Join Date
    236Posts

    Re: [REL][SOURCE]More HC presents[SOURCE][REL]

    I think its useless, any retro i know doesnt last more then 4 months without changing a server

  11. #11
    Account Upgraded | Title Enabled! cotye is offline
    MemberRank
    Mar 2007 Join Date
    in ur comp giviLocation
    332Posts

    Re: [REL][SOURCE]More HC presents[SOURCE][REL]

    Quote Originally Posted by StickHotel View Post
    I think its useless, any retro i know doesnt last more then 4 months without changing a server
    Thats What I Was Thinking, Let alone a Year.

  12. #12
    Alpha Member baybeecasi is offline
    MemberRank
    Aug 2007 Join Date
    In ya mumz bedLocation
    1,500Posts

    Re: [REL][SOURCE]More HC presents[SOURCE][REL]

    Quote Originally Posted by StickHotel View Post
    I think its useless, any retro i know doesnt last more then 4 months without changing a server
    agreeedd but i think ill keep the sercer im using as we have to many regestered users and yer

  13. #13
    Moar skilled than befoar. AlexyGalaxy is offline
    MemberRank
    Jan 2007 Join Date
    England, UKLocation
    1,394Posts

    Re: [REL][SOURCE]More HC presents[SOURCE][REL]

    Which is why we are constantly trying to develop a stable server release, so there's no need to change databases.

    Regards,
    Alex

  14. #14
    i didnt do this. Donkjam is offline
    MemberRank
    Jul 2007 Join Date
    4,494Posts

    Re: [REL][SOURCE]More HC presents[SOURCE][REL]

    Its still a usefull source

  15. #15
    Account Upgraded | Title Enabled! RAWRHTML is offline
    MemberRank
    Oct 2007 Join Date
    291Posts

    Re: [REL][SOURCE]More HC presents[SOURCE][REL]

    Quote Originally Posted by 4rr0w5 View Post
    It would help to say where to ADD :/
    It would help if you actually knew how to code.

  16. #16
    Account Upgraded | Title Enabled! @Chamillionaire is offline
    MemberRank
    Mar 2007 Join Date
    Y? Are You Stalking Me?Location
    738Posts

    Re: [REL][SOURCE]More HC presents[SOURCE][REL]

    NICE Easy Thow 14 prezzys? U Can Easly add more

  17. #17
    Account Upgraded | Title Enabled! kuifjesjors is offline
    MemberRank
    Dec 2006 Join Date
    The Netherlands, Den BoschLocation
    746Posts

    Re: [REL][SOURCE]More HC presents[SOURCE][REL]

    Quote Originally Posted by @Chamillionaire View Post
    NICE Easy Thow 14 prezzys? U Can Easly add more
    Yes, I know, but why should I do? You can also do it self xD

  18. #18
    Valued Member hablog. is offline
    MemberRank
    Nov 2007 Join Date
    in grungeLocation
    141Posts

    Re: [REL][SOURCE]More HC presents[SOURCE][REL]

    ':o thanks for this

  19. #19
    Account Upgraded | Title Enabled! Michael is offline
    MemberRank
    Sep 2007 Join Date
    763Posts

    Re: [REL][SOURCE]More HC presents[SOURCE][REL]

    Do I paste it over everything in modHabboClub ?

  20. #20
    Account Upgraded | Title Enabled! Neelix is offline
    MemberRank
    Nov 2007 Join Date
    NetherlandsLocation
    347Posts

    Re: [REL][SOURCE]More HC presents[SOURCE][REL]

    Quote Originally Posted by Sparta3000 View Post
    Do I paste it over everything in modHabboClub ?
    No,

    There should be a part in your code that almost looks the same as the code above. Take the first and last word/characther of this code and search it in your modHabboClub, then highlight it and paste this code into it.

    Not guaranteed that its gonna work 100%, because I dont need more then 12 club presents.

  21. #21
    Account Upgraded | Title Enabled! Michael is offline
    MemberRank
    Sep 2007 Join Date
    763Posts

    Re: [REL][SOURCE]More HC presents[SOURCE][REL]

    ok :)

  22. #22
    Member iiPixel is offline
    MemberRank
    Oct 2007 Join Date
    Next Door To YouLocation
    68Posts

    Re: [REL][SOURCE]More HC presents[SOURCE][REL]

    Thanks Nillus for your advice.. although im not coding my server yet... xS



Advertisement