|
You last visited: Today at 10:53
Advertisement
SRX Unique respawn
Discussion on SRX Unique respawn within the SRO Coding Corner forum part of the Silkroad Online category.
08/23/2011, 20:15
|
#1
|
elite*gold: 0
Join Date: Jan 2008
Posts: 22
Received Thanks: 3
|
SRX Unique respawn
Uniques not respawn
I need example ; a unique killed = again spawn 15 minutes later.
who know codes
I can edit cource.
Thank you.
|
|
|
08/23/2011, 20:26
|
#2
|
elite*gold: 0
Join Date: Jan 2010
Posts: 1,484
Received Thanks: 809
|
It's probably somewhere in the globalUnique.cs it has everything in it about the unique's probably some parameter which you need too change.
Edit: sorry misread I thought they respawned too fast well too respawn them is quite easy in the globalunique.cs there are a few functions like LORD ISY ect you need too call those with the correct object probably from the chardata file and it'll spawn.
|
|
|
08/23/2011, 20:35
|
#3
|
elite*gold: 0
Join Date: Jan 2008
Posts: 22
Received Thanks: 3
|
example
PHP Code:
/////////////////////////////////////////////////////////////////////////// // Srevolution 2010 / 2011 // Programmed by: Team Srevolution // Website: www.xcoding.net /////////////////////////////////////////////////////////////////////////// using System; using Framework; using System.Linq; using System.Text; using System.Threading; using System.Collections.Generic; namespace Game { public partial class GlobalUnique { public static List<obj> TigerGirl = new List<obj>(); public static List<obj> Urichi = new List<obj>(); public static List<obj> Isytaru = new List<obj>(); public static List<obj> LordYarkan = new List<obj>(); public static List<obj> DemonShaitan = new List<obj>(); public static List<obj> Cerberus = new List<obj>(); public static List<obj> CapIvy = new List<obj>(); public static List<obj> Medusa = new List<obj>(); public static List<obj> Roc = new List<obj>(); public static List<obj> Neith = new List<obj>(); public static List<obj> Isis = new List<obj>(); public static List<obj> Sphinx = new List<obj>(); static bool Tiger, Uri, Isy, Lord, Demon, Cerb, Ivy, Medusa_s, Roc_s, Neith_s, Isis_s, Sphinx_s; static Random rnd = new Random(); public static Timer tiger1; public static Timer uri1; public static Timer isy1; public static Timer lord1; public static Timer demon1; public static Timer cerb1; public static Timer ivy1; public static void StartTGUnique(int time, int per) { tiger1 = new Timer(new TimerCallback(TG), 0, time, per); } public static void StartUriUnique(int time, int per) { uri1 = new Timer(new TimerCallback(URI), 0, time, per); } public static void StartIsyUnique(int time, int per) { isy1 = new Timer(new TimerCallback(ISY), 0, time, per); } public static void StartLordUnique(int time, int per) { lord1 = new Timer(new TimerCallback(LORD), 0, time, per); } public static void StartDemonUnique(int time, int per) { demon1 = new Timer(new TimerCallback(DEMON), 0, time, per); } public static void StartCerbUnique(int time, int per) { cerb1 = new Timer(new TimerCallback(CERB), 0, time, per); } public static void StartIvyUnique(int time, int per) { ivy1 = new Timer(new TimerCallback(IVY), 0, time, per); } public static void SPHINX_CB(object e) { try { if (!Sphinx_s) { obj o = Sphinx[rnd.Next(0, Sphinx.Count)]; Systems.Objects.Add(o); o.SpawnMe(); Systems.SendAll(Packet.Unique_Data(5, (int)o.ID, null)); Sphinx_s = true; Console.WriteLine("Sphinx spawn warp location : {0}{1}, {2}, {3}", o.xSec, o.ySec, o.x, o.y); } } catch (Exception ex) { Console.WriteLine("Sphinx spawn error {0}", ex); } } public static void ISIS_CB(object e) { try { if (!Isis_s) { obj o = Isis[rnd.Next(0, Isis.Count)]; Systems.Objects.Add(o); o.SpawnMe(); Systems.SendAll(Packet.Unique_Data(5, (int)o.ID, null)); Isis_s = true; Console.WriteLine("Isis spawn warp location : {0}{1}, {2}, {3}", o.xSec, o.ySec, o.x, o.y); } } catch (Exception ex) { Console.WriteLine("Isis spawn error {0}", ex); } } public static void TG(object e) { try { if (!Tiger) { obj o = TigerGirl[rnd.Next(0, TigerGirl.Count - 1)]; Systems.Objects.Add(o); o.SpawnMe(); Systems.SendAll(Packet.Unique_Data(5, (int)o.ID, null)); Tiger = true; Console.WriteLine("Tiger girl spawn warp location : {0}{1}, {2}, {3}", o.xSec, o.ySec, o.x, o.y); } } catch (Exception ex) { deBug.Write(ex); } } public static void URI(object e) { try { if (!Uri) { obj o = Urichi[rnd.Next(0, Urichi.Count - 1)]; Systems.Objects.Add(o); o.SpawnMe(); Systems.SendAll(Packet.Unique_Data(5, (int)o.ID, null)); Uri = true; Console.WriteLine("Urichi spawn warp location : {0}{1}, {2}, {3}", o.xSec, o.ySec, o.x, o.y); } } catch (Exception ex) { deBug.Write(ex); } } public static void ISY(object e) { try { if (!Isy) { obj o = Isytaru[rnd.Next(0, Isytaru.Count - 1)]; Systems.Objects.Add(o); o.SpawnMe(); Systems.SendAll(Packet.Unique_Data(5, (int)o.ID, null)); Isy = true; Console.WriteLine("Isytaru spawn warp location : {0}{1}, {2}, {3}", o.xSec, o.ySec, o.x, o.y); } } catch (Exception ex) { deBug.Write(ex); } } public static void LORD(object e) { try { if (!Lord) { obj o = LordYarkan[rnd.Next(0, LordYarkan.Count - 1)]; Systems.Objects.Add(o); o.SpawnMe(); Systems.SendAll(Packet.Unique_Data(5, (int)o.ID, null)); Lord = true; Console.WriteLine("Lord yarkan spawn warp location : {0}{1}, {2}, {3}", o.xSec, o.ySec, o.x, o.y); } } catch (Exception ex) { deBug.Write(ex); } } public static void DEMON(object e) { try { if (!Demon) { obj o = DemonShaitan[rnd.Next(0, DemonShaitan.Count - 1)]; Systems.Objects.Add(o); o.SpawnMe(); Systems.SendAll(Packet.Unique_Data(5, (int)o.ID, null)); Demon = true; Console.WriteLine("Demon Shaitan spawn warp location : {0}{1}, {2}, {3}", o.xSec, o.ySec, o.x, o.y); } } catch (Exception ex) { deBug.Write(ex); } } public static void CERB(object e) { try { if (!Cerb) { obj o = Cerberus[rnd.Next(0, Cerberus.Count - 1)]; Systems.Objects.Add(o); o.SpawnMe(); Systems.SendAll(Packet.Unique_Data(5, (int)o.ID, null)); Cerb = true; Console.WriteLine("Cerberus spawn warp location : {0}{1}, {2}, {3}", o.xSec, o.ySec, o.x, o.y); } } catch (Exception ex) { deBug.Write(ex); } } public static void IVY(object e) { try { if (!Ivy) { obj o = CapIvy[rnd.Next(0, CapIvy.Count)]; Systems.Objects.Add(o); o.SpawnMe(); Systems.SendAll(Packet.Unique_Data(5, (int)o.ID, null)); Ivy = true; Console.WriteLine("Captain ivy spawn warp location : {0}{1}, {2}, {3}", o.xSec, o.ySec, o.x, o.y); } } catch (Exception ex) { deBug.Write(ex); } } public static void AddObject(obj o) { switch (o.ID) { case 1954: TigerGirl.Add(o); break; case 1982: Urichi.Add(o); break; case 2002: Isytaru.Add(o); break; case 3810: LordYarkan.Add(o); break; case 3875: DemonShaitan.Add(o); break; case 3877: Roc.Add(o); break; case 5871: Cerberus.Add(o); break; case 14778: CapIvy.Add(o); break; case 14839: Medusa.Add(o); break; case 32768: Neith.Add(o); break; case 32752: Sphinx.Add(o); break; case 32770: Isis.Add(o); break; } } public static void ClearObject(obj o) { character n = new character(); try { switch (o.ID) { case 1954: Systems.SendAll(Packet.Unique_Data(6, (int)1954, n.Information.Name)); Tiger = false; Game.GlobalUnique.StartTGUnique(rnd.Next(10, 20) * 60000, 600); //Random spawn tiger girl break; case 1982: Systems.SendAll(Packet.Unique_Data(6, (int)1982, n.Information.Name)); Uri = false; Game.GlobalUnique.StartUriUnique(rnd.Next(10, 20) * 60000, 600); //Random spawn urichi break; case 2002: Systems.SendAll(Packet.Unique_Data(6, (int)2002, n.Information.Name)); Isy = false; Game.GlobalUnique.StartIsyUnique(rnd.Next(10, 20) * 60000, 600); //Random spawn isy break; case 3810: Systems.SendAll(Packet.Unique_Data(6, (int)3810, n.Information.Name)); Lord = false; Game.GlobalUnique.StartLordUnique(rnd.Next(10, 20) * 60000, 600); //Random spawn lord yarkan break; case 3875: Systems.SendAll(Packet.Unique_Data(6, (int)3875, n.Information.Name)); Demon = false; Game.GlobalUnique.StartDemonUnique(rnd.Next(10, 20) * 60000, 600); //Random spawn demon shaitan break; case 5871: Systems.SendAll(Packet.Unique_Data(6, (int)5871, n.Information.Name)); Cerb = false; Game.GlobalUnique.StartCerbUnique(rnd.Next(10, 20) * 60000, 600); //Random spawn cerberus break; case 14778: Systems.SendAll(Packet.Unique_Data(6, (int)14538, n.Information.Name)); Ivy = false; Game.GlobalUnique.StartIvyUnique(rnd.Next(10, 20) * 60000, 600); //Random spawn captain ivy break; } } catch (Exception ex) { deBug.Write(ex); } } } }
maybe from here
PHP Code:
if (aSocket == null) { Console.ForegroundColor = ConsoleColor.Cyan; Console.WriteLine(" Ingame notice: Type 1 space then message."); Console.WriteLine(" //clear"); Console.WriteLine(" //repairitems"); Console.WriteLine(" //respawn_unique"); Console.WriteLine(" //shutdown"); Console.WriteLine(" //manager"); Console.ForegroundColor = ConsoleColor.Yellow; } else { sendSocket(aSocket, "Ingame notice: Type 1 space then message." + Environment.NewLine); sendSocket(aSocket, " //clear = cleanup unused memory" + Environment.NewLine); sendSocket(aSocket, " //repairitems" + Environment.NewLine); sendSocket(aSocket, " //respawn_unique" + Environment.NewLine); sendSocket(aSocket, " //shutdown" + Environment.NewLine); }
|
|
|
09/02/2011, 16:26
|
#4
|
elite*gold: 0
Join Date: May 2010
Posts: 169
Received Thanks: 22
|
Leave uniques alone!
|
|
|
09/03/2011, 14:36
|
#5
|
elite*gold: 0
Join Date: Jan 2007
Posts: 221
Received Thanks: 21
|
Quote:
Originally Posted by evaldaskowka
Leave uniques alone!
|
troll.
Im wonderin how to change their time and maybe perhaps cancel some uniques.
|
|
|
09/03/2011, 14:54
|
#6
|
elite*gold: 0
Join Date: Jan 2010
Posts: 1,484
Received Thanks: 809
|
Code:
switch (o.ID)
{
case 1954:
Systems.SendAll(Packet.Unique_Data(6, (int)1954, n.Information.Name));
Tiger = false;
Game.GlobalUnique.StartTGUnique(rnd.Next(10, 20) * 60000, 600); //Random spawn tiger girl
break;
case 1982:
Systems.SendAll(Packet.Unique_Data(6, (int)1982, n.Information.Name));
Uri = false;
Game.GlobalUnique.StartUriUnique(rnd.Next(10, 20) * 60000, 600); //Random spawn urichi
break;
case 2002:
Systems.SendAll(Packet.Unique_Data(6, (int)2002, n.Information.Name));
Isy = false;
Game.GlobalUnique.StartIsyUnique(rnd.Next(10, 20) * 60000, 600); //Random spawn isy
break;
case 3810:
Systems.SendAll(Packet.Unique_Data(6, (int)3810, n.Information.Name));
Lord = false;
Game.GlobalUnique.StartLordUnique(rnd.Next(10, 20) * 60000, 600); //Random spawn lord yarkan
break;
case 3875:
Systems.SendAll(Packet.Unique_Data(6, (int)3875, n.Information.Name));
Demon = false;
Game.GlobalUnique.StartDemonUnique(rnd.Next(10, 20) * 60000, 600); //Random spawn demon shaitan
break;
case 5871:
Systems.SendAll(Packet.Unique_Data(6, (int)5871, n.Information.Name));
Cerb = false;
Game.GlobalUnique.StartCerbUnique(rnd.Next(10, 20) * 60000, 600); //Random spawn cerberus
break;
case 14778:
Systems.SendAll(Packet.Unique_Data(6, (int)14538, n.Information.Name));
Ivy = false;
Game.GlobalUnique.StartIvyUnique(rnd.Next(10, 20) * 60000, 600); //Random spawn captain ivy
break;
}
This part setup the timers if you chagne the timers here they'll respawn a lot faster and if you remove it the unique won't spawn.
|
|
|
All times are GMT +2. The time now is 10:53.
|
|