• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Make area detect. flag Teleport
#1
public unsafe void Fonction_Get_et_Calcul_Value_Rayon()
{
Calcule_Get_Min_X = OriginX - 50.0f;
Calcule_Get_Max_X = OriginX + 50.0f;
Calcule_Get_Min_Y = OriginY - 50.0f;
Calcule_Get_Max_Y = OriginY + 50.0f;
Calcule_Get_Min_Z = OriginZ - 50.0f;
Calcule_Get_Max_Z = OriginZ + 50.0f;
string NomMap = GetDvar("mapname");
string Flag_Position = "admin\\AdminProServerTEKNO\\Flag_Position.txt";
FileStream stream;
FileMode Mode_Ecriture;
if (File.Exists(Flag_Position)) Mode_Ecriture = FileMode.Append;
else
{
SaveNum = 1;
Mode_Ecriture = FileMode.CreateNew;
}
stream = File.Open(Flag_Position, Mode_Ecriture, FileAccess.Write, FileShare.None);
StreamWriter EcritureDeLaLigne = new StreamWriter(stream);//new StreamWriter(stream, System.Text.Encoding.Unicode);
EcritureDeLaLigne.WriteLine("Save N°: " + SaveNum);
EcritureDeLaLigne.WriteLine("Carte: " + NomMap);
EcritureDeLaLigne.WriteLine("***********************************************************");
if (des == true)
{
EcritureDeLaLigne.WriteLine("Teleport_Flag[" + NumObjStruc + "].Go_Flag_X = " + OriginX + "f;");
EcritureDeLaLigne.WriteLine("Teleport_Flag[" + NumObjStruc + "].Go_Flag_Y = " + OriginY + "f;");
EcritureDeLaLigne.WriteLine("Teleport_Flag[" + NumObjStruc + "].Go_Flag_Z = " + OriginZ + "f;");
NumObjStruc ++;
des = false;
}
if (ent == true)
{
EcritureDeLaLigne.WriteLine("Teleport_Flag_Area[" + NumObjStruc + "].Min_X = " + Calcule_Get_Min_X + "f;");
EcritureDeLaLigne.WriteLine("Teleport_Flag_Area[" + NumObjStruc + "].Max_X = " + Calcule_Get_Max_X + "f;");
EcritureDeLaLigne.WriteLine("Teleport_Flag_Area[" + NumObjStruc + "].Min_Y = " + Calcule_Get_Min_Y + "f;");
EcritureDeLaLigne.WriteLine("Teleport_Flag_Area[" + NumObjStruc + "].Max_Y = " + Calcule_Get_Max_Y + "f;");
EcritureDeLaLigne.WriteLine("Teleport_Flag_Area[" + NumObjStruc + "].Min_Z = " + Calcule_Get_Min_Z + "f;");
EcritureDeLaLigne.WriteLine("Teleport_Flag_Area[" + NumObjStruc + "].Max_Z = " + Calcule_Get_Max_Z + "f;");
EcritureDeLaLigne.WriteLine("Fonction_Create_Icone(" + OriginX + "f," + OriginY + "f," + OriginZ + "f,211);");
ent = false;
}
EcritureDeLaLigne.WriteLine(" ");
EcritureDeLaLigne.WriteLine("Fonction_Create_Object(" + OriginX + "f, " + OriginY + "f, " + OriginZ + "f, 0f, 0f, 0f, Flag);");
EcritureDeLaLigne.WriteLine("-------------------------------------------------------");
EcritureDeLaLigne.WriteLine("- [~~INFO~~] -");
EcritureDeLaLigne.WriteLine("-Code de creation Teleport ver un flag -");
EcritureDeLaLigne.WriteLine("-CommandClass/FONCTION EXTERNE/FONCTION_TELEPORT/ -");
EcritureDeLaLigne.WriteLine("-Value_Teleport_by_Map. -");
EcritureDeLaLigne.WriteLine("-Code de creation d'objet -");
EcritureDeLaLigne.WriteLine("-CommandClass/FONCTION EXTERNE/FONCTION Create object -");
EcritureDeLaLigne.WriteLine("-/Declaration et variable/Value_Object_by_Map. -");
EcritureDeLaLigne.WriteLine("-------------------------------------------------------");
EcritureDeLaLigne.WriteLine("=====================================================================================================");
EcritureDeLaLigne.WriteLine(" ");
EcritureDeLaLigne.Flush();
EcritureDeLaLigne.Close();
SaveNum++;
}
  Reply
#2
lol. What is thread about?
C++/Obj-C developer. Neko engine wip
Steam: Click
[-] The following 2 users say Thank You to Nekochan for this post:
  • DidUknowiPwn, xtreme2010
  Reply
#3
(10-03-2013, 20:20)SailorMoon Wrote: lol. What is thread about?
TITOY
  Reply
#4
(10-12-2013, 17:36)lewisbibo Wrote: TITOY

[Image: 52091cf076d12_wat.png]
[-] The following 1 user says Thank You to 8q4s8 for this post:
  • Nekochan
  Reply
#5
Quote:string Flag_Position = "admin\\AdminProServerTEKNO\\Flag_Position.txt";
i Think this is for tekno, but i dont know why i Think that Big Grin
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
Wink Make Platforme lewisbibo 5 2,212 10-08-2013, 14:35
Last Post: 8q4s8
  Make obj MW3.by lewisbibo lewisbibo 3 1,850 10-05-2013, 20:16
Last Post: Nekochan
  Make obj MW3.by lewisbibo lewisbibo 0 1,089 10-03-2013, 20:19
Last Post: lewisbibo
  Help need help?how to make plugins code hXnarutoXone 12 3,552 09-01-2013, 18:30
Last Post: Bandarigoda123
  Help Make ac130 shoot custom bullets Ra3shed 0 1,148 07-23-2013, 13:02
Last Post: Ra3shed
  how to make a plugin (mod) E-losev 5 2,054 07-12-2013, 15:48
Last Post: OzonE
  [Release] Make Tree´s Fall Yamato 8 3,701 06-15-2013, 11:45
Last Post: xfxtroll
  [need help] how to make dbnetwork updater? ahmad009 3 1,267 06-09-2013, 11:54
Last Post: Bandarigoda123
  write flag position map [HARD] Tony. 4 1,364 05-30-2013, 10:05
Last Post: hillbilly
  [Release] Flag plugin for users 1.6 archit 74 17,879 05-25-2013, 13:03
Last Post: archit

Forum Jump:


Users browsing this thread: 1 Guest(s)