Shaiya[US] - Shaiya Bot ZS

For any other game that doesn't have its own section.
Message
Author
User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: Shaiya - ZS Shaiya Bot - v0.03b

#41 Post by Administrator » Mon Dec 01, 2008 11:44 am

It tells you exactly what is wrong right there: that location doesn't exist. It doesn't exist because that's not where Shaiya is installed. Set the right path and it will work.

Buzzer
Posts: 3
Joined: Mon Dec 01, 2008 4:36 pm

Re: Shaiya - ZS Shaiya Bot - v0.03b

#42 Post by Buzzer » Mon Dec 01, 2008 4:38 pm

The bot is cycling through all the targets all the time without attacking. I have checked the min-max mob colour, but no cigar. I'm quite confused. Any help would be appreciated! 8-)

zer0
Posts: 213
Joined: Sat Feb 16, 2008 11:55 pm

Re: Shaiya - ZS Shaiya Bot - v0.03b

#43 Post by zer0 » Wed Dec 03, 2008 7:34 am

reverseengines wrote:i have not tried yet but could you not just edit the config so that the custom res is the only res and force it to write to the correct one?
It would be possible to do that with some kind of DLL injection I guess, but it is way beyond my knowledge. I'd also prefer to steer away from altering the process in any way since updates may require re-coding. Ideally I'd like the script to read no process information, and just get all the info it needs off the screen like a real player. However that would require some Optical Character Recognition of some kind. That way it would not need any address offset updates or anything.
Built-in OCR, sounds like a new challenge for Elverion. :P
Buzzer wrote:The bot is cycling through all the targets all the time without attacking. I have checked the min-max mob colour, but no cigar. I'm quite confused. Any help would be appreciated! 8-)
You may have moved the status info bar, close it down restart Shaiya and don't move any bars and see if it works. It could be that the colour tolerances are a bit off, but from my experience their pretty accurate.

Buzzer
Posts: 3
Joined: Mon Dec 01, 2008 4:36 pm

Re: Shaiya - ZS Shaiya Bot - v0.03b

#44 Post by Buzzer » Wed Dec 03, 2008 8:57 am

Well it's not the status bar. I set it to 0 in the config.ini. It stays 0 too.

Maybe it's the colour tolerance. I just leveled up, maybe that has something to do with it? (They are still the same colour.)

EDIT

I know what it is. The target bar is set to 0 in the config.ini while it actually is a tad to the right. It can be easily fixed by just dragging the targetbar to the left, but then it's over the character HP/MP/SP bar. I don't know what the actual figure of the target bar is, so can anyone open their config.ini file and give me this figure? I believe it's this one: STATUSMINIBAR_POS_X.

There are still some other issues though. In the skills.xml, some skills have no cooldown. This file needs to be updated. I think you stated this in the TODO file?

Also, the character jumps back before resting. Quite strange, and also very annoying. I tried to set the jump_enable to FALSE, but no luck. I had less problems with your last script which didn't use XML. :-) (Yes I downloaded the new MicroMacro.)

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: Shaiya - ZS Shaiya Bot - v0.03b

#45 Post by Administrator » Wed Dec 03, 2008 1:35 pm

Did you set it to 'FALSE' or 'false'? There is a difference. 'false' should work, whereas 'FALSE' will not.

As for the cooldown problem, doesn't Shaiya have a 1 second global cooldown? Maybe when the skills are loaded, it should assume a 1 second cooldown if no cooldown is given (or if it is 0).

Buzzer
Posts: 3
Joined: Mon Dec 01, 2008 4:36 pm

Re: Shaiya - ZS Shaiya Bot - v0.03b

#46 Post by Buzzer » Wed Dec 03, 2008 1:53 pm

Well the bot uses the skill at random. The skill is a debuff on the monster which is active for 60 seconds. So a cooldown of 60 would do. It does it correctly when you put the cooldown in the skills.xml though.

