Ir para conteúdo

Posts Recomendados

Instale essas funções no seu servidor, antes de tudo.

local points, storage = 30, 48481
function onUse(cid)
    if getAccountStorageValue(getPlayerAccountId(cid), storage < 1 then
        doPlayerSendTextMessage(cid, 27, "You received "..points.." points.")
        setAccountStorageValue(getPlayerAccountId(cid), storage, 1)
        doAccountAddPoints(cid, 30)
    else
       doPlayerSendCancel(cid, "You have already done this quest.")
    end
    return true
end

Isso já mexe com o DataBase, é coisa externa, isso é difícil fazer... É feito por script sim, só que tem conexão com o SQL (DataBase)

 

Hmm.. O script poderia ser feito com uma db.query dando update numa coluna na table accounts....

ele iria checar se a "Quest_Points" foi feita (1) ou não (0)

 

 

 

 

Instale essas funções no seu servidor, antes de tudo.

local points, storage = 30, 48481
function onUse(cid)
    if getAccountStorageValue(getPlayerAccountId(cid), storage < 1 then
        doPlayerSendTextMessage(cid, 27, "You received "..points.." points.")
        setAccountStorageValue(getPlayerAccountId(cid), storage, 1)
        doAccountAddPoints(cid, 30)
    else
       doPlayerSendCancel(cid, "You have already done this quest.")
    end
    return true
end

 

Essa seria a para a função doAccountAddPoints fucionar (lib) ? Se for eu ja tenho ela no meu sistema de shop...

 

 

  • 4 weeks later...
Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...