Page 1 of 1

Script question

Posted: Sat Jul 13, 2013 7:37 pm
by Cherian
Hey all,
I hope this is the correct place to post my question.
I'm new to scripting, botting, and all of this.

I found this next lines, but i have no idea how to execute them. Can someone help me on my way? I have to install micromacro to be able to start? Everything can be done withing a macro? (i tried to copy the lines in a macro but nothing worked) Is it normal when i target some npc that /cast Attack isnt working also?

/script TargetUnit("focus1")
/cast Attack
/script OnClick_QuestListButton(3,1)
/script CompleteQuest()
/script OnClick_QuestListButton(1,1)
/script AcceptQuest()
/script ChoiceOption(1)
/script TargetNearestEnemy()
/run CastSpellByName("Shot")"

thanks in advance
Cherian

Re: Script question

Posted: Sat Jul 13, 2013 9:07 pm
by kenzu38
This is a macro which you set up in game. I think this one's for the Taz daily quest.

Anyway, I suggest you try searching the forum a bit more for other working Taz scripts first which aren't complicated for you.

Re: Script question

Posted: Sat Jul 13, 2013 9:51 pm
by lisa
my guess is that you just haven't made the NPC focus before starting the macro, also since there is no wait between each acton you would need very good ping and a good PC to do it fast enough.

Re: Script question

Posted: Sun Jul 14, 2013 5:53 am
by Cherian
Yes i made the npc focus before starting. But i'm wondering if i'm missing something. I only have the normal rom client, nothing else external installed atm. I pasted this lines in a macro. Then i focus the npc. But nothing happens. The /cast attack should open the npc menu right? but it doesnt do anything. The only thing that the macro does for me is targetting the npc (/script TargetUnit("focus1"))

Re: Script question

Posted: Sun Jul 14, 2013 6:45 am
by rock5
I'm not into macros but maybe attack is a slash command itself.

Code: Select all

/Attack

Re: Script question

Posted: Sun Jul 14, 2013 6:53 am
by Cherian
Nope /attack is not working for me either. I did some testing and the only part that isnt working for me is to talk to the npc. I can target him. But then it gets stuck. If i click manually on him, and keep pressing the macro.. it works. Anyone else got any idea? I aksed some friends to try /attack or /cast attack on npc but nothing happened for them either.

Re: Script question

Posted: Sun Jul 14, 2013 7:04 am
by rock5
In that case it's probably what Lisa said.
lisa wrote:also since there is no wait between each acton you would need very good ping and a good PC to do it fast enough.
Try adding some waits.

Re: Script question

Posted: Sun Jul 14, 2013 7:16 am
by Cherian
Yes, but i even made macro's only to test :
/cast Attack
and
/Attack

and they both did nothing even i spam them...

so this is were i get stuck =/

Re: Script question

Posted: Sun Jul 14, 2013 7:58 am
by rock5
Looks like cast might be disabled when used like that. It works from micromacro

Code: Select all

SlashCommand("/cast Attack")

Re: Script question

Posted: Sun Jul 14, 2013 8:00 am
by lisa

Code: Select all

/run CastSpellByName("Attack")
and

Code: Select all

/cast Attack
They both work fine BUT MUST be in a macro where you push a button to make it happen, you can;t just type it in to chat.

Re: Script question

Posted: Sun Jul 14, 2013 9:06 am
by Cherian
I really don't know what i'm missing.. I did all what you said but it simply doesnt open the npc menu. All it does is lift my weapon up like as you get in combat...
You both are running micromacro or something when you try? Or should i install some userfunctions? I dont have any of that that could be the problem? :s

Re: Script question

Posted: Sun Jul 14, 2013 10:13 am
by rock5
You're right Lisa, in a macro "/cast Attack" works.

Cherian, I don't know why it doesn't work for you. Addons have nothing to do with it. You do play on an English client right?

Re: Script question

Posted: Sun Jul 14, 2013 10:21 am
by Cherian
Yes rock5, i play on a english client. I asked some people i know and for them the /cast Attack doesnt work either. I'm really lost.

Re: Script question

Posted: Sun Jul 14, 2013 1:29 pm
by rock5
Maybe they've totally disabled it on that server.

Re: Script question

Posted: Sun Jul 14, 2013 1:34 pm
by Cherian
So if they indeed disabled it... what are my options? I can do the same macro with the micromacro program somehow? If yes i'll have to do some readings :)

Re: Script question

Posted: Sun Jul 14, 2013 1:46 pm
by kenzu38
Yes, you can very much do all that with the bot.

Like I said in my earlier post, it's a good idea to search the forum for other Taz scripts, then when you have problem running that script, post another thread and someone will help you out.