I set it to the used syntax in the avatar.lua file. Which is indeed 'false', not 'FALSE'. But it didn't work.

Also, in the previous script, there was a piece of text which made the avatar use some skills before attacking. I tried pasting some code in the XML file but it's not possible the way I do it.

I'm eager towards the next version. :roll:

shakey
Posts: 56
Joined: Sun Nov 16, 2008 4:02 am

Re: Shaiya - ZS Shaiya Bot - v0.03b

#47 Post by shakey » Thu Dec 04, 2008 12:07 am

It was working fine a few hours ago and now after this latest maintenance.


Wed Dec 03 20:03:36 2008 : macro_init()
Wed Dec 03 20:03:36 2008 : interface=INTERFACE_1280X1024
Wed Dec 03 20:03:36 2008 : Shaiya Window process ID: 1049590
Wed Dec 03 20:03:36 2008 : win_width: 0, win_height: 0

Wed Dec 03 20:03:37 2008 : name: ¬Í­Í®Í¯Í°Í±Í²Í³Í´ÍµÍ¶Í·Í¸Í¹ÍºÍ»Í¼Í½Í¾Í¿ÍÀÍÁÍÂÍÃÍÄÍÅÍÆÍÇÍÈÍÉÍÊÍËÍÌÍÍÍÎÍÏÍÐÍÑÍÒÍÓÍÔÍÕÍÖÍ×ÍØÍÙÍÚÍÛÍÜÍÝÍÞÍßÍàÍáÍâÍãÍäÍåÍæÍçÍèÍéÍêÍëÍìÍíÍîÍïÍðÍñÍòÍóÍôÍõÍöÍ÷ÍøÍùÍúÍûÍüÍýÍþÍÿÍÎÎÎÎÎÎÎ Î!Î"Î#Î$Î%Î&Î'Î(Î)Î*Î+Î,Î-Î.Î/Î0Î1Î2Î3Î4Î5Î6Î7Î8Î9Î:Î;Î<Î=Î>Î?Î@ÎAÎBÎCÎDÎEÎFÎGÎHÎIÎJÎKÎLÎMÎNÎOÎPÎQÎRÎSÎTÎUÎVÎWÎXÎYÎZÎ[Î\Î]Î^Î_Î`ÎaÎbÎcÎdÎeÎfÎgÎhÎiÎjÎkÎlÎmÎnÎoÎpÎqÎrÎsÎtÎuÎvÎwÎxÎyÎzÎ{Î|Î}Î~Î΀΁΂΃΄΅Ά·ΈΉΊ΋Ό΍ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ΢ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοÎÀÎÁÎÂÎÃÎ
Wed Dec 03 20:03:37 2008 : avatar_name: ¬Í­Í®Í¯Í°Í±Í²Í³Í´ÍµÍ¶Í·Í¸Í¹ÍºÍ»Í¼Í½Í¾Í¿ÍÀÍÁÍÂÍÃÍÄÍÅÍÆÍÇÍÈÍÉÍÊÍËÍÌÍÍÍÎÍÏÍÐÍÑÍÒÍÓÍÔÍÕÍÖÍ×ÍØÍÙÍÚÍÛÍÜÍÝÍÞÍßÍàÍáÍâÍãÍäÍåÍæÍçÍèÍéÍêÍëÍìÍíÍîÍïÍðÍñÍòÍóÍôÍõÍöÍ÷ÍøÍùÍúÍûÍüÍýÍþÍÿÍÎÎÎÎÎÎÎ Î!Î"Î#Î$Î%Î&Î'Î(Î)Î*Î+Î,Î-Î.Î/Î0Î1Î2Î3Î4Î5Î6Î7Î8Î9Î:Î;Î<Î=Î>Î?Î@ÎAÎBÎCÎDÎEÎFÎGÎHÎIÎJÎKÎLÎMÎNÎOÎPÎQÎRÎSÎTÎUÎVÎWÎXÎYÎZÎ[Î\Î]Î^Î_Î`ÎaÎbÎcÎdÎeÎfÎgÎhÎiÎjÎkÎlÎmÎnÎoÎpÎqÎrÎsÎtÎuÎvÎwÎxÎyÎzÎ{Î|Î}Î~Î΀΁΂΃΄΅Ά·ΈΉΊ΋Ό΍ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ΢ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοÎÀÎÁÎ
Wed Dec 03 20:03:37 2008 : WARNING: Failure reading memory from 0x1B3F498 at 0x81cbec in memoryReadIntPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)

