Thread Rating:
  • 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-Cdeveloper. Neko engine wip
Steam: Click
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]
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 5,028 10-08-2013, 14:35
Last Post: 8q4s8
  Make obj MW3.by lewisbibo lewisbibo 3 3,724 10-05-2013, 20:16
Last Post: Nekochan
  Make obj MW3.by lewisbibo lewisbibo 0 2,346 10-03-2013, 20:19
Last Post: lewisbibo
  Help need help?how to make plugins code hXnarutoXone 12 8,634 09-01-2013, 18:30
Last Post: Bandarigoda123
  Help Make ac130 shoot custom bullets Ra3shed 0 2,747 07-23-2013, 13:02
Last Post: Ra3shed
  how to make a plugin (mod) E-losev 5 4,375 07-12-2013, 15:48
Last Post: OzonE
  [Release] Make Trees Fall Yamato 8 12,371 06-15-2013, 11:45
Last Post: xfxtroll
  write flag position map [HARD] Tony. 4 3,478 05-30-2013, 10:05
Last Post: hillbilly
  [Release] Flag plugin for users 1.6 archit 74 39,985 05-25-2013, 13:03
Last Post: archit
Brick [Release] Flag plugin for developers [Z00MBY] Alex 17 11,264 04-06-2013, 17:52
Last Post: Dr3am95

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.