Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Any chance someone can tell me how to use AdvPath with KISS?
Been playing with it for a while but can't seem to really figure it out... :"/
Sub InitCustomPaths
/declare bCustomInitdone int outer 1
| X is just an example, change to zone ID of zone you want to play paths in.
/declare myzone int outer X
/declare myoldyloc int outer
/declare myoldxloc int outer
/return
Sub CustomPullFunc
/if (${Select[${Role},tank]} && ${CustomPull}==1 && ${Zone.ID}==${myzone} && ${Me.Dead}==FALSE && ${Me.XTarget}==0) {
/if (${Defined[bCustomInitdone]}==FALSE) {
/call InitCustomPaths
}
|rez the merc if its dead:
/if (${Window[MMGW_ManageWnd].Child[MMGW_SuspendButton].Enabled} && ${Mercenary.State.Equal[DEAD]}) {
/notify MMGW_ManageWnd MMGW_SuspendButton LeftMouseUp
/delay 1s
}
|THE FOLLOWING ARE EXAMPLES:, You can decide to play a path based on for example
|if a mob is at a specific location:
/if (${Bool[${Spawn[bigbadmob npc radius 30 loc -123 -456].ID}]}==TRUE) {
/echo spawn detected in location one
/call PullOne
/return
}
|or maybe play a path based on where you are?
/if (${SpawnCount[id ${Me.ID} radius 30 loc -123 -456]}>1) {
/echo im within 30 feet of loc -123 -456 im playing PullTwo
/call PullTwo
/return
}
|play a path based on some other condition
/if (${conditionmet}==TRUE) {
/echo conditionmet playing
/call PullThree
/return
}
/return
}
/return
Sub PullOne
/play pullone Normal Smart Fast Eval
/delay 10s ${AdvPath.Waypoints} < 1
/delay 3s ${Me.XTarget} >= 1
/play pullone Reverse Smart Fast Eval
/delay 10s ${AdvPath.Waypoints} < 1
/if (${Bool[${Me.XTarget[1].ID}]}==TRUE) {
/face id ${Me.XTarget[1].ID}
} else {
/face heading 65
}
/delay 1s
/return
Sub PullTwo
/play pulltwo Normal Smart Fast Eval
/delay 10s ${AdvPath.Waypoints} < 1
/delay 3s ${Me.XTarget} >= 1
/play pulltwo Reverse Smart Fast Eval
/delay 10s ${AdvPath.Waypoints} < 1
/if (${Bool[${Me.XTarget[1].ID}]}==TRUE) {
/face id ${Me.XTarget[1].ID}
} else {
/face heading 65
}
/delay 1s
/return
Sub PullThree
/play pullthree Normal Smart Fast Eval
/delay 10s ${AdvPath.Waypoints} < 1
/delay 3s ${Me.XTarget} >= 1
/play pullthree Reverse Smart Fast Eval
/delay 10s ${AdvPath.Waypoints} < 1
/if (${Bool[${Me.XTarget[1].ID}]}==TRUE) {
/face id ${Me.XTarget[1].ID}
} else {
/face heading 65
}
/delay 1s
/return
Add a new sub