local reqActnId = 11111 -- Action id the hookshot will work on
local maxDstnce = 15 -- Max hookshot stretch lenght (in SQ)
function grappleAnim(parameters)
if (parameters.counter == 10) then
local fromPosition = getCreaturePosition(parameters.cid)
doTeleportThing(parameters.cid, parameters.toPosition, FALSE)
doSendMagicEffect(fromPosition, CONST_ME_POFF)
return TRUE
end
parameters.counter = parameters.counter + 1
doSendDistanceShoot(getCreaturePosition(parameters.cid), parameters.toPosition, CONST_ANI_THROWINGSTAR)
doSendDistanceShoot(getCreaturePosition(parameters.cid), parameters.toPosition, CONST_ANI_ARROW)
doSendDistanceShoot(getCreaturePosition(parameters.cid), parameters.toPosition, CONST_ANI_SMALLSTONE)
addEvent(grappleAnim, 100, parameters)
end
local useWorms = FALSE
local waterIds = {493, 4608, 4609, 4610, 4611, 4612, 4613, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isInArray(waterIds, itemEx.itemid) == TRUE then
if itemEx.itemid ~= 493 then
if useWorms == FALSE or useWorms == TRUE and doPlayerRemoveItem(cid, ITEM_WORM, 1) == TRUE then
if math.random(1, (100 + (getPlayerSkill(cid, SKILL_FISHING) / 10))) <= getPlayerSkill(cid, SKILL_FISHING) then
doPlayerAddItem(cid, ITEM_FISH, 1)
end
doPlayerAddSkillTry(cid, SKILL_FISHING, 1)
end
end
doSendMagicEffect(toPosition, CONST_ME_LOSEENERGY)
return TRUE
end
if (itemEx.actionid == reqActnId and getDistanceBetween(getCreaturePosition(cid), toPosition) <= maxDstnce) then
doSendDistanceShoot(fromPosition, toPosition, CONST_ANI_HUNTINGSPEAR)
doSendMagicEffect(toPosition, CONST_ME_BLOCKHIT)
local parameters = {cid = cid, toPosition = toPosition, counter = 0}
addEvent(grappleAnim, 100, parameters)
else
doPlayerSendCancel(cid, "Nothing to hook to in range.")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
end
return TRUE
end
Here We Are
i think you should Rep++ for this big scriptLua:local reqActnId = 11111 -- Action id the hookshot will work on local maxDstnce = 15 -- Max hookshot stretch lenght (in SQ) function grappleAnim(parameters) if (parameters.counter == 10) then local fromPosition = getCreaturePosition(parameters.cid) doTeleportThing(parameters.cid, parameters.toPosition, FALSE) doSendMagicEffect(fromPosition, CONST_ME_POFF) return TRUE end parameters.counter = parameters.counter + 1 doSendDistanceShoot(getCreaturePosition(parameters.cid), parameters.toPosition, CONST_ANI_THROWINGSTAR) doSendDistanceShoot(getCreaturePosition(parameters.cid), parameters.toPosition, CONST_ANI_ARROW) doSendDistanceShoot(getCreaturePosition(parameters.cid), parameters.toPosition, CONST_ANI_SMALLSTONE) addEvent(grappleAnim, 100, parameters) end local useWorms = FALSE local waterIds = {493, 4608, 4609, 4610, 4611, 4612, 4613, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625} function onUse(cid, item, fromPosition, itemEx, toPosition) if isInArray(waterIds, itemEx.itemid) == TRUE then if itemEx.itemid ~= 493 then if useWorms == FALSE or useWorms == TRUE and doPlayerRemoveItem(cid, ITEM_WORM, 1) == TRUE then if math.random(1, (100 + (getPlayerSkill(cid, SKILL_FISHING) / 10))) <= getPlayerSkill(cid, SKILL_FISHING) then doPlayerAddItem(cid, ITEM_FISH, 1) end doPlayerAddSkillTry(cid, SKILL_FISHING, 1) end end doSendMagicEffect(toPosition, CONST_ME_LOSEENERGY) return TRUE end if (itemEx.actionid == reqActnId and getDistanceBetween(getCreaturePosition(cid), toPosition) <= maxDstnce) then doSendDistanceShoot(fromPosition, toPosition, CONST_ANI_HUNTINGSPEAR) doSendMagicEffect(toPosition, CONST_ME_BLOCKHIT) local parameters = {cid = cid, toPosition = toPosition, counter = 0} addEvent(grappleAnim, 100, parameters) else doPlayerSendCancel(cid, "Nothing to hook to in range.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) end return TRUE end
Here We Are
i think you should Rep++ for this big scriptLua:local reqActnId = 11111 -- Action id the hookshot will work on local maxDstnce = 15 -- Max hookshot stretch lenght (in SQ) function grappleAnim(parameters) if (parameters.counter == 10) then local fromPosition = getCreaturePosition(parameters.cid) doTeleportThing(parameters.cid, parameters.toPosition, FALSE) doSendMagicEffect(fromPosition, CONST_ME_POFF) return TRUE end parameters.counter = parameters.counter + 1 doSendDistanceShoot(getCreaturePosition(parameters.cid), parameters.toPosition, CONST_ANI_THROWINGSTAR) doSendDistanceShoot(getCreaturePosition(parameters.cid), parameters.toPosition, CONST_ANI_ARROW) doSendDistanceShoot(getCreaturePosition(parameters.cid), parameters.toPosition, CONST_ANI_SMALLSTONE) addEvent(grappleAnim, 100, parameters) end local useWorms = FALSE local waterIds = {493, 4608, 4609, 4610, 4611, 4612, 4613, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625} function onUse(cid, item, fromPosition, itemEx, toPosition) if isInArray(waterIds, itemEx.itemid) == TRUE then if itemEx.itemid ~= 493 then if useWorms == FALSE or useWorms == TRUE and doPlayerRemoveItem(cid, ITEM_WORM, 1) == TRUE then if math.random(1, (100 + (getPlayerSkill(cid, SKILL_FISHING) / 10))) <= getPlayerSkill(cid, SKILL_FISHING) then doPlayerAddItem(cid, ITEM_FISH, 1) end doPlayerAddSkillTry(cid, SKILL_FISHING, 1) end end doSendMagicEffect(toPosition, CONST_ME_LOSEENERGY) return TRUE end if (itemEx.actionid == reqActnId and getDistanceBetween(getCreaturePosition(cid), toPosition) <= maxDstnce) then doSendDistanceShoot(fromPosition, toPosition, CONST_ANI_HUNTINGSPEAR) doSendMagicEffect(toPosition, CONST_ME_BLOCKHIT) local parameters = {cid = cid, toPosition = toPosition, counter = 0} addEvent(grappleAnim, 100, parameters) else doPlayerSendCancel(cid, "Nothing to hook to in range.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) end return TRUE end
guys
heba = siron mido
you will find heba in all siron mido threads
heba make stupid threads about scripts-then siron mido answer to be famous
- - - Updated - - -
http://otland.net/f132/items-teleport-182502/
http://otland.net/f132/hookshot-182676/#post1768398
http://otland.net/f81/promotion-using-action-180295/
Veronika idk siron mido in rl but its true siron help me in all scripts and there thread he tried to help me and he can't and cyko helped me and there othere threads limos helped me so im siron mido and cyko and limos wwwwwowwwww
gogo request? i am ready ...First: i didnt say i make that script bUSAHUasbu
Second: I find this script in my computer , not searched for it
Third:
GO REQUEST A SCRIPT NOW AND I MAKE IT AT THE MOMENT , BUT DONT THINK ABOUT EVENT..
Veronika shut up please and don't comment on me thread again and yea my english is bad :S cuz im not from usa
You don't need to be from USA to speak understandable english ;p
And yes, sirion don't made this script. Like ninja said, credits go to Molinero