Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
QuestionDifference between Thread, ThreadPool & BackgroundWorker c# Pin
Tridip Bhattacharjee18-May-13 8:34
professionalTridip Bhattacharjee18-May-13 8:34 
AnswerRe: Difference between Thread, ThreadPool & BackgroundWorker c# Pin
Eddy Vluggen18-May-13 8:51
professionalEddy Vluggen18-May-13 8:51 
AnswerRe: Difference between Thread, ThreadPool & BackgroundWorker c# Pin
Dave Kreskowiak19-May-13 5:01
mveDave Kreskowiak19-May-13 5:01 
AnswerRe: Difference between Thread, ThreadPool & BackgroundWorker c# Pin
Abhinav S19-May-13 7:03
Abhinav S19-May-13 7:03 
QuestionMinidumps. Pin
Septimus Hedgehog18-May-13 8:08
Septimus Hedgehog18-May-13 8:08 
AnswerRe: Minidumps. Pin
Eddy Vluggen18-May-13 8:44
professionalEddy Vluggen18-May-13 8:44 
GeneralRe: Minidumps. Pin
Septimus Hedgehog18-May-13 9:14
Septimus Hedgehog18-May-13 9:14 
QuestionSome Basic Help About A Modification In a Script! Pin
Jesús Frías18-May-13 6:17
Jesús Frías18-May-13 6:17 
I have a simple question but for someone like me who is not familiar with c# is giving a bit of trouble. I am making a basic script in c# for a bot in a videogame (TERA). What I want is to avoid attacking static immortal debuffs when my character approaches to them. A simple script without nothing would be like this:

C#
//Blank.cs
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;

namespace SimpleCombat
{

public class EntryPoint : ZurasBot.Addons.ICombat
{

public override string Name
{
get
{
return "Shell";
}
}


public override void OnLoad()
{
}

public override void OnUnload()
{
}

public override void Settings()
{
}

public override void OnBotStart()
{
}

public override void OnBotStop()
{
}

public override void Patrolling()
{
} //end Patrolling

public override Boolean Pull(MyTERA.Helpers.ObjectManager.TERAObject Object)
{
return true;
} //end Pull

public override Boolean Combat(MyTERA.Helpers.ObjectManager.TERAObject Object)
{
return true;
} //end Combat

public override void PostCombat()
{
}

} //end EntryPoint

} //end SimpleCombat



The question is: How/where do I declare/define the pullfunction? What I have to add is this:

C#
if (Object.S1NPCDataController.Name == "name1") return false;


"name1" being the name of the static immortal debuff. Anyone could help me? It is important to me since I am helping a friend to level up his character so he can play with the rest of us! I would really appreciate any help you could give me, it would mean a lot to me! Thank you very much for your help, I hope I can find a solution! Have a nice weekend! Smile | :)
AnswerRe: Some Basic Help About A Modification In a Script! Pin
Dave Kreskowiak18-May-13 7:53
mveDave Kreskowiak18-May-13 7:53 
AnswerRe: Some Basic Help About A Modification In a Script! Pin
Calvijn18-May-13 10:55
Calvijn18-May-13 10:55 
Questionc@# Pin
MKS Khalid18-May-13 5:56
MKS Khalid18-May-13 5:56 
AnswerRe: c@# Pin
OriginalGriff18-May-13 6:00
mveOriginalGriff18-May-13 6:00 
Questionc# Thumbnail Viewer Pin
Dinesh Salunke17-May-13 18:39
Dinesh Salunke17-May-13 18:39 
AnswerRe: c# Thumbnail Viewer Pin
BillWoodruff17-May-13 20:42
professionalBillWoodruff17-May-13 20:42 
GeneralRe: c# Thumbnail Viewer Pin
Dinesh Salunke18-May-13 5:44
Dinesh Salunke18-May-13 5:44 
GeneralRe: c# Thumbnail Viewer Pin
Dave Kreskowiak18-May-13 7:46
mveDave Kreskowiak18-May-13 7:46 
GeneralRe: c# Thumbnail Viewer Pin
BillWoodruff19-May-13 2:05
professionalBillWoodruff19-May-13 2:05 
GeneralRe: c# Thumbnail Viewer Pin
Dinesh Salunke19-May-13 4:16
Dinesh Salunke19-May-13 4:16 
QuestionFlashing form Pin
PozzaVecia17-May-13 12:28
PozzaVecia17-May-13 12:28 
AnswerRe: Flashing form Pin
Dave Kreskowiak17-May-13 17:34
mveDave Kreskowiak17-May-13 17:34 
AnswerRe: Flashing form Pin
BillWoodruff17-May-13 20:17
professionalBillWoodruff17-May-13 20:17 
GeneralRe: Flashing form Pin
PozzaVecia17-May-13 22:01
PozzaVecia17-May-13 22:01 
QuestionTimestamp Value in SQLServer Pin
abhi_here17-May-13 8:13
abhi_here17-May-13 8:13 
AnswerRe: Timestamp Value in SQLServer Pin
PIEBALDconsult17-May-13 8:43
mvePIEBALDconsult17-May-13 8:43 
AnswerRe: Timestamp Value in SQLServer Pin
abhi_here29-May-13 4:34
abhi_here29-May-13 4:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.