Ir para conteúdo
  • 0

[Ajuda] Quest De Exp


Pergunta

3 respostass a esta questão

Posts Recomendados

  • 0

Tente:

 

function onUse(cid, item)

local config = {
     expToAdd = 1000,
     storageQuest = 2063
}

  if getPlayerStorageValue(cid, config.storageQuest) <= 0 then
     doPlayerAddExperience(cid, config.expToAdd)
     doPlayerSendTextMessage(cid, 27, "You have received ".. config.expToAdd .." experience points.")
     setPlayerStorageValue(cid, config.storageQuest, 1)
  else
     doPlayerSendCancel(cid, "You already have done this quest.")
  end
return true
end

 

flw

Link para o comentário
https://xtibia.com/forum/topic/150986-ajuda-quest-de-exp/#findComment-997500
Compartilhar em outros sites

×
×
  • Criar Novo...