Postado Abril 26, 2013 12 anos Preciso do script da "The Elemental Spheres Quest" eu tenhu uns aqui. mais axo que nao deve estar completo.data/actions/scripts ~~> Machine.lua local t = { [1] = {x=33183, y=32197, z=13}, [2] = {x=33331, y=32076, z=13}, [3] = {x=33265, y=32202, z=13}, [4] = {x=33087, y=32096, z=13} } function onUse(cid, item, fromPosition, itemEx, toPosition) if isInArray({7911, 7912}, item.itemid) == TRUE then if isInArray({33268, 33269}, toPosition.x) == TRUE and toPosition.y == 31830 and toPosition.z == 10 and getPlayerStorageValue(cid, 65102) >= 20 then local v = getPlayerVocation(cid) if v > 4 then v = v - 4 end setPlayerStorageValue(cid, 65102, getPlayerStorageValue(cid, 65102) - 20) doSendMagicEffect(getThingPos(cid), CONST_ME_TELEPORT) doTeleportThing(cid, t[v]) doSendMagicEffect(t[v], CONST_ME_TELEPORT) end toPosition.x = toPosition.x + (item.itemid == 7911 and 1 or -1) local get = getTileItemById(toPosition, item.itemid == 7911 and 7912 or 7911) doTransformItem(get.uid, get.itemid + 4) doTransformItem(item.uid, item.itemid + 4) else toPosition.x = toPosition.x + (item.itemid == 7915 and 1 or -1) local get = getTileItemById(toPosition, item.itemid == 7915 and 7916 or 7915) doTransformItem(get.uid, get.itemid - 4) doTransformItem(item.uid, item.itemid - 4) end return TRUE end data/actions/scripts > soils.lua local t = { [8298] = {useOn = 8572, transform = 8576, effect = CONST_ME_BIGPLANTS}, [8299] = {useOn = 8573, transform = 8575}, [8302] = {useOn = 8571, transform = 8574, effect = CONST_ME_ICEATTACK}, [8303] = {useOn = 8567, create = 1495} } function onUse(cid, item, fromPosition, itemEx, toPosition) local v = t[item.itemid] if v and v.useOn == itemEx.itemid then if v.transform then doTransformItem(itemEx.uid, v.transform) elseif v.create then doCreateItem(v.create, 1, toPosition) end if v.effect then doSendMagicEffect(toPosition, v.effect) end doDecayItem(itemEx.uid) doChangeTypeItem(item.uid, item.type - 1) return TRUE end end data/actions/scripts/quests > lever.lua local config = { player = {}, -- don't touch item = {}, -- don't touch items = {8304, 8305, 8300, 8306}, stand = { {x = 33268, y = 31830, z = 11}, {x = 33268, y = 31838, z = 11}, {x = 33272, y = 31834, z = 11}, {x = 33264, y = 31834, z = 11} }, itemsPos = { {x = 33268, y = 31829, z = 11}, {x = 33268, y = 31839, z = 11}, {x = 33273, y = 31834, z = 11}, {x = 33263, y = 31834, z = 11} }, new = { {x = 33263, y = 31831, z = 12}, {x = 33272, y = 31831, z = 12}, {x = 33263, y = 31840, z = 12}, {x = 33272, y = 31840, z = 12} }, monster = {"Lord of the elements", {x = 33267, y = 31835, z = 12}} } function onUse(cid, item, fromPosition, itemEx, toPosition) if (item.itemid == 1946) then return doTransformItem(item.uid, item.itemid - 1) end for i = 1, 4 do config.player[i] = getTopCreature(config.stand[i]).uid end if (isPlayer(config.player[1]) and isPlayer(config.player[2]) and isPlayer(config.player[3]) and isPlayer(config.player[4])) then if (isSorcerer(config.player[1]) and isDruid(config.player[2]) and isPaladin(config.player[3]) and isKnight(config.player[4])) then for i = 1, 4 do config.item[i] = getTileItemById(config.itemsPos[i], config.items[i]).uid end if (#config.item == 4 and config.item[1] > 0 and config.item[2] > 0 and config.item[3] > 0 and config.item[4] > 0) then for i = 1, 4 do doSendMagicEffect(config.stand[i], CONST_ME_POFF) doTeleportThing(config.player[i], config.new[i]) doSendMagicEffect(config.new[i], CONST_ME_TELEPORT) doRemoveItem(config.item[i]) end doSummonCreature(config.monster[1], config.monster[2]) doTransformItem(item.uid, item.itemid + 1) else doCreatureSay(cid, "You need one player of each vocation having completed the Elemental Spheres quest and also carrying the elemental rare item.", TALKTYPE_ORANGE_1, nil, nil, {x=33268, y=31835, z=10}) end else doCreatureSay(cid, "You need one player of each vocation having completed the Elemental Spheres quest and also carrying the elemental rare item.", TALKTYPE_ORANGE_1, nil, nil, {x=33268, y=31835, z=10}) end else doCreatureSay(cid, "You need one player of each vocation having completed the Elemental Spheres quest and also carrying the elemental rare item.", TALKTYPE_ORANGE_1, nil, nil, {x=33268, y=31835, z=10}) end return true end em action.xml tenho isso Nao sei se ta faltando alguma coisa tipo um MOVIMENT queria que me desse uma ajuda .ver se falta algo e tal. Obrigado! Editado Abril 26, 2013 12 anos por marcoscorrea (veja o histórico de edições) Vaga de Scripts, Pro projeto.Contato PM
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.