[Help]Alot How To

09/20/2008 22:48 elragal_30#16
Quote:
Originally Posted by Rechocto View Post
Code:
public bool GetHitDie(uint Damage)
needs to be
Code:
public bool GetHitDie(uint Damage, string AttackerName)
yes i try that but not work
i find at Entities.Cs :
Quote:
public bool GetDamageDie(uint Damage, Character Attacker)
{
if (Damage >= CurHP)
{
World.RemoveEntity(this);
CurHP = MaxHP;
if (Sob == 2)
{
// World.GWOn = false;
int Highest = 0;
Guild Winner = null;

foreach (DictionaryEntry DE in World.AllChars)
{
Character Char = (Character)DE.Value;
if (Char != null)
{
if (Char.TGTarget != null && Char.TGTarget == this)
Char.TGTarget = null;
}
}

SingleNPC Npc = (SingleNPC)NPCs.AllNPCs[(uint)6701];
if (Npc != null)
{
if (Npc.Type == 250)
Npc.Type -= 10;
Npc.CurHP = MaxHP;
World.NPCSpawns(Npc);
}

Npc = (SingleNPC)NPCs.AllNPCs[(uint)6702];
if (Npc != null)
{
if (Npc.Type == 250)
Npc.Type -= 10;
Npc.CurHP = MaxHP;
World.NPCSpawns(Npc);
}

foreach (DictionaryEntry DE in Guilds.AllGuilds)
{
Guild AGuild = (Guild)DE.Value;
AGuild.HoldingPole = false;
AGuild.ClaimedPrize = false;
if (AGuild.PoleDamaged > Highest)
{
Highest = AGuild.PoleDamaged;
Winner = AGuild;
}
AGuild.PoleDamaged = 0;
}
if (Winner != null)
{
Winner.HoldingPole = true;
World.PoleHolder = Winner;
World.SendMsgToAll(Winner.GuildName + " Has Won The GuildWar!", "ShadowCo", 2011);
}
World.GWScores.Clear();
Attacker.TGTarget = null;
Attacker.Attacking = false;
}
if (Sob == 3 && Type == 240)
{
Type += 10;
Attacker.TGTarget = null;
Attacker.Attacking = false;
}

World.NPCSpawns(this);
return true;
}
else
{

if (Sob == 2 || Sob == 3)
if (World.GWOn == false)
return false;
CurHP -= Damage;
if (Sob == 2)
{
if (Attacker.MyGuild != null)
{
if (Attacker.MyGuild != World.PoleHolder)
Attacker.MyGuild.PoleDamaged += (int)Damage;
if (World.GWScores.Contains(Attacker.MyGuild.GuildID) )
World.GWScores.Remove(Attacker.MyGuild.GuildID);

World.GWScores.Add(Attacker.MyGuild.GuildID, Attacker.MyGuild.PoleDamaged);
}
}

return false;
}
}
}
so
Quote:
Character Attacker
and here i can get
Quote:
Attacker.AttackerName
but i can't use out Entities.Cs ,how i can make it avaliable at client.Cs or Character.Cs ???

is Attacker.AttackerName have value of Killer Name or what ??
thanks
09/20/2008 22:48 elragal_30#17
Sorry for double post
09/22/2008 00:59 elragal_30#18
ohh what ??
no one know how i can get killer value
it must have some value

and what this follow variable value ???
Quote:
PTarget
TGtarget
Attacker.AttackerName(I'm sure that it get value of killer name, but i can't use it )
also want to know how i can make quest start at define time ???
like Saturday at 8:00 om ??? or 1 st day of month
i know it like
Quote:
if (Convert.ToString(DateTime.Now.DayOfWeek) == "Thursday" && Convert.ToString(DateTime.Now.Hour) == "19" && Convert.ToString(DateTime.Now.Minute) == "55");
but where i have to put it to work at this time ??
thanks all