Jump to content

Recommended Posts

  • 1 month later...

hello guys, i have a problem with this system...

i can't open the tradehouse window

CHANNEL1 SYSSER:

SYSERR: Apr 21 05:59:49 :: RunState: LUA_ERROR: locale/mexico/quest/object/state/mb_igshop:1406: attempt to index local `igshop' (a nil value)
SYSERR: Apr 21 05:59:49 :: WriteRunningStateToSyserr: LUA_ERROR: quest mb_igshop.start click
SYSERR: Apr 21 06:00:03 :: RunState: LUA_ERROR: locale/mexico/quest/object/state/mb_igshop:1406: attempt to index local `igshop' (a nil value)
SYSERR: Apr 21 06:00:03 :: WriteRunningStateToSyserr: LUA_ERROR: quest mb_igshop.start click
SYSERR: Apr 21 13:18:53 :: RunState: LUA_ERROR: locale/mexico/quest/object/state/mb_igshop:1406: attempt to index local `igshop' (a nil value)
SYSERR: Apr 21 13:18:53 :: WriteRunningStateToSyserr: LUA_ERROR: quest mb_igshop.start click

 

 

please anyone help me :o3

Link to comment
Share on other sites

Nice build.

BUT!

I think that the player should like/dislike this system.

WHY?

Metin2 players thoughts .. "if there are a lot markets in the plaza, this server is surely good".

I Used the action house in the past, and a loss of markets in the plaza said to the player that the server was going down.

Not true..couse the markets were in the action house but the other player cannot see them without using the action house.

In you want to focus your server market, be sure to use only 1 market method.

Action house or plaza market?

 

BTW, nice system and i've to repeat another time, nice build!

 

 

  • Love 1
Link to comment
Share on other sites

  • 4 weeks later...
  • 2 weeks later...

SYSERR: Jul 15 06:19:46 :: RunState: LUA_ERROR: locale/france/quest/igshop.lua:15: attempt to index field `?' (a nil value)
SYSERR: Jul 15 06:19:46 :: WriteRunningStateToSyserr: LUA_ERROR: quest mb_igshop.start click

 

function get_coins()
    local coins = game.mysql_query("SELECT "..igshop_coins_column_name.." FROM "..igshop_account_database_name.."."..igshop_account_table_name.." WHERE id = "..tonumber(pc.get_account_id()).." LIMIT 1")
    if coins == nil then
        syschat("IGSHOP_MYSQL_READING_ERROR!_RET_ZERO")
        return 0
    end
    return tonumber(coins[1][1])
end

 

lign 15 = tonumber

Link to comment
Share on other sites

  • 10 months later...
  • 7 months later...
  • 5 months later...
  • 2 weeks later...

Hi.

 

game.py error: 

0722 15:00:20345 ::   File "networkModule.py", line 245, in SetGamePhase

0722 15:00:20345 ::   File "system.py", line 130, in __pack_import

0722 15:00:20345 ::   File "
0722 15:00:20345 :: game.py
0722 15:00:20345 :: ", line 
0722 15:00:20345 :: 726
0722 15:00:20345 :: 

0722 15:00:20345 ::     
0722 15:00:20345 :: if constInfo.INPUT_IGNORE == 1:

0722 15:00:20345 ::     
0722 15:00:20345 ::  
0722 15:00:20345 :: ^

0722 15:00:20345 :: IndentationError
0722 15:00:20345 :: : 
0722 15:00:20345 :: expected an indented block
0722 15:00:20345 :: 

 

What is the problem?

I try but not work.

Link to comment
Share on other sites

  • 3 months later...
  • Premium
10 minutes ago, rawn3cr0 said:

@masodikbelaHow i can convert this system to save in sql table in db? no txt in quest

You can't. Originally it was made this way because using sql queries in quest was too expensive... This whole thing is outdated right now so it would be better to refactor this system.

The one and only UI programming guideline

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 weeks later...

1128 00:07:48238 :: IGSHOP_ADDTOTEMPSLOT 2 27994 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1128 00:07:48239 :: Traceback (most recent call last):

1128 00:07:48239 ::   File "ui.py", line 1673, in OnOverInItem

1128 00:07:48239 ::   File "ui.py", line 87, in __call__

1128 00:07:48239 ::   File "ui.py", line 78, in __call__

1128 00:07:48239 ::   File "igshop.py", line 383, in OverInItem

1128 00:07:48239 ::   File "uiToolTip.py", line 1106, in AddItemData

1128 00:07:48239 ::   File "uiToolTip.py", line 1501, in __AdjustMaxWidth

1128 00:07:48240 ::   File "uiToolTip.py", line 1513, in __AdjustAttrMaxWidth

1128 00:07:48240 :: IndexError
1128 00:07:48240 :: : 
1128 00:07:48240 :: list index out of range
1128 00:07:48240 ::

what i have to change in uitooltip.py....?

because i cant sell any item...

> RunState: LUA_ERROR: locale/romania/quest/object/state/mb_igshop:606: attempt to call field `remove' (a nil value)

>>  if pc . count_item ( itemVnum ) ~= pc . getqf ( "itemcount" ) then syschat ( loadLang ( 36 ) ) return end 
      if item . get_cell ( ) ~= cell then syschat ( loadLang ( 36 ) ) return end 
      for i = 1 , itemCount begin 
      item . select_cell ( cell ) 
      item . remove ( ) --------- error
      end 

Link to comment
Share on other sites

15 hours ago, Apofis said:

1128 00:07:48238 :: IGSHOP_ADDTOTEMPSLOT 2 27994 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1128 00:07:48239 :: Traceback (most recent call last):

1128 00:07:48239 ::   File "ui.py", line 1673, in OnOverInItem

1128 00:07:48239 ::   File "ui.py", line 87, in __call__

1128 00:07:48239 ::   File "ui.py", line 78, in __call__

1128 00:07:48239 ::   File "igshop.py", line 383, in OverInItem

1128 00:07:48239 ::   File "uiToolTip.py", line 1106, in AddItemData

1128 00:07:48239 ::   File "uiToolTip.py", line 1501, in __AdjustMaxWidth

1128 00:07:48240 ::   File "uiToolTip.py", line 1513, in __AdjustAttrMaxWidth

1128 00:07:48240 :: IndexError
1128 00:07:48240 :: : 
1128 00:07:48240 :: list index out of range
1128 00:07:48240 ::

what i have to change in uitooltip.py....?

because i cant sell any item...

> RunState: LUA_ERROR: locale/romania/quest/object/state/mb_igshop:606: attempt to call field `remove' (a nil value)

>>  if pc . count_item ( itemVnum ) ~= pc . getqf ( "itemcount" ) then syschat ( loadLang ( 36 ) ) return end 
      if item . get_cell ( ) ~= cell then syschat ( loadLang ( 36 ) ) return end 
      for i = 1 , itemCount begin 
      item . select_cell ( cell ) 
      item . remove ( ) --------- error
      end 

the fix for LUA error....> questlua_item.cpp:

add:   

 

int item_remove(lua_State* L)
    {
        CQuestManager& q = CQuestManager::instance();
        LPITEM item = q.GetCurrentItem();
        if (item != NULL) {
            if (q.GetCurrentCharacterPtr() == item->GetOwner()) {
                ITEM_MANAGER::instance().RemoveItem(item);
            } else {
                sys_err("Tried to remove invalid item %p", get_pointer(item));
            }
            q.ClearCurrentItem();
        }

        return 0;
    }

and to the end of fille in >void RegisterITEMFunctionTable():

{ "remove",        item_remove        },

Link to comment
Share on other sites

Who can help me fix this error? thank you in advance:
8 hours ago, Apofis said:

the fix for LUA error....> questlua_item.cpp:

add:   

 

int item_remove(lua_State* L)
    {
        CQuestManager& q = CQuestManager::instance();
        LPITEM item = q.GetCurrentItem();
        if (item != NULL) {
            if (q.GetCurrentCharacterPtr() == item->GetOwner()) {
                ITEM_MANAGER::instance().RemoveItem(item);
            } else {
                sys_err("Tried to remove invalid item %p", get_pointer(item));
            }
            q.ClearCurrentItem();
        }

        return 0;
    }

and to the end of fille in >void RegisterITEMFunctionTable():

{ "remove",        item_remove        },

Who can help me fix this error? thank you in advance:

1128 00:07:48238 :: IGSHOP_ADDTOTEMPSLOT 2 27994 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1128 00:07:48239 :: Traceback (most recent call last):

1128 00:07:48239 ::   File "ui.py", line 1673, in OnOverInItem

1128 00:07:48239 ::   File "ui.py", line 87, in __call__

1128 00:07:48239 ::   File "ui.py", line 78, in __call__

1128 00:07:48239 ::   File "igshop.py", line 383, in OverInItem

1128 00:07:48239 ::   File "uiToolTip.py", line 1106, in AddItemData

1128 00:07:48239 ::   File "uiToolTip.py", line 1501, in __AdjustMaxWidth

1128 00:07:48240 ::   File "uiToolTip.py", line 1513, in __AdjustAttrMaxWidth

1128 00:07:48240 :: IndexError
1128 00:07:48240 :: : 
1128 00:07:48240 :: list index out of range
1128 00:07:48240 ::

Link to comment
Share on other sites

Announcements



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