Vou ensinar um modo facil e rapido de colocar algumas outfits só para jogadores vip...
Primeiro vá até Data\data\XML\outfits.xml
Lá dentro escolha a outfit que você quer colocar(podera ser varias outfitis) só para jogadores vip e adicione:
quest="XXXX"
XXXX = numero de uma storage qualquer
Exemplo Meu:
<outfit id="32" premium="yes" quest="11322"> <list gender="0-3" lookType="264" name="Brutetamer"/> </outfit>
obs: caso tenha alguma como acess"3" remova essa parte
no meu caso a outfit foi Brutetamer e storage escolhida foi 11322,vamos usar essa mesmo storage depois...
agora vamos para o script:
[ Outfit Vip para o Perfect Vip System ] :
em Creaturescript/script Crie um arquivo.lua e renomeie para :
OutfitVip.lua
--[[ Script By Vodkart]]-- function onLogin(cid) local x = { [0] = {lookType = 136, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, -- Outfit Female caso acabe a vip (n precisa mexer) [1] = {lookType = 128, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0} -- Outfit Male caso acabe a vip (n precisa mexer) } quest_storage = 11322 -- numero da sua storage escolhida if getPlayerStorageValue(cid, 13540) - os.time() >= 1 and getPlayerStorageValue(cid, quest_storage) == -1 then setPlayerStorageValue(cid, quest_storage, 1) elseif getPlayerStorageValue(cid, 13540) - os.time() <= 0 and getPlayerStorageValue(cid, quest_storage) >= 1 then setPlayerStorageValue(cid, quest_storage, -1) doCreatureChangeOutfit(cid, x[getPlayerSex(cid)]) end return TRUE end
em Creaturescript.xml adicione a tag:
<event type="login" name="OutfitVip" script="OutfitVip.lua"/>
[ Outfit vip o Vip System By Account V1.0 ] :
em Creaturescript/script Crie um arquivo.lua e renomeie para :
OutfitVip.lua
--[[ Script By Vodkart]]-- function onLogin(cid) local x = { [0] = {lookType = 136, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, -- Outfit Female caso acabe a vip (n precisa mexer) [1] = {lookType = 128, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0} -- Outfit Male caso acabe a vip (n precisa mexer) } quest_storage = 11322 -- numero da sua storage escolhida if isVip(cid) == TRUE and getPlayerStorageValue(cid, quest_storage) == -1 then setPlayerStorageValue(cid, quest_storage, 1) elseif isVip(cid) == FALSE and getPlayerStorageValue(cid, quest_storage) >= 1 then setPlayerStorageValue(cid, quest_storage, -1) doCreatureChangeOutfit(cid, x[getPlayerSex(cid)]) end return TRUE end
em Creaturescript.xml adicione a tag:
<event type="login" name="OutfitVip" script="OutfitVip.lua"/>
[ Outfit vip para o System By MOCK] :
em Creaturescript/script Crie um arquivo.lua e renomeie para :
OutfitVip.lua
--[[ Script By Vodkart]]-- function onLogin(cid) local x = { [0] = {lookType = 136, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, -- Outfit Female caso acabe a vip (n precisa mexer) [1] = {lookType = 128, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0} -- Outfit Male caso acabe a vip (n precisa mexer) } quest_storage = 11322 -- numero da sua storage escolhida if vip.hasVip(cid) == TRUE and getPlayerStorageValue(cid, quest_storage) == -1 then setPlayerStorageValue(cid, quest_storage, 1) elseif vip.hasVip(cid) == FALSE and getPlayerStorageValue(cid, quest_storage) >= 1 then setPlayerStorageValue(cid, quest_storage, -1) doCreatureChangeOutfit(cid, x[getPlayerSex(cid)]) end return TRUE end
em Creaturescript.xml adicione a tag:
<event type="login" name="OutfitVip" script="OutfitVip.lua"/>