Conquer Online 5518+ New Npc !!

10/12/2011 22:28 abdeen#1
error , when i am creating new npc in a new map

for example

1515 1730 7 0
ID MapDoc Type Weather

the Npc is being silence , and show me his id , although if i edited the map to twin city its working prefect .

where the bug here ?
10/12/2011 22:43 DontSpeakToMe#2
check if your Npc is switch (client.Entity.MapID) or switch (npcRequest.NpcID)
if its switch (client.Entity.MapID) make the id like map id and if its switch (npcRequest.NpcID) make id like you want and check you built the c# correct
10/12/2011 23:32 abdeen#3
Quote:
Originally Posted by DontSpeakToMe View Post
check if your Npc is switch (client.Entity.MapID) or switch (npcRequest.NpcID)
if its switch (client.Entity.MapID) make the id like map id and if its switch (npcRequest.NpcID) make id like you want and check you built the c# correct
here is the switch of the npc

PHP Code:
                            case 50051:
                                {
                                    switch (
npcRequest.NpcID

and npc id is 50051



here is the switch of the npc

PHP Code:
                                                       case 7001:
                                {
                                    switch (
client.Entity.MapID

and npc id is 7001






here is the switch of the npc

PHP Code:
                      case 11222:
                                {
                                    switch (
npcRequest.OptionID

and npc id is 11222

but still wont work .


Quote:
Originally Posted by abdeen View Post


here is the switch of the npc

PHP Code:
                            case 50051:
                                {
                                    switch (
npcRequest.NpcID

and npc id is 50051



here is the switch of the npc

PHP Code:
                                                       case 7001:
                                {
                                    switch (
client.Entity.MapID

and npc id is 7001






here is the switch of the npc

PHP Code:
                      case 11222:
                                {
                                    switch (
npcRequest.OptionID

and npc id is 11222

but still wont work .


but if i moved npc to twin-city its works fine , so where the bug , and if the bug in the new map , so how i can fix that ?
10/13/2011 08:09 DontSpeakToMe#4
make your npc like this example
this for switch (npcRequest.NpcID)
Code:
 #region Test
                case 50051:
                    {
                        switch (npcRequest.OptionID)
                        {
                            case 0:
                                {
                                    dialog.Text("Test");
                                    dialog.Option("Test", 1);
                                    dialog.Option("Test", 255);
                                    dialog.Send();
                                    break;
                                }
                            case 1:
                                {

                                    {
                                        client.Send(new Message("Test", Color.Red, Message.TopLeft));
                                    }
                                    break;

                                }
                        }
                        break;
                    }
                #endregion
and this for switch (client.Entity.MapID)
Code:
  #region Test
                    case 1515:
                    {
               switch (client.ActiveNpc)
                   {
                   #region Test
                case 50051:
                    {
                        switch (npcRequest.OptionID)
                        {
                            case 0:
                                {
                                    dialog.Text("Test");
                                    dialog.Option("Test", 1);
                                    dialog.Option("Test", 255);
                                    dialog.Send();
                                    break;
                                }
                            case 1:
                                {

                                    {
                                        client.Send(new Message("Test", Color.Red, Message.TopLeft));
                                    }
                                    break;

                                }
                        }
                        break;
                    }
                #endregion
                    }
                    break;
                    }
                 #endregion
and this pic to explane
[Only registered and activated users can see links. Click Here To Register...]
10/13/2011 15:15 abdeen#5
Quote:
Originally Posted by DontSpeakToMe View Post
make your npc like this example
this for switch (npcRequest.NpcID)
Code:
 #region Test
                case 50051:
                    {
                        switch (npcRequest.OptionID)
                        {
                            case 0:
                                {
                                    dialog.Text("Test");
                                    dialog.Option("Test", 1);
                                    dialog.Option("Test", 255);
                                    dialog.Send();
                                    break;
                                }
                            case 1:
                                {

                                    {
                                        client.Send(new Message("Test", Color.Red, Message.TopLeft));
                                    }
                                    break;

                                }
                        }
                        break;
                    }
                #endregion
and this for switch (client.Entity.MapID)
Code:
  #region Test
                    case 1515:
                    {
               switch (client.ActiveNpc)
                   {
                   #region Test
                case 50051:
                    {
                        switch (npcRequest.OptionID)
                        {
                            case 0:
                                {
                                    dialog.Text("Test");
                                    dialog.Option("Test", 1);
                                    dialog.Option("Test", 255);
                                    dialog.Send();
                                    break;
                                }
                            case 1:
                                {

                                    {
                                        client.Send(new Message("Test", Color.Red, Message.TopLeft));
                                    }
                                    break;

                                }
                        }
                        break;
                    }
                #endregion
                    }
                    break;
                    }
                 #endregion
and this pic to explane
[Only registered and activated users can see links. Click Here To Register...]

thank you bro so much , that's helped me :)