Ir para conteúdo

Featured Replies

  • Respostas 7
  • Visualizações 1.4k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • MaxSword.lua function onLogin(cid) if getPlayerSkillLevel(cid, 0) >= 35 then doPlayerSetRate(cid, 0, 0) end return true end function onAdvance(cid, skill, oldlevel, newlevel) if getPlayerSkil

  • SKILL_FIST = 0 SKILL_CLUB = 1 SKILL_SWORD = 2 SKILL_AXE = 3 SKILL_DISTANCE = 4 SKILL_SHIELD = 5 SKILL_FISHING = 6 SKILL__MAGLEVEL = 7 SKILL__LEVEL = 8

Postado

MaxSword.lua

function onLogin(cid)
if getPlayerSkillLevel(cid, 0) >= 35 then
doPlayerSetRate(cid, 0, 0)
end
return true
end




function onAdvance(cid, skill, oldlevel, newlevel)
if getPlayerSkillLevel(cid, 0) >= 35 then
doPlayerSetRate(cid, 0, 0)
end
return true
end

Tag

<event type="login" name="MaxSword" event="script" value="MaxSword.lua"/>
<event type="advance" name="MaxSwordd" event="script" value="MaxSword.lua"/> 

Login.lua

registerCreatureEvent(cid, "MaxSword")
registerCreatureEvent(cid, "MaxSwordd")

if getPlayerSkillLevel(cid, 0) >= 35 then

 

0 = ID Da skill

35 = Skill Maximo.

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