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

[Movements] JetPack 1.0

Sucuri

New Member
Joined
Apr 3, 2010
Messages
1
Reaction score
0
Credits: Apocarai, Lucasatak (xtibia) I am the lucasatak
Version: 8:50 and 8:54
Type: Movements

Explanation: You have to have gps 100 (COLD COINS) in hand, after which the boat bp of holding and then it will start moving to tighten controls, there CTRL + < > /\ \/!

go to the scripts,

go a data / Movements / scripts copy any file and rename to jetpack.lua and paste this:


local coinID = ITEM_GOLD_COIN
local delay = 200
local minimo = 100
local storage = 50780

local condition1 = createConditionObject(CONDITION_INFIGHT)
setConditionParam(condition1, CONDITION_PARAM_TICKS, -1)

--------------------------------------------------------------------------------
local function StopFly(cid)
if (getPlayerStorageValue(cid, storage) == 1) then
setPlayerStorageValue(cid, storage, 0)
doRemoveCondition(cid, CONDITION_INFIGHT)
end
return TRUE
end

local function fly(cid, prevpos)
local pos = getThingPos(cid)
local newpos = getPlayerLookPos(cid)
if getPlayerSlotItem(cid, CONST_SLOT_BACKPACK).itemid == 2365 then
if pos.x == prevpos.x and pos.y == prevpos.y and pos.z == prevpos.z then
newpos.stackpos = 253
if doTileQueryAdd(cid, newpos) == 1 and not (getTilePzInfo(newpos) or isCreature(getThingFromPos(newpos).uid)) then
doTeleportThing(cid, newpos, TRUE)
doSendMagicEffect(pos, 36)
end
end
return addEvent(fly, delay, cid, pos)
end
end

function onEquip(cid, item, slot)
if (getPlayerItemCount(cid, coinID) > minimo and getPlayerStorageValue(cid, storage) ~= 1) then
setPlayerStorageValue(cid, storage, 1)
doPlayerRemoveItem(cid, coinID, minimo)
addEvent(fly, delay, cid, getThingPos(cid))
doAddCondition(cid,condition1)
elseif (getPlayerStorageValue(cid, storage) == 1) then
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "You cannot equip this now!")
else
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "You do not have enough coins!")
end
return TRUE
end

function onDeEquip(cid, item, slot)
return StopFly(cid)
end

now in data/movements/movements.xml paste this:

<movement type="Equip" itemid="2365" event="script" value="jetpack.lua"/>
<movement type="DeEquip" itemid="2365" event="script" value="jetpack.lua"/>

MEGAUPLOAD - The leading online storage and file delivery service JETPACK.

MEGAUPLOAD - The leading online storage and file delivery service JETPACK VOCATION

imagedq.jpg


REP++
 
Last edited:
Back
Top