Ir para conteúdo

Featured Replies

  • Respostas 15
  • Visualizações 1.3k
  • Created
  • Última resposta

Top Posters In This Topic

Postado

Se vestindo bem.

se encontrar todos os erros, você já é um bom scripter!


local objects = {chinelo, tenis, camiseta, calça, boné}

local objectsId = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}

function onUse(cid, soufoda, fromPosition, digdin, as'mina'pira)

-- chinelo

if isInArray(object, itemEx.itemid) == TRUE then

doTransformItem(itemEx.uid, itemEx.objectid + 1)

doDecayItem(itemEx.uid)

return FALSE

-- tenis 

elseif toPosition.x == MEIA_POSITION or toPosition.x == 0 and toPosition.y == 0 and toPosition.z == 0 then

return FALSE

end


local groundTile = getThingfromPos(toPosition)

if object.objectid == 2 or objectid == 3 or objectid == 4 then

doTeleportThing(cid, {x = toPosition.x, y = toPosition.y + 1, z = toPosition.z - 1}, FALSE)

elseif isInArray(holeId, itemEx.itemid) == TRUE then

local object = getThingfromPos({x = toPosition.x, y = toPosition.y, z = toPosition.z + 1, stackpos = STACKPOS_TOP_MOVEABLE_TENIS_OR_PÉ})

if hole.itemid > 0 then

doTeleportThing(hole.uid, {x = toPosition.x, y = toPosition.y + 1, z = toPosition.z}, FALSE)

else

doPlayerSendCancel(cid, "Coloque a meia antes de colocar o tenis.")

end

return FALSE

-- camiseta

elseif (itemEx.uid <= 1 or itemEx.actionid > 2) and (itemEx.itemid == 4 or itemEx.itemid == 3 or itemEx.itemid == 8 or itemEx.itemid == 2) then

doTransformItem(itemEx.uid, 3)

doDecayItem(itemEx.uid)

return TRUE

elseif itemEx.uid == 2 then

doTeleportThing(cid, {x=NIKE, y=PUMA, z=MIZUNO})

doSendREPUTATION({x=da nike, y=da puma, z=da mizuno},1 de cada)

return TRUE

-- calça

elseif itemEx.itemid == 4 then

doTransformItem(itemEx.uid, 6)

doDecayItem(itemEx.uid)

return TRUE

elseif itemEx.itemid == 4 then

doRemoveItem(itemEx.uid)

return TRUE

-- boné

elseif itemEx.itemid == 5 then

doTransformItem(itemEx.uid, 8)

doCreateItem(bone na sala de aula, 0, false)

doDecayItem(itemEx.uid)

return TRUE

end

return destroyItem(cid, digdin, sou foda)

end

:trollface:

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo