Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Guild Wars > GW Guides & Templates
You last visited: Today at 14:24

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[GWA2] ModStructs For Perfect Items

Discussion on [GWA2] ModStructs For Perfect Items within the GW Guides & Templates forum part of the Guild Wars category.

Reply
 
Old 04/24/2025, 19:17   #46
 
Thorulf's Avatar
 
elite*gold: 0
Join Date: Apr 2025
Posts: 6
Received Thanks: 0
Thanks for this! Was working on it myself, you beat me to it. Well done! ^^

One small comment though: should not the logic in the CanSell() method be reversed? Given:
  • CanSell() returns true when the item will be SOLD.
  • Given that we want to KEEP the (configured set of) +5 profession mods, it should return false for those cases.
  • Currently it returns the value of the helper methods KeepXWeapons(), which by its name and logic returns the opposite: the keep bool flag, not the sell bool flag.

Alt. fix: simply rename the KeepXWeapons to SellXWeapons and adjust your wanted config accordingly.
Personally I like the current func names and would adjust the logic in the CanSell() func.
Just my 2 cents.

Should I be missing some detail, pls enlighten me. ^^
Cheers!
Thorulf is offline  
Old 05/01/2025, 01:26   #47
 
Underavelvetmoon's Avatar
 
elite*gold: 0
Join Date: May 2011
Posts: 111
Received Thanks: 94
Quote:
Originally Posted by Thorulf View Post
Thanks for this! Was working on it myself, you beat me to it. Well done! ^^

One small comment though: should not the logic in the CanSell() method be reversed? Given:
  • CanSell() returns true when the item will be SOLD.
  • Given that we want to KEEP the (configured set of) +5 profession mods, it should return false for those cases.
  • Currently it returns the value of the helper methods KeepXWeapons(), which by its name and logic returns the opposite: the keep bool flag, not the sell bool flag.

Alt. fix: simply rename the KeepXWeapons to SellXWeapons and adjust your wanted config accordingly.
Personally I like the current func names and would adjust the logic in the CanSell() func.
Just my 2 cents.

Should I be missing some detail, pls enlighten me. ^^
Cheers!
You are absolutely right! Big oversight on my part, thank you! I was wondering why I wasnt keeping any when botting haha. In any regards it seems that only necro mods are worth keeping, but ill definitely make that change and update accordingly.
Underavelvetmoon is offline  
Old 05/01/2025, 22:01   #48
 
Thorulf's Avatar
 
elite*gold: 0
Join Date: Apr 2025
Posts: 6
Received Thanks: 0
You're welcome! ^^ The following works well. And yes I agree many of the new +5 mods are actually not worth keeping. My time is much more valuable, not gonna waste it in Kamadan. Given this fact I streamlined the KeepXWeapons pretty hard.


Code:
Func CanSell($aItem)
	; === [CHECK FOR +5 PROFESSION MODS] ===
	Local $PlusFiveMod = IsPlusFiveMod($aItem)

	Switch $PlusFiveMod
	Case True
	  If PlusFiveModFilter($aItem) = "1" Then
		  Return Not KeepStrengthWeapons($aItem)
	  ElseIf PlusFiveModFilter($aItem) = "2" Then
		  Return Not KeepExpertiseWeapons($aItem)
	  ElseIf PlusFiveModFilter($aItem) = "3" Then
		  Return Not KeepSoulReapingWeapons($aItem)
	  ElseIf PlusFiveModFilter($aItem) = "4" Then
		  Return Not KeepFastCastingWeapons($aItem)
	  ElseIf PlusFiveModFilter($aItem) = "5" Then
		  Return Not KeepEnergyStorageWeapons($aItem)
	  ElseIf PlusFiveModFilter($aItem) = "6" Then
		  Return Not KeepDivineFavorWeapons($aItem)
	  ElseIf PlusFiveModFilter($aItem) = "7" Then
		  Return Not KeepSpawningPowerWeapons($aItem)
	  ElseIf PlusFiveModFilter($aItem) = "8" Then
		  Return Not KeepCritStrikeWeapons($aItem)
	  ElseIf PlusFiveModFilter($aItem) = "9" Then
		  Return Not KeepLeadershipWeapons($aItem)
	  ElseIf PlusFiveModFilter($aItem) = "10" Then
		  Return Not KeepMysticismWeapons($aItem)
	  EndIf
	; NB! Dont return CanSell = True for all other case. 
        ; We still want to perform the normal checks below.
	EndSwitch	
	; === [+5 MOD CHECK DONE] ===
        ; < Rest of the CanSell() function here >
EndFunc
Thorulf is offline  
Old 10/26/2025, 06:25   #49
 
elite*gold: 0
Join Date: Feb 2016
Posts: 110
Received Thanks: 3
Hello, can the nonperfect modstructs be mathematically calculated from the values of perfect mods? is there a single strict rule?

Usefull for pre mods like 17%, 18% dmg vs Charr, 8, 9 armor vs charr for shield/focus
some ectos for sale is offline  
Reply

« Beginners Guide | - »

Similar Threads Similar Threads
Keiran GWA2 Version PvEovled
07/02/2014 - GW Exploits, Hacks, Bots, Tools & Macros - 7 Replies
Closed because no feedback from community
[GWA2] War Supply Bot
06/01/2014 - Trading - 0 Replies
Opening up a thread here again to advertise my war supply bot. I've sold over 80 copies on ************ and sold it a couple times to epvpers a few years ago. You can reach me on ************ or on skype: raskofshadows. Prices are set in stone and source is available for a fee.
gwa2 autoit broblem
04/06/2014 - GW Bots - 0 Replies
Hat Sich Erledigt kann Gelöscht werden ^^
GWA2 A/mo Vaettir Bot; Need Help!!
02/19/2012 - GW Bots - 1 Replies
http://www.elitepvpers.com/forum/gw-exploits-hacks -bots-tools-macros/1568881-gwa-vaettir-mo-farm-bot .html ENGLISH: I can't seem to get this to work. I've spent 3-4 hours, read the entire thread here, tried to search for a detailed guide on how to get this to work but it's not. What I've done was: Downloaded the 2 files shown in the Original Post... "GWA2 A_Mo Vaettirs Farm by bl4ck3lit3.zip" Extracted it to desktop Ran GW.EXE as admin. Set-up assassin with appropriate gear and...



All times are GMT +1. The time now is 14:27.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.