Ir para conteúdo

Featured Replies

Postado

Olá TK, bom.. queria que alguém pudesse me ajudar nessa script, pois meu conhecimento e limitado nessa área.

 Somente para poder ao usar a Scroll se tiver level 1, Ou seja se tiver level maior não usar.

 

Script :

Citar

function onUse(cid, item, frompos, item2, topos)

if getVocationInfo(getPlayerVocation(cid)).name == "Madara" then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce ja é um madara!")
else
doPlayerSetVocation(cid, 210)
doCreatureSay(cid, "Madara Owns!!", 19) 
doSendMagicEffect(getCreaturePosition(cid), 224)
doCreatureChangeOutfit(cid, {lookType = 368})
if getPlayerStorageValue(cid, 5) < 1 then
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+100)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+100)
setPlayerStorageValue(cid, 5, 1)
end
setPlayerStorageValue(cid, 16200, 1)
setPlayerStorageValue(cid, 300, (getPlayerVocation(cid)))
doRemoveItem(item.uid)
end
return TRUE
end

+ Rep obrigado a todos !

Resolvido por esnio12

Ir para solução
  • Respostas 7
  • Visualizações 571
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Olá,  boa noite, tente assim.   function onUse(cid, item, frompos, item2, topos) if getPlayerLevel(cid) == 1 then else doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTENOUGHLEVEL) doSendMagicEf

Postado

Tenta assim:

 

function onUse(cid, item, frompos, item2, topos)

if getPlayerLevel(cid) == 0 then
if getVocationInfo(getPlayerVocation(cid)).name == "Madara" then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce ja é um madara!")
else
doPlayerSetVocation(cid, 210)
doCreatureSay(cid, "Madara Owns!!", 19) 
doSendMagicEffect(getCreaturePosition(cid), 224)
doCreatureChangeOutfit(cid, {lookType = 368})
if getPlayerStorageValue(cid, 5) < 1 then
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+100)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+100)
setPlayerStorageValue(cid, 5, 1)
end
setPlayerStorageValue(cid, 16200, 1)
setPlayerStorageValue(cid, 300, (getPlayerVocation(cid)))
doRemoveItem(item.uid)
end
end
return TRUE
end

 

Postado
  • Autor
2 horas atrás, movie disse:

Tenta assim:

 


function onUse(cid, item, frompos, item2, topos)

if getPlayerLevel(cid) == 0 then
if getVocationInfo(getPlayerVocation(cid)).name == "Madara" then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce ja é um madara!")
else
doPlayerSetVocation(cid, 210)
doCreatureSay(cid, "Madara Owns!!", 19) 
doSendMagicEffect(getCreaturePosition(cid), 224)
doCreatureChangeOutfit(cid, {lookType = 368})
if getPlayerStorageValue(cid, 5) < 1 then
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+100)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+100)
setPlayerStorageValue(cid, 5, 1)
end
setPlayerStorageValue(cid, 16200, 1)
setPlayerStorageValue(cid, 300, (getPlayerVocation(cid)))
doRemoveItem(item.uid)
end
end
return TRUE
end

 

 

funfo não, nem da pra usar o item.

Postado
5 minutos atrás, leozincorsair disse:

funfo não, nem da pra usar o item.

 

Apareceu erro na distro?

 

 Tenta assim:

 

function onUse(cid, item, frompos, item2, topos)

if getPlayerLevel(cid) = 0 then
if getVocationInfo(getPlayerVocation(cid)).name == "Madara" then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce ja é um madara!")
else
doPlayerSetVocation(cid, 210)
doCreatureSay(cid, "Madara Owns!!", 19) 
doSendMagicEffect(getCreaturePosition(cid), 224)
doCreatureChangeOutfit(cid, {lookType = 368})
if getPlayerStorageValue(cid, 5) < 1 then
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+100)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+100)
setPlayerStorageValue(cid, 5, 1)
end
setPlayerStorageValue(cid, 16200, 1)
setPlayerStorageValue(cid, 300, (getPlayerVocation(cid)))
doRemoveItem(item.uid)
end
end
return TRUE
end

 

Postado
function onUse(cid, item, frompos, item2, topos)
if getPlayerLevel(cid) >= 1 then
doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTENOUGHLEVEL)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
return true
end
if getVocationInfo(getPlayerVocation(cid)).name == "Madara" then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce ja é um madara!")
else
doPlayerSetVocation(cid, 210)
doCreatureSay(cid, "Madara Owns!!", 19) 
doSendMagicEffect(getCreaturePosition(cid), 224)
doCreatureChangeOutfit(cid, {lookType = 368})
if getPlayerStorageValue(cid, 5) < 1 then
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+100)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+100)
setPlayerStorageValue(cid, 5, 1)
end
setPlayerStorageValue(cid, 16200, 1)
setPlayerStorageValue(cid, 300, (getPlayerVocation(cid)))
doRemoveItem(item.uid)
end
return TRUE
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.7k

Informação Importante

Confirmação de Termo