Search found 51 matches

by PeteSampras
Tue Dec 25, 2018 2:15 am
Forum: MQ2::Development::Feature Discussion
Topic: Extend MQ2DataTypes.h to support all class /declares in macros
Replies: 0
Views: 607

Extend MQ2DataTypes.h to support all class /declares in macros

We should be able to effectively /declare any valid MQ2 type in macros by changing the FromString in most the classes. That way /declare This spell outer Complete Heal would actually be referencing the Complete Heal spelltype and you can This.Mana, This.Range, etc. Per Renji, code change should look...
by PeteSampras
Wed Feb 14, 2018 2:01 am
Forum: MQ2::Help
Topic: Me.FirstBook and Me.LastBook members
Replies: 1
Views: 674

Me.FirstBook and Me.LastBook members

oh
by PeteSampras
Wed Feb 14, 2018 1:45 am
Forum: MQ2::Help
Topic: MQ2Data.cpp updates
Replies: 0
Views: 732

MQ2Data.cpp updates

I was looking through the FindItem TLOs and noticed they dont offer to FindItem by ID, any reason for this? If not all of the FindItem, FindItemCount, FindItemBank, and FindItemBank TLOs should be able to parse IDs via the PCONTENTS FindItemByID(int ItemID) in mq2utilities.cpp. ie from: TLO(dataFind...
by PeteSampras
Tue Jan 02, 2018 11:15 pm
Forum: MQ2::Macros::Help
Topic: Using variable in #include
Replies: 8
Views: 2128

Re: Using variable in #include

Chatwiththisname wrote:
Tue Jan 02, 2018 10:39 pm
As per bot40.mac (PeteSampras originally bot.mac) he uses a #define for his INI

#define MyIni Bot_${Me.CleanName}_${MacroQuest.Server}_${Me.Class}.ini

Try doing that with the include then
#define MyInc Auto_${Me.Class}.inc
#include MyInc
Oh.. right. lulz.
by PeteSampras
Tue Jan 02, 2018 1:00 pm
Forum: MQ2::Macros::Help
Topic: Using variable in #include
Replies: 8
Views: 2128

Re: Using variable in #include

I need to do a call to pull certain include files but noticed I can't. Wanted to think of a workaround #include auto_${Me.Class.ShortName}.inc Short of relaunching in a new mac file (which is ugly) I am trying to think of a good way of doing this. The idea is to consolidate a bunch of class macros ...
by PeteSampras
Tue Jan 02, 2018 12:38 pm
Forum: MQ2::Help
Topic: MQ2Utilities spell updates
Replies: 6
Views: 1762

Re: MQ2Utilities spell updates

Also, the following code probably needs updated for .Stacks and SpellStacking function to work correctly: BOOL TriggeringEffectSpell(PSPELL aSpell, int i) { LONG aAttrib = GetSpellNumEffects(aSpell) > i ? GetSpellAttrib(aSpell, i) : 254; return (aAttrib == 85 // Add Proc || aAttrib == 374 // Trigger...
by PeteSampras
Tue Jan 02, 2018 12:35 pm
Forum: MQ2::Help
Topic: MQ2Utilities spell updates
Replies: 6
Views: 1762

MQ2Utilities spell updates

Eqmule: as fyi the following cases have been added in game that need updated in MQ2Utilities.cpp PCHAR ParseSpellEffects function: Source: https://github.com/rumstil/eqspellparser/blob/master/core/SpellData.cs case 498: // silimar to 266? // base2 may be the the number of attacks? return Spell.Forma...
by PeteSampras
Sun Sep 25, 2016 4:04 pm
Forum: MQ2::Development::Feature Discussion
Topic: Extend TLO Group to have Group.MinHP & Group.MinMana
Replies: 16
Views: 3620

Re: Extend TLO Group to have Group.MinHP & Group.MinMana

I honestly dont know if it is in this vanilla compile, but i had already added a version of Group.MinHP and MinMana that returns spawntype to our compile a couple years ago and had posted the code on here for vanilla inclusion. So naming convention-wise, maybe call it something else.
by PeteSampras
Sun Sep 27, 2015 6:43 pm
Forum: Games::Everquest
Topic: Anyone near LA that can help me set up MQ2? will pay
Replies: 2
Views: 2240

Re: Anyone near LA that can help me set up MQ2? will pay

i'm not trying to sell services and i don't work for either site. that said, if you are so lost regarding mq2 that you are willing to pay someone to help you set it up, then you might be interested in one of the sites that precompiles it for you and all you do is install the loader and double click ...
by PeteSampras
Sat Jul 18, 2015 11:58 pm
Forum: MQ2::Macros::Snippets
Topic: Array Find
Replies: 3
Views: 2223

Re: Array Find

it is a datatype that you can use within the c/c++ code but not one that is declarable within a macro. any types that you use outside of string/int/float/timer/char/bool end up returning NULL/default values when you access them. the macro code .cpp needs updated probably. /declare string whatever[10...
by PeteSampras
Sat Jul 18, 2015 6:12 pm
Forum: MQ2::Macros::Snippets
Topic: Array Find
Replies: 3
Views: 2223

Re: Array Find

array isnt a valid variable, so none of that would work

also, there isnt a lower/upper bound (size) option either.
by PeteSampras
Mon May 25, 2015 4:44 am
Forum: MQ2::Macros::Help
Topic: Passing argument type to subroutrine
Replies: 8
Views: 1231

Re: Passing argument type to subroutrine

I can write little plugin snippet to create what you are asking for in the form of a /command. However, there is probably a better way to incorporate it actually working. What needs to happen is a way to directly access GetSpawnByName() and GetSpawnByID(). a la: /declare MySpawn1 spawn GetSpawnByID(...
by PeteSampras
Sun May 24, 2015 11:10 pm
Forum: MQ2::Macros::Help
Topic: Passing argument type to subroutrine
Replies: 8
Views: 1231

Re: Passing argument type to subroutrine

He wants to pass it as a spawntype. So if it works at all, it would be what i put.

His backup plan would be to access it via /vardata.

/declare i int local
/vardata i obj.ID
/echo ${i}
by PeteSampras
Sun May 24, 2015 6:35 pm
Forum: MQ2::Macros::Help
Topic: Passing argument type to subroutrine
Replies: 8
Views: 1231

Re: Passing argument type to subroutrine

you cant pass objects in macro because even though it technically exists, it doesnt exist in the macro parser. So you can pass strings or ints or bools or floats, etc but not spawntypes. In your example you would do the (int obj) and /call test ${Target.ID} I mentioned this awhile back to eqmule but...
by PeteSampras
Fri May 08, 2015 10:45 pm
Forum: MQ2::Macros::Help
Topic: iterating through characters
Replies: 5
Views: 792

Re: iterating through characters

I had an error there too =x

/bct ${Group.Member[${i}]}

should be:

/bct ${Group.Member[${i}]} //useitem "clicky name"