[Request] Quest Wroking With Commands Only

11/20/2008 09:48 !DeX!#1
1st my English bad
---
am Starting NPC Working with Command i like this idea from CoZero Source
but i Think i have something wrong when i code it

i jz need any idea to Finish it There my code

There is command
PHP Code:
                                        if (Splitter[0] == "/queststart")
                                        {
                                                  foreach (
DictionaryEntry DE in World.AllChars)
                                                {
                                                    
Character Char = (Character)DE.Value;
                                            
General.Coolq true;
                                            
                                            
SendPacket(General.MyPackets.SendMsg(MessageId"SYSTEM"MyChar.Name"The Quest has been started. You will automatic teleported to NPC in 5 Seconds."2011));
                                                    } 
NPC There:
PHP Code:
                            if (CurrentNPC == 1234567)
                            {
                                if (
MyChar.questdone == true)
                                 
                                {
                                    
SendPacket(General.MyPackets.NPCSay("Do you wanna go to the QuestArea and fight against StrongMonsters?"));
                                    
SendPacket(General.MyPackets.NPCLink("Yes,teleport me"1));
                                    
SendPacket(General.MyPackets.NPCLink("No, Thanks."255));
                                    
SendPacket(General.MyPackets.NPCSetFace(30));
                                    
SendPacket(General.MyPackets.NPCFinish());
                                }
                                else
                                {
                                    
SendPacket(General.MyPackets.NPCSay("The  Quest has not started yet.Come back if its started."));
                                    
SendPacket(General.MyPackets.NPCLink("Ok, no problem."255));
                                    
SendPacket(General.MyPackets.NPCSetFace(30));
                                    
SendPacket(General.MyPackets.NPCFinish());
                                }
                            } 
i hope some help to Finish it Thanks All
11/20/2008 09:57 vietkidd510#2
your missing the final part which is the npc do script here an example

Code:
                        if (CurrentNPC == 1234567)
                        {
                            if (Control == 1)
                            {
                                    MyChar.Teleport(MapID, LocX, LocY);

                                }
                            }
                        }
11/20/2008 12:02 !DeX!#3
Thanks for This help but i stell have problem when i make command nothing happen to NPC telling me
SendPacket(General.MyPackets.NPCSay("The Quest has not started yet.Come back if its started
11/20/2008 12:04 !DeX!#4
i have New idea i can make Command to Send all player to Quest Map
11/20/2008 17:00 DungMaster#5
if (CurrentNPC == 1234567)
{
if General.Evilq = true
{
if (Control == 1)
{
MyChar.Teleport(MapID, LocX, LocY);

}
}
}

Just a example..
11/20/2008 18:34 !DeX!#6
Thanks Guys for helping