Jump to content
Returning Members: Password Reset Required ×

Recommended Posts

Posted

i have work on new 3d source but i use old twin city and market i managed to move npc and monsters back but the only issue iam facing is seting in market for booth icon dont show so player can leave  

Posted
10 minutes ago, bisho2009 said:

i have work on new 3d source but i use old twin city and market i managed to move npc and monsters back but the only issue iam facing is seting in market for booth icon dont show so player can leave  

As far as I know, it needs to send a MapStatus packet. What source code do you use? Alex stream?

Posted

no normal msg but i dont know what is mapstatues packet i use this but not working at all 

                case Mode.OwnBooth:
                    {
                         if (!client.Player.TradeOn) return;
                         client.Booth = new Game.ConquerStructures.Booth(client, gData);

                         if (client.Player.MapID == 1036)
                         {
                             client.Send(new MsgAction(true)
                             {
                                 ID = MsgAction.Mode.ChangeAction,
                                 UID = client.Player.UID,
                                 dwParam = 0
                             }
                             );
                             client.Send(new MsgMapInfo() { BaseID = client.Map.BaseID, ID = client.Map.ID, Status = Database.MapsTable.MapInformations[1036].Status });
                             client.Booth = new Game.ConquerStructures.Booth(client, new MsgAction(true) { UID = client.Player.UID });
                             client.Send(new MsgAction(true) { ID = MsgAction.Mode.ChangeAction, UID = client.Player.UID, dwParam = 0 });
                         }
                         break;
                    }

Posted
7 hours ago, bisho2009 said:

no problem 

        public static unsafe ServerSockets.Packet MapStatusCreate(this ServerSockets.Packet stream, uint MapID, uint BaseID, ulong Status)
        {
            stream.InitWriter();

            stream.Write(MapID);//4
            stream.Write(BaseID);//8

            //uint update = 1U << 31;
            //Console.WriteLine(update);
            stream.Write(Status);

            stream.Finalize(GamePackets.MapStaus);
            return stream;
        }

Posted

After updating the map on ChangeMap, you may not have notified the client of the map status. In the conquer client, there are restrictions on setting up stalls. The "close stall" button will only appear when the status value includes the "stall-settable" flag.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...