|
You last visited: Today at 01:56
Advertisement
[Release]5165 MagicGates
Discussion on [Release]5165 MagicGates within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
01/28/2010, 21:23
|
#1
|
elite*gold: 0
Join Date: Jul 2007
Posts: 73
Received Thanks: 27
|
[Release]5165 MagicGates
This is the code for the MagicGate:
Code:
723071 MagicGate 0 0 0 0 0 0 0 0 0 0 0 7521750 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 QuestItem Teleport~to~any~city 5
Take the number "723071"
Open Character.cs or Characters.cs
And add this:
Code:
#region MagicGates
case 723071:
{
if (Loc.Map != 6000 && Loc.Map != 6001)
{
Teleport(1009, 22, 23);
RemoveItem(I);
}
else
MyClient.LocalMessage(2005, "Cannot use teleport scrolls in jail.");
break;
}
#endregion
That is the scroll
Now for the NPC open NPC.txt in OldCODB
Scroll it to the bottom
And type this:
Code:
999999966 60 2 0 1009 27 15
After you done that Open NPCDialog.cs and type this:
Code:
#region MagicGateNPC
case 999999966:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("Hey want me to teleport you to somewhere?"));
GC.AddSend(Packets.NPCLink("Twin City", 1));
GC.AddSend(Packets.NPCLink("Phoenix Castle", 2));
GC.AddSend(Packets.NPCLink("Ape City", 3));
GC.AddSend(Packets.NPCLink("Desert City", 4));
GC.AddSend(Packets.NPCLink("Bird Island", 5));
GC.AddSend(Packets.NPCLink("Market", 6));
GC.AddSend(Packets.NPCLink("Just passing by.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
else if (GC.MyChar.Silvers >= 100)
{
if (Control == 1) GC.MyChar.Teleport(1002, 429, 379);
if (Control == 2) GC.MyChar.Teleport(1011, 188, 264);
if (Control == 3) GC.MyChar.Teleport(1020, 565, 562);
if (Control == 4) GC.MyChar.Teleport(1000, 500, 650);
if (Control == 5) GC.MyChar.Teleport(1015, 717, 571);
if (Control == 6) GC.MyChar.Teleport(1036, 211, 196);
}
else
{
GC.AddSend(Packets.NPCSay("."));
GC.AddSend(Packets.NPCLink("I see.", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
break;
}
#endregion
Press F5
Enjoy
Leave a reply if I forgot something
Credits for inspiration to pro4never
|
|
|
01/29/2010, 00:49
|
#2
|
elite*gold: 0
Join Date: Jan 2010
Posts: 139
Received Thanks: 45
|
nice pro4never release that first for co emu
|
|
|
01/29/2010, 11:56
|
#3
|
elite*gold: 0
Join Date: Jul 2007
Posts: 73
Received Thanks: 27
|
i know i just converted it to 5165
|
|
|
04/28/2010, 20:02
|
#4
|
elite*gold: 0
Join Date: Dec 2006
Posts: 94
Received Thanks: 29
|
i have a problem, when i copy+paste the character.cs thing, it givesme alot of errors :x help please?
|
|
|
04/29/2010, 06:19
|
#5
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Quote:
Originally Posted by masternek
i have a problem, when i copy+paste the character.cs thing, it givesme alot of errors :x help please?
|
What errors are you getting?
|
|
|
04/29/2010, 13:42
|
#6
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
|
Wasn't this already converted by someone for 5165?
Regardless, decent job. Hopefully ppl enjoy it.
Could have sworn that it already got converted though O_O
|
|
|
05/14/2010, 08:58
|
#7
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Well p4n, he converted it first, I did second.
The difference between ours is his teleports you to an npc and mine brings up the dialog box upfront.
|
|
|
05/14/2010, 14:29
|
#8
|
elite*gold: 0
Join Date: Nov 2007
Posts: 50
Received Thanks: 10
|
Whats a MagicGate? haha
|
|
|
05/14/2010, 14:41
|
#9
|
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
|
Its a scroll that drops that takes you to any of the main cities you choose.
|
|
|
05/30/2010, 17:22
|
#10
|
elite*gold: 0
Join Date: Dec 2006
Posts: 94
Received Thanks: 29
|
Quote:
Originally Posted by .Arco
What errors are you getting?
|
im getting this:
Uploaded with
|
|
|
05/30/2010, 19:26
|
#11
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
|
Quote:
Originally Posted by masternek
im getting this:
Uploaded with
|
You put the code in the wrong spot. Search for existing use item case numbers and paste under one of those... basically you are doing it wrong atm.
|
|
|
05/31/2010, 08:51
|
#12
|
elite*gold: 0
Join Date: Sep 2008
Posts: 617
Received Thanks: 38
|
Quote:
Originally Posted by masternek
im getting this:
Uploaded with
|
Change case id
|
|
|
05/31/2010, 18:36
|
#13
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
|
Quote:
Originally Posted by sawickas
Change case id
|
.... no he doesn't....
He needs to move it up 1-2 }'s...
he put it at the very end AFTER the end of the switch statement that controls what item is being used. Therefor he gets errors related to the code he put in but also errors concerning the section after it because the { }'s do not match up.
|
|
|
06/01/2010, 01:10
|
#14
|
elite*gold: 0
Join Date: Dec 2006
Posts: 94
Received Thanks: 29
|
alright. ill try. in some secs ill put the answer xD, thx for try helpme
|
|
|
06/01/2010, 01:18
|
#15
|
elite*gold: 0
Join Date: Dec 2006
Posts: 94
Received Thanks: 29
|
alright. now i have 2 errors:
constant value "723071"cannot be comverted to ushort
and
the name "I" does not exist in the current context
|
|
|
|
|
Similar Threads
|
[Release] My 5165 Source
03/23/2012 - CO2 PServer Guides & Releases - 74 Replies
Hello
I would like to release my 5165 source to everyone.
Enjoy!
Features:
Houses
Top Halos
Class PK Envoy
PK Tournament
Scroll Commands
|
[RELEASE]TDM 5165
01/31/2012 - CO2 PServer Guides & Releases - 54 Replies
Hello, i will show you how to create a team deathmatch tournament for your 5165server (tanels).
What do you need?
-The source
-How to copy + paste :P
Features:
-First blood (Give +5points):P
-4Teams (Red, Blue, Black, White)
-Random choose team
|
[Release]My fixed 5165
06/12/2010 - CO2 PServer Guides & Releases - 22 Replies
Many add ons and bug fixes which include....
Dis City map with mobs this can be accessed from the TCTeleporter also added Lab 1 -4 this can be accessed from the normal npc that would send you there.
Npcs I added:
Talisman Seller npc (Sells GoldCups, Pent. Amulets etc)
Halo npcs
Mount Officer (skills) and Steed + npcs
Bless npc
|
[Release] MagicGates (teleport to any town you choose)
01/28/2010 - CO2 PServer Guides & Releases - 17 Replies
So the idea is stolen from qonquer 2 where if you found a MagicGate you could use it to go to a small room (clone of dye room) where an npc would send you to any town you want.
I've simply made a script that will do that. Implement magic gates however you want, either as a drop, a reward from npc or simply from gm commands.
Step 1
Place in NpcTalk (anywhere in the "case" section)
|
All times are GMT +2. The time now is 01:56.
|
|