Download
(149 Kb)
Download
Updated: 09-08-08 03:49 PM
Pictures
File Info
Updated:09-08-08 03:49 PM
Created:unknown
Downloads:1,990
Favorites:11
MD5:
AmmoSwap2(Discontinued)
Version: v1.6
by: Soulofsin_007 [More]
All Credit goes to Original Author


No longer supported.
V1.6 BETA
- Cleaned up code a little bit.
- Should now switch to Instance Arrows when entering a instance.
- Updated Libs.
- Should now work with Wrath of the Lich King, and should also work with the current version of WoW.

V1.5a
- Everything should now say AmmoSwap2.
- Updated Libs.

V1.5
- New Slash Commands.
- Constant Update is now auto turned on.
- Full Zul'Aman support is now in. Please let me know if it works or not.
- Startup message has been added. It explains the /commands.
- Had to downgrade, I have to figure out the bug in the latest version.



V1.4
- Now Works.

V1.3c
- Updated 2.4.1 =)
- Should now have support for Zul'Aman. If there is anything
missing. Let me know =)
- Fixed it not loading. Sorry about that. =)
- Zip now contains the right files. Last update today. I promise! =)

v1.2
- added "constant update" option that will check ammo every second to see if its correct instead of when switching targets. (DEFAULTS TO OFF) *KayossZero request*
- should equip the correct projectile when you switch weapons instead of waiting for a target.
- no longer auto disables for WARRIORS and ROGUES.
- "backup" PvP ammo will use PvE ammo if Boss and PvP are the same. if PvP and PvE are the same it will use Boss ammo as backup. (before it always used Boss ammo)
- nether spike ammo will only equip if your current weapon is a bow/xbow (piror, it would have tried if you had a gun equiped)



v1.1a
- oops, forgot to include a couple libs



v1.1
- bullets option added
- fubar-plugin added (allows easier editing.. i got tired of typing /as arrows boss itemName over and over :P)
- if you run out of a selected ammo WHILE shooting it will try to use the next available ammo. (ie: run out of BOSS ammo while fighting a boss, it will try to use PVE ammo)
- addon will select ammo to use based on your weapon type. (as long as youve entered the ammo names into the addons options)
- possible bug with 'IsEquippedItem' fixed.



v1.0
- Initial release.
Optional Files (0)


Post A Reply Comment Options
Unread 11-11-08, 05:18 PM  
Soulofsin_007
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 125
File comments: 107
Uploads: 12
Update: Coding from ground up again so it will work.
Last edited by Soulofsin_007 : 11-12-08 at 01:37 PM.
Soulofsin_007 is offline Report comment to moderator  
Reply With Quote
Unread 11-08-08, 01:34 PM  
Soulofsin_007
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 125
File comments: 107
Uploads: 12
Originally posted by Zidomo
No such library exists. There are over 20000+ NPCs in WOW, with more continually added & others deleted. You don't need such a thing anyway.

How it should be done: use the UnitClassification API to determine what a mob is. An example of this on an older mod very similar to this called Cheaptard (that still works fine in WoW 3.0):

Code:
function Cheaptard:PLAYER_TARGET_CHANGED()
    if db.bestonboss then
        if UnitClassification("target") == "boss" or UnitClassification("target") == "worldboss" and not UnitIsDead("target") then
            self:EquipBestAmmo()
        end
    end
end
It uses the "worldboss" classifcation of the target to determine whether to switch ammo or not. The API info from Wowprogramming.com is current, so you shouldn't have issue with detecting targets using UnitClassification.
thx for pointing that out, I'll have to check that out
Soulofsin_007 is offline Report comment to moderator  
Reply With Quote
Unread 11-08-08, 05:56 AM  
Zidomo
A Cliff Giant
 
Zidomo's Avatar

Forum posts: 76
File comments: 1049
Uploads: 0
Originally posted by Soulofsin_007
Seems like I have found another problem I am working out. It seems to think that all NPC's are bosses and I get a no translation error. Trying to find a library that has all npcs inside of it. No ETA yet.
No such library exists. There are over 20000+ NPCs in WOW, with more continually added & others deleted. You don't need such a thing anyway.

How it should be done: use the UnitClassification API to determine what a mob is. An example of this on an older mod very similar to this called Cheaptard (that still works fine in WoW 3.0):

Code:
function Cheaptard:PLAYER_TARGET_CHANGED()
    if db.bestonboss then
        if UnitClassification("target") == "boss" or UnitClassification("target") == "worldboss" and not UnitIsDead("target") then
            self:EquipBestAmmo()
        end
    end
end
It uses the "worldboss" classifcation of the target to determine whether to switch ammo or not. The API info from Wowprogramming.com is current, so you shouldn't have issue with detecting targets using UnitClassification.
Zidomo is offline Report comment to moderator  
Reply With Quote
Unread 11-05-08, 04:24 PM  
Soulofsin_007
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 125
File comments: 107
Uploads: 12
Seems like I have found another problem I am working out. It seems to think that all NPC's are bosses and I get a no translation error. Trying to find a library that has all npcs inside of it. No ETA yet.
Last edited by Soulofsin_007 : 11-07-08 at 12:38 PM.
Soulofsin_007 is offline Report comment to moderator  
Reply With Quote
Unread 11-04-08, 03:07 PM  
Zidomo
A Cliff Giant
 
Zidomo's Avatar

Forum posts: 76
File comments: 1049
Uploads: 0
Originally posted by Soulofsin_007
How did you produce it? I tried it with no ammo and not having anything set and could not get it
Recorded with the BugSack/!BugGrabber mods (it may not show up if you are just using the default Blizzard error pop-ups).

