---------------------------------------------------------------
-- Script Name: TrailMyx's Runebook/Spellcast subs for OEUO
-- Author: TrailMyx
-- Version: v1.2
-- Shard OSI / FS: unk
-- Revision Date: 8/30/2010
-- Purpose: Collection of routines to automate the use of the runbook and spellcasting including:
--
-- TM_NewCastSpell(whichspell, whichtarget, castretrymax, waitdelay, recovery_delay) - casts spell with programmed wait times, targets, etc
-- TM_TravelFromRunebook(method, locindex, locindexend, rbook_in) - travel from runebook with known FINDID
-- TM_TravelFromNamedRunebook(method, locindex, locindexend, rbook_name) - travel from runebook with known NAME
-- TM_RandomRunebookTravel(method, locindex, locindexend, rbook_in) - generates a random destination from a given rune range
-- TM_TravelFromObject(method, object_in) - travels from objects like runes and boat keys
--
-- Examples:
-- while true do
-- for x=1,8 do
-- TM_TravelFromRunebook("re",x,x,"IWEPUVD") -- travels from rune locations 1 to 8 and then repeats
-- wait(200)
-- end
-- end
--
-- while true do
-- TM_TravelFromObject("re","YDTXCND") -- travel to boat key
-- TM_TravelFromObject("re","IWEPUVD") -- travel to rune book present location
-- end
--
-- TM_RandomRunebookTravel("re",1,3,"IWEPUVD") - recall to a random location within the range of 1-3 in runebook
-- TM_TravelFromNamedRunebook("ga",1,1,"Zippyy") - gate travel to rune location 1 in runebook named "Zippyy"
-- TM_TravelFromRunebook("ga",1,1,"IWEPUVD") - gate travel to rune location 1 and runebook id IWEPUVD
-- TM_NewCastSpell(28, "self", -1, 10, 20) - casts spell 28 (Greater Heal) on the spellcaster
--
-- Special Thanks:
--
-- Beta testers:
-- Bug testers:
--
---------------------------------------------------------------
I don't want to widely release these yet since they still probably have some fleas. But if you want to start playing with them, feel free.
Please Note:
These are required:
dofile("tm_oeuo_advjournalscan10.lua")
dofile("tm_subs_collection5.lua")
IMPORTANT!!!
You must save your Lua script before you run it, or else your "dofile" will not correctly include your file.