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

Spell Hirashin seal [need limit]

Natsume

Member
Joined
Aug 22, 2017
Messages
44
Reaction score
7
Hi there I have a script that I give below it is on the spell "hiraishin seal" needs to be the limit to put only one kunai. [Create Kunai -> If player say spell again remove kunai and create new mark to spell "hiraishin no jutsu" (Teleport to seal)]


Hiraishin Seal
Code:
local s = {5668,5669,5667}
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
function x(p, d)
local t = {{x=p.x,y=p.y-1,z=p.z},{x=p.x+1,y=p.y,z=p.z},{x=p.x,y=p.y+1,z=p.z},{x=p.x-1,y=p.y,z=p.z}}
return t[d+1]
end
function onCastSpell(cid, var)
local position1 = {x=getPlayerPosition(cid).x+1, y=getPlayerPosition(cid).y+1, z=getPlayerPosition(cid).z}
local pos = getCreaturePosition(cid)
local item = 7765
doCreateItem(item, getCreaturePosition(cid))
doSetItemActionId(item,)
local mystr = "return {x=xx,y=yy,z=zz}"
local mystr = string.gsub(mystr, "xx", pos.x)
local mystr = string.gsub(mystr, "yy", pos.y)
local mystr = string.gsub(mystr, "zz", pos.z)
local position112 = {x=getPlayerPosition(cid).x, y=getPlayerPosition(cid).y, z=getPlayerPosition(cid).z}
setPlayerStorageValue(cid, s[1], mystr)
setPlayerStorageValue(cid, s[2], os.time()+0)
setPlayerStorageValue(cid, s[3], 1)
for i = 1, 5 do
end
doCombat(cid, combat, var)
return true
end


Hiraishin no jutsu [Tealeport to seal position]
Code:
local s = {5668,5669,5667}
function onCastSpell(cid, var)
local parameters = { cid = cid, var = var}
k = getPlayerStorageValue(cid, s[2]) - os.time()
if k <= 0 then
t = loadstring(getPlayerStorageValue(cid, s[1]))()
local position1 = {x=getPlayerPosition(cid).x+1, y=getPlayerPosition(cid).y+1, z=getPlayerPosition(cid).z}
local position2 = {x=t.x+1, y=t.y+1, z=t.z}
doTeleportThing(cid, t)
local pos = getCreaturePosition(cid)
doSendMagicEffect(pos, 18)
setPlayerStorageValue(cid, s[3], -1)
else
doPlayerSendTextMessage(cid, 19, "Odczekaj "..k.." sekund.")
end
return true
end
 
Back
Top