• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Action [MOD] Grappler!

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
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

Last edited:
how does this work, please explain more clearly or show youtube film/screenshots :)
 
Sorry, but I just wrote it myself.

Will add screenshots later.
 
Its already been released, and yours is very buggy xD cause who wants to go into trees and walls n stuff? xD
 
Only if you make the mistake to give stuff in your house action id 1337 :p
 
yeah guys you dont get how it works, you have to set what it can "grapple" if you will. Good job.
 
That's wierd if you're actually in the statue :s
You should make so you come beside the statue :s
 
Back
Top