Jump to content

ahmedhaies

Inactive Member
  • Posts

    150
  • Joined

  • Last visited

  • Days Won

    2
  • Feedback

    0%

Posts posted by ahmedhaies

  1. Spoiler

    quest this_quest_by_haies begin
        state start begin
            when 9003.chat." gm " with pc.is_gm() begin
                say(" bla bla bla ... ")
                say(" insert any password to event today ! only number ")
                local haies_pass = input()
                haies_pass = tonumber(haies_pass)
                say(" do you want start event ? ")
                local haies = select(" yes " , " stop event for all "," exit ")
                if haies == 1 then
                    game.set_event_flag("event_haies", 1)
                    game.set_event_flag("password_haies", haies_pass)
                elseif haies == 2 then
                    game.set_event_flag("event_haies", 0)
                elseif haies == 3 then
                    return
                end
            end
            when 9003.chat." event today " with game.get_event_flag("event_haies") == 1 begin
                say(" hello player ! ")
                say(" insert password to event today : ")
                local haies_pass = input()
                haies_pass = tonumber(haies_pass)
                if haies_pass == game.get_event_flag("password_haies") then
                    pc.setqf("event_haies", 1)
                else
                    say(" pass erorr ")
                end
            end
            when kill with pc.getqf("event_haies") >= 1 begin
                game.drop_item(50160,1) -- or any thing and any function
            end
        end
    end

    this quest The player going to the merchant enters the password so that the gm selected and enter the correct way when the event will start the player
    End

     

     

     

     

    Complete you want from dropping, etc. of things

  2. add this function in questlib.lua

    Spoiler

    function say_show_item_haies(vnum1,vnum2)
        say("[INSERT_IMAGE image_type;item|idx;"..vnum1.."|index;".. 0 .."|total;".. 1 .."]".."[INSERT_IMAGE image_type;item|idx;"..vnum2.."|index;".. 0 .."|total;".. 1 .."]")
    end

    add this word

    Spoiler

    say_show_item_haies

    in quest_function

     

    and edit your quest to

    Spoiler

    quest start_quest begin
        state start begin
            when 15051.chat." Try  " begin
                say_title(" NPC:")
                say("")
                say(" Postoupíme v trénování zručnosti. ")
                say("Dones mi tedy nepoškozené tyto předměty:")
                say_show_item_haies(50419,50402)
                say(" Máš čas do dnešní půlnoci.Doufám, že to do té doby zvládneš. ")
            end
        end
    end

     

  3. hello all

    my server is crashed

    when debug game.core plz hlep me

     

    Spoiler


    GNU gdb 6.1.1 [FreeBSD]
    Copyright 2004 Free Software Foundation, Inc.
    GDB is free software, covered by the GNU General Public License, and you are
    welcome to change it and/or distribute copies of it under certain conditions.
    Type "show copying" to see the conditions.
    There is absolutely no warranty for GDB.  Type "show warranty" for details.
    This GDB was configured as "amd64-marcel-freebsd"...
    "/enfiles/marty/mt2/chan/ch1/core1/game.core" is not a core dump: File format is ambiguous
    (gdb) set gnutarget i386-marcel-freebsd
    (gdb) cd /enfiles/marty/mt2/share/
    Working directory /enfiles/marty/mt2/share.
    (gdb) file game
    Load new symbol table from "game"? (y or n) y
    Reading symbols from game...done.
    (gdb) cd /enfiles/marty/mt2/chan/ch1/core1/
    Working directory /enfiles/marty/mt2/chan/ch1/core1.
    (gdb) core game.core
    Core was generated by `game'.
    Program terminated with signal 11, Segmentation fault.
    Reading symbols from /usr/local/lib32/compat/libmd.so.5...done.
    Loaded symbols for /usr/local/lib32/compat/libmd.so.5
    Reading symbols from /usr/local/lib32/compat/libssl.so.6...done.
    Loaded symbols for /usr/local/lib32/compat/libssl.so.6
    Reading symbols from /usr/local/lib32/compat/libstdc++.so.6...done.
    Loaded symbols for /usr/local/lib32/compat/libstdc++.so.6
    Reading symbols from /usr/lib32/libm.so.5...done.
    Loaded symbols for /usr/lib32/libm.so.5
    Reading symbols from /usr/lib32/libgcc_s.so.1...done.
    Loaded symbols for /usr/lib32/libgcc_s.so.1
    Reading symbols from /usr/lib32/libthr.so.3...done.
    Loaded symbols for /usr/lib32/libthr.so.3
    Reading symbols from /usr/lib32/libc.so.7...done.
    Loaded symbols for /usr/lib32/libc.so.7
    Reading symbols from /usr/local/lib32/compat/libcrypto.so.6...done.
    Loaded symbols for /usr/local/lib32/compat/libcrypto.so.6
    Reading symbols from /usr/local/lib32/compat/libsupc++.so.1...done.
    Loaded symbols for /usr/local/lib32/compat/libsupc++.so.1
    Reading symbols from /libexec/ld-elf32.so.1...done.
    Loaded symbols for /libexec/ld-elf32.so.1
    #0  std::for_each<std::tr1::__detail::_Hashtable_const_iterator<DESC*, true, false>, FuncWho> (__first=<value optimized out>,
        __last=<value optimized out>, __f={iTotalCount = 0, aiEmpireUserCount = {0, 1, 0, 4}}) at stl_algo.h:159
    159     stl_algo.h: No such file or directory.
            in stl_algo.h
    [New Thread 294030b429403d00 (LWP 100327/<unknown>)]
    [New Thread 28a4c5e829403a80 (LWP 100326/<unknown>)]
    [New Thread 29403d3429403800 (LWP 100325/<unknown>)]
    [New Thread 29403ab429403080 (LWP 100239/<unknown>)]
    Cannot find new threads: generic error

     

     

  4. hello all my server is crashed

    and i make debug and i have this erorr plz help me

    Spoiler

    GNU gdb 6.1.1 [FreeBSD]
    Copyright 2004 Free Software Foundation, Inc.
    GDB is free software, covered by the GNU General Public License, and you are
    welcome to change it and/or distribute copies of it under certain conditions.
    Type "show copying" to see the conditions.
    There is absolutely no warranty for GDB.  Type "show warranty" for details.
    This GDB was configured as "amd64-marcel-freebsd"...
    "/enfiles/marty/mt2/chan/ch1/core1/game.core" is not a core dump: File format is ambiguous
    (gdb) set gnutarget i386-marcel-freebsd
    (gdb) file game
    game: No such file or directory.
    (gdb) core game.core
    Core was generated by `game'.
    Program terminated with signal 11, Segmentation fault.
    #0  std::for_each<std::tr1::__detail::_Hashtable_const_iterator<DESC*, true, false>, FuncWho> (__first=<value optimized out>,
        __last=<value optimized out>, __f={iTotalCount = 0, aiEmpireUserCount = {0, 8, 17, 28}}) at desc_manager.cpp:407
    407     desc_manager.cpp: No such file or directory.
            in desc_manager.cpp

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

    my desc_manger.ccp

    http://pastebin.com/rMTKtt1G

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

    my syserr in channel 1

    http://pastebin.com/xwrfvwBp

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

    my syslog in channel 1

    http://pastebin.com/3qAGvEw4

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

    syserr in db

    Spoiler

    SYSERR: Mar 22 04:29:17 :: pid_init:
    Start of pid: 3959

    SYSERR: Mar 22 09:38:18 :: ChildLoop: AsyncSQL: query failed: Duplicate entry '108' for key 'PRIMARY' (query: INSERT INTO safebox  (account_id, size) VALUES(108, 1) errno: 1062)
    SYSERR: Mar 22 10:27:31 :: ChildLoop: AsyncSQL: query failed: Duplicate entry '468' for key 'PRIMARY' (query: INSERT INTO safebox  (account_id, size) VALUES(468, 1) errno: 1062)
    SYSERR: Mar 22 10:51:30 :: ChildLoop: AsyncSQL: query failed: Duplicate entry '12690' for key 'PRIMARY' (query: INSERT INTO safebox  (account_id, size) VALUES(12690, 1) errno: 1062)
    SYSERR: Mar 22 14:48:27 :: ChildLoop: AsyncSQL: query failed: Duplicate entry '12652' for key 'PRIMARY' (query: INSERT INTO safebox  (account_id, size) VALUES(12652, 1) errno: 1062)
    SYSERR: Mar 22 15:19:24 :: ChildLoop: AsyncSQL: query failed: Duplicate entry '10946' for key 'PRIMARY' (query: INSERT INTO safebox  (account_id, size) VALUES(10946, 1) errno: 1062)
    SYSERR: Mar 22 20:40:15 :: ChildLoop: AsyncSQL: query failed: Duplicate entry '901' for key 'PRIMARY' (query: INSERT INTO safebox  (account_id, size) VALUES(901, 1) errno: 1062)
    SYSERR: Mar 22 22:03:30 :: ChildLoop: AsyncSQL: query failed: Duplicate entry '133' for key 'PRIMARY' (query: INSERT INTO safebox  (account_id, size) VALUES(133, 1) errno: 1062)
    SYSERR: Mar 22 22:49:06 :: ChildLoop: AsyncSQL: query failed: Duplicate entry '12477' for key 'PRIMARY' (query: INSERT INTO safebox  (account_id, size) VALUES(12477, 1) errno: 1062)
    SYSERR: Mar 23 02:01:54 :: ChildLoop: AsyncSQL: query failed: Duplicate entry '12195' for key 'PRIMARY' (query: INSERT INTO safebox  (account_id, size) VALUES(12195, 1) errno: 1062)
    SYSERR: Mar 23 03:55:27 :: ChildLoop: AsyncSQL: query failed: Duplicate entry '12729' for key 'PRIMARY' (query: INSERT INTO safebox  (account_id, size) VALUES(12729, 1) errno: 1062)
    SYSERR: Mar 23 06:41:32 :: ChildLoop: AsyncSQL: query failed: Duplicate entry '6787' for key 'PRIMARY' (query: INSERT INTO safebox  (account_id, size) VALUES(6787, 1) errno: 1062)
    SYSERR: Mar 23 07:44:15 :: ChildLoop: AsyncSQL: query failed: Duplicate entry '8859' for key 'PRIMARY' (query: INSERT INTO safebox  (account_id, size) VALUES(8859, 1) errno: 1062)
    SYSERR: Mar 23 10:39:32 :: Process: FDWATCH: peer null in event: ident 21
    SYSERR: Mar 23 10:58:04 :: DirectQuery: MySQL connection was reconnected. querying locale set

     

    syslog in db

    http://pastebin.com/KzUqYiYV

×
×
  • 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.