รบกวนถามหน่อยครับว่าสคริปด่านล่างนี้เขียนด้วยภาษาอะไรครับ
func SCR_HEALER_TS_KEEP(self){
sleep(100);
AiLog('SCR_HEALER_TS_KEEP : Start!!!');
var selfAi = GetAiActor(self);
var prevTS = GetPrevTS(selfAi);
SCR_AI_LIB_UNHOLD(selfAi, prevTS);
while(1){
AI_REKEEP(selfAi);
AI_BASEPOTION(self,selfAi);
AI_CHECKBUFF(selfAi);
if('ChangeTS' == SCR_AI_LIB_USERSKILL(selfAi)){
return;
}
if('ChangeTS' == SCR_AI_LIB_HEALING(self, selfAi)){
return;
}
if('ChangeTS' == SCR_AI_LIB_SUBHEALING(self, selfAi)){
return;
}
if (IS_AUTOAI() == 1 && IS_HEALERPICK() == 1) {
if('ChangeTS' == SCR_AI_LIB_NEARITEM(selfAi)){
//AI_GOKEEP(selfAi);
return ;
}
}
if (IS_MOVEMODE() == 1 ) {
if('ChangeTS_BATTLE' == SCR_AI_LIB_NEARTARGET(self, selfAi)){
ChangeTacticsAi(selfAi, 'TS_KEEP_BATTLE');
return;
}
}else{
SCR_AI_LIB_KEEPPOSITION(selfAi);
}
sleep(100);
}
}
func SCR_HEALER_TS_KEEP_BATTLE(self){
var selfAi = GetAiActor(self);
if (IS_MOVEMODE() == 1){
var job = GetJobName(selfAi);
SCR_AI_LIB_ATTACKTARGETB(self,selfAi);
while(1){
AI_BASEPOTION(self,selfAi);
AI_BASE_HELPER(self,selfAi,job);
if('ChangeTS' == SCR_AI_LIB_USERTARGET(selfAi)){
return;
}
if('ChangeTS' == SCR_AI_LIB_USERSKILL(selfAi)){
return;
}
if (IS_AUTOPICK() == 1){
if('ChangeTS' == SCR_AI_LIB_NEARITEM(selfAi)){
//AI_GOKEEP(selfAi);
return ;
}
}
if('ChangeTS_Prev' == SCR_AI_LIB_TARGETAVAILABLE(selfAi)){
ChangeTacticsAi(selfAi, 'TS_KEEP');
return;
}
if('ChangeTS_Prev' == SCR_AI_LIB_OUTOFRANGE(selfAi)){
SCR_AI_LIB_CLEARALLTARGET(selfAi);
sleep(100);
ChangeTacticsAi(selfAi, 'TS_KEEP');
return;
}
sleep(100);
}
}else{
ChangeTacticsAi(selfAi, 'TS_KEEP');
}
return;
}
func SCR_HEALER_TS_USER_SKILL(self)
{
sleep(100);
AiLog('HEALER_TS_USER_SKILL : Start!!!');
var selfAi = GetAiActor(self);
var prevTS = GetPrevTS(selfAi);
SCR_AI_LIB_UNHOLD(selfAi, prevTS);
while(1){
if('ChangeTS' == SCR_AI_LIB_SKILLUSING(selfAi, prevTS)){
return;
}
sleep(100);
}
}
func SCR_HEALER_TS_NONE(self)
{
sleep(100);
AiLog('HEALER_TS_NONE : Start!!!');
var selfAi = GetAiActor(self);
var prevTS = GetPrevTS(selfAi);
SCR_AI_LIB_UNHOLD(selfAi, prevTS);
if ('YES' == AI_CHECKNONE(selfAi)){
if (IS_MOVEMODE() == 1){
Keep();
}else{
ChangeTacticsAi(selfAi, 'TS_KEEP');
}
return;
}
while(1){
AI_CHECK_JOB(self,selfAi);
if('ChangeTS' == SCR_AI_LIB_USERSKILL(selfAi)){
return;
}
sleep(1000);
}
}
func SCR_HEALER_TS_BATTLE_NOMINATE(self)
{
var selfAi = GetAiActor(self);
AUTOTACTICS(selfAi);
return;
}
func SCR_HEALER_TS_ASSAULT(self)
{
sleep(100);
AiLog('HEALER_TS_ASSAULT : Start!!!');
var selfAi = GetAiActor(self);
var prevTS = GetPrevTS(selfAi);
SCR_AI_LIB_UNHOLD(selfAi, prevTS);
if('ChangeTS' == SCR_AI_LIB_HEALING(self, selfAi)){
return;
}
AssaultDestMoveTo(selfAi);
while(1){
if('ChangeTS' == SCR_AI_LIB_USERSKILL(selfAi)){
return;
}
if('ChangeTS' == SCR_AI_LIB_HEALING(self, selfAi)){
return;
}
sleep(1000);
}
}
func SCR_HEALER_TS_ASSAULT_BATTLE(self)
{
var selfAi = GetAiActor(self);
ChangeTacticsAi(selfAi, 'TS_ASSAULT');
return;
}
func SCR_HEALER_TS_HOLD(self)
{
sleep(100);
AiLog('HEALER_TS_HOLD : Start!');
var selfAi = GetAiActor(self);
var prevTS = GetPrevTS(selfAi);
SCR_AI_LIB_HOLD(selfAi);
while(1){
if('ChangeTS' == SCR_AI_LIB_USERSKILL(selfAi)){
return;
}
if('ChangeTS' == SCR_AI_LIB_HEALING(self, selfAi)){
return;
}
sleep(1000);
}
}
func SCR_HEALER_TS_HOLD_BATTLE(self)
{
var selfAi = GetAiActor(self);
ChangeTacticsAi(selfAi, 'TS_HOLD');
return;
}
func SCR_HEALER_TS_HARVEST(self)
{
sleep(100);
AiLog('HEALER_TS_HARVEST : Start!!!');
var selfAi = GetAiActor(self);
var prevTS = GetPrevTS(selfAi);
var i = 0;
SCR_AI_LIB_UNHOLD(selfAi, prevTS);
if('ChangeTS' == SCR_AI_LIB_NEARITEM(selfAi)){
return;
}
HarvestDestMoveTo(selfAi);
while(1){
if('ChangeTS' == SCR_AI_LIB_USERSKILL(selfAi)){
return;
}
if('ChangeTS' == SCR_AI_LIB_NEARITEM(selfAi)){
return;
}
if (IS_AUTOAI() == 1){
i = i +1 ;
if (i > 3){
i = 0;
ChangeTacticsAi(selfAi, 'TS_KEEP');
return;
}
}
if(IsNearFromHarvestDestPosition(selfAi, 100) == 'YES'){
AUTOTACTICS(selfAi);
return;
}
sleep(100);
}
}
func SCR_HEALER_TS_HARVEST_PICK(self)
{
sleep(100);
AiLog('HEALER_TS_HARVEST_PICK : Start!!!');
var selfAi = GetAiActor(self);
while(1){
if('ChangeTS' == SCR_AI_LIB_USERSKILL(selfAi)){
return;
}
if('ChangeTS_Prev' == SCR_AI_LIB_TARGETITEM(selfAi)){
AUTOTACTICH(selfAi);
return;
}
sleep(100);
}
}
func SCR_HEALER_TS_PICK_ITEM(self)
{
sleep(100);
AiLog('HEALER_TS_PICK_ITEM : Start!!!');
var selfAi = GetAiActor(self);
var prevTS = GetPrevTS(selfAi);
SCR_AI_LIB_UNHOLD(selfAi, prevTS);
while(1){
if('ChangeTS' == SCR_AI_LIB_USERSKILL(selfAi)){
return;
}
if('ChangeTS_Prev' == SCR_AI_LIB_TARGETITEM(selfAi)){
AUTOTACTICS(selfAi);
return;
}
sleep(500);
}
}
func SCR_HEALER_TS_MOVE(self){
sleep(100);
AI_DISABLE();
AiLog('HEALER_TS_MOVE : Start!!!');
var selfAi = GetAiActor(self);
var prevTS = GetPrevTS(selfAi);
SCR_AI_LIB_UNHOLD(selfAi, prevTS);
while(1){
if('ChangeTS' == SCR_AI_LIB_USERSKILL(selfAi)){
return;
}
if(IsNearFromMoveDestPosition(selfAi, 100) == 'YES'){
AUTOTACTICS(selfAi);
return;
}
sleep(100);
}
}
สคริปเต็มๆ ตามลิงค์ครับ
http://www.4shared.com/file/JpQ6MWB9/Scrips.html?