Author Topic: Detect mount/unmount?  (Read 2412 times)

0 Members and 1 Guest are viewing this topic.

Offline DeadIssue2Topic starter

  • Sr. Member
  • *
  • Posts: 287
  • Activity:
    0%
  • Reputation Power: 3
  • DeadIssue2 has no influence.
  • Gender: Male
  • Respect: +21
  • Referrals: 1
    • View Profile
Detect mount/unmount?
« on: April 14, 2009, 07:45:34 PM »
0
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.

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13302
  • Activity:
    0.2%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Detect mount/unmount?
« Reply #1 on: April 14, 2009, 07:53:38 PM »
0
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
« Last Edit: April 14, 2009, 07:55:30 PM by TrailMyx »
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline Cerveza

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: Detect mount/unmount?
« Reply #2 on: April 14, 2009, 08:01:59 PM »
0
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
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Offline DeadIssue2Topic starter

  • Sr. Member
  • *
  • Posts: 287
  • Activity:
    0%
  • Reputation Power: 3
  • DeadIssue2 has no influence.
  • Gender: Male
  • Respect: +21
  • Referrals: 1
    • View Profile
Re: Detect mount/unmount?
« Reply #3 on: April 15, 2009, 05:14:55 AM »
0
ohh that's very interesting. I hadn't thought of it like that at all.
Thank you both!

Offline Cerveza

  • Hacksimus Maximus
  • Scripthack
  • *
  • Posts: 5857
  • Activity:
    0%
  • Reputation Power: 80
  • Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!Cerveza is awe-inspiring!
  • Gender: Male
  • So... Hows that Hopey-Changey thing working out?
  • Respect: +403
  • Referrals: 11
    • View Profile
Re: Detect mount/unmount?
« Reply #4 on: April 15, 2009, 05:33:00 AM »
0
Lemme know if that works.
XXXXXXXXXX________________________________________] 20%
I've forgotten more about this game then most people will ever know.
Thank you for controlling your children. Their manners reflect your love for them.
Give a man a fish and you feed him for a day. Don't teach a man to fish, and you feed yourself. He's a grown man. Fishing's not that hard.

Tags: