Postado Setembro 7, 2021 3 anos Olá Pessoal, tudo bem com vocês? Espero que Simmm! minha duvida é a seguinte, como eu faço para que Players Free Account, Tivessem acesso a somente 2 Outfits? vou colocar o id das 2 male 2 famales abaixo, se alguem puder me ajudar ficaria muuuito grato ++ Male Free: looktype: 128,130 Female Free: looktype: 136,141 Male Premium: looktype: 129,131,132,133,134 Female Premium: looktype: 137,138,139,140,142 /home/ot/data/creaturescripts/scripts*loguin.Lua Citar function onLogin(player) player:loadVipData() player:updateVipTime() player:registerEvent("Shop") local loginStr = "Welcome to " .. configManager.getString(configKeys.SERVER_NAME) .. "!" if player:getLastLoginSaved() <= 0 then loginStr = loginStr .. " Please choose your outfit." player:sendOutfitWindow() else if loginStr ~= "" then player:sendTextMessage(MESSAGE_STATUS_DEFAULT, loginStr) end loginStr = string.format("Your last visit on Tibia : %s.", os.date("%a %b %d %X %Y", player:getLastLoginSaved())) end player:sendTextMessage(MESSAGE_STATUS_DEFAULT, loginStr) local mensagem_premium = "Welcome to the tibia, You have 10% Exp for you Premium Account" local mensagem_free = "You have 0% extra experience because you are still a free account, do not lose the bonus and buy your premium at TibiaVikings/Donate" if player:isPremium(cid) then player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, mensagem_premium) else player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, mensagem_free) end -- Promotion if player:isPremium() then if player:getVocation():getId() ~= 0 and player:getVocation():getId() < 5 and player:getStorageValue(30018) == 1 then player:setVocation(player:getVocation():getId() + 4) end else if player:getVocation():getId() ~= 0 and player:getVocation():getId() > 4 then player:setVocation(player:getVocation():getId() - 4) end end -- Outfits if not player:isPremium() then if player:getSex() == PLAYERSEX_FEMALE then local outfit = player:getOutfit() if outfit.lookType > 139 then player:setOutfit({lookType = 136, lookHead = 78, lookBody = 106, lookLegs = 58, lookFeet = 95}) end else local outfit = player:getOutfit() if outfit.lookType > 131 then player:setOutfit({lookType = 128, lookHead = 78, lookBody = 106, lookLegs = 58, lookFeet = 95}) end end end -- Premium system if player:isPremium() then player:setStorageValue(43434, 1) elseif player:getStorageValue(43434) == 1 then player:setStorageValue(43434, 0) if player:getVocation():getId() > 0 then player:teleportTo({x = 32369, y = 32241, z = 7}) player:setTown(Town("Thais")) end end -- Vip Bonus player:registerEvent("Exp_Extra") -- Spear registerCreatureEvent(cid, "spear") -- Events player:registerEvent("PlayerDeath") player:registerEvent("kills") player:registerEvent("Tasks") return true end
Postado Setembro 11, 2021 3 anos Em data/XML/Outfits terá algo parecido com: <outfit id="1" premium="0"> <list gender="0" lookType="801" name="Citizen"/> <list gender="1" lookType="832" name="Citizen"/> </outfit> Bastta por premium="0" nos outfits premium. Os que ficarem com 0, ficarão disponíveis para free. Testa e me conta se deu certo ! ? mídias sociais talk to me vídeos
Postado Setembro 12, 2021 3 anos Autor O unico poblema é que meu servidor é TFS 1.2, dentro da pasta XML Só tem (commands.XML-groups.xml-quests.xml-stages.xml-vocations.xml)
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.