Ir para conteúdo

[Movements] Mochila A Jato


lucasatak

Posts Recomendados

Creditos:Apocarai,Lucasatak

Versao: 8.50 e 8.54

Tipo:Movements

Explicaçao:Você tem que ter 100 gps (COLD COINS) na mao,depois disso,bote a bp of holding e depois ela irá começar a andar,para controla-lá aperte ctrl+setas!

 

vamo aos scripts,

 

vá em data/movements/scripts copie qualquer arquivo e renomeio para jetpack.lua e cole isto:

 

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

 

agora em data/movements/movements.xml cole isto:

 

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

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

 

creditos pra gentee !

 

DOWNLOAD JETPACK NORMAL!

DOWNLOAD Jetpack VOC

 

ABÇS !

 

SS

imagedq.jpg

Editado por lucasatak
Link para o comentário
Compartilhar em outros sites

Por vocation:

local coinID = ITEM_GOLD_COIN
local delay = 200
local minimo = 100
local storage = 50780
local voc = {4,8}

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 isInArray(voc, getPlayerVocation(cid)) then
   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
   else
       doPlayerSendCancel(cid, "You cannot equip.")
       return 0
       end
   return TRUE
end

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

 

So editar la em cima "voc", com os numeros das vocações que podem usar.

Delay é o intervalo entre um efeito e outro.

Storage é o numero para identificação se o jogador já está usando o item.

 

 

flw

Link para o comentário
Compartilhar em outros sites

Uso este servidor apenas para testes! mas olha ai..

 

 

[07/04/2010 15:00:06] Alissow OT Sever, version 0.3.9.

[07/04/2010 15:00:06] Compiled by: Comedinhasss

[07/04/2010 15:00:06] Created by: Alissow

[07/04/2010 15:00:06] Visit our blog for updates, reports, support and resources: http://www.sotserv.blogspot.com

 

[07/04/2010 15:00:06] >> Loading config (config.lua)

[07/04/2010 15:00:06] > Using plaintext encryption

[07/04/2010 15:00:06] >> Fetching blacklist

[07/04/2010 15:00:08] >> Loading RSA key

[07/04/2010 15:00:08] >> Starting SQL connection

[07/04/2010 15:00:08] >> Running Database Manager

[07/04/2010 15:00:08] > Optimized database.

[07/04/2010 15:00:08] >> Loading items

[07/04/2010 15:00:08] >> Loading groups

[07/04/2010 15:00:08] >> Loading vocations

[07/04/2010 15:00:08] >> Loading script systems

[07/04/2010 15:00:08] [Warning - Actions::registerEvent] Duplicate registered item id: 5908

[07/04/2010 15:00:08] [Warning - Actions::registerEvent] Duplicate registered item id: 2114

[07/04/2010 15:00:08] [Warning - Actions::registerEvent] Duplicate registered item id: 2332

[07/04/2010 15:00:08] [Warning - Actions::registerEvent] Duplicate registered item id: 2373

[07/04/2010 15:00:08] [Warning - Actions::registerEvent] Duplicate registered item id: 2074

[07/04/2010 15:00:08] [Warning - Actions::registerEvent] Duplicate registered item id: 5734

[07/04/2010 15:00:08] [Warning - Actions::registerEvent] Duplicate registered item id: 1214

[07/04/2010 15:00:08] [Warning - Actions::registerEvent] Duplicate registered item id: 1236

[07/04/2010 15:00:08] [Warning - Actions::registerEvent] Duplicate registered item id: 1254

[07/04/2010 15:00:08] [Warning - Actions::registerEvent] Duplicate registered item id: 3537

[07/04/2010 15:00:08] [Warning - Actions::registerEvent] Duplicate registered item id: 5100

[07/04/2010 15:00:08] [Warning - Actions::registerEvent] Duplicate registered item id: 5104

[07/04/2010 15:00:08] [Warning - Actions::registerEvent] Duplicate registered item id: 5118

[07/04/2010 15:00:08] [Warning - Actions::registerEvent] Duplicate registered item id: 5136

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 5139

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 5280

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 1211

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 1233

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 1251

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 3546

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 5109

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 5127

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 5142

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 5145

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 5283

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 5748

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 5749

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 6197

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 6194

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 6254

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 6251

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 6893

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 6902

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 4915

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 4918

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 1227

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 1229

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 5121

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 1245

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 1247

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 1256

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 1261

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 3540

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 3549

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 6896

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 1259

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 5130

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 6905

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 5292

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 5294

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 6265

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 6263

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 5103

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 5112

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 6208

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 6206

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2376

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2377

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2378

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2379

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2380

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2381

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2382

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2383

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2384

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2385

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2386

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2387

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2388

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2389

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2390

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2391

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2392

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2393

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2394

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2395

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2396

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2397

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2398

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2399

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2400

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2401

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2402

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2403

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2404

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2406

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2407

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2408

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2409

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2410

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2411

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2412

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2413

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2414

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2415

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2416

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2417

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2418

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2419

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2420

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2421

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2422

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2423

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2424

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2425

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2426

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2427

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2428

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2429

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2430

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2431

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2432

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2433

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2434

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2435

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2436

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2437

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2438

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2439

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2440

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2441

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2442

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2443

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2444

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2445

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2446

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2447

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2448

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2449

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2450

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2451

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2452

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2453

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 1749

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 1740

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 1740

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 1740

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 1749

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 1749

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 1749

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 1749

[07/04/2010 15:00:09] [Warning - Actions::registerEvent] Duplicate registered item id: 2417

[07/04/2010 15:00:10] [Warning - Actions::registerEvent] Duplicate registered item id: 4846

[07/04/2010 15:00:10] [Warning - Actions::registerEvent] Duplicate registered item uid: 3002

[07/04/2010 15:00:10] [Warning - Actions::registerEvent] Duplicate registered item uid: 3002

[07/04/2010 15:00:10] [Warning - Actions::registerEvent] Duplicate registered item uid: 3002

[07/04/2010 15:00:10] [Warning - Actions::registerEvent] Duplicate registered item uid: 3002

[07/04/2010 15:00:10] [Warning - Actions::registerEvent] Duplicate registered item uid: 3002

[07/04/2010 15:00:10] [Warning - BaseEvents::loadFromXml] Cannot open movements.xml file.

[07/04/2010 15:00:10] Line: 892, Info: Premature end of data in tag movements line 2

 

 

[07/04/2010 15:00:10] > ERROR: Unable to load MoveEvents!

Link para o comentário
Compartilhar em outros sites

Erro na tag xml:

 

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

 

flw

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...