Jump to content

Marggraf

Inactive Member
  • Posts

    268
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Marggraf

  1. The title says it all.

    now i have gcc4

    makefile db

    Spoiler

    MAKE = gmake
    CC = g++

    INCDIR =
    LIBDIR =
    BINDIR = ..
    OBJDIR = .obj

    GCC_VERSION = $(shell $(CC) --version 2>&1 | grep "(GCC)" | cut -d' ' -f3  | cut -d'.' -f1)
    BSD_VERSION = $(shell uname -v 2>&1 | cut -d' ' -f2 | cut -d'.' -f1)
    P4_VERSION = 40250
    SVN_VERSION = $(shell svnversion -n .) 
    $(shell if [ ! -d $(OBJDIR) ]; then mkdir $(OBJDIR); fi)

    TARGET = $(BINDIR)/dbfile

    CFLAGS = -g3 -ggdb -pipe -fno-rtti -fno-exceptions -pthread -D_THREAD_SAFE

    ifeq ($(GCC_VERSION), 4)
    CFLAGS += -mtune=i686
    else
    CFLAGS += -mcpu=i686
    endif

    # boost
    INCDIR += -I../../boost

    LIBDIR += -L../../libthecore/lib -L../../libsql -L../../libpoly -L../../libgame/lib -L/usr/local/lib/mysql

    ifeq ($(BSD_VERSION), 7)
    INCDIR += -I../../libmysql/7.x-5.1.35
    LIBDIR += -L../../libmysql/7.x-5.1.35
    else
    INCDIR += -I../../libmysql/5.x-5.1.35
    LIBDIR += -L../../libmysql/5.x-5.1.35
    endif

    LIBS = -lthecore -lmysqlclient -lsql -lpoly -lgame -lm -lz

    SRCS =    Config.cpp NetBase.cpp Peer.cpp PeerBase.cpp Main.cpp Lock.cpp DBManager.cpp \
            Cache.cpp LoginData.cpp ClientManager.cpp ClientManagerPlayer.cpp ClientManagerLogin.cpp \
            ClientManagerBoot.cpp ClientManagerParty.cpp ClientManagerGuild.cpp GuildManager.cpp HB.cpp \
            PrivManager.cpp MoneyLog.cpp ItemAwardManager.cpp ClientManagerEventFlag.cpp Marriage.cpp \
            Monarch.cpp BlockCountry.cpp ItemIDRangeManager.cpp ClientManagerHorseName.cpp version.cpp \
            AuctionManager.cpp ProtoReader.cpp CsvReader.cpp 

    OBJS = $(SRCS:%.cpp=$(OBJDIR)/%.o)

    default: $(TARGET) 

    $(TARGET): $(OBJS)
        @echo linking ...
        @$(CC) $(CFLAGS) $(LIBDIR) $(OBJS) $(LIBS) -o $(TARGET)
        @touch version.cpp

    $(OBJDIR)/%.o: %.cpp
        @echo compile $<
        @$(CC) $(CFLAGS) $(INCDIR) -c $< -o $@

    $(OBJDIR)/version.o: version.cpp
        @$(CC) $(CFLAGS) -D__USER__=\"$(USER)\" -D__HOSTNAME__=\"$(HOSTNAME)\" -D__PWD__=\"$(PWD)\" -D__P4_VERSION__=\"$(P4_VERSION)\" -c $< -o $@
        @echo compile $<

    $(OBJDIR):
        @mkdir $(OBJDIR)

    clean:
        @rm -f $(OBJS) $(BINDIR)/db_r*

    dep:
        @touch Depend
        makedepend -fDepend $(INCDIR) -I/usr/include/c++/3.3 -I/usr/include/c++/4.2 -p$(OBJDIR)/ $(SRCS) 2> /dev/null


    sinclude Depend
     

     

  2. quest giveitem begin
        state start begin
            when login with pc.getqf("basic_weapon") == 0 begin
                makequestbutton("Informations")
                    pc.setqf("basic_weapon", 1)
                    addimage ( - 100 , - 70 , "004.tga" )
    	                if pc.job == 0 then
                                   pc.give_item2(11209,1)
                                       pc.give_item2(12209,1)
                                       pc.give_item2(00019,1)
                                       pc.give_item2(03009,1)
                           elseif pc.job == 1 then
                                       pc.give_item2(11409,1)
                                       pc.give_item2(12349,1)
                                       pc.give_item2(01009,1)
                                       pc.give_item2(02009,1)
                                       pc.give_item2(08000,200)
                           elseif pc.job == 2 then
                                       pc.give_item2(11609,1)
                                       pc.give_item2(12489,1)
                                       pc.give_item2(00019,1)
                            elseif pc.job == 3 then
                                       pc.give_item2(11809,1)
                                       pc.give_item2(12629,1)
                                       pc.give_item2(05009,1)
                                       pc.give_item2(07009,1)
                    end
    	                    pc.give_gold(10000000)    --10 000 000 Yangs
                        pc.give_item2(50053, 1)    --Livre cheval de combat
                        pc.give_item2(27003, 200)    --Potion Rouge(G) x200
                        pc.give_item2(27006, 200)    --Potion Bleue(G) x200
                        pc.give_item2(27112, 200)   --Potion Verte(G) x200
                        pc.give_item2(71050, 200)   --Potion Violette x200
                        pc.give_item2(70038, 200)     --Capes x200
                        pc.give_item2(15009, 1)    --Chaussures de cuir+9
                        pc.give_item2(13009, 1)    --Bouclier de bataille+9
                        pc.give_item2(14009, 1)    --Bracelet de bois+9
                        pc.give_item2(16009, 1)    --Collier de bois+9
                        pc.give_item2(17009, 1)    --Boucles oreilles bois+9
                        pc.give_item2(72702, 1)    --Bottes du Vent+
                        pc.give_item2(70005, 1)    --Anneau d'expérience
    	                    if game.get_safebox_level()==0 then
                            game.set_safebox_level(1)
                        end
                        pc.set_skill_level(131, 1)
                        repeat
                        horse . advance ()
                        until horse . get_level () >= 21
                        horse.summon()
                        horse.ride()
    	                ---
                    say_title(""..pc.name..", Bienvenue sur Asgard !")
                    say_noir("[ENTER]Les grands sages ont décidé de vous aider pour")
                    say_noir("le début de l'aventure et vous on fait grâce de")
                    say_noir("plusieurs présents :")
                    say_gris("> monture niveau 21")
                    say_gris("> équipement du débutant +9 (potions, bouclier,[ENTER]armure, armes et bijoux)[ENTER]")
                    say_noir("Alors qu'attendez-vous ?[ENTER]Bon courage dans les provinces d'Asgard ![ENTER]")
                    say_noir("(N'oubliez pas de respecter le règlement.[ENTER]+ d'infos sur le forum et le site.)[ENTER]")
    				return
            end
            
            when button or info begin
                    addimage ( - 100 , - 70 , "004.tga" )
                    say_title("Informations.")
                    say_noir("[ENTER]Vous pouvez aller voir Madame Irma, elle vous[ENTER]donnera quelques petites astuces !")
                    say_noir("Mais attention elle n'a pas toute sa tête, il faut[ENTER]lui parler plusieurs fois pour avoir plus d'infos ![ENTER]")
                    say_gris("Les astuces sont au nombre de 4 pour le moment.[ENTER]")
                    clear_letter()
            end
     
        end
    end

    try this

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.