Darad
New Member
- Joined
- Jun 23, 2009
- Messages
- 119
- Reaction score
- 1
Item that hooks on anything with actionid 1337. If you miss anything in the script gimme a call, I'll build it in!
Good to use in quests!
Explanation found here (Grappling Gun - Grappling Gun)
How it works
- Use the grappler on an object, the porting start, poof you're there.
mods/Grappler.xml
If you like feel free to rep me
Good to use in quests!
Explanation found here (Grappling Gun - Grappling Gun)
How it works
- Use the grappler on an object, the porting start, poof you're there.
mods/Grappler.xml
PHP:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Grappler" version="1.0" author="Darad @ Babylon" enabled="yes">
<item id="7425" article="a" name="grappler">
<attribute key="weight" value="1200"/>
</item>
<config name="grappler_config"><![CDATA[
config = {
actionID = 1337
}
]]></config>
<action itemid="7425" allowfaruse="1" event="buffer"><![CDATA[
-- function onUse(cid, item, fromPosition, itemEx, toPosition)
domodlib('grappler_config')
if(itemEx.actionid ~= config.actionID) then
doPlayerSendCancel(cid, 'Cannot grab onto that.')
return false
end
local function doDistance()
doSendDistanceShoot(getCreaturePosition(cid), toPosition, CONST_ANI_SNIPERARROW)
doSendDistanceShoot(getCreaturePosition(cid), toPosition, CONST_ANI_HUNTINGSPEAR)
end
local function doTeleport()
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GROUNDSHAKER)
doTeleportThing(cid, getClosestFreeTile(cid, toPosition, false))
end
addEvent(doDistance, 0)
addEvent(doDistance, 500)
addEvent(doDistance, 800)
addEvent(doDistance, 1100)
addEvent(doDistance, 1400)
addEvent(doDistance, 1600)
addEvent(doDistance, 1800)
addEvent(doDistance, 1900)
addEvent(doTeleport, 2000)
]]></action>
</mod>
If you like feel free to rep me
Attachments
-
grappler.jpg170.5 KB · Views: 346 · VirusTotal
Last edited: