eq2emu-content/Spells/Commoner/SetRecallPoint.lua
2025-08-07 00:00:06 +00:00

28 lines
734 B
Lua
Executable file

--[[
Script Name : Spells/Commoner/SetRecallPoint.lua
Script Author : neatz09
Script Date : 2019.10.12 09:10:20
Script Purpose :
Edit By : Devn00b: Implemented Bind Location check, as well as in combat check. 6/15/2022
--]]
function cast(Caster, Target)
canbind = GetCanBind(Caster)
incombat = (GetInfoStructUInt(Caster, "engaged_encounter") == 1)
if ( incombat == true)
then
SendMessage(Caster, "You cannot use Set Recall Point while in combat.", "red")
goto exit;
end
if( canbind == 0 )
then
SendMessage(Caster, "You cannot use Set Recall Point at this location. Please try in a city or suburb.", "red")
else
Bind(Caster)
end
::exit::
end