Postado Outubro 31, 2018 6 anos @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
Postado Outubro 31, 2018 6 anos 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
Postado Outubro 31, 2018 6 anos @Joaovettor Cara...... Os mesmos erros e não deu certo ainda, nem uma dos 2
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.