Ir para conteúdo
Banner com Efeitos

Featured Replies

Postado

@Joaovettor Para se transformar:

function onCastSpell(cid, var)
local male = 350
local female = 351
local sex = getPlayerSex(cid)
if sex == 0 and getPlayerVocation(cid) == 22 and getPlayerStorageValue(cid, 17200) <= 0 then
doPlayerSetVocation(cid, 25)
setPlayerStorageValue(cid, getPlayerStorageValue(cid, 17200) +1)
doCreatureChangeOutfit(cid, male)
elseif sex == 1 and getPlayerVocation(cid) == 22 and getPlayerStorageValue(cid, 17200) <= 0 then
doPlayerSetVocation(cid, 25)
setPlayerStorageValue(cid, getPlayerStorageValue(cid, 17200) +1) 
doCreatureChangeOutfit(cid, female) 
else
doPlayerSendCancel(cid, "Você não é paladin ou já está com a magia ativada")
end
return true
end

 

 

 

 

Para reverter:

 

function onCastSpell(cid, var)
local male = {lookType = 152, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 3}
local female = {lookType = 156, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 3}
local sex = getPlayerSex(cid)
if sex == 0 and getPlayerVocation(cid) == 25 and getPlayerStorageValue(cid, 17200) >= 1 then
doPlayerSetVocation(cid, 22)
setPlayerStorageValue(cid, getPlayerStorageValue(cid, 17200) -1)
doCreatureChangeOutfit(cid, male)
elseif sex == 1 and getPlayerVocation(cid) == 25 and getPlayerStorageValue(cid, 17200) >= 1 then
doPlayerSetVocation(cid, 22)
setPlayerStorageValue(cid, getPlayerStorageValue(cid, 17200) -1)
doCreatureChangeOutfit(cid, female)
else
doPlayerSendCancel(cid, "Você não pode usar esta magia")
end
return true
end 

  • Respostas 17
  • Visualizações 1.2k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Mathias Kenfi
    Mathias Kenfi

    Aumente o attackspeed da vocacao 7 e simples   Segue o script \/     function onCastSpell (cid, var) local store,exausted = 156201,30 -- exaust na talk if getPlayerStora

Postado
3 minutos atrás, Zazeros disse:

@Joaovettor Para se transformar:

function onCastSpell(cid, var)
local male = 350
local female = 351
local sex = getPlayerSex(cid)
if sex == 0 and getPlayerVocation(cid) == 22 and getPlayerStorageValue(cid, 17200) <= 0 then
doPlayerSetVocation(cid, 25)
setPlayerStorageValue(cid, getPlayerStorageValue(cid, 17200) +1)

doSetCreatureOutfit(cid, male, -1)

elseif sex == 1 and getPlayerVocation(cid) == 22 and getPlayerStorageValue(cid, 17200) <= 0 then
doPlayerSetVocation(cid, 25)
setPlayerStorageValue(cid, getPlayerStorageValue(cid, 17200) +1) 

doSetCreatureOutfit(cid, female, -1)

else
doPlayerSendCancel(cid, "Você não é paladin ou já está com a magia ativada")
end
return true
end

 

 

 

 

Para reverter:

 

function onCastSpell(cid, var)
local male = {lookType = 152, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 3}
local female = {lookType = 156, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 3}
local sex = getPlayerSex(cid)
if sex == 0 and getPlayerVocation(cid) == 25 and getPlayerStorageValue(cid, 17200) >= 1 then
doPlayerSetVocation(cid, 22)
setPlayerStorageValue(cid, getPlayerStorageValue(cid, 17200) -1)

doSetCreatureOutfit(cid, male, -1)

elseif sex == 1 and getPlayerVocation(cid) == 25 and getPlayerStorageValue(cid, 17200) >= 1 then
doPlayerSetVocation(cid, 22)
setPlayerStorageValue(cid, getPlayerStorageValue(cid, 17200) -1)
doSetCreatureOutfit(cid, female, -1)
else
doPlayerSendCancel(cid, "Você não pode usar esta magia")
end
return true
end 

 

function onCastSpell(cid, var)
local male = 350
local female = 351
local sex = getPlayerSex(cid)
if sex == 0 and getPlayerVocation(cid) == 22 and getPlayerStorageValue(cid, 17200) <= 0 then
doPlayerSetVocation(cid, 25)
setPlayerStorageValue(cid, getPlayerStorageValue(cid, 17200) +1)

doSetCreatureOutfit(cid, male, -1)

elseif sex == 1 and getPlayerVocation(cid) == 22 and getPlayerStorageValue(cid, 17200) <= 0 then
doPlayerSetVocation(cid, 25)
setPlayerStorageValue(cid, getPlayerStorageValue(cid, 17200) +1) 

doSetCreatureOutfit(cid, female, -1)

else
doPlayerSendCancel(cid, "Você não é paladin ou já está com a magia ativada")
end
return true
end

 

 

 

function onCastSpell(cid, var)
local male = {lookType = 152, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 3}
local female = {lookType = 156, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 3}
local sex = getPlayerSex(cid)
if sex == 0 and getPlayerVocation(cid) == 25 and getPlayerStorageValue(cid, 17200) >= 1 then
doPlayerSetVocation(cid, 22)
setPlayerStorageValue(cid, getPlayerStorageValue(cid, 17200) -1)

doSetCreatureOutfit(cid, male, -1)

elseif sex == 1 and getPlayerVocation(cid) == 25 and getPlayerStorageValue(cid, 17200) >= 1 then
doPlayerSetVocation(cid, 22)
setPlayerStorageValue(cid, getPlayerStorageValue(cid, 17200) -1)
doSetCreatureOutfit(cid, female, -1)
else
doPlayerSendCancel(cid, "Você não pode usar esta magia")
end
return true
end

 

SE NAO DER CERTO TENTA ESSE

Para se transformar:

function onCastSpell(cid, var)
local male = 350
local female = 351
local sex = getPlayerSex(cid)
if sex == 0 and getPlayerVocation(cid) == 22 and getPlayerStorageValue(cid, 17200) <= 0 then
doPlayerSetVocation(cid, 25)
setPlayerStorageValue(cid, getPlayerStorageValue(cid, 17200) +1)

doSetCreatureOutfit(cid, male, -1)

elseif sex == 1 and getPlayerVocation(cid) == 22 and getPlayerStorageValue(cid, 17200) <= 0 then
doPlayerSetVocation(cid, 25)
setPlayerStorageValue(cid, getPlayerStorageValue(cid, 17200) +1) 

doSetCreatureOutfit(cid, female, -1)

else
doPlayerSendCancel(cid, "Você não é paladin ou já está com a magia ativada")
end
return doCombat(cid, combat, var)
end

 

 

 

 

Para reverter:

 

function onCastSpell(cid, var)
local male = {lookType = 152, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 3}
local female = {lookType = 156, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 3}
local sex = getPlayerSex(cid)
if sex == 0 and getPlayerVocation(cid) == 25 and getPlayerStorageValue(cid, 17200) >= 1 then
doPlayerSetVocation(cid, 22)
setPlayerStorageValue(cid, getPlayerStorageValue(cid, 17200) -1)

doSetCreatureOutfit(cid, male, -1)

elseif sex == 1 and getPlayerVocation(cid) == 25 and getPlayerStorageValue(cid, 17200) >= 1 then
doPlayerSetVocation(cid, 22)
setPlayerStorageValue(cid, getPlayerStorageValue(cid, 17200) -1)
doSetCreatureOutfit(cid, female, -1)
else
doPlayerSendCancel(cid, "Você não pode usar esta magia")
end
return doCombat(cid, combat, var)
end

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo