Author Topic: peace provo and disco using masteries  (Read 3121 times)

0 Members and 1 Guest are viewing this topic.

Offline cybercasperTopic starter

  • Full Member
  • ***
  • Posts: 228
  • Activity:
    0%
  • Reputation Power: 3
  • cybercasper has no influence.
  • Respect: +41
  • Referrals: 1
    • View Profile
peace provo and disco using masteries
« on: December 13, 2015, 06:48:49 AM »
0
This is a work in progress. Maybe I can get a little help. It does what it needs to do but not sure where to put a "if mana = at and I cant figure out how to get it to use another instrument when the previous one is used up.

Code: [Select]
finditem PRF_LQF_MQF_QRF_OQF C_ , #BACKPACKID ; Searches for instruments in the backpack
if #FINDCNT > 0 { ; If there are objects found
set #LOBJECTID #FINDID ; Set the ID of a found object as #LOBJECTID - Uses item
; event macro 16 0 ; Casts last spell - Need to have cast the mastery first (The command for a particular mastery would be "event macro 15 X". Where X=some number the list of mastery spells is new and not yet in the wiki)
event macro 15 703 ; For Peacemaking "event macro 15 703" triggers Resilience - It looks like the masteries start at 701
; target 5s ; Waits for a target to appear and times out after 5 seconds
; event macro 23 0 ; One way to target self. Targets self not needed for every mastery.
wait 30 ; pauses for 1.5 seconds
event macro 15 703 ; cancels the mastery
wait 20 ; pauses for 1 second
}
else {
display ok You are out of instruments ; Displays a message when out of instruments}

Offline cybercasperTopic starter

  • Full Member
  • ***
  • Posts: 228
  • Activity:
    0%
  • Reputation Power: 3
  • cybercasper has no influence.
  • Respect: +41
  • Referrals: 1
    • View Profile
Re: peace provo and disco using masteries
« Reply #1 on: December 13, 2015, 08:29:59 AM »
0
Just and FYI this is my first script so I know it probably is horrible

Offline The Ghost

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +245
  • Referrals: 0
    • View Profile
Re: peace provo and disco using masteries
« Reply #2 on: December 13, 2015, 04:57:41 PM »
0
To find the instrument it just a finditem

Code: [Select]
Finditem %flute C_ , #BACKPACKID
Set #lobjectid #findid
event macro 17

Offline Tidus

  • Lazy
  • Administrator
  • *
  • *
  • Posts: 1291
  • Activity:
    0%
  • Reputation Power: 15
  • Tidus is working their way up.Tidus is working their way up.Tidus is working their way up.
  • Gender: Male
  • Mind Blown
  • Respect: +151
  • Referrals: 2
    • View Profile
    • Ultimate Apparel
Re: peace provo and disco using masteries
« Reply #3 on: December 14, 2015, 12:09:03 PM »
0
Quote
I cant figure out how to get it to use another instrument when the previous one is used up.

You just have to do a finditem on the ID of the instrument that you had previously.  So once it can no longer find that ID you search for a new instrument in pack and set that ID to your instrument
Code: [Select]
finditem %currentinstrument C_, #backpackid
if #findcnt < 1
{
finditem %instruments C_, #backpackid
set %currentinstrument #findid
set #lobjectid #findid
}
For those who have fought for it, freedom has a taste the protected will never know ~ Anonymous, Vietnam, 1968

Tags: