Jump to content

Rodrigo152

Member
  • Posts

    19
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Rodrigo152

  1. Good afternoon guys, I have this quest for achievement points, where you exchange points for a certain item, but it's not working. Can someone help me

     

    quest point_change begin
        state start begin
            when 20082.chat."Exchange Points" with pc.getqf("exchange_access") == 1 begin
                -- Simulating that there is a mysql_query function that queries the database.
                local result_achievement = mysql_query("SELECT ranking_of_boss FROM player WHERE id = "..pc.get_player_id())
                local points_achievement = result_achievement[1] -- Assuming that the result is a table where the first element is the desired value.
                local result_kills = mysql_query("SELECT ranking_kills FROM player WHERE id = "..pc.get_player_id())
                local points_kills = result_kills[1]
    
                say("Welcome to the points exchange system!")
                say("You can exchange your achievement points and kills for valuable items here.")
                local s = select("Exchange achievement points", "Exchange kill points", "Cancel")
                
                if s == 1 then
                    say("You have " .. conquest_points .. " conquest points.")
                    say("Every 10 points can be exchanged for 1 Big Red Potion.")
                    if achievement_points >= 10 then
                        local choice = select("Exchange 10 points for 1 Potion", "Cancel")
                        if choice == 1 then
                            -- Assuming the item can be added directly to the player's inventory.
                            pc.give_item2("ITEM_ID_POT_GREEN", 1)
                            -- Updating the database directly
                            mysql_query("UPDATE player SET ranking_of_boss = ranking_of_boss - 10 WHERE id = "..pc.get_player_id())
                            say("Exchange successful!")
                        end else
                    else
                        say("You don't have enough points.")
                    end else
                elseif s == 2 then
                    say("You have " .. points_kills .. " kill points.")
                    say("Every 15 points can be exchanged for 1 War Armor.")
                    if points_kills >= 15 then
                        local choice = select("Exchange 15 points for 1 Armor", "Cancel")
                        if choice == 1 then
                            pc.give_item2("ITEM_ID_ARMADURA_GUERRA", 1)
                            mysql_query("UPDATE player SET ranking_of_kills = ranking_of_kills - 15 WHERE id = "..pc.get_player_id())
                            say("Exchange successful!")
                        end else
                    else
                        say("You don't have enough points.")
                    end
                end
            end
        end
    end

     

  2. Good afternoon community, I would like to know how to put the jewels to refine, I put the vnum and refine_set but it doesn't work.

    Quote

    28430    ������+4    Joia da Penetracao+4    10    0    0    1    0    5    16        0    0    28530    761    0    0    0    0    0    0    16    8    0    0    0    0    0    0    0    0    0    17    -1    -1    -1    -1    -1    -1    0    0    0

     

  3. Good afternoon guys, I have a problem, I installed the server on the VPS, everything was fine, but when I select the character and it loads, I get dc, can anyone help me? follow Database and Channel syserr.

     

    syserr Database.

    Spoiler

    SYSERR: Apr  1 16:30:06 :: Process: FDWATCH: peer null in event: ident 20
    SYSERR: Apr  1 16:30:06 :: Process: FDWATCH: peer null in event: ident 22
    SYSERR: Apr  1 16:30:06 :: Process: FDWATCH: peer null in event: ident 25
    SYSERR: Apr  1 16:30:06 :: Process: FDWATCH: peer null in event: ident 23
    SYSERR: Apr  1 16:30:06 :: Process: FDWATCH: peer null in event: ident 29
    SYSERR: Apr  1 16:30:07 :: Process: FDWATCH: peer null in event: ident 27
    SYSERR: Apr  1 16:30:07 :: Process: FDWATCH: peer null in event: ident 24
    SYSERR: Apr  1 16:30:07 :: Process: FDWATCH: peer null in event: ident 21
    SYSERR: Apr  1 16:30:08 :: Process: FDWATCH: peer null in event: ident 28
    SYSERR: Apr  1 16:30:12 :: Process: FDWATCH: peer null in event: ident 26
    SYSERR: Apr  1 18:18:49 :: Process: FDWATCH: peer null in event: ident 20
    SYSERR: Apr  1 18:18:50 :: Process: FDWATCH: peer null in event: ident 28
    SYSERR: Apr  1 18:18:50 :: Process: FDWATCH: peer null in event: ident 25
    SYSERR: Apr  1 18:18:50 :: Process: FDWATCH: peer null in event: ident 24
    SYSERR: Apr  1 18:18:54 :: Process: FDWATCH: peer null in event: ident 27
    SYSERR: Apr  1 18:18:58 :: hupsig: SIGHUP, SIGINT, SIGTERM signal has been received. shutting down.
    SYSERR: Apr  1 18:18:58 :: pid_deinit: 
    End of pid

    SYSERR: Apr  1 18:19:02 :: pid_init: 
    Start of pid: 53038

    SYSERR: Apr  1 18:19:56 :: hupsig: SIGHUP, SIGINT, SIGTERM signal has been received. shutting down.
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: query failed: Server shutdown in progress (query: REPLACE INTO item (id, owner_id, window, pos, count, vnum,bind) VALUES(90054695, 1, 1, 22, 1, 75411,0 ) errno: 1053)
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: query failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (query: REPLACE INTO item (id, owner_id, window, pos, count, vnum,bind) VALUES(30527962, 1, 6, 12, 1, 30180,0 ) errno: 2002)
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: retrying
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: query failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (query: REPLACE INTO item (id, owner_id, window, pos, count, vnum,bind) VALUES(30527962, 1, 6, 12, 1, 30180,0 ) errno: 2002)
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: retrying
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: query failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (query: REPLACE INTO item (id, owner_id, window, pos, count, vnum,bind) VALUES(30527962, 1, 6, 12, 1, 30180,0 ) errno: 2002)
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: retrying
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: query failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (query: REPLACE INTO item (id, owner_id, window, pos, count, vnum,bind) VALUES(30527962, 1, 6, 12, 1, 30180,0 ) errno: 2002)
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: retrying
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: query failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (query: REPLACE INTO item (id, owner_id, window, pos, count, vnum,bind) VALUES(30527962, 1, 6, 12, 1, 30180,0 ) errno: 2002)
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: retrying
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: query failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (query: REPLACE INTO item (id, owner_id, window, pos, count, vnum,bind) VALUES(30527962, 1, 6, 12, 1, 30180,0 ) errno: 2002)
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: retrying
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: query failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (query: REPLACE INTO item (id, owner_id, window, pos, count, vnum,bind) VALUES(30527962, 1, 6, 12, 1, 30180,0 ) errno: 2002)
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: retrying
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: query failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (query: REPLACE INTO item (id, owner_id, window, pos, count, vnum,bind) VALUES(30527962, 1, 6, 12, 1, 30180,0 ) errno: 2002)
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: retrying
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: query failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (query: REPLACE INTO item (id, owner_id, window, pos, count, vnum,bind) VALUES(30527962, 1, 6, 12, 1, 30180,0 ) errno: 2002)
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: retrying
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: query failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (query: REPLACE INTO item (id, owner_id, window, pos, count, vnum,bind) VALUES(30527962, 1, 6, 12, 1, 30180,0 ) errno: 2002)
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: retrying
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: query failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (query: REPLACE INTO item (id, owner_id, window, pos, count, vnum,bind) VALUES(30527962, 1, 6, 12, 1, 30180,0 ) errno: 2002)
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: retrying
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: query failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (query: REPLACE INTO item (id, owner_id, window, pos, count, vnum,bind) VALUES(30527962, 1, 6, 12, 1, 30180,0 ) errno: 2002)
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: retrying
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: query failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (query: REPLACE INTO item (id, owner_id, window, pos, count, vnum,bind) VALUES(30527962, 1, 6, 12, 1, 30180,0 ) errno: 2002)
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: retrying
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: query failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (query: REPLACE INTO item (id, owner_id, window, pos, count, vnum,bind) VALUES(30527962, 1, 6, 12, 1, 30180,0 ) errno: 2002)
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: retrying
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: query failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (query: REPLACE INTO item (id, owner_id, window, pos, count, vnum,bind) VALUES(30527962, 1, 6, 12, 1, 30180,0 ) errno: 2002)
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: retrying
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: query failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (query: REPLACE INTO item (id, owner_id, window, pos, count, vnum,bind) VALUES(30527962, 1, 6, 12, 1, 30180,0 ) errno: 2002)
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: retrying
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: query failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (query: REPLACE INTO item (id, owner_id, window, pos, count, vnum,bind) VALUES(30527962, 1, 6, 12, 1, 30180,0 ) errno: 2002)
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: retrying
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: query failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (query: REPLACE INTO item (id, owner_id, window, pos, count, vnum,bind) VALUES(30527962, 1, 6, 12, 1, 30180,0 ) errno: 2002)
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: retrying
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: query failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (query: REPLACE INTO item (id, owner_id, window, pos, count, vnum,bind) VALUES(30527962, 1, 6, 12, 1, 30180,0 ) errno: 2002)
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: retrying
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: query failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (query: REPLACE INTO item (id, owner_id, window, pos, count, vnum,bind) VALUES(30527962, 1, 6, 12, 1, 30180,0 ) errno: 2002)
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: retrying
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: query failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (query: REPLACE INTO item (id, owner_id, window, pos, count, vnum,bind) VALUES(30527962, 1, 6, 12, 1, 30180,0 ) errno: 2002)
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: retrying
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: query failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (query: REPLACE INTO item (id, owner_id, window, pos, count, vnum,bind) VALUES(30527962, 1, 6, 12, 1, 30180,0 ) errno: 2002)
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: retrying
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: query failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (query: REPLACE INTO item (id, owner_id, window, pos, count, vnum,bind) VALUES(30527962, 1, 6, 12, 1, 30180,0 ) errno: 2002)
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: retrying
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: query failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (query: REPLACE INTO item (id, owner_id, window, pos, count, vnum,bind) VALUES(30527962, 1, 6, 12, 1, 30180,0 ) errno: 2002)
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: retrying
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: query failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (query: REPLACE INTO item (id, owner_id, window, pos, count, vnum,bind) VALUES(30527962, 1, 6, 12, 1, 30180,0 ) errno: 2002)
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: retrying
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: query failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (query: REPLACE INTO item (id, owner_id, window, pos, count, vnum,bind) VALUES(30527962, 1, 6, 12, 1, 30180,0 ) errno: 2002)
    SYSERR: Apr  1 18:19:56 :: ChildLoop: AsyncSQL: retrying
    SYSERR: Apr  1 18:19:56 :: pid_deinit: 
    End of pid

    SYSERR: Apr  1 18:21:07 :: pid_init: 
    Start of pid: 2052

    SYSERR: Apr  1 18:54:06 :: hupsig: SIGHUP, SIGINT, SIGTERM signal has been received. shutting down.
    SYSERR: Apr  1 18:54:06 :: pid_deinit: 
    End of pid

    SYSERR: Apr  1 18:55:16 :: pid_init: 
    Start of pid: 2044

    SYSERR: Apr  1 19:05:45 :: Process: FDWATCH: peer null in event: ident 20
    SYSERR: Apr  1 19:05:45 :: Process: FDWATCH: peer null in event: ident 22
    SYSERR: Apr  1 19:05:46 :: Process: FDWATCH: peer null in event: ident 27
    SYSERR: Apr  1 19:05:46 :: Process: FDWATCH: peer null in event: ident 21
    SYSERR: Apr  1 19:05:46 :: Process: FDWATCH: peer null in event: ident 28
    SYSERR: Apr  1 19:05:46 :: Process: FDWATCH: peer null in event: ident 24
    SYSERR: Apr  1 19:05:46 :: Process: FDWATCH: peer null in event: ident 26
    SYSERR: Apr  1 19:05:47 :: Process: FDWATCH: peer null in event: ident 23
    SYSERR: Apr  1 19:05:48 :: Process: FDWATCH: peer null in event: ident 25
    SYSERR: Apr  1 19:05:49 :: Process: FDWATCH: peer null in event: ident 29
    SYSERR: Apr  1 19:05:55 :: hupsig: SIGHUP, SIGINT, SIGTERM signal has been received. shutting down.
    SYSERR: Apr  1 19:05:55 :: pid_deinit: 
    End of pid

    SYSERR: Apr  1 19:06:14 :: pid_init: 
    Start of pid: 2332

     

    Syserr Channels

    Spoiler

    SYSERR: Apr  1 16:30:05 :: hupsig: SIGHUP, SIGINT, SIGTERM signal has been received. shutting down.
    SYSERR: Apr  1 16:30:07 :: ForAttrRegionFreeAngle: SECTREE_MANAGER::ForAttrRegion - Unhandled exception. MapIndex: 41
    SYSERR: Apr  1 16:30:07 :: pid_deinit: 
    End of pid

    SYSERR: Apr  1 16:30:09 :: pid_init: 
    Start of pid: 13374

    SYSERR: Apr  1 16:30:29 :: ReadNormalBattlePassMissions: battle_pass.txt : normal_november_2021_week_1 
    SYSERR: Apr  1 16:30:29 :: ReadPremiumBattlePassMissions: battle_pass.txt : premium_november_2021_week_1 
    SYSERR: Apr  1 16:30:29 :: ReadEventBattlePassMissions: battle_pass.txt : event_2021_advent_event 
    SYSERR: Apr  1 16:30:29 :: ForAttrRegionFreeAngle: SECTREE_MANAGER::ForAttrRegion - Unhandled exception. MapIndex: 41
    SYSERR: Apr  1 18:19:01 :: socket_connect: HOST localhost:15000, could not connect.
    SYSERR: Apr  1 18:19:04 :: socket_connect: HOST localhost:15000, could not connect.
    SYSERR: Apr  1 18:19:56 :: hupsig: SIGHUP, SIGINT, SIGTERM signal has been received. shutting down.
    SYSERR: Apr  1 18:19:58 :: ForAttrRegionFreeAngle: SECTREE_MANAGER::ForAttrRegion - Unhandled exception. MapIndex: 41
    SYSERR: Apr  1 18:19:58 :: pid_deinit: 
    End of pid

    SYSERR: Apr  1 18:21:11 :: pid_init: 
    Start of pid: 2066

    SYSERR: Apr  1 18:21:36 :: ReadNormalBattlePassMissions: battle_pass.txt : normal_november_2021_week_1 
    SYSERR: Apr  1 18:21:36 :: ReadPremiumBattlePassMissions: battle_pass.txt : premium_november_2021_week_1 
    SYSERR: Apr  1 18:21:36 :: ReadEventBattlePassMissions: battle_pass.txt : event_2021_advent_event 
    SYSERR: Apr  1 18:21:36 :: ForAttrRegionFreeAngle: SECTREE_MANAGER::ForAttrRegion - Unhandled exception. MapIndex: 41
    SYSERR: Apr  1 18:54:06 :: hupsig: SIGHUP, SIGINT, SIGTERM signal has been received. shutting down.
    SYSERR: Apr  1 18:54:08 :: ForAttrRegionFreeAngle: SECTREE_MANAGER::ForAttrRegion - Unhandled exception. MapIndex: 41
    SYSERR: Apr  1 18:54:08 :: pid_deinit: 
    End of pid

    SYSERR: Apr  1 18:55:21 :: pid_init: 
    Start of pid: 2058

    SYSERR: Apr  1 18:55:44 :: ReadNormalBattlePassMissions: battle_pass.txt : normal_november_2021_week_1 
    SYSERR: Apr  1 18:55:44 :: ReadPremiumBattlePassMissions: battle_pass.txt : premium_november_2021_week_1 
    SYSERR: Apr  1 18:55:44 :: ReadEventBattlePassMissions: battle_pass.txt : event_2021_advent_event 
    SYSERR: Apr  1 18:55:44 :: ForAttrRegionFreeAngle: SECTREE_MANAGER::ForAttrRegion - Unhandled exception. MapIndex: 41
    SYSERR: Apr  1 19:05:45 :: hupsig: SIGHUP, SIGINT, SIGTERM signal has been received. shutting down.
    SYSERR: Apr  1 19:05:46 :: ForAttrRegionFreeAngle: SECTREE_MANAGER::ForAttrRegion - Unhandled exception. MapIndex: 41
    SYSERR: Apr  1 19:05:47 :: pid_deinit: 
    End of pid

    SYSERR: Apr  1 19:06:17 :: pid_init: 
    Start of pid: 2346

    SYSERR: Apr  1 19:06:37 :: ReadNormalBattlePassMissions: battle_pass.txt : normal_november_2021_week_1 
    SYSERR: Apr  1 19:06:37 :: ReadPremiumBattlePassMissions: battle_pass.txt : premium_november_2021_week_1 
    SYSERR: Apr  1 19:06:37 :: ReadEventBattlePassMissions: battle_pass.txt : event_2021_advent_event 
    SYSERR: Apr  1 19:06:37 :: ForAttrRegionFreeAngle: SECTREE_MANAGER::ForAttrRegion - Unhandled exception. MapIndex: 41
     

     

    Syserr Acess

    Spoiler

    SYSERR: Apr  1 16:30:05 :: hupsig: SIGHUP, SIGINT, SIGTERM signal has been received. shutting down.
    SYSERR: Apr  1 16:30:06 :: pid_deinit: 
    End of pid

    SYSERR: Apr  1 16:30:09 :: pid_init: 
    Start of pid: 13367

    SYSERR: Apr  1 18:18:49 :: hupsig: SIGHUP, SIGINT, SIGTERM signal has been received. shutting down.
    SYSERR: Apr  1 18:18:49 :: pid_deinit: 
    End of pid

    SYSERR: Apr  1 18:18:55 :: pid_init: 
    Start of pid: 52969

    SYSERR: Apr  1 18:19:01 :: socket_connect: HOST localhost:15000, could not connect.
    SYSERR: Apr  1 18:19:04 :: socket_connect: HOST localhost:15000, could not connect.
    SYSERR: Apr  1 18:19:56 :: hupsig: SIGHUP, SIGINT, SIGTERM signal has been received. shutting down.
    SYSERR: Apr  1 18:19:56 :: pid_deinit: 
    End of pid

    SYSERR: Apr  1 18:21:11 :: pid_init: 
    Start of pid: 2059

    SYSERR: Apr  1 18:54:06 :: hupsig: SIGHUP, SIGINT, SIGTERM signal has been received. shutting down.
    SYSERR: Apr  1 18:54:07 :: pid_deinit: 
    End of pid

    SYSERR: Apr  1 18:55:20 :: pid_init: 
    Start of pid: 2051

    SYSERR: Apr  1 19:05:45 :: hupsig: SIGHUP, SIGINT, SIGTERM signal has been received. shutting down.
    SYSERR: Apr  1 19:05:45 :: pid_deinit: 
    End of pid

    SYSERR: Apr  1 19:06:17 :: pid_init: 
    Start of pid: 2339

     

  4. Good afternoon guys, so I've got a bug in the biologist quest, from quest level 70 onwards, it no longer delivers the fixed bonuses when completing the quest. Can anyone help me?

    Spoiler

    ----------------------------------------------------
    --COLLECT QUEST_lv70
    --METIN2 Collecting Quest
    ----------------------------------------------------
    quest collect_quest_lv70  begin
            state start begin
            end
            state run begin
                    when login or levelup with pc.level >= 70 and not pc.is_gm() begin
                            set_state(information)
                    end
            end

            state information begin
                    when letter begin
                            local v = find_npc_by_vnum(20084)
                            if v != 0 then
                                    target.vid("__TARGET__", v, "Girab ")
                            end
                            send_letter("A Pesquisa do Biólogoo")
                    end

                    when button or info begin
                            say_title("A Pesquisa do Biólogo ")
                            say()
                            say("O Biólogo precisa novamente de sua ")
                            say("ajuda. Vá falar com ele e ajude-o. ")
                            say()
                    end

                    when __TARGET__.target.click or
                            20084.chat."Galhos Folhados " begin
                            target.delete("__TARGET__")
                            say_title("Girab: ")
                            say()
                            ---                                                   l
                            say ("Oh! Por favor, preciso novamente de ajuda... ")
                            say ("Como você sabe eu coleto informações sobre os ")
                            say ("monstros que ameaçam constantemente nosso reino, ")
                            say ("mas tenho que reconhecer, não posso fazer isso ")
                            say ("sozinho. Na verdade, eu deveria buscar eu mesmo ")
                            say ("esta informação. Você pode imaginar o enorme ")
                            say ("problema que tenho, sou um simples biólogo. ")
                            say ("Por favor me ajude. Naturalmente receberá uma ")
                            say ("uma boa recompensa pela ajuda. ")
                            say()
                            wait()
                            say_title("Girab:")
                            say()
                            say("Nos últimos tempos me dedico a pesquisar lendas... ")
                            say("Eu gostaria de saber mais sobre o Galho Folhado. ")
                            say("Esta floresta era uma vez um bosque grande. ")
                            say("Depois que as Pedras Metin apareceram, ela ficou ")
                            say("cheia de energia escura. Ela foi aterrorizada ")
                            say("por um fantasma escuro em  épocas anteriores. ")
                            say("Você terá que encontrar Galho Folhado. ")
                            say()
                            wait()
                            say_title("Girab:")
                            say()
                            say("Quanto tempo você precisa para trazer ")
                            say("alguns Galhos Folhados? Mas eles não podem ")
                            say("ser muito finos ou partidos. Porque este ")
                            say("tipo de galho, não pode ser analisado... ")
                            say("Para minha pesquisa precisarei de 25 galhos. ")
                            say("Boa Sorte! ")
                            say()
                            say()
                            set_state(go_to_disciple)
                            pc.setqf("duration",1)  
                             pc.setqf("collect_count",1)
                            pc.setqf("drink_drug",1) 
                            end
            end

            state go_to_disciple begin
                    when letter begin
                            send_letter("A Pesquisa do Biólogo")

                    end
                    when button or info begin
                            say_title("Conseguir Galhos Folhados ")
                            ---                                                   l
                            say()
                            say("O Biólogo, pediu que você vá a floresta em ")
                            say("busca dos Galhos Folhados, para suas pesquisas. ")
                            say("A entrada da floresta está bloqueada por árvores ")
                            say("com habilidades muito especiais. Traga os 25 ")
                            say("galhos folhados que ele precisa para concluir os ")
                            say("estudos. Lembre de entregar apenas um por vez. ")
                            say()
                            say()
                            say_item_vnum(30165)
                            say_reward("Você já entregou "..pc.getqf("collect_count").." Galhos")
                            say()
                    end

                    when 71035.use begin
                            if get_time() < pc.getqf("duration") then
                            say()
                            say("Você não pode usar o Soro da Persuasão ainda. ")
                            say()
                            return
                            end
                            if pc.getqf("drink_drug")==1 then
                                    say()
                                    say("Você já usou o Soro da Persuasão. ")
                                    say()
                                    return
                            end
                            if pc.count_item(30165)==0 then
                                    say_title("Girab:")
                                    say()
                                    say("Quando você for entregar os Galhos, ")
                                    say("poderá usar o Soro da Persuasão. ")
                                    say()
                                    return
                            end
                            item.remove()
                            pc.setqf("drink_drug",1)
                    end
            when 2301.kill or 
                 2302.kill or
                 2303.kill or
                 2304.kill or
                 2305.kill or 
                 2311.kill or 
                 2312.kill or 
                 2313.kill or
                 2314.kill or
                 2315.kill  begin
                local s = number(1, 80)
                if s == 1 and pc.count_item(30165)==0 then
                    pc.give_item2(30165)
                    send_letter("Você adquiriu "..item_name(30165).. ". ")
                end    
            end

            when 30132.use with pc.count_item(30132) >0 begin
                say_title(mob_name(20084))
                say("")
                say("Você deseja pular o tempo de espera?")
                local r = select("Sim","Fechar")
                if r == 2 then
                return
                else
                pc.remove_item("30132",1)
                pc.setqf("duration", get_time()-1)
                say_title(mob_name(20084))
                say("")
                say("Pronto, agora você pode entregar sua missão novamente!")
                return
                end
            end
             when 20084.chat."Você tem os Galhos? " with pc.count_item(30165) >0   begin
                            if get_time() > pc.getqf("duration") then
                                    say_title("Girab: ")
                                    say()
                                    ---                                                   l
                                    say("Você trouxe o Galho Folhado. ")
                                    say("Eu tenho que verificar isso, ")
                                    say("um momento por favor... ")
                                    say()
                                    pc.remove_item(30165, 1)
                                    pc.setqf("duration",get_time()+60*60*2) -- 2ras
                                    wait()
                                    local pass_percent
                                    if pc.getqf("drink_drug")==0 then
                                            pass_percent=60
                                    else
                                            pass_percent=90
                                    end

                                    local s= number(1,100)
                                    if s<= pass_percent  then
                                       if pc.getqf("collect_count")< 24 then                                                     
                                           local index =pc.getqf("collect_count")+1
                                           pc.setqf("collect_count",index)     
                                            say_title("Girab: ")
                                            say()
                                            say("Maravilha, obrigado... este está perfeito... ")
                                            say("Faltam".." "..25-pc.getqf("collect_count").. " Galhos Folhados. ")
                                            say("Boa sorte! Busque os que faltam. ")
                                            say()
                                            pc.setqf("drink_drug",0)        
                                            return
                                            end
                                            say_title("Girab: ")
                                            say()
                                            ---                                                   l
                                            say("Bom trabalho! Amigo! ")
                                            say("Me trouxe todos os Galhos Folhados! ")
                                            say("Vou terminar meus estudos e anotações. ")
                                            say("Agora preciso da Pedra da Alma Fantasma que ")
                                            say("você conseguira derrotando as arvores da ")
                                            say("Floresta Fantasma. Pode conseguir para mim?" )             
                                            say()
                                            pc.setqf("collect_count",0)
                                            pc.setqf("drink_drug",0)
                                            pc.setqf("duration",-1)
                                            set_state(key_item)
                                            return
                                    else
                                    say_title("Girab:")
                                    say()
                                    say("Hmm... infelizmente este Galho ")
                                    say("Folhado não serve para estudo! ")
                                    say("Consiga-me outro inteiro! ")
                                    say()
                                    pc.setqf("drink_drug",0)                                       
                                      return
                                    end
                                    else
                                  say_title("Girab: ")
                                say()
              ---                                                   l
                                say("Olá!...")
                                say("Ainda não terminei a análise, ")
                                say("do galho que me entregou. ") 
                                say("Volte mais tarde. Obrigado! ")
                                say()
                      return
                    end

            end
    end


            state key_item begin
                    when letter begin
                            send_letter("A Pedra da Alma Fantasma ")

                            if pc.count_item(30224)>0 then
                                    local v = find_npc_by_vnum(20084)
                                    if v != 0 then
                                            target.vid("__TARGET__", v, "A Pedra da Alma Fantasma ")
                                    end
                            end

                    end
                    when button or info begin
                            if pc.count_item(30224) >0 then
                                    say_title("A Pedra da Alma Fantasma ")
                                    say()
                    ---                                                   l
                                    say("O Girab está em busca da Pedra da Alma ")
                                    say("Fantasma. Finalmente você conseguiu. ")
                                    say("Entregue para ele.")
                                    say()
                                    return
                            end

                            say_title("A Pedra da Alma Fantasma ")
                            say()
                            ---                                                   l
                            say("O Biólogo concluiu que de acordo com o ")
                            say("que pode conseguir na análise dos Galhos ") 
                            say("Folhados que existe a  Pedra da Alma Fantasma ")
                            say()
                            say()
                            say_item_vnum(30224)
                            say ("")
                            say("Procure na Floresta que encontrará derrotando as ")
                            say("Driades e todos os tipos de árvores. Mas sempre ")
                            say("há perigo, cuidado. Boa sorte. ")
                            say()
                    end

            when 2301.kill or
                 2302.kill or
                 2303.kill or
                 2304.kill or
                 2305.kill or 
                 2311.kill or 
                 2312.kill or 
                 2313.kill or
                 2314.kill or
                 2315.kill  begin 
                            local s = number(1, 500)
                            if s == 1 and pc.count_item(30224)==0 then
                                    pc.give_item2(30224)
                                    send_letter("Você conseguiu a Pedra da Alma Fantasma ")
                            end
                    end

                    when __TARGET__.target.click  or
                            20084.chat."Entregar a Pedra da Alma Fantasma " with pc.count_item(30224) > 0  begin
                        target.delete("__TARGET__")
                            say_title("Girab:")
                say()
                  ---                                                   l
                            say("Muito Obrigado! ")
                            say("Estas árvores finalmente foram derrotadas! ")
                            say("Baek-Go, oferecerá uma excelente recompensa ")
                            say("por seu árduo trabalho. ")
                            say("Estou em dívida contigo! ")
                            say("Bem os problemas vão e vem, novamente ")
                            say("estou ocupado. Nos vemos em breve ")
                            say()
                            pc.remove_item(30224,1)
                            set_state(__reward)
                    end

            end

            state __reward begin
                    when letter begin
                            send_letter("Recompensa do Girab ")

                            local v = find_npc_by_vnum(20018)
                            if v != 0 then
                                    target.vid("__TARGET__", v, "Baek Go")
                            end

                    end
                    when button or info begin
                            say_title("Recompensa do Girab ")
                            ---                                                   l
                            say ("")
                            say("Agora que você já entregou os 25 Galhos ")
                            say("Folhados e a Pedra da Alma Fantasma, ")
                            say("Baek-Go está esperando para te recompensar ")
                            say("com mais uma poção secreta poderosa. ")

                            say()
                    end

                    when __TARGET__.target.click  or
                            20018.chat."A Receita Secreta"  begin
                        target.delete("__TARGET__")
                            say_title("Baek-Go:")
                say()
                ---                                                   l
                            say("Então foi você quem nos ajudou ")
                            say("a combater a magia das árvores. ")
                            say("Então por sua valentia e determinação ")
                            say("vou te dar 10% de aumento na velocidade de ")
                            say("ataque permantentes.")
                            say()
                            say_title("Recompensa:")
                            say_reward("")
                            say_reward("Bonus Permanente: Velocidade de Ataque: +10%")
                            say()
                            affect.add_collect(apply.ATT_SPEED,10,60*60*24*365*60)    
                            clear_letter()
                            set_quest_state("collect_quest_lv80", "run")
                            set_state(__complete)
                    end

            end


            state __complete begin
            end
    end

     

  5. I did as you said, but it returned the following error:

    Quote

    0127 13:40:05685 :: 
    Ping statistics for 51.81.90.206:
    0127 13:40:05685 ::     Packets: Sent = 1, Received = 1, Lost = 0 (0.00% loss),
    0127 13:40:07239 :: 
    networkModule.py(line:197) SetSelectCharacterPhase
    system.py(line:177) __hybrid_import
    system.py(line:142) _process_result
    introSelect.py(line:28) <module>
    system.py(line:177) __hybrid_import
    system.py(line:142) _process_result
    interfaceModule.py(line:27) <module>
    system.py(line:177) __hybrid_import

    networkModule.SetSelectCharacterPhase - <type 'exceptions.SyntaxError'>:invalid syntax (uiMiniMap.py, line 340)

    0127 13:40:07239 :: ============================================================================================================
    0127 13:40:07239 :: Abort!!!!


     

    spacer.png

  6. Can anyone help me with this syserr error

    0117 20:31:09259 :: 
    networkModule.py(line:197) SetSelectCharacterPhase
    system.py(line:177) __hybrid_import
    system.py(line:142) _process_result
    introSelect.py(line:28) <module>
    system.py(line:177) __hybrid_import
    system.py(line:142) _process_result
    interfaceModule.py(line:27) <module>
    system.py(line:177) __hybrid_import
    
    networkModule.SetSelectCharacterPhase - <type 'exceptions.IndentationError'>:unindent does not match any outer indentation level (uiMiniMap.py, line 395)
    
    0117 20:31:09259 :: ============================================================================================================
    0117 20:31:09259 :: Abort!!!!
    
    

    spacer.png

    • kekw 1
    • Facepalm 1
    • Cry 1
  7. I forgot to put the whole source, I don't know much about php and I wanted some help to solve this problem, if there is an error in the code. 😅

     

    <? PHP
    
      if ($ _ SESSION ['user_admin']> = $ adminRights ['web_news']) {
    ?>
    
    <h2> Add News </h2>
    <p> From here you can edit or insert or delete a news about your server. </p>
    
    <h3> Recent news </h3>
    
    <? PHP
      if (isset ($ _ POST ['submit']) && $ _POST ['submit'] == "Submit")
      {
        if (! empty ($ _ POST ['title']) &&! empty ($ _ POST ['content']) && checkInt ($ _ POST ['category']) && checkBetween ($ _ POST ['tag'], 0.31 ) && checkBetween ($ _ POST ['month'], 1.12) && checkBetween ($ _ POST ['year'], 1900, date ("Y", time ()) + 10) && checkBetween ($ _ POST ['hour'], 0.24) && checkBetween ($ _ POST ['minute'], 0.59))
        {
          $ zeitStempel = mktime ($ _ POST ['hour'], $ _ POST ['minute'], 0, $ _ POST ['month'], $ _ POST ['tag'], $ _ POST ['year']);
          // id titel inhalt datum hot kategorie author anzeigen
          
          $ anzeigen = (isset ($ _ POST ['anzeigen']) && $ _POST ['anzeigen'] == "true")? 1: 0;
          $ wichtig = (isset ($ _ POST ['wichtig']) && $ _POST ['wichtig'] == "true")? 1: 0;
          
          
          $ sqlNews = "INSERT INTO" .SQL_HP_DB. "news
          VALUES (NULL, '". Mysql_real_escape_string ($ _ POST [' title '])."', '". Mysql_real_escape_string ($ _ POST [' content '])."', '". $ ZeitStempel."', '". $ wichtig. "','". $ _ POST ['category']. "','". $ _ SESSION ['user_id']. "','". $ anzeigen. "')";
          
          if (mysql_query ($ sqlNews, $ sqlHp))
          {
            echo '<p class = "meldung_sucesso"> New news added successfully. </p>';
          }
          else
          {
            echo '<p class = "meldung_erro"> An error has occurred, please try again. </p>';
          }
        }
      }
    ?>
    
    <form method = "POST" action = "index.php? s = admin & a = news">
      
      <table>
        <tr>
          <th class = "topLine"> Title: </th>
          <td class = "thell"> <input type = "text" size = "40" maxlength = "200" name = "titel" /> </td>
        </tr>
        <tr>
          <th class = "topLine"> Text of News: </th>
          <td class = "tdunkel"> <textarea style = "resize: none;" rows = "5" cols = "40" name = "inhalt"> </textarea> </td>
        </tr>
        <tr>
          <th class = "topLine"> Date: </th>
          <td class = "tdunkel"> <input type = "text" size = "2" maxlength = "2" value = "<? PHP echo date (" d ", time ());?>" name = "tag "/>.<input type =" text "size =" 2 "value =" <? PHP echo date ("m", time ());?> "maxlength =" 2 "name =" month "/>. <input type = "text" size = "4" maxlength = "4" value = "<? PHP echo date (" Y ", time ());?>" name = "year" /> - <input type = "text" size = "2" maxlength = "2" value = "<? PHP echo date (" H ", time ());?>" name = "hour" />: <input type = "text" size = "2" maxlength = "2" value = "<? PHP echo date (" i ", time ());?>" Name = "minute" /> </td>
        </tr>
        <tr>
          <th class = "topLine"> Category: </th>
          <td class = "thell">
            <? PHP listNewsKat (); ?>
          </td>
        </tr>
        <tr>
          <th class = "topLine"> Important News ?: </th>
          <td class = "tdunkel"> <input type = "checkbox" name = "wichtig" value = "true" /> </td>
        </tr>
        <tr>
          <th class = "topLine"> View News: </th>
          <td class = "thell"> <input type = "checkbox" name = "anzeigen" value = "true" /> </td>
        </tr>
        <tr>
          <th class = "topLine" colspan = "2"> <input type = "submit" name = "submit" value = "Submit" /> </th>
        </tr>
      </table>
    </form>
    
    <h3> News List </h3>
    <table class = "fullrank_guild" style = "border-radius: 10px">
      <tr>
        <th class = "topLine"> News ID </th>
        <th class = "topLine"> Data </th>
        <th class = "topLine"> Title </th>
        <th class = "topLine"> Category </th>
        <th class = "topLine"> Content </th>
        <th class = "topLine"> Active </th>
        <th class = "topLine"> Delete </th>
      </tr>
      <? PHP
        $ sqlNews = "SELECT * FROM" .SQL_HP_DB. "news ORDER BY datum DESC";
        $ qryNews = mysql_query ($ sqlNews, $ sqlHp);
        $ x = 0;
        while ($ getNews = mysql_fetch_object ($ qryNews))
        {
          $ nWichtig = ($ getNews-> hot> 0)? "./img/success.gif": "./img/fail.gif";
          $ nAnzeigen = ($ getNews-> anzeigen> 0)? "./img/success.gif": "./img/fail.gif";
          
          $ nTitel = (strlen ($ getNews-> title)> 60)? substr ($ getNews-> title, 0, strpos ($ getNews-> title, '', 60)) .'... ': $ getNews-> title;
          
          $ zF = ($ x% 2 == 0)? "tdunkel": "thell";
          echo '<tr>
            <td style = "height: 25px;" class = "'. $ zF.'"> '. $ getNews-> id.' </td>
            <td class = "'. $ zF.'"> '. getDatum ($ getNews-> datum).' </td>
            <td class = "'. $ zF.'"> <a href="index.php?s=admin&a=news_edit&id='.$getNews-> id. '">'. $ ntitle. '</a> < / td>
            <td class = "'. $ zF.'"> '. $ newsKategorien [$ getNews-> category].' </td>
            <td class = "'. $ zF.'"> <img src = "'. $ nWichtig.'" alt = "wichtig" /> </td>
            <td class = "'. $ zF.'"> <img src = "'. $ nAnzeigen.'" alt = "wichtig" /> </td>
            <td class = "'. $ zF.'"> <a href="index.php?s=admin&a=news_delete&id='.$getNews-> id. '"> <img src =" ./ img / fail. gif "alt =" delete "/> </a> </td>
          </tr> ';
          $ x ++;
        }
      ?>
    </table>
    <? PHP
      }
      else {
        echo '<p class = "meldung_erro"> You cannot access this area </p>';
      }
    ?

     

  8. good morning, someone can help me with my site, is not publishing the news, I created a table in the db account but it did not solve, someone can help me.

     

    <? PHP
      if (isset ($ _ POST ['submit']) && $ _POST ['submit'] == "Submit")
      {
        if (! empty ($ _ POST ['title']) &&! empty ($ _ POST ['content']) && checkInt ($ _ POST ['category']) && checkBetween ($ _ POST ['tag'], 0.31 ) && checkBetween ($ _ POST ['month'], 1.12) && checkBetween ($ _ POST [year '], 1900, date ("Y", time ()) + 10) && checkBetween ($ _ POST [' hour ' ], 0.24) && checkBetween ($ _ POST ['minute'], 0.59))
        {
          $ zeitStempel = mktime ($ _ POST ['hour'], $ _ POST ['minute'], 0, $ _ POST ['month'], $ _ POST ['tag'], $ _ POST [year ']);
          
          $ anzeigen = (isset ($ _ POST ['anzeigen']) && $ _POST ['anzeigen'] == "true")? 1: 0;
          $ wichtig = (isset ($ _ POST ['wichtig']) && $ _POST ['wichtig'] == "true")? 1: 0;
          
          
          $ sqlNews = "INSERT INTO" .SQL_HP_DB. ". news
          VALUES (NULL, '". Mysql_real_escape_string ($ _ POST [' title '])."', '". Mysql_real_escape_string ($ _ POST [' content '])."', '". $ ZeitStempel."', '". $ wichtig. "','". $ _ POST ['category']. "','". $ _ SESSION ['user_id']. "','". $ anzeigen. "')";
          
          if (mysql_query ($ sqlNews, $ sqlHp))
          {
            echo '<p class = "meldung_sucesso"> New news added successfully. </p>';
          }
          else
          {
            echo '<p class = "meldung_erro"> An error has occurred, please try again. </p>';
          }
        }
      }
    ?>

     

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