Northnorial
Member
This script was made by Cykotitan.
I edited now, but it doesn't work anymore ...
Could anyone help me? oO
I edited now, but it doesn't work anymore ...
Could anyone help me? oO
PHP:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="TempleTP" enabled="yes">
<config name="config"><![CDATA[
validTowns = {1,2},
time = 3
]]></config>
<talkaction words="!t" event="script"><![CDATA[
domodlib('config')
local param = tonumber(param)
function doTP(cid)
doTeleportThing(cid, getTownTemplePosition(param))
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have been teleported to " .. getTownName(param) .. ".")
doSendMagicEffect(getTownTemplePosition(param), CONST_ME_TELEPORT)
end
if getTileInfo(getThingPos(cid)).protection and param and isInArray(validTowns, param) then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You will be teleported to " .. getTownName(param) .. " in " .. time .. " seconds.")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_WATERSPLASH)
addEvent(doTP(cid), time*1000, cid)
end
return TRUE
]]></talkaction>
</mod>