[Release] Old Explorer V2 (Adding Instructions)

09/24/2009 06:13 Illustria#1
Here is an update to Old Explorer, he now charges 100 cps to get to meteor zone.

Place in GameServer Handlers NpcTalk.cs

Code:
#region Old Explorer
                case 999:
                    {
                        if (LinkBack == 0)
                        {
                            Face(30, CSocket);
                            Text("Would you like to go to Meteor Zone? It will cost you 100cps", CSocket);
                            Link("Yes", 1, CSocket);
                            Link("No", 255, CSocket);
                            End(CSocket);
                        }
                        else if (LinkBack == 1)
                        {
                            if (CSocket.Client.CPs >= 100)
                            {
                                Handler.Teleport(1210, 1041, 716, 0, CSocket);
                                CPs(-100, CSocket);
                            }
                        }
                        break;
                    }
                #endregion
Implementing Instructions

2 Screenshots are attached for phpmyadmin setup, The smaller sized picture is your npc's database, youll have to add a new row with the information in the screenshot, the bigger sized picture is TqNpc's database which youll have to add the bigger screenshot information to.

Warning!

The npc isnt properly named when it goes to the market, i need to learn how to properly place npcs before i can provide the right npc. But the npc will still work and take you to metzone for 100cps

Npc will go at 199,212 of the market.

If you use either codes be sure to thank Shadow as well as Mwaha for correcting mistakes on my part.
09/24/2009 10:50 $HaDoW#2
a lil better one :)
Code:
		#region Old Explorer
                case 999:
                    {
                        if (LinkBack == 0)
                        {
                            Text("Would you like to go to Meteor Zone? It will cost you 100 Cps", CSocket);
                            Link("Ok !", 1, CSocket);
                            Link("No thanks..", 255, CSocket);
			    Face(30, CSocket);
                            End(CSocket);
                        }
                        else if (LinkBack == 1)
                        {
                            if (CSocket.Client.CPs >= 100)
                            {
                                Handler.Teleport(1210, 1041, 716, 0, CSocket);
                                Money(-50, CSocket);
                            }
							else
							{
								Text("You dont have that much Money ! come back later when you have it !", CSocket);
								Link("Oh... Ok....", 255, CSocket);
								Face(30, CSocket);
								End(CSocket);
							}
                        }
                        break;
                    }
                #endregion
09/24/2009 22:19 mwaha#3
Code:
                            if (CSocket.Client.CPs >= 100)
                            {
                                Handler.Teleport(1210, 1041, 716, 0, CSocket);
                                Money(-50, CSocket);
                            }
Is wrong to charge 100cps, you need it as:

Code:
                            if (CSocket.Client.CPs >= 100)
                            {
                                Handler.Teleport(1210, 1041, 716, 0, CSocket);
                                CPs(-100, CSocket);
                            }
Your example he checks for 100cps but actually charges 50silver to enter.
09/25/2009 00:42 Illustria#4
Quote:
Originally Posted by mwaha View Post
Code:
                            if (CSocket.Client.CPs >= 100)
                            {
                                Handler.Teleport(1210, 1041, 716, 0, CSocket);
                                Money(-50, CSocket);
                            }
Is wrong to charge 100cps, you need it as:

Code:
                            if (CSocket.Client.CPs >= 100)
                            {
                                Handler.Teleport(1210, 1041, 716, 0, CSocket);
                                CPs(-100, CSocket);
                            }
Your example he checks for 100cps but actually charges 50silver to enter.
Thx i changed it ^_^.