ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: DeadIssue2 on April 14, 2009, 07:45:34 PM

Title: Detect mount/unmount?
Post by: DeadIssue2 on April 14, 2009, 07:45:34 PM
I know you can write a script that will tell if your poisoned by status but is there a way to check the status of your char as far as if it is mounted or not??

If you can I would want to write a short script for when dismounted hit the ground and it will automatically say all kill. Possibly with a journal scan as to who dismounted you and all kill them.
Title: Re: Detect mount/unmount?
Post by: TrailMyx on April 14, 2009, 07:53:38 PM
If you search your #CHARID, this will pass when you are mounted:

Code: [Select]
set %mount XXYYZZ1
finditem %mount C_ , #CHARID
if #FINDCNT > 0
  display ok MOUNTED!
stop

Just replace the XXYYZZ1 with your mount's #FINDID
Title: Re: Detect mount/unmount?
Post by: Cerveza on April 14, 2009, 08:01:59 PM
Possibly with a journal scan as to who dismounted you and all kill them.

That part right there is a toughy... to get the name you have to event property everyone around you looking for someone who matches your journal.

#enemyID would be another way to go, but kinda unreliable. Unfortunately it's about the only way to do it.

Code: [Select]
set %mount XXYYZZ1
repeat
finditem %mount C_ , #CHARID
if #findcnt > 0
{
finditem #enemyID
if #findcnt > 0
{
msg ALL KILL $
target 3s
set #ltargetID #enemyID
set #ltargetKind 1
event macro 22 0
}
}
until #false

Something like that might work
Title: Re: Detect mount/unmount?
Post by: DeadIssue2 on April 15, 2009, 05:14:55 AM
ohh that's very interesting. I hadn't thought of it like that at all.
Thank you both!
Title: Re: Detect mount/unmount?
Post by: Cerveza on April 15, 2009, 05:33:00 AM
Lemme know if that works.