Jump to content

Traktorzysta

Inactive Member
  • Posts

    40
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Traktorzysta

  1. Good work, I think that changing the engine would revive this dead game.
  2. Hello i have problem with implement data from game.py to uiinventory.py. files: uibiolog: [Hidden Content] uiinventory [Hidden Content] game [Hidden Content] @when click button in uiinventory i have information that i have no mision but i have. When click X key work perfect.
  3. Same Someone upload working uiinventory. @Solved: costume = self.GetChild("costume") self.costume = costume questlua_pc: { "costume", pc_costume },
  4. My interfacemodule: [Hidden Content] error: networkModule.SetSelectCharacterPhase - <type 'exceptions.IndentationError'>:unindent does not match any outer indentation level (interfaceModule.py, line 1207) @Nevermind ->tabs
  5. Hello i'm stuck with this (shopex.cpp): DWORD dwPrice = r_item.price; switch (shopTab.coinType) { case SHOP_COIN_TYPE_GOLD: if (it->second) // if other empire, price is triple dwPrice *= 1; if (ch->GetGold() < (int) dwPrice) { sys_log(1, "ShopEx::Buy : Not enough money : %s has %d, price %d", ch->GetName(), ch->GetGold(), dwPrice); return SHOP_SUBHEADER_GC_NOT_ENOUGH_MONEY; } break; case SHOP_COIN_TYPE_SECONDARY_COIN: { int count = ch->GetQuestFlag("ap"); if (count < dwPrice) { sys_log(1, "ShopEx::Buy : Not enough po : %s has %d, price %d", ch->GetName(), ch->GetQuestFlag("ap"), dwPrice); return SHOP_SUBHEADER_GC_NOT_ENOUGH_MONEY_EX; } } break; } Server notice me i'am not have secondary_coin. I'm sure i have "ap">dwprice Can someone help me with this?
  6. delete from table player/player deleted/player index/item/guild your character
  7. I'll check quest file very times i can't find where i'm miss add values;/ i spent 2 days for this quest;/ masodikbela please have a look: [Hidden Content]
  8. im write line from file /quest/object/state/mb_igshop not from quest file and they are alredy changed
  9. Ok i change function: for i = from, to do item = split_(items,"#") if igshopEnableTrade then if group == "get_trade_items" then cmdchat("trade.GetTradeItems "..slot.." "..item[1].." "..item[2].." "..item[3].." "..item[4].." "..item[5].." "..item[6].." "..item[7].." "..item[8].." "..item[9].." "..item[10].." "..item[11].." "..item[12].." "..item[13].." "..item[14].." "..item[15].." "..item[16].." "..item[17].." "..item[18].." "..item[19].." "..item[20].." "..item[21].." "..item[22].." "..item[23].." "..item[24].." "..item[25].." "..item[26]) else cmdchat(commandL.." "..slot.." "..item[1].." "..item[2].." "..item[3].." "..item[4].." "..item[5].." "..item[6].." "..item[4+3]..' '..item[5+3]..' '..item[6+3]..' '..item[7+3]..' '..item[8+3]..' '..item[9+3]..' '..item[10+3]..' '..item[11+3]..' '..item[12+3]..' '..item[13+3]..' '..item[14+3]..' '..item[15+3]..' '..item[16+3]..' '..item[17+3]..' '..item[18+3]..' '..item[19+3]..' '..item[20+3]..' '..item[21+3]..' '..item[22+3]..' '..item[23+3]..' '..item[24+3]..' '..item[25+3]..' '..item[30]..' '..mb_igshop.IsTradeItem(item[1])) end else cmdchat(commandL.." "..slot.." "..item[1].." "..item[2].." "..item[3].." "..item[4].." "..item[5].." "..item[6].." "..item[4+3]..' '..item[5+3]..' '..item[6+3]..' '..item[7+3]..' '..item[8+3]..' '..item[9+3]..' '..item[10+3]..' '..item[11+3]..' '..item[12+3]..' '..item[13+3]..' '..item[14+3]..' '..item[15+3]..' '..item[16+3]..' '..item[17+3]..' '..item[18+3]..' '..item[19+3]..' '..item[20+3]..' '..item[21+3]..' '..item[22+3]..' '..item[23+3]..' '..item[24+3]..' '..item[25+3]..' '..item[30]..' -1') end -- 1. slot, 2. item id, 3. item vnum, 4. item count, 5. owner name, 6. price se, 7. price yang slot = slot + 1 end end Syserr: SYSERR: Dec 3 17:40:13 :: RunState: LUA_ERROR: locale/poland/quest/object/state/mb_igshop:1326: attempt to concatenate field `?' (a nil value) SYSERR: Dec 3 17:40:13 :: WriteRunningStateToSyserr: LUA_ERROR: quest mb_igshop.start letter SYSERR: Dec 3 17:40:15 :: RunState: LUA_ERROR: locale/poland/quest/object/state/mb_igshop:1326: attempt to concatenate field `?' (a nil value) SYSERR: Dec 3 17:40:15 :: WriteRunningStateToSyserr: LUA_ERROR: quest mb_igshop.start letter SYSERR: Dec 3 17:40:22 :: RunState: LUA_ERROR: locale/poland/quest/object/state/mb_igshop:1326: attempt to concatenate field `?' (a nil value) SYSERR: Dec 3 17:40:22 :: WriteRunningStateToSyserr: LUA_ERROR: quest mb_igshop.start letter SYSERR: Dec 3 17:40:48 :: RunState: LUA_ERROR: locale/poland/quest/object/state/mb_igshop:1214: attempt to concatenate field `?' (a nil value) SYSERR: Dec 3 17:40:48 :: WriteRunningStateToSyserr: LUA_ERROR: quest mb_igshop.start letter line 1326: open : write ( items [ i ] [ 1 ] .. "#" .. items [ i ] [ 2 ] .. "#" .. items [ i ] [ 3 ] .. "#" .. items [ i ] [ 4 ] .. "#" .. items [ i ] [ 5 ] .. "#" .. items [ i ] [ 6 ] .. "#" .. items [ i ] [ 7 ] .. "#" .. items [ i ] [ 8 ] .. "#" .. items [ i ] [ 9 ] .. "#" .. items [ i ] [ 10 ] .. "#" .. items [ i ] [ 11 ] .. "#" .. items [ i ] [ 12 ] .. "#" .. items [ i ] [ 13 ] .. "#" .. items [ i ] [ 14 ] .. "#" .. items [ i ] [ 15 ] .. "#" .. items [ i ] [ 16 ] .. "#" .. items [ i ] [ 17 ] .. "#" .. items [ i ] [ 18 ] .. "#" .. items [ i ] [ 19 ] .. "#" .. items [ i ] [ 20 ] .. "#" .. items [ i ] [ 21 ] .. "#" .. items [ i ] [ 22 ] .. "#" .. items [ i ] [ 23 ] .. "#" .. items [ i ] [ 24 ] .. "#" .. items [ i ] [ 25 ] .. "#" .. items [ i ] [ 26 ] .. "#" .. items [ i ] [ 27 ] .. "#" .. items [ i ] [ 28 ] .. "#" .. items [ i ] [ 29 ] .. "#" .. items [ i ] [ 30 ] .. "\n" ) end line 1214: open : write ( items [ i ] [ 1 ] .. "#" .. items [ i ] [ 2 ] .. "#" .. items [ i ] [ 3 ] .. "#" .. items [ i ] [ 4 ] .. "#" .. items [ i ] [ 5 ] .. "#" .. items [ i ] [ 6 ] .. "#" .. items [ i ] [ 7 ] .. "#" .. items [ i ] [ 8 ] .. "#" .. items [ i ] [ 9 ] .. "#" .. items [ i ] [ 10 ] .. "#" .. items [ i ] [ 11 ] .. "#" .. items [ i ] [ 12 ] .. "#" .. items [ i ] [ 13 ] .. "#" .. items [ i ] [ 14 ] .. "#" .. items [ i ] [ 15 ] .. "#" .. items [ i ] [ 16 ] .. "#" .. items [ i ] [ 17 ] .. "#" .. items [ i ] [ 18 ] .. "#" .. items [ i ] [ 19 ] .. "#" .. items [ i ] [ 20 ] .. "#" .. items [ i ] [ 21 ] .. "#" .. items [ i ] [ 22 ] .. "#" .. items [ i ] [ 23 ] .. "#" .. items [ i ] [ 24 ] .. "#" .. items [ i ] [ 25 ] .. "#" .. items [ i ] [ 26 ] .. "#" .. items [ i ] [ 27 ] .. "#" .. items [ i ] [ 28 ] .. "#" .. items [ i ] [ 29 ] .. "#" .. items [ i ] [ 30 ] .. "\n" ) end
  10. Can someone explain values in this function: function add_items(maxpage, page, items, itemsOnLastPage, group) if page <= 0 then page = 1 end if page > maxpage then page = maxpage end local from = (page - 1)*5 + 1 local to = 0 if maxpage > page then to = ((page - 1 )*5) + 5 else to = ((page - 1)*5) + itemsOnLastPage end local slot = 1 local item local commandL if group == "my_buys" then commandL = "IGShop_BOUGHTITEMS" elseif group == "my_sales" then commandL = "IGShop_MYSALES" else commandL = "IGShop_ITEMS" end for i = from, to do item = split_(items,"#") if igshopEnableTrade then if group == "get_trade_items" then cmdchat("trade.GetTradeItems "..slot.." "..item[1].." "..item[2].." "..item[3].." "..item[4].." "..item[5].." "..item[6].." "..item[7].." "..item[8].." "..item[9].." "..item[10].." "..item[11].." "..item[12].." "..item[13].." "..item[14].." "..item[15].." "..item[16].." "..item[17].." "..item[18].." "..item[19].." "..item[20].." "..item[21].." "..item[22].." "..item[23].." "..item[24]) else cmdchat(commandL.." "..slot.." "..item[1].." "..item[2].." "..item[3].." "..item[4].." "..item[5].." "..item[6].." "..item[4+3]..' '..item[5+3]..' '..item[6+3]..' '..item[7+3]..' '..item[8+3]..' '..item[9+3]..' '..item[10+3]..' '..item[11+3]..' '..item[12+3]..' '..item[13+3]..' '..item[14+3]..' '..item[15+3]..' '..item[16+3]..' '..item[17+3]..' '..item[18+3]..' '..item[19+3]..' '..item[20+3]..' '..item[21+3]..' '..item[22+3]..' '..item[23+3]..' '..item[28]..' '..mb_igshop.IsTradeItem(item[1])) end else cmdchat(commandL.." "..slot.." "..item[1].." "..item[2].." "..item[3].." "..item[4].." "..item[5].." "..item[6].." "..item[4+3]..' '..item[5+3]..' '..item[6+3]..' '..item[7+3]..' '..item[8+3]..' '..item[9+3]..' '..item[10+3]..' '..item[11+3]..' '..item[12+3]..' '..item[13+3]..' '..item[14+3]..' '..item[15+3]..' '..item[16+3]..' '..item[17+3]..' '..item[18+3]..' '..item[19+3]..' '..item[20+3]..' '..item[21+3]..' '..item[22+3]..' '..item[23+3]..' '..item[28]..' -1') end -- 1. slot, 2. item id, 3. item vnum, 4. item count, 5. owner name, 6. price se, 7. price yang slot = slot + 1 end end Why in else values+3? I need change this function for 4socket and 6 attr+2rare
  11. table 25 values, query 23 values you do not change all in serverside
  12. why? Because you can not take money for that?
  13. I use this tutorial : and this tutorial: [Hidden Content] My serverinfo: import app app.ServerName = None STATE_NONE = '...' STATE_DICT = { 0 : "....", 1 : "NORM", 2 : "BUSY", 3 : "FULL" } CHANNELS = { 1:{'key':11,'name':'CH1','ip':'--','tcp_port':13002,'udp_port':13002,'state':STATE_NONE,}, 2:{'key':12,'name':'CH2','ip':'--','tcp_port':13102,'udp_port':13102,'state':STATE_NONE,}, 3:{'key':13,'name':'CH3','ip':'--','tcp_port':13202,'udp_port':13202,'state':STATE_NONE,}, 4:{'key':14,'name':'CH4','ip':'--','tcp_port':13302,'udp_port':13302,'state':STATE_NONE,}, } REGION_NAME_DICT = { 0 : 'POLAND', } REGION_AUTH_SERVER_DICT = { 0 : { 1 : { 'ip':'--', 'port':11002, }, } } REGION_DICT = { 0 : { 1 : { 'name' : 'Metin2', 'channel' : CHANNELS, }, }, } MARKADDR_DICT = { 10 : { 'ip' : '--', 'tcp_port' : 13002, 'mark' : '120.tga', 'symbol_path' : '120', }, } TESTADDR = { 'ip' : '--', 'tcp_port' : 50000, 'udp_port' : 50000, } syserr: 1122 20:31:27767 :: File "ui.py", line 1029, in CallEvent 1122 20:31:27768 :: File "ui.py", line 87, in __call__ 1122 20:31:27768 :: File "ui.py", line 69, in __call__ 1122 20:31:27768 :: File "uiSystem.py", line 89, in __ClickChangeChannelButton 1122 20:31:27769 :: File "uiChannel.py", line 17, in __init__ 1122 20:31:27769 :: File "uiChannel.py", line 134, in __Fill_Up_ChannelList 1122 20:31:27770 :: File "uiChannel.py", line 140, in __RequestServerStateList 1122 20:31:27770 :: File "uiChannel.py", line 131, in __GetServerID
  14. void CHARACTER::PointChange(BYTE type, long long amount, bool bAmount, bool bBroadcast) { long long val = 0; char.cpp search amount
  15. Not all int have been changed to long long. You did everything that was in the guide from metin2hungary but this is not all. pythonplayermodule is ok. The problem is in the server side.
  16. If it's simple why you didn't make this tutorial? This comment is unnecesary. Good work.
  17. You change int to long long where you can not do..
  18. Nobody's going to help for free. Yea take the money for the simple advice. This forum is going down and down and down.... Okey, why not. Free Offline Shop. Free Shoulder. Free etc systems. If only i could made this myself, I release it for free (offline shop). Shoulders - shit.. You wont to earn money? - go to job or make serwer metin2 but the best serwer, not only for money...
  19. search all files in source on point_gold/amount/price and change it from int to long long. I had the same error, i dont remember where exactly i change it. Tutorial from hungarian forum is not complete 100%. Remember not all you must change to long long, for example guild stay int. Nobody's going to help for free. Yea take the money for the simple advice. This forum is going down and down and down....
×
×
  • 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.