Ir para conteúdo

Linxs

Membro
  • Registro em

  • Última visita

Histórico de Curtidas

  1. Gostei
    Linxs deu reputação a Sanieg em (Resolvido)[Ajuda] Script por teletransporte   
  2. Gostei
    Linxs deu reputação a Fir3element em (Resolvido)[Ajuda] Script por teletransporte   
    local coin = 2152 local lever = {     [6029] = {150, 6570},     [6054] = {150, 6571},     [6055] = {150, 12717},     [6056] = {150, 12750}, } local pos = {x = 1000, y = 1000, z = 7} -- configure aqui function onUse(cid, item, fromPosition, itemEx, toPosition)     if not doPlayerRemoveItem(cid, coin, lever[item.actionid][1]) then         return doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR, "você precisa de "..lever[item.actionid][1].." " ..getItemNameById(coin))     end     doPlayerAddItem(cid, lever[item.actionid][2])     doPlayerSendTextMessage(cid, 22, "você pegou o " .. getItemNameById(lever[item.actionid][2]))     doSendMagicEffect(getCreaturePosition(cid), math.random(29,29))     doTeleportThing(cid, pos)     return true end
  3. Gostei
    Linxs deu reputação a Wakon em (Resolvido)[Ajuda] script necessário storage   
    Testa:
    local storage = 32444 local coin = 1967 local lever = { [6004] = {1,12698}, [6005] = {1,12713}, [6006] = {1,12723}, [6007] = {1,12751}, } function onUse(cid,item,fromPosition,itemEx,toPosition) if getPlayerStorageValue(cid, storage) <= 0 then     if doPlayerRemoveItem(cid,coin,lever[item.actionid][1]) == TRUE then setPlayerStorageValue(cid, storage, 1) doPlayerAddItem(cid,lever[item.actionid][2]) doPlayerSendTextMessage(cid,22,"Você pegou o " .. getItemNameById(lever[item.actionid][2])..".") doSendMagicEffect(getCreaturePosition(cid), 13) else doPlayerSendCancel(cid, "Você precisa de "..lever[item.actionid][1].." " ..getItemNameById(coin)..".") end else return doPlayerSendCancel(cid, "Você não pode trocar novamente.") end return true end

Informação Importante

Confirmação de Termo