okay im trying to get reborn npc

04/18/2009 06:14 Arcotemple#1
kk i folloed emme's guide on making rebirth npc this is what i have coded

around like 1236

Quote:
if (CurrentNPC == 11111)
{
SendPacket(General.MyPackets.NPCSay("Hello, intresed in getting reborned? After level 120, you can get reborned,and it cost you an celestial stone. But if you already are first reborned,it cost you an ExtemptionToken. Still intresed?"));
SendPacket(General.MyPackets.NPCLink("Yeah,first rebirth", 1));
SendPacket(General.MyPackets.NPCLink("Yeah,second rebirth", 8));
SendPacket(General.MyPackets.NPCLink("No thanks,not yet.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
and then

around line 3124 i have

Quote:
if (CurrentNPC == 11111)
{
if (Control == 1)
{
SendPacket(General.MyPackets.NPCSay("Would you like to reborn?"));
if (MyChar.RBCount == 0 && MyChar.Level >= 120 || MyChar.Job == 135 && MyChar.Level >= 110)
SendPacket(General.MyPackets.NPCLink("Yes,first rebirth", 2));
if (MyChar.RBCount == 1 && MyChar.Level >= 120 || MyChar.Job == 135 && MyChar.Level >= 110)
SendPacket(General.MyPackets.NPCLink("Yeah,second rebirth", 8));
SendPacket(General.MyPackets.NPCLink("Let me think it over.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 2)
{
SendPacket(General.MyPackets.NPCSay("What would you like to get reborned into? Remember that your earlier skills don't save."));
SendPacket(General.MyPackets.NPCLink("Trojan", 3));
SendPacket(General.MyPackets.NPCLink("Warrior", 4));
SendPacket(General.MyPackets.NPCLink("Archer", 5));
SendPacket(General.MyPackets.NPCLink("Fire Taoist", 6));
SendPacket(General.MyPackets.NPCLink("WaterTaoist" , 7));
SendPacket(General.MyPackets.NPCLink("Let me think it over.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 3)
{
if (MyChar.InventoryContains(721259, 1))
{
MyChar.RemoveItem(MyChar.ItemNext(721259));
MyChar.ReBorn(11);
}
}
if (Control == 4)
{

if (MyChar.InventoryContains(721259, 1))
{
MyChar.RemoveItem(MyChar.ItemNext(721259));
MyChar.ReBorn(21);
}
}
if (Control == 5)
{

if (MyChar.InventoryContains(721259, 1))
{
MyChar.RemoveItem(MyChar.ItemNext(721259));
MyChar.ReBorn(41);
}
}
if (Control == 6)
{

if (MyChar.InventoryContains(721259, 1))
{
MyChar.RemoveItem(MyChar.ItemNext(721259));
MyChar.ReBorn(101);
}
}
if (Control == 7)
{
if (MyChar.InventoryContains(721259, 1))
{
MyChar.RemoveItem(MyChar.ItemNext(721259));
MyChar.ReBorn(131);
}

}
if (Control == 8)
{
SendPacket(General.MyPackets.NPCSay("What would you like to get second reborn into? Remember that your earlier skills don't save and it cost an ExemptionToken."));
SendPacket(General.MyPackets.NPCLink("Trojan", 9));
SendPacket(General.MyPackets.NPCLink("Warrior", 10));
SendPacket(General.MyPackets.NPCLink("Archer", 11));
SendPacket(General.MyPackets.NPCLink("Fire Taoist", 12));
SendPacket(General.MyPackets.NPCLink("WaterTaoist" , 13));
SendPacket(General.MyPackets.NPCLink("WaterTaoist" , 14));
SendPacket(General.MyPackets.NPCLink("Let me think it over.", 255));
SendPacket(General.MyPackets.NPCSetFace(30));
SendPacket(General.MyPackets.NPCFinish());
}
if (Control == 9)
{

if (MyChar.InventoryContains(721259, 1))

MyChar.ReBorn(11);
}

if (Control == 10)
{

if (MyChar.InventoryContains(721259, 1))
MyChar.ReBorn(21);
}

if (Control == 11)
{

if (MyChar.InventoryContains(721259, 1))
MyChar.ReBorn(41);
}

if (Control == 12)
{

if (MyChar.InventoryContains(721259, 1))
MyChar.ReBorn(101);
}

if (Control == 13)
{
if (MyChar.InventoryContains(721259, 1))
MyChar.ReBorn(131);
}


}

the npc is sitting in tc but he wont talk...

he jstu stands there like a tard...

see anything wrong?
04/18/2009 10:40 flaMe~#2
Are the NPCID's the same, in your database and in the code. Also, check that it's not conflicting with another NPC.
04/18/2009 10:46 wouterg007#3
post the link of emma pls
04/18/2009 20:40 Arcotemple#4
Quote:
Originally Posted by flaMe~ View Post
Are the NPCID's the same, in your database and in the code. Also, check that it's not conflicting with another NPC.
i did that...
the npc id's aer the same
04/18/2009 23:41 doku66655#5
I've got exactly the same problem. I know 10000000% the UID of NPC is the same... But Arcotemple is right. The NPC won't even say a thing. Tried to add NPCs in diffirent places, diffirent UIDs and types... EVERYWHERE the NPC does not works.
04/19/2009 01:24 doku66655#6
Any advice? Cuz I really need that NPC...
04/19/2009 02:39 flaMe~#7
Did you check to see if it is conflicting with anything else?
04/19/2009 08:39 doku66655#8
I have checked everything... But... If I put another reborn NPC posted here... It works =/
04/19/2009 11:44 flaMe~#9
Then just use that new npc.. O.o