Mid-level hunter, carrying a gun, no ammo or ammo pack on the character. Click AmmoSwap2's options, or mouse over the open ammo slot on the character...or do something else.

The error consistently occurs. May even occur when ammo is present (haven't tested; I stopped using it after the error).
Last edited by Zidomo : 11-04-08 at 03:08 PM.
Zidomo is offline Report comment to moderator  
Reply With Quote
Unread 11-04-08, 07:16 AM  
Soulofsin_007
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 125
File comments: 107
Uploads: 12
Originally posted by Zidomo
No actually, the error was letting me know that the mod was not handling the "no ammo" condition properly .

It should be handling such a situation properly instead of throwing up a LUA error.
How did you produce it? I tried it with no ammo and not having anything set and could not get it
Soulofsin_007 is offline Report comment to moderator  
Reply With Quote
Unread 11-03-08, 01:47 AM  
Zidomo
A Cliff Giant
 
Zidomo's Avatar

Forum posts: 76
File comments: 1049
Uploads: 0
Originally posted by Soulofsin_007
Edit: It seems that error was just letting you know that you had no ammo.
No actually, the error was letting me know that the mod was not handling the "no ammo" condition properly .

It should be handling such a situation properly instead of throwing up a LUA error.
Zidomo is offline Report comment to moderator  
Reply With Quote
Unread 11-02-08, 02:26 PM  
Soulofsin_007
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 125
File comments: 107
Uploads: 12
I'll look into it. thanks

Edit: It seems that error was just letting you know that you had no ammo.
Last edited by Soulofsin_007 : 11-02-08 at 02:39 PM.
Soulofsin_007 is offline Report comment to moderator  
Reply With Quote
Unread 10-29-08, 03:18 PM  
Zidomo
A Cliff Giant
 
Zidomo's Avatar

Forum posts: 76
File comments: 1049
Uploads: 0
Well, maybe .

Error when mousing over an empty ammo slot on the character screen (character had no ammo on him). Or it might have been at another time. Recorded with the BugSack/BugGrabber mods:

AmmoSwap2-1.6\\Core.lua:304: AceLocale(AmmoSwap): No translations registered

AmmoSwap2 v1.6beta, standalone updated libs (updated from wowace.com/projects), USEng client/server, WoW 3.0.2 live. No other errors referring to Ace2 with any other mod I run.
Zidomo is offline Report comment to moderator  
Reply With Quote
Unread 10-14-08, 09:36 AM  
Soulofsin_007
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 125
File comments: 107
Uploads: 12
Addon Should...

Addon should now work with new patch.
Soulofsin_007 is offline Report comment to moderator  
Reply With Quote
Unread 04-20-08, 05:30 PM  
Soulofsin_007
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 125
File comments: 107
Uploads: 12
Re: Re: Re: Re: Update

Originally posted by KayossZero
Hey sorry <--- Silly me, I didn't notice any LUA errors caught in Buggrabber/Sack anyways the mod wasn't auto swapping ammo based on my targets at all.
Okay. Go to 1.5 I'll look through the code, I pry messed it up when I added new code.
Soulofsin_007 is offline Report comment to moderator  
Reply With Quote
Unread 04-20-08, 04:24 PM  
KayossZero
A Kobold Labourer

Forum posts: 0
File comments: 33
Uploads: 0
Re: Re: Re: Update

Originally posted by Soulofsin_007
Aight, I will work out the problems...

What is not working in it?

Downgrade to 1.5 and fill me in, either threw email or here.
Hey sorry <--- Silly me, I didn't notice any LUA errors caught in Buggrabber/Sack anyways the mod wasn't auto swapping ammo based on my targets at all.
KayossZero is offline Report comment to moderator  
Reply With Quote
Unread 04-19-08, 04:26 PM  
Soulofsin_007
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 125
File comments: 107
Uploads: 12
Re: Re: Update

Originally posted by KayossZero
Latest version is not working it seems.
Aight, I will work out the problems...

What is not working in it?

Downgrade to 1.5 and fill me in, either threw email or here.
Last edited by Soulofsin_007 : 04-19-08 at 04:53 PM.
Soulofsin_007 is offline Report comment to moderator  
Reply With Quote
Unread 04-19-08, 03:23 PM  
KayossZero
A Kobold Labourer

Forum posts: 0
File comments: 33
Uploads: 0
Re: Update

Originally posted by Soulofsin_007
I have updated the addon. Unless there are some major bugs or changes that I have to do to the code. It is pretty much good for now.

I have worked out Throwing, I just have not worked out the bugs inside the game, just the code. If someone would like to do this, That would be awesome.

I pretty much have the mod where I want it. The only major updates will be to the lib's and that is to update the boss lib to have the current bosses inside the game. I have added Magister's Terrace and Sunwell to the support. Hopefully it will work for you.

Thanks for downloading!
Latest version is not working it seems.
KayossZero is offline Report comment to moderator  
Reply With Quote
Unread 04-18-08, 07:33 PM  
Soulofsin_007
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 125
File comments: 107
Uploads: 12
Update

I have updated the addon. Unless there are some major bugs or changes that I have to do to the code. It is pretty much good for now.

I have worked out Throwing, I just have not worked out the bugs inside the game, just the code. If someone would like to do this, That would be awesome.

I pretty much have the mod where I want it. The only major updates will be to the lib's and that is to update the boss lib to have the current bosses inside the game. I have added Magister's Terrace and Sunwell to the support. Hopefully it will work for you.

Thanks for downloading!
Soulofsin_007 is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: