Well im trying to make my Portals load ini from my debug can someoen help me with this?
public static void LoadPortals()
{
MySqlCommand Command = new MySqlCommand("SELECT * FROM `portals`;", Connection);
MySqlDataAdapter Adapter = new MySqlDataAdapter(Command);
DataSet DS = new DataSet("Count");
Adapter.Fill(DS, "Count");
if (DS.Tables["Count"].Rows.Count > 0)
{
int Portal = DS.Tables["Count"].Rows.Count;
Portals = new ushort[Portal][];
for (int i = 0; i < DS.Tables["Count"].Rows.Count; i++)
{
DataRow Data = DS.Tables["Count"].Rows[i];
Portals[i] = new ushort[6] { Convert.ToUInt16((uint)Data["FromMap"]), Convert.ToUInt16((uint)Data["FromX"]), Convert.ToUInt16((uint)Data["FromY"]), Convert.ToUInt16((uint)Data["NewMap"]), Convert.ToUInt16((uint)Data["NewX"]), Convert.ToUInt16((uint)Data["NewY"]) };
}
}
}
ok i tried that but its not wokring becuse id ont have those files and if i try and add them boom crashes and btw this is lotf source im useing.
public static void LoadPortals()
{
string LoadPortals= System.IO.File.ReadAllText(System.Windows.Forms.Ap plication.StartupPath + @"\Portals.ini");
DataSet DS = new DataSet("Count");
Ini.Fill(DS, "Count");
if (DS.Tables["Count"].Rows.Count > 0)
{
int Portal = DS.Tables["Count"].Rows.Count;
Portals = new ushort[Portal][];
for (int i = 0; i < DS.Tables["Count"].Rows.Count; i++)
{
DataRow Data = DS.Tables["Count"].Rows[i];
Portals[i] = new ushort[6] { Convert.ToUInt16((uint)Data["FromMap"]), Convert.ToUInt16((uint)Data["FromX"]), Convert.ToUInt16((uint)Data["FromY"]), Convert.ToUInt16((uint)Data["NewMap"]), Convert.ToUInt16((uint)Data["NewX"]), Convert.ToUInt16((uint)Data["NewY"]) };
}
}
}
[Question] Log in/Load Npc 05/08/2010 - CO2 Private Server - 8 Replies Hej all,
If i restarted server, and i log in.. i have to move around map(around 2 jumps)
before it shows my Npc's/guards/mobs etc...
Any 1 know this problem and the fix :)..
Gratz!
++
If i am in FrozenGrooto(7001), and i restart/dc server...
[Question]Is it possbile to make 5165 load accs, ranks, characters From mysql ? 03/14/2010 - CO2 Private Server - 40 Replies Well I have been wondering this for a long but but I relise you need another .cs file I dono call it Connect.cs and ur gonna want the tables Characters, Accounts, Top archer, Top ko, Top Donations etc
But how would you do this ? change the method from biniary to save ? idk just asking for some help with this and I may try to do this.
Question About iSRO bot and Load 11/08/2008 - Silkroad Online - 4 Replies Okay, so what I am trying to do is, make it so I can run iSRO bot with a No-DC loader. Getting on greece is a pain. 24\7 Traffic. Any way i can accomplish this?
~THANKS~
irnoobloer
How make CoHook load automatcally with conquer!! 02/06/2008 - CO2 Guides & Templates - 0 Replies Hello, i find a way to make cohook load automatcally with conquer , here is the guide :
1. Find conquer folder , and delete the file Chat.dll ( make a backup before )
2.Take a dll from cohook and put it in conquer folder
3. Rename it to Chat.dll and is done :D
PS: The little chat windows don't gonna appear more