Author Topic: Targeting and teleporting subs - only for developers lol  (Read 6179 times)

0 Members and 1 Guest are viewing this topic.

Offline ThimottyTopic starter

  • Jr. Member
  • **
  • Posts: 61
  • Activity:
    0%
  • Reputation Power: 0
  • Thimotty has no influence.
  • Respect: +7
  • Referrals: 0
    • View Profile
Targeting and teleporting subs - only for developers lol
« on: September 23, 2009, 09:53:14 PM »
0
Here is my first contribution - my most used subs file.


Installation:
Just unzip the file "_ThimSubs_.zip" in the same folder with euox.exe


Usage:

1) The targeting sub:
In your code insert this:
Code: [Select]
call _ThimSubs_ choosetarget
set %somevar %temptarget
This will bring a targeting cursor in the game, waiting for you to target something. Once you target something it's ID will be stored into the "%somevar" variable.

2) The teleporting sub:
In your code insert this:
Code: [Select]
call _ThimSubs_ teleport_to_rune_in_book %runebook %rune %teleport_try %teleport_skill
this will teleport you to the rune number %rune in the runebook %runebook using the skill %teleport_skill and will try %teleport_try times on failure (for example if your chivalry skill is not enough).



Here is a sample script that uses both subs and will teleport you to each rune in 3 runebooks:
Code: [Select]

set %teleport_skill chiv  ; define the skill you will be using to teleport - chiv/mage
set %teleport_try 3       ; define how many times the script will try to teleport you on failure

event ExMsg #charID 3 1673 target your runebook 1
call _ThimSubs_ choosetarget
set %runebook1 %temptarget
wait 5

event ExMsg #charID 3 1673 target your runebook 2
call _ThimSubs_ choosetarget
set %runebook2 %temptarget
wait 5

event ExMsg #charID 3 1673 target your runebook 3
call _ThimSubs_ choosetarget
set %runebook3 %temptarget
wait 5

loop:
wait 1
for %counter 1 16
   {
   call _ThimSubs_ teleport_to_rune_in_book %runebook1 %counter %teleport_try %teleport_skill
   }
for %counter 1 16
   {
   call _ThimSubs_ teleport_to_rune_in_book %runebook2 %counter %teleport_try %teleport_skill
   }
for %counter 1 16
   {
   call _ThimSubs_ teleport_to_rune_in_book %runebook3 %counter %teleport_try %teleport_skill
   }

goto loop


I use those subs in almost all my scripts so i think they could be useful. And i know the semple script can be made much much more shorter, but i'm posting it as tutorial and I wanted  it to be as readable as possible.

Post Merge: September 23, 2009, 09:57:34 PM
Hmm i cannot see the attached file although if i edit the post in the advanced options it say it is there?!?!?!

There are 1 attachment(s) in this post. You must register and post an acceptable introduction to download
_ThimSubs_.zip
« Last Edit: September 23, 2009, 09:57:34 PM by Thimotty »

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13301
  • Activity:
    0%
  • 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: Targeting and teleporting subs - only for developers lol
« Reply #1 on: September 23, 2009, 10:51:18 PM »
0
You should be able to see it now that you are not restricted.  :)
« Last Edit: September 23, 2009, 10:53:24 PM by TrailMyx »
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline ThimottyTopic starter

  • Jr. Member
  • **
  • Posts: 61
  • Activity:
    0%
  • Reputation Power: 0
  • Thimotty has no influence.
  • Respect: +7
  • Referrals: 0
    • View Profile
Re: Targeting and teleporting subs - only for developers lol
« Reply #2 on: September 23, 2009, 10:55:52 PM »
0
Ahh i see now :P
Thanks

Offline Endless Night

  • Global Moderator
  • *
  • *
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +393
  • Referrals: 1
    • View Profile
Re: Targeting and teleporting subs - only for developers lol
« Reply #3 on: September 24, 2009, 08:01:05 AM »
0
Insteading of setting %Temptarget...  why not set #Result.  That would be more of a standard approach.

REturn xxxx 
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Offline 12TimesOver

  • Another Day, Another Vendetta
  • Global Moderator
  • *
  • *
  • Posts: 3694
  • Activity:
    0%
  • Reputation Power: 41
  • 12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.
  • Gender: Male
  • Respect: +321
  • Referrals: 2
    • View Profile
Re: Targeting and teleporting subs - only for developers lol
« Reply #4 on: May 31, 2011, 08:57:11 AM »
0
Thimmoty -

Is this submission still valid?

Anyone have a chance to test yet?

X
When they come for me I'll be sitting at my desk
     with a gun in my hand wearing a bulletproof vest
My, my, my how the time does fly
     when you know you're gonna die by the end of the night

Offline ThimottyTopic starter

  • Jr. Member
  • **
  • Posts: 61
  • Activity:
    0%
  • Reputation Power: 0
  • Thimotty has no influence.
  • Respect: +7
  • Referrals: 0
    • View Profile
Re: Targeting and teleporting subs - only for developers lol
« Reply #5 on: June 05, 2011, 08:32:00 PM »
0
If I remember correctly they have changed something for the runebooks and currently the script is not working. I'll try to find time to fix it within next few days.
...Or i'll simply upload my current library, but first need to check it if there is something inside i don't want to share :)
« Last Edit: June 05, 2011, 08:34:27 PM by Thimotty »

Offline Endless Night

  • Global Moderator
  • *
  • *
  • Posts: 5467
  • Activity:
    0%
  • Reputation Power: 62
  • Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!Endless Night is awe-inspiring!
  • Respect: +393
  • Referrals: 1
    • View Profile
Re: Targeting and teleporting subs - only for developers lol
« Reply #6 on: November 02, 2011, 08:17:19 PM »
0
Script moved to inactive scripts. (If you disagree with the move please pm me.)
Thank you for the script submission and we look forward to your return and this scripts finialization.

Comments
-- it is not necessarily to zip a single text file attachment.
Outlaw Josey Wales - "Manwink, A Long Gone Scripty, and Endless are always teasing us with their private sections lol. What there realy saying is scripters rule and users drool."
Briza - "Your a living breathing vortex of usefulness."

Tags: