Jump to content

Recommended Posts

how can i fix that 2 problems:

-a) if i want to sell an item for  2.000.000.000 yang
      the final number will be  2000000000  without the "points . . . "     is it possible to fix that? i really hate those numbers without a "step point"

-b) is it possible to fix the problem that if someone want to buy an item first must "charge" the trade house with yang...dragging them into the tradehouse?
     isn t possible to make it directly from the inventory?

Link to comment
Share on other sites

  • 3 weeks later...
  • Premium

how to deposit gold in video i no see ..

You can find a button for this in the My sales or in the Purchases category (I'm not sure now which one).

Sorry guys for the no answers, but I'm don't have much time, but soon I will answer all. Also, I didn't forget about your comment @Night
I have a longer explanation for that long and ugly c++ function, and also have a question/suggestion to your idea, so I will definitely answer this ASAP.

The one and only UI programming guideline

Link to comment
Share on other sites

  • Premium

You forgot to add the INPUT_IGNORE, or you didn't set it up properly.

In the game.py the OpenQuestWindow should look like this:

	def OpenQuestWindow(self, skin, idx):
		if constInfo.INPUT_IGNORE == 1:
			return
		self.interface.OpenQuestWindow(skin, idx)

 

The one and only UI programming guideline

Link to comment
Share on other sites

  • 1 month later...

can someone help me please


-if i move my mouse cursor over an item inside trade house system , i can NOT see any name\bonuses\stones
 its like if the function that allows you to see the proprieties of an item inside this trade house is missing.


-when i sell an item, then i go to "MY SALES"    then i "TAKE OUT"   my item , it get duped infinite times. its doesnt get delete from "MY SALES"


-how can i add  divisor points when i buy a gold yang item  it looks now  xxxxxxxxxxxx gold   instead of  xxx.xxx.xxx.xxx.xxx 

Link to comment
Share on other sites

  • 4 weeks later...

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

Link to comment
Share on other sites

  • Premium
33 minutes ago, Traktorzysta said:

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

If you check the game.py, you can see the value names exactly.

For the line starts with cmdchat("trade.GetTradeItems see def _IGShopGetTradeItem. For the others see def _IGShopItems.

The one and only UI programming guideline

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

  • Premium

The line that you see in the syserr is not equal to the line in the quest file. To see the line exactly go to: quest/object/state/ and open mb_igshop.


Btw I think the problem caused by this line: item = split_(items,"#") Because it creates a table from the lines in the txt-s. So you have to change the line writer functions before you can test this one.

The one and only UI programming guideline

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.