Jump to content
  • 0
amarelax

[Resolvido] scripts de adicionar montaria para todos por vocação

Question

Versão do Servidor: TFS - 1.2
Tipo de Script: creaturescript
Código:
 
local storage = 4545

function onLogin(cid)
    local player = Player(cid)

    if player:getStorageValue(storage) ~= 1 then
    for i = 1, 177 do
    player:addMount(i)
    end
    
    player:setStorageValue(storage, 1)
    
    end
    return true
end

queria que só tal vocação recebesse todas montarias.

Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 1
Spoiler
local storage = 4545
local VocId = 2 --Id da vocação. 

function onLogin(cid)
    local player = Player(cid)

    if player:getStorageValue(storage) ~= 1 and player:getVocation():getId() == VocId then
    for i = 1, 177 do
    player:addMount(i)
    end
    
    player:setStorageValue(storage, 1)
    
    end
    return true

 

 

Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×
×
  • Create New...