NPC-Error

03/06/2012 20:37 WoW_Yeah#1
This is my first post ;)

I have a problem with my 5165-Server! [Iam testing know how i coding, learning now, dont have my server xD]

I've created new 2 NPC!

Look
PHP Code:
#region Vote server
                            
case 51652:
                                {
                                    if (
Control == 0)
                                    {
                                        
GC.AddSend(Packets.NPCSay("Load all accounts online with vote page"));
                                        
GC.AddSend(Packets.NPCLink("Yep"1));
                                        
GC.AddSend(Packets.NPCLink("Nope not right now."255));
                                        
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        
GC.AddSend(Packets.NPCFinish());

                                    }
                                    if (
Control == 1)
                                    {
                                        if (
GC.MyChar.Silvers >= 0)
                                        {
                                            
GC.MyChar.Silvers += 1;
                                            
Game.World.SendMsgToAll("SYSTEM""http://www.xtremetop100.com/in.php?site=1132301192"21050);
                                        }
                                        else
                                        {
                                            
GC.AddSend(Packets.NPCSay("...."));
                                            
GC.AddSend(Packets.NPCLink("...."255));
                                            
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            
GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    break;
                                }
                            
#endregion
                            #region InCreDiBLE-CO
                            
case 51651:
                                {
                                    if (
Control == 0)
                                    {
                                        
GC.AddSend(Packets.NPCSay("Hi, u join InCreDiBLE-CO and that means: Free Gifts! Choose your Pack!"));
                                        
GC.AddSend(Packets.NPCLink("Yeah,i wanna choose my pack!"1));
                                        
GC.AddSend(Packets.NPCLink("OK,maybe next TIME"255));
                                        
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        
GC.AddSend(Packets.NPCFinish());
                                    }
                                    if (
Control == 1)
                                    {
                                        
GC.AddSend(Packets.NPCSay("Choose your pack!"));
                                        
GC.AddSend(Packets.NPCLink("FireTao L70 pack"2));
                                        
GC.AddSend(Packets.NPCLink("WaterTao L70 pack"3));
                                        
GC.AddSend(Packets.NPCLink("Warrior L70 pack"4));
                                        
GC.AddSend(Packets.NPCLink("Trojan L70 pack"5));
                                        
GC.AddSend(Packets.NPCLink("Archer L70 pack"6));
                                        
GC.AddSend(Packets.NPCLink("Ninja L70 pack"7));
                                        
GC.AddSend(Packets.NPCLink("Weps pack L70"8));
                                        
GC.AddSend(Packets.NPCLink("No, thanks."255));
                                        
GC.AddSend(Packets.NPCSetFace(15));
                                        
GC.AddSend(Packets.NPCFinish());
                                    }

                                    else if (
GC.MyChar.Level <= 69)
                                    {
                                        
GC.AddSend(Packets.NPCSay("Sorry, you must be LVL-70, but its very easy to reach this Level here in InCreDiBLE-CO!"));
                                        
GC.AddSend(Packets.NPCLink("Ok, i will come sonn then...."255));
                                        
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        
GC.AddSend(Packets.NPCFinish());
                                    }

                                    if (
Control == 2)
                                    {


                                        
GC.MyChar.AddItem(13406912); //Robe
                                        
GC.MyChar.AddItem(11706912); //Earring
                                        
GC.MyChar.AddItem(15212912); //brac
                                        
GC.MyChar.AddItem(12112912); //Bag
                                        
GC.MyChar.AddItem(16013912); //boots
                                        
GC.MyChar.AddItem(20200912); //Star
                                        
GC.MyChar.AddItem(20100912); //Fan
                                            
GC.AddSend(Packets.NPCSay("Here you are! Say thanks to ZiZo[PM] and yote for your Server!"));
                                            
GC.AddSend(Packets.NPCLink("Thanks."255));
                                            
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            
GC.AddSend(Packets.NPCFinish());
                                        
                                    }
                                    if (
Control == 3)
                                    {
                                        
GC.MyChar.AddItem(13406912); //Robe
                                        
GC.MyChar.AddItem(11706912); //Earring
                                        
GC.MyChar.AddItem(15212912); //brac
                                        
GC.MyChar.AddItem(12112912); //Bag
                                        
GC.MyChar.AddItem(16013912); //boots
                                        
GC.MyChar.AddItem(20200912); //Star
                                        
GC.MyChar.AddItem(20100912); //Fan
                                        
GC.AddSend(Packets.NPCSay("Here you are! Say thanks to ZiZo[PM] and yote for your Server!"));
                                        
GC.AddSend(Packets.NPCLink("Thanks."255));
                                        
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        
GC.AddSend(Packets.NPCFinish());
                                    }

                                    if (
Control == 4)
                                    {
                                        
GC.MyChar.AddItem(13106912); //Robe
                                        
GC.MyChar.AddItem(11706912); //Earring
                                        
GC.MyChar.AddItem(12012912); //Neck
                                        
GC.MyChar.AddItem(15013912); //Ring
                                        
GC.MyChar.AddItem(16013912); //boots
                                        
GC.MyChar.AddItem(20200912); //Star
                                        
GC.MyChar.AddItem(20100912); //Fan
                                        
GC.AddSend(Packets.NPCSay("Here you are! Say thanks to ZiZo[PM] and yote for your Server!"));
                                        
GC.AddSend(Packets.NPCLink("Thanks."255));
                                        
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        
GC.AddSend(Packets.NPCFinish());
                                    }
                                    else if (
Control == 5)
                                    {
                                        
GC.MyChar.AddItem(13006912); //Robe
                                        
GC.MyChar.AddItem(11706912); //Earring
                                        
GC.MyChar.AddItem(12012912); //Neck
                                        
GC.MyChar.AddItem(15013912); //Ring
                                        
GC.MyChar.AddItem(16013912); //boots
                                        
GC.MyChar.AddItem(20200912); //Star
                                        
GC.MyChar.AddItem(20100912); //Fan
                                        
GC.AddSend(Packets.NPCSay("Here you are."));
                                        
GC.AddSend(Packets.NPCLink("Thanks."255));
                                        
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        
GC.AddSend(Packets.NPCFinish());
                                    }
                                    else if (
Control == 6)
                                    {
                                        
GC.MyChar.AddItem(13304912); //Robe
                                        
GC.MyChar.AddItem(11706912); //Earring
                                        
GC.MyChar.AddItem(12012912); //Neck
                                        
GC.MyChar.AddItem(15013912); //Ring
                                        
GC.MyChar.AddItem(16013912); //boots
                                        
GC.MyChar.AddItem(20200912); //Star
                                        
GC.MyChar.AddItem(20100912); //Fan
                                        
GC.AddSend(Packets.NPCSay("Here you are! Say thanks to ZiZo[PM] and yote for your Server!"));
                                        
GC.AddSend(Packets.NPCLink("Thanks."255));
                                        
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        
GC.AddSend(Packets.NPCFinish());
                                        
GC.AddSend(Packets.NPCSay("Here you are! Say thanks to ZiZo[PM] and yote for your Server!"));
                                        
GC.AddSend(Packets.NPCLink("Thanks."255));
                                        
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        
GC.AddSend(Packets.NPCFinish());  
                                    }
                                    else if (
Control == 7)
                                    {
                                        
GC.MyChar.AddItem(13506912); //Robe
                                        
GC.MyChar.AddItem(11206912); //Earring
                                        
GC.MyChar.AddItem(12012912); //Neck
                                        
GC.MyChar.AddItem(15013912); //Ring
                                        
GC.MyChar.AddItem(16013912); //boots
                                        
GC.MyChar.AddItem(20200912); //Star
                                        
GC.MyChar.AddItem(20100912); //Fan
                                        
GC.AddSend(Packets.NPCSay("Here you are! Say thanks to ZiZo[PM] and yote for your Server!"));
                                        
GC.AddSend(Packets.NPCLink("Thanks."255));
                                        
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        
GC.AddSend(Packets.NPCFinish());

                                    }
                                    else if (
Control == 8)
                                    {
                                        
GC.MyChar.AddItem(42113912); //BS
                                        
GC.MyChar.AddItem(42013912); //S
                                        
GC.MyChar.AddItem(41013912); //B
                                        
GC.MyChar.AddItem(48013912); //C
                                        
GC.MyChar.AddItem(56113912); //W
                                        
GC.MyChar.AddItem(56013912); //SP
                                        
GC.MyChar.AddItem(60113912); //k
                                        
GC.MyChar.AddItem(50012912); //Bo
                                        
GC.AddSend(Packets.NPCSay("Here you are! Say thanks to ZiZo[PM] and yote for your Server!"));
                                        
GC.AddSend(Packets.NPCLink("Thanks."255));
                                        
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        
GC.AddSend(Packets.NPCFinish());

                                    }

                                    break;
                                }
                             
#endregion 
Then in NPC


PHP Code:
51652 220 2 0 1002 456 362
51653 90 2 0 1002 439 384 
And then when i click on the NPC, its says [NPCDialog Call Error]--> Description: No NPC found with the ID: 51651 and the other the same with 51652

And how i be a Blue Elephant?

And know anyone a VIDEO-TUTORIAL how i create new weapons!?

Screenshots, then u know what i mean, plz download it only 880KB and 792KB xD

So, iam very happy when someone reply!
03/07/2012 01:03 injection illusion logic#2
Blue Elephant? as skill or as mesh trans ? most likely as skill ? search for it's id and learn it
Quote:
ID: 51651 and the other the same with 51652
r u sure there is a npc with this name in database ?
Quote:
VIDEO-TUTORIAL how i create new weapons!?
[Only registered and activated users can see links. Click Here To Register...]
ill read the codes and edit if i found something wrong in codes but here most likely the problem is
there is no such npcs in database else wrong type
else maybe there is 2 fields u should add dialogs too (in my source there is dialogs.cs and npcs.cs , i should add the dialogs in both to get it to work)
03/07/2012 02:19 U2_Caparzo#3
GC.MyChar.Body = 223;//that is the ID i think

second one i dont know. srry
03/07/2012 02:23 injection illusion logic#4
i dont mean mesh i mean type
aka npc got id , mesh , type
type is the job he do , if he is shop or just replying or what
mesh is how he looks like
id is to differentiate each of them
03/07/2012 15:05 WoW_Yeah#5
Ok, what i should do now? What is now the ID ?

In which file i must search and etc.
03/08/2012 00:33 2slam#6
i suppose u should check ur ID's again

about the blue (elephant) but actually its a pig

open chat.cs

add that

PHP Code:
if (Cmd[0] == "/gm")
                        {
                            
GC.MyChar.
Body 223;
                        }
                        if (
Cmd[0] == "/ gmback")
                        {
                            
GC.MyChar.
Body 1003;
                        } 
/gm to be the pig
/gmback to return normal

thats too old bro

[Only registered and activated users can see links. Click Here To Register...]
03/08/2012 01:11 pro4never#7
Quote:
Originally Posted by 2slam View Post
i suppose u should check ur ID's again

about the blue (elephant) but actually its a pig

open chat.cs

add that

PHP Code:
if (Cmd[0] == "/gm")
                        {
                            
GC.MyChar.
Body 223;
                        }
                        if (
Cmd[0] == "/ gmback")
                        {
                            
GC.MyChar.
Body 1003;
                        } 
/gm to be the pig
/gmback to return normal

thats too old bro

[Only registered and activated users can see links. Click Here To Register...]

*grinds teeth*


use

a

damn

transformation

ID!


It's been years... why do people still refuse to use the proper method for disguises?

Disguise Avatar Body... all are separate values!
03/08/2012 02:04 Spirited#8
Quote:
Originally Posted by pro4never View Post
*grinds teeth*


use

a

damn

transformation

ID!


It's been years... why do people still refuse to use the proper method for disguises?

Disguise Avatar Body... all are separate values!
:awesome:

[Only registered and activated users can see links. Click Here To Register...]
03/08/2012 02:12 .Ryu#9
Quote:
Originally Posted by Fаng View Post
:awesome:

[Only registered and activated users can see links. Click Here To Register...]
Mind giving me some information oh wth that tiger is? I thought it was a mount?
03/08/2012 02:33 Spirited#10
Quote:
Originally Posted by .Ryu View Post
Mind giving me some information oh wth that tiger is? I thought it was a mount?
Oh, it was from the Lantern Event on Chinese New Year two years ago. It's pretty cool, but it can't jump (which is slightly annoying). I'm sure if you go through the transformation types, you'll find it.
03/08/2012 02:40 _DreadNought_#11
Judging by your screenshot it doesnt take a genius to workout its the type 384.
03/08/2012 03:33 Spirited#12
Quote:
Originally Posted by _DreadNought_ View Post
Judging by your screenshot it doesnt take a genius to workout its the type 384.
Ah... yes. It is type 384. Have fun!
03/08/2012 19:29 WoW_Yeah#13
Quote:
Originally Posted by pro4never View Post
*grinds teeth*


use

a

damn

transformation

ID!


It's been years... why do people still refuse to use the proper method for disguises?

Disguise Avatar Body... all are separate values!
any Tutorial u know for "Transformation ID"?
03/08/2012 21:55 2slam#14
transformation IDS are the look faces of the monster