I am spoiled, need an op script for horses.

... A place to ask for help on any topic whether it be starting out to player killing to IT issues.
Rig
Posts: 1609
Joined: Wed Dec 16, 2015 8:00 pm
Location: JESUS

I am spoiled, need an op script for horses.

Postby Rig » Sat Sep 02, 2017 5:56 pm

So, I wanna have a script to set horses. I.e. horse razor : horse set to razor. Then I wanna hella use my aliases for ride and lead horses into that too. How do I do such things?! (Rig is too lazy to figure simple shit out)

Xylan
Posts: 106
Joined: Tue Jun 06, 2017 7:52 pm

Re: I am spoiled, need an op script for horses.

Postby Xylan » Sat Sep 02, 2017 8:12 pm

This is a tintin script that I use sometimes.

#var myhorse horse
#al myhorse {mh}
#al mh {#if {"%0" == ""} {#showme Your horse is currently set to '$myhorse'\n;#cr} {#showme Your horse is now set to '%0'\n;#cr;#var myhorse %0;}}
#al rmh {ride $myhorse}
#al lmh {lead $myhorse}
#al dmh {diag $myhorse}

These are the basics, but you can probably just change syntax into whatever mud client you use personally.

I have a more complex script that automatically assigns me my horse when I'm in a group, so I don't have to do anything but hit a button to ride, lead, and diag.

Rig
Posts: 1609
Joined: Wed Dec 16, 2015 8:00 pm
Location: JESUS

Re: I am spoiled, need an op script for horses.

Postby Rig » Sun Sep 03, 2017 6:35 pm

Does this work in zmud?!

IF not how would one convert this to zmud?!

Kryyg
Posts: 78
Joined: Mon Jul 03, 2017 9:52 am

Re: I am spoiled, need an op script for horses.

Postby Kryyg » Sun Sep 03, 2017 10:05 pm

I want a script that remembers the horse and its a rider. So when I'm chasing I can remember who is on what.

kalm
Posts: 40
Joined: Mon Oct 12, 2015 3:31 pm

Re: I am spoiled, need an op script for horses.

Postby kalm » Tue Sep 05, 2017 2:05 pm

i use this, its pretty simple but should work for you rig

#CLASS {HORSE}
#ALIAS l {lead @horse}
#ALIAS r {ride @horse}
#ALIAS dh {diagnose @horse}
#ALIAS eh {equip @horse horseeq}
#ALIAS lh {look @horse}
#ALIAS lh2 {look @horse2}
#ALIAS l2 {lead @horse2}
#ALIAS r2 {ride @horse2}
#ALIAS dh2 {diagnose @horse2}
#ALIAS eh2 {equip @horse2 horseeq}
#ALIAS horse {
#VAR horse {%1}
#SAY horse set to @horse.
}
#ALIAS horse2 {
#VAR horse2 {%1}
#SAY horse set to @horse2.
}
#CLASS 0

just type horse xxx or horse2 xxx and it will assign that as your horse. im sure it can be improved upon but im mega lazy and just cant be bothered so i make do with simple scripts.

Obviously put your own aliases is where applicable.

Rig
Posts: 1609
Joined: Wed Dec 16, 2015 8:00 pm
Location: JESUS

Re: I am spoiled, need an op script for horses.

Postby Rig » Tue Sep 05, 2017 2:45 pm

wooh, danke kalm

Tolveor
Posts: 213
Joined: Sat Apr 11, 2015 3:29 am
Location: Sarpsborg, Norway
Contact:

Re: I am spoiled, need an op script for horses.

Postby Tolveor » Wed Sep 06, 2017 9:49 pm

Kryyg
a horsehistory script ive found useful:

#ALIAS hh {
#IF ((%numparam > 0)&(%isnumber( %1))) {
horseNewhowmany = %1
#ECHO HorseHistory set to the last @horseNewhowmany horses.
horseHowMany = @horseNewHowMany
} {
#IF ((%numparam > 0)&(%1 == "clear")) {
#VAR HorseHistory ""
#VAR horseRec ""
#VAR horseNewHowMany ""
#ECHO HorseHistory cleared.
} {
#ECHO ""
#ECHO --- Last @horseHowMany Horses Seen ---
#LOOP %numitems( @horseHistory)-@horseHowMany,%numitems( @HorseHistory) {#ECHO %item( @horseHistory, %i)}
}
}
}
#VAR horseHistory {*Xierian* riding a wild stallion.|(*Qi* riding a |2|.wild stallion.)|*Qi* riding a wild stallion.} {}
#VAR horseRec {*Qi* riding a wild stallion.}
#VAR horseNewHowMany {0}
#VAR horseHowMany {10}
#TRIGGER {~*(%w)~* leaves {north|south|east|west|up|down}.} {
#IF (%numitems( @horseHistory) = 50) {#DELNITEM horseHistory 1} {#NOOP}
#VAR horseRec %expand( ~*%1~* is DISMOUNTED.)
#VAR HorseHistory %additem( @horseRec, @horseHistory)
}
#TRIGGER {~*(%w)~* is standing here.} {
#IF (%numitems( @horseHistory) = 50) {#DELNITEM horseHistory 1} {#NOOP}
#VAR horseRec %expand( ~*%1~* is DISMOUNTED.)
#VAR HorseHistory %additem( @horseRec, @horseHistory)
}
#TRIGGER {~*(%w)~* is standing here, riding a &mount~.} {
#IF (%numitems( @horseHistory) = 50) {#DELNITEM horseHistory 1} {#NOOP}
#VAR horseRec %expand( ~*%1~* riding a @mount~.)
#VAR HorseHistory %additem( @horseRec, @horseHistory)
}
#TRIGGER {~*(%w)~* is here, fighting *~, riding a &mount~.} {
#IF (%numitems( @horseHistory) = 50) {#DELNITEM horseHistory 1} {#NOOP}
#VAR horseRec %expand( ~*%1~* riding a @mount~.)
#VAR HorseHistory %additem( @horseRec, @horseHistory)
}
#TRIGGER {~*(%w)~* leaves * riding a &mount~.} {
#IF (%numitems( @horseHistory) = 50) {#DELNITEM horseHistory 1} {#NOOP}
#VAR horseRec %expand( ~*%1~* riding a @mount~.)
#VAR HorseHistory %additem( @horseRec, @horseHistory)
}
#TRIGGER {~*(%w)~* has arrived from * riding a &mount~.} {
#IF (%numitems( @horseHistory) = 50) {#DELNITEM horseHistory 1} {#NOOP}
#VAR horseRec %expand( ~*%1~* riding a @mount~.)
#VAR HorseHistory %additem( @horseRec, @horseHistory)
}
#TRIGGER {~*(%w)~* has arrived from {the north|the south|the east|the west|above|below}.} {
#IF (%numitems( @horseHistory) = 50) {#DELNITEM horseHistory 1} {#NOOP}
#VAR horseRec %expand( ~*%1~* is DISMOUNTED.)
#VAR HorseHistory %additem( @horseRec, @horseHistory)
}
#CLASS 0


Return to “Help and Newbie Area”

Who is online

Users browsing this forum: No registered users and 3 guests