gamefreak
New Member
Posts: 1 Likes: 0
Currently Offline
Last Online: Jun 2, 2016 7:28:03 GMT
View Profile
Registered On: May 25, 2016 16:06:42 GMT
|
Post by gamefreak on May 28, 2016 22:21:34 GMT
So I was looking at your other scripts and for a Mc to attack you need to say something i was wondering if you could eliminate this and make it like
auto 100 | dontlist |isnottargeting {if [$followed.name != 'yourfriendname'] follow 'yourfriendname'} then add on If friend targetting target monster because the other one worked i just don't want to say a word everytime i want him to attack.
I tried to do it but wasn't able to figure it out so i came here to ask if you could look at this when you have time i'd appreciate it thanks.
|
|
Masi
Senior Tutor
Staff Member
Posts: 241 Likes: 198
Mini-Profile Background: {"image":"https://media.giphy.com/media/2bIP0gHS5cLhS/giphy.gif","color":"6b8d6b"}
Mini-Profile Text Color: ffffff
Currently Offline
Last Online: Nov 23, 2019 2:02:15 GMT
View Profile
Registered On: Mar 31, 2016 16:11:57 GMT
|
Post by Masi on May 28, 2016 23:50:21 GMT
On MC: auto 1 foreach 'newmessages' $trgt if [$trgt.sender == 'LEADERNAME' && $trgt.content ? 'T:'] {set $mctrgt $cutstr.'$trgt.content'.4.30 | attack $mctrgt} And for follow use either of these: auto 200 isnottargeting {isnotonscreen '$mctrgt' {follow 'leadername'}} auto 200 isnottargeting {follow 'leadername'} auto 200 isnotonscreen '$mctrgt' {follow 'leadername'} On Leader: auto 200 set $prevtarget $curtarget | if [$target.name != $prevtarget] {pm 'MCNAME' 'T: $target.name'} | set $curtarget $target.name Everytime leaders target is different to the previous one, it will automatically pm the mc the name of the target. Everytime mc receives the above message from the leader, it will attack the name sent by the leader. Script may fail to re-atk when you stop atking for whatever reason. Didn't test it fully so let me know how it works when you test it. It might work fine tho, since if you lose sight of the target, elfbot should change target.name to blank spaces so it should re-atk once leader re-atks since target.name changed from blank spaces to the actual name. Just ignore this if it does work fine
|
|