Wed Dec 03 20:03:37 2008 : WARNING: Failure reading memory from 0x1B3F498 at 0x81cbec in memoryReadIntPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)

Wed Dec 03 20:03:37 2008 : WARNING: Failure reading memory from 0x1B3F498 at 0x81cbec in memoryReadIntPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)

Wed Dec 03 20:03:37 2008 : WARNING: Failure reading memory from 0x1B3F498 at 0x81cbec in memoryReadIntPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)

Wed Dec 03 20:03:37 2008 : WARNING: Failure reading memory from 0x1B3F498 at 0x81cbec in memoryReadIntPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)

Wed Dec 03 20:03:37 2008 : WARNING: Failure reading memory from 0x1B3F498 at 0x81cbec in memoryReadIntPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)

Wed Dec 03 20:03:37 2008 : WARNING: Failure reading memory from 0x1B3F498 at 0x81cbec in memoryReadIntPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)

Wed Dec 03 20:03:37 2008 : WARNING: Failure reading memory from 0x1B3F498 at 0x81cbec in memoryReadFloatPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)

Wed Dec 03 20:03:37 2008 : WARNING: Failure reading memory from 0x1B3F498 at 0x81cbec in memoryReadFloatPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)

Wed Dec 03 20:03:37 2008 : WARNING: Failure reading memory from 0x1B3F498 at 0x81cbec in memoryReadFloatPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)

Wed Dec 03 20:03:37 2008 : WARNING: Failure reading memory from 0x1B3F498 at 0x81cbec in memoryReadFloatPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)

Wed Dec 03 20:03:37 2008 : WARNING: Failure reading memory from 0x1B3F498 at 0x81cbec in memoryReadFloatPtr(). Error code 299 (Only part of a ReadProcessMemory or WriteProcessMemory request was completed.)

Wed Dec 03 20:03:38 2008 : Cannot open file 'C:/Users/shakey/Desktop/micromacro/scripts/zs_shaiya/char/¬Í­Í®Í¯Í°Í±Í²Í³Í´ÍµÍ¶Í·Í¸Í¹ÍºÍ»Í¼Í½Í¾Í¿ÍÀÍÁÍÂÍÃÍÄÍÅÍÆÍÇÍÈÍÉÍÊÍËÍÌÍÍÍÎÍÏÍÐÍÑÍÒÍÓÍÔÍÕÍÖÍ×ÍØÍÙÍÚÍÛÍÜÍÝÍÞÍßÍàÍáÍâÍãÍäÍåÍæÍçÍèÍéÍêÍëÍìÍíÍîÍïÍðÍñÍòÍóÍôÍõÍöÍ÷ÍøÍùÍúÍûÍüÍýÍþÍÿÍÎÎÎÎÎÎÎ Î!Î"Î#Î$Î%Î&Î'Î(Î)Î*Î+Î,Î-Î.Î/Î0Î1Î2Î3Î4Î5Î6Î7Î8Î9Î:Î;Î<Î=Î>Î?Î@ÎAÎBÎCÎDÎEÎFÎGÎHÎIÎJÎKÎLÎMÎNÎOÎPÎQÎRÎSÎTÎUÎVÎWÎXÎYÎZÎ[Î\Î]Î^Î_Î`ÎaÎbÎcÎdÎeÎfÎgÎhÎiÎjÎkÎlÎmÎnÎoÎpÎqÎrÎsÎtÎuÎvÎwÎxÎyÎzÎ{Î|Î}Î~Î΀΁΂΃΄΅Ά·ΈΉΊ΋Ό΍ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ΢ΣΤΥΦΧΨΩΪΫάέήίΰα΄ã wÒ…Eû
Wed Dec 03 20:03:38 2008 : Execution of main.lua complete.
Wed Dec 03 20:03:38 2008 : Execution error: Runtime error
Wed Dec 03 20:03:38 2008 : Collecting garbage...
Wed Dec 03 20:03:38 2008 : GC closed process handle 0xE4.
Wed Dec 03 20:03:38 2008 : 260KB freed.



^^, yup that's right boys and girls... The aliens have attacked.

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: Shaiya - ZS Shaiya Bot - v0.03b

#48 Post by Administrator » Thu Dec 04, 2008 12:20 am

Doesn't look like there was any update. Just try reinstalling the GameGuard patch and completely close and re-open MicroMacro. Should be fine. If not, restart your computer.

User avatar
3cmSailorfuku
Posts: 354
Joined: Mon Jan 21, 2008 6:25 pm

Re: Shaiya - ZS Shaiya Bot - v0.03b

#49 Post by 3cmSailorfuku » Fri Dec 05, 2008 6:27 pm

Did someone already made the pointers for the german version of Shaiya?

intel123
Posts: 14
Joined: Mon Dec 01, 2008 9:11 am

Re: Shaiya - ZS Shaiya Bot - v0.03b

#50 Post by intel123 » Fri Dec 05, 2008 11:51 pm

can someone please help me how to config the ZS Shaiya bot to Work where i have to put tha Folder of Micromacro and the folder of Zs Shiya thanks

zer0
Posts: 213
Joined: Sat Feb 16, 2008 11:55 pm

Re: Shaiya - ZS Shaiya Bot - v0.03b

#51 Post by zer0 » Sat Dec 06, 2008 3:44 am

intel123:
MicroMacro is standalone so it can be run anywhere pretty much.
ZS Shaiya goes in the scripts sub-folder.

shakey:
The script attaches to the window "Shaiya", so if you have an explorer window that says "Shaiya", it will think that its the game. :lol:
I think that may have been your issue.

If it's not working properly double check that all the Skill spelling is correct, and that the shortcut slots are correct. It's an easy mistake to make I've done it myself and couldn't figure out why a buff was being casted all the time.

The default cooldown is 2 seconds. I can move it to the config.xml. In fact, I probably should have. ;)

The backwards movement before resting I agree is odd, but it was the only way I could get him to break from moving when he tries to pickup a far away item, and sit at the same time. It will need improving.

I'm on another project atm so I might upload a minor update sometime next week.

1point0
Posts: 6
Joined: Sun Dec 07, 2008 6:18 pm

Re: Shaiya - ZS Shaiya Bot - v0.03b

#52 Post by 1point0 » Mon Dec 08, 2008 1:57 pm

heres my problem:


Please enter the script name to run.
Type in 'exit' (without quotes) to exit.
Script> main.lua
Opening main.lua...

Starting script execution - Press CTRL+C to exit.
Press CTRL+L to cancel execution and load a new script.
-------------------------------------------------
macro_init()
...Users/name/Desktop/micromacro/scripts/functions.lua:123: C:\AeriaGames\Shaiy
aCONFIG.INI: No such file or directory


so i noticed it says that it cant find "C:AeriaGames\ShaiyaCONFIG.INI" and thats an easy enough fix, i would jsut need to place a "\" after Shaiya and before CONFIG.INI, but this is line 123 in the main.lua file:


math.randomseed(os.time())


so i can't figure out how to make this simple fix for it to find the CONFIG.INI file in my shiaya folder.

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: Shaiya - ZS Shaiya Bot - v0.03b

#53 Post by Administrator » Mon Dec 08, 2008 5:27 pm

What is the *exact* line that you changed for the path? The \ character is, for most programming/scripting languages, an 'escape character'. That means that putting a \ right before a " means that instead of ending the quote, it actually inserts the quote into the string. This can lead to all sorts of seemingly odd errors.

In short, any \ characters you want in the string should be escaped themselves. Basically, the path should be "C:\\AeriaGames\\Shaiya\\" or just "C:/AeriaGames/Shaiya/".

SteeleEdge
Posts: 6
Joined: Wed Dec 10, 2008 2:26 pm

Re: Shaiya - ZS Shaiya Bot - v0.03b

#54 Post by SteeleEdge » Wed Dec 10, 2008 2:29 pm

I have the new gg and zs_shayia v0.31b. When I run it I gt this.

I got that problem fixed. Edited the Skill.Lua to added fighter attacks and now get this.
[mp] => 120
}
}
[Panic] => table: 022AC730 {
[1] => table: 0224DF10 {
[sp] => 10
[cooldown] => 2
[mp] => 5
}
[2] => table: 0224DF10 {
[sp] => 25
[cooldown] => 2
[mp] => 10
}
}
[Rapid Shot] => table: 022AC730 {
[1] => table: 0224D880 {
[sp] => 45
[cooldown] => 20
[mp] => 0
}
}
[Sonic Bolt] => table: 022AC730 {
[1] => table: 022ED138 {
[sp] => 0
[cooldown] => 30
[mp] => 80
}
}
[Slow] => table: 022AC730 {
[1] => table: 022ED098 {
[sp] => 80
[cooldown] => 60
[mp] => 0
}
}
[Magic Arrow] => table: 022AC730 {
[2] => table: 02253BA0 {
[sp] => 0
[cooldown] => 0
[mp] => 45
}
}
[Concentration] => table: 022AC730 {
[1] => table: 02262C00 {
[sp] => 5
[cooldown] => 2
[mp] => 40
}
[2] => table: 02262C00 {
[sp] => 15
[cooldown] => 2
[mp] => 70
}
[3] => table: 02262C00 {
[sp] => 25
[cooldown] => 2
[mp] => 100
}
[duration] => 300
}
[Fire Ball] => table: 022AC730 {
[1] => table: 02259F58 {
[sp] => 0
[cooldown] => 2
[mp] => 38
}
}
[Sacrifice] => table: 022AC730 {
[1] => table: 02234040 {
[cooldown] => 600
[mp] => 0
}
[2] => table: 02234040 {
[cooldown] => 600
}
}
[Self Dispel] => table: 022AC730 {
[1] => table: 0223FBF0 {
[sp] => 40
[cooldown] => 90
[mp] => 45
}
[2] => table: 0223FBF0 {
[sp] => 65
[cooldown] => 90
[mp] => 95
}
}
[Shot Pointer] => table: 022AC730 {
[1] => table: 022ECF58 {
[sp] => 35
[cooldown] => 30
[mp] => 5
}
}
[Self Aid] => table: 022AC730 {
[1] => table: 02221638 {
[sp] => 40
[cooldown] => 180
[mp] => 45
}
[2] => table: 02221638 {
[sp] => 65
[cooldown] => 180
[mp] => 95
}
}
[Double Damage] => table: 022AC730 {
[2] => table: 02262A70 {
[sp] => 55
[cooldown] => 10
[mp] => 0
}
[3] => table: 02262A70 {
[sp] => 85
[cooldown] => 10
[mp] => 0
}
}
[Support Spell] => table: 022AC730 {
[1] => table: 022ED408 {
[sp] => 70
[cooldown] => 2
[mp] => 110
}
[duration] => 600
}
[Ground Shock] => table: 022AC730 {
[1] => table: 0225A688 {
[sp] => 60
[cooldown] => 10
[mp] => 10
}
[2] => table: 0225A688 {
[sp] => 130
[cooldown] => 10
[mp] => 30
}
}
[Tactical Formation] => table: 022AC730 {
[1] => table: 022ED548 {
[sp] => 75
[cooldown] => 2
[mp] => 40
}
[2] => table: 022ED548 {
[sp] => 145
[cooldown] => 2
[mp] => 65
}
[duration] => 600
}
[Protection Charge] => table: 022AC730 {
[1] => table: 022345C0 {
[sp] => 12
[cooldown] => 30
[mp] => 0
}
[2] => table: 022345C0 {
[sp] => 26
[cooldown] => 30
[mp] => 0
}
[3] => table: 022345C0 {
[sp] => 40
[cooldown] => 30
[mp] => 0
}
}
[Marksman Song] => table: 022AC730 {
[1] => table: 02253290 {
[sp] => 85
[cooldown] => 2
[mp] => 95
}
[duration] => 600
}
[Slasher] => table: 022AC730 {
[1] => table: 022ECFF8 {
[sp] => 220
[cooldown] => 45
[mp] => 20
}
}
[Wind Spin] => table: 022AC730 {
[1] => table: 0225A660 {
[sp] => 80
[cooldown] => 10
[mp] => 0
}
[2] => table: 0225A660 {
[sp] => 130
[cooldown] => 10
[mp] => 0
}
[3] => table: 0225A660 {
[sp] => 240
[cooldown] => 10
[mp] => 0
}
}
[Eagle Eye] => table: 022AC730 {
[1] => table: 0225B0D8 {
[sp] => 60
[cooldown] => 180
[mp] => 25
}
[2] => table: 0225B0D8 {
[sp] => 75
[cooldown] => 180
[mp] => 35
}
[3] => table: 0225B0D8 {
[sp] => 105
[cooldown] => 180
[mp] => 65
}
}
[Arouse Blow] => table: 022AC730 {
[1] => table: 022631F0 {
[sp] => 20
[cooldown] => 2
[mp] => 10
}
[2] => table: 022631F0 {
[sp] => 48
[cooldown] => 2
[mp] => 30
}
}
[Fire Bush] => table: 022AC730 {
[1] => table: 0225A818 {
[sp] => 0
[cooldown] => 30
[mp] => 60
}
}
[Body Protector] => table: 022AC730 {
[1] => table: 022633A8 {
[sp] => 60
[cooldown] => 2
[mp] => 60
}
[duration] => 300
}
[Fatal Hit] => table: 022AC730 {
[1] => table: 0225A9D0 {
[sp] => 19
[cooldown] => 5
[mp] => 0
}
[2] => table: 0225A9D0 {
[sp] => 51
[cooldown] => 8
[mp] => 0
}
}
[Bash] => table: 022AC730 {
[1] => table: 02263290 {
[sp] => 5
[cooldown] => 2
[mp] => 40
}
[2] => table: 02263290 {
[sp] => 15
[cooldown] => 2
[mp] => 70
}
[3] => table: 02263290 {
[sp] => 25
[cooldown] => 2
[mp] => 100
}
[duration] => 300
}
[Heavy Swat] => table: 022AC730 {
[1] => table: 02259E68 {
[sp] => 15
[cooldown] => 30
[mp] => 0
}
[2] => table: 02259E68 {
[sp] => 25
[cooldown] => 30
[mp] => 0
}
[3] => table: 02259E68 {
[sp] => 35
[cooldown] => 30
[mp] => 0
}
}
...aiya/micromacro/scripts/zs_shaiya/classes/avatar.lua:173: attempt to index fi
eld '?' (a nil value)


Please enter the script name to run.
Type in 'exit' (without quotes) to exit.
Script>

This is my Avatar:
<avatar>
<shortcuts>
<!-- These are your action shortcuts -->
<shortcut type="action" mode="attack" bar="1" slot="1" />
<shortcut type="action" mode="pickup" bar="1" slot="0" />
<!-- These are your skill attack shortcuts -->
<shortcut type="skill" mode="attack" bar="1" slot="1" name="Rising Crash" level="3" />
<shortcut type="skill" mode="attack" bar="1" slot="2" name="Stinger" level="3" />
<shortcut type="skill" mode="attack" bar="1" slot="3" name="Double Damage" level="3" />
<shortcut type="skill" mode="attack" bar="1" slot="4" name="Heavy Swat" level="3" />
<shortcut type="skill" mode="attack" bar="1" slot="5" name="Wind Spin" level="3" />
<shortcut type="skill" mode="attack" bar="1" slot="6" name="Deadly Strike" level="3" />
<shortcut type="skill" mode="attack" bar="1" slot="7" name="Dual-weapon Storm" level="2" />
<shortcut type="skill" mode="attack" bar="1" slot="8" name="Demon Hushing" level="1" />
<shortcut type="skill" mode="attack" bar="1" slot="9" name="Dragon Slayer" level="2" />
<!--<shortcut type="skill" mode="attack" bar="1" slot="" name="" level="" />-->
<!-- These are your skill buff shortcuts -->
<shortcut type="skill" mode="buff" bar="2" slot="1" name="Concentration" level="2" />
<shortcut type="skill" mode="buff" bar="2" slot="2" name="Bash" level="2" />
<shortcut type="skill" mode="buff" bar="2" slot="3" name="Leadership" level="2" />
<shortcut type="skill" mode="buff" bar="2" slot="4" name="Eagle Eye" level="2" />
<!--<shortcut type="skill" mode="buff" bar="2" slot="" name="" level="" />-->
<!-- These are your potion shortcuts -->
<shortcut type="potion" mode="hp" bar="3" slot_start="1" slot_end="2" tolerance="65" />
<shortcut type="potion" mode="sp" bar="3" slot_start="2" slot_end="3" tolerance="50" />
<shortcut type="potion" mode="mp" bar="3" slot_start="3" slot_end="4" tolerance="50" />
<!--<shortcut type="potion" mode="" bar="3" slot_start="" slot_end="" tolerance="" />-->
</shortcuts>
<!-- The avatar options are listed here, for a complete list, see ./classes/avatar.lua -->
<options>
<option name="mp_sit_multiplier" value="0.2" />
<option name="sp_sit_multiplier" value="0.2" />
<option name="target_difficulty_color_min" value="blue" />
<!--<option name="waypoint_enabled" value="true" />-->
<!--<option name="" value="" />-->
</options>
</avatar>

Attacked is a new skill that I added some to. I get this one to load and then I get the error:
...aiya/micromacro/scripts/zs_shaiya/classes/avatar.lua:173: attempt to index fi
eld '?' (a nil value)
Attachments
skills.xml
Skills.lua
(8.03 KiB) Downloaded 344 times

zer0
Posts: 213
Joined: Sat Feb 16, 2008 11:55 pm

Re: Shaiya - ZS Shaiya Bot - v0.03b

#55 Post by zer0 » Thu Dec 11, 2008 7:59 pm

@SteeleEdge

In your avatar xml file:

Code: Select all

<!-- These are your potion shortcuts -->
<shortcut type="potion" mode="hp" bar="3" slot_start="1" slot_end="2" tolerance="65" />
<shortcut type="potion" mode="sp" bar="3" slot_start="2" slot_end="3" tolerance="50" />
<shortcut type="potion" mode="mp" bar="3" slot_start="3" slot_end="4" tolerance="50" />
<!--<shortcut type="potion" mode="" bar="3" slot_start="" slot_end="" tolerance="" />-->
At the moment, the script only supports bar 1 and 2 if you have the 2nd quickslot bar open.


I have released a revised version see first post.
Custom Resolutions should work as well now.

SteeleEdge
Posts: 6
Joined: Wed Dec 10, 2008 2:26 pm

Re: Shaiya - ZS Shaiya Bot - v0.03b

#56 Post by SteeleEdge » Fri Dec 12, 2008 12:30 pm

Is there a way to program so that I canput all attacks on bar 1, buffs on bar 2 and potions-healing on 3. I do not like putting it all on one bar. I have many different attacks that I use. Will try out the new versin you posted later today.

I got the new version and ran it. I had to add the whirl wind attacks to get past that error.

Now I get this error:

MicroMacro v0.99
SolarImpact
http://solarimpact.servegame.com


Please enter the script name to run.
Type in 'exit' (without quotes) to exit.
Script> zs_shaiya/main.lua
Opening main.lua...

Starting script execution - Press CTRL+C to exit.
Press CTRL+L to cancel execution and load a new script.
-------------------------------------------------
macro_init()
interface=INTERFACE_1024X768
Shaiya Window process ID: 1049070
win_width: 1024, win_height: 768

name: SteeleEdge
avatar_name: SteeleEdge
skill: Rising Crash 3
skill: Stinger 3
skill: Double Damage 3
skill: Heavy Swat 3
skill: Wind Spin 3
skill: Deadly Strike 3
skill: Dual-weapon Storm 2
skill: Demon Hushing 1
...omacro/scripts/zs_shaiya/classes/shortcuts/skill.lua:53: attempt to perform a
rithmetic on local 'l_cooldown' (a nil value)


Please enter the script name to run.
Type in 'exit' (without quotes) to exit.
Script>
Thanks

vvayinsane
Posts: 148
Joined: Fri Mar 21, 2008 9:10 pm

Re: Shaiya - ZS Shaiya Bot - v0.03b

#57 Post by vvayinsane » Sat Dec 13, 2008 11:37 pm

Hey how do i fix the mob problem? There are some mobs i cant attack..? I can attack other mobs but not others..how come?

zer0
Posts: 213
Joined: Sat Feb 16, 2008 11:55 pm

Re: Shaiya - ZS Shaiya Bot - v0.03b

#58 Post by zer0 » Sat Dec 13, 2008 11:41 pm

@SteeleEdge
Mines working fine you must be using the old data/config.xml file.

You need to have this added since the default skill cooldown value was moved to it.

Code: Select all

<config name="skill_cooldown">2</config>
@vvayinsane
Probably because the mob diffculty colors are out of range. The default is "green" to "cyan", to overwrite them in your avatar.xml file you add in the options section.

Code: Select all

    <options>
        <option name="target_difficulty_color_min" value="blue" />
        <option name="target_difficulty_color_max" value="yellow" />
    </options>
The color names are defined in "classes\gui.lua", line 58:

Code: Select all

target_name_color = {
  unknown=0,
  white=1,
  cyan=2,
  blue=3,
  green=4,
  yellow=5,
  orange=6,
  red=7,
  purple=8,
  grey=9,
}

SteeleEdge
Posts: 6
Joined: Wed Dec 10, 2008 2:26 pm

Re: Shaiya - ZS Shaiya Bot - v0.03b

#59 Post by SteeleEdge » Sun Dec 14, 2008 10:43 am

That fixed my problem with getting it to work.

I found a couple of things I am having problems with but no error messages.
Screen will freeze during attacks.
Not picking up drops.
Not finishing kills before next attack.
At times will go by several mobs to attack one. Yes the others follow along and attack.
Cam angle goes the opisite direction of the mob I are fighting. I see myself running to the mob, bit have to change my view to see the mob.

If I use F6 to pause, I have to restart the script to make it work again. Using F5 it will unpause but just stands there.

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: Shaiya - ZS Shaiya Bot - v0.03b

#60 Post by Administrator » Sun Dec 14, 2008 12:56 pm

I think pressing F5 in Shaiya causes you to target yourself, doesn't it? That could be the problem. You would then be stuck trying to kill yourself. I'd suggest moving the script hotkeys simply by changing the startKey and stopKey variables.

Code: Select all

startKey = key.VK_INSERT;
stopKey = key.VK_DELETE;

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest