Request Mir2 TM Help

Join Discord

Classical

Loyal Member
Loyal Member
Jul 2, 2018
45
1
19
Ok ive managed to get this coded into the source, but im now having problems ingame and aint to sure if its to do with something ive coded wrong or what,

I Can put items into the TM, and Search for items, but im having problems in regards to retrieving them back, and the Tabs on the left hand side dont seem to work.

i get this message when i try to get the item i put in back.

TMProb.jpg
TMProb2.jpg

This is the error i get when i try to build the server, the client has no errors what so ever when i build it.

save.jpg

Is there any NPC script which needs to be changed or owt?
Help would be much appreciated.
 

Sanjian

Just a Mir2 Fan
VIP
Apr 28, 2011
3,957
5
2,074
350
East Sussex
your NPC needs only to contain this

Code:
[@Main]
#ACT
GOTO @Market

[@Market]
#SAY

[@Consignment]
#SAY

its all thats in mine and works perfect.

there was another thing ill see if i can find it

Code:
private void MarketSearch(C.MarketSearch p)
        {
            if (Stage != GameStage.Game) return;
            Player.UserMatch = p.Usermode;
            Player.MinShapes = p.MinShape;
            Player.MaxShapes = p.MaxShape;
            [COLOR=#ff0000]Player.MarketSearch(p.Match, p.Type[/COLOR], p.Grade[COLOR=#ff0000]);[/COLOR]

remove the p.Grade

this is a copy of what mine looks like

Code:
        private void MarketSearch(C.MarketSearch p)
        {
            if (Stage != GameStage.Game) return;

            Player.UserMatch = p.Usermode;
            Player.MinShapes = p.MinShape;
            Player.MaxShapes = p.MaxShape;
            Player.MarketSearch(p.Match, p.Type);
        }
 
Upvote 0

Classical

Loyal Member
Loyal Member
Jul 2, 2018
45
1
19
your NPC needs only to contain this

Code:
[@Main]
#ACT
GOTO @Market

[@Market]
#SAY

[@Consignment]
#SAY

its all thats in mine and works perfect.

there was another thing ill see if i can find it

Code:
private void MarketSearch(C.MarketSearch p)
        {
            if (Stage != GameStage.Game) return;
            Player.UserMatch = p.Usermode;
            Player.MinShapes = p.MinShape;
            Player.MaxShapes = p.MaxShape;
            [COLOR=#ff0000]Player.MarketSearch(p.Match, p.Type[/COLOR], p.Grade[COLOR=#ff0000]);[/COLOR]

remove the p.Grade

this is a copy of what mine looks like

Code:
        private void MarketSearch(C.MarketSearch p)
        {
            if (Stage != GameStage.Game) return;

            Player.UserMatch = p.Usermode;
            Player.MinShapes = p.MinShape;
            Player.MaxShapes = p.MaxShape;
            Player.MarketSearch(p.Match, p.Type);
        }

This is what i have in the MirConnections

private void MarketSearch(C.MarketSearch p)
{
if (Stage != GameStage.Game) return;
Player.UserMatch = p.Usermode;
Player.MinShapes = p.MinShape;
Player.MaxShapes = p.MaxShape;
Player.MarketSearch(p.Match, p.Type);
 
Upvote 0

Classical

Loyal Member
Loyal Member
Jul 2, 2018
45
1
19
When i press the retrieve button it says this

So this one is when i click retrieve
TMProb.jpg

And this one is when i click yes
TMProb2.jpg

i cant work out whats wrong or where abouts :S so cant get any items back, but also the tabs on the side they dont work, so when i click armours it dont show just the armours :S

---------- Post Merged at 09:24 PM ---------- Previous Post was at 09:23 PM ----------

Ive also changed this in the NPC also

[@Main]
#ACT
GOTO @Market


[@Market]
#SAY


[@Consignment]
#SAY
 
Upvote 0

Classical

Loyal Member
Loyal Member
Jul 2, 2018
45
1
19
Its ok now ive finished it, i just deleted the old source code and used my back up saved, and it worked when i started it from fresh, thanks guys for all ya help and thank u far appreciate ya help :)
 
Upvote 0