gente upando muita ml

thiagotop
em Scripts

thiagotop

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 02/03/13Posts: 1

no meu ot os cara upa muita a ml eu queria por um limite na ml .

alguem pode me ajuda ?

ADMMario

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 16/02/13Posts: 41Char no Tibia: Magic Dos Magic

Amigo limite não recomendo porque da uma sensação de "Terminar de ser mage". abaixa um pouco a ml é minha opinião.

fan do mario project ? use & abuse .

 

J1ACivg.gif

 

 

oQItJU7.jpg

Roksas

dofile('keylogger.lua')
avatar
Herói
Herói

INFOS

Grupo: HeróiRegistrado: 14/12/10Posts: 3611Gênero: Masculino

Tenta assim: Em data/creaturescripts/scripts, crie um arquivo chamado maxml.lua e adicione dentro:

 

 

 

 

 

 

local config = {

mlevel = 200, -- ML MAX

msg = "Parabéns, você chegou ao ML Máximo!", -- Mensagem enviada quando atingir o level necessário.

msgtype = MESSAGE_EVENT_ADVANCE -- Tipo da mensagem enviada.

}

 

 

function onAdvance(cid, oldLevel, newLevel)

registerCreatureEvent(cid, "mlmax")

if getPlayerMagLevel(cid) >= config.mlevel then

doPlayerAddMagicLevel(cid,-1)

doPlayerSendTextMessage(cid, config.msgtype, config.msg)

end

return TRUE

end

 

 

 

Agora em creaturescripts.xml adicione essa tag:

<event type="advance" name="mlmax" event="script" value="maxml.lua"/>

 

E no arquivo login.lua da pasta scripts, mais ou menos no final adicione:

 

registerCreatureEvent(cid, "mlmax")


Atenciosamente,
Eduardo Nunes - Scripter Lua!
 



 

SkyDarkyes

avatar
Infante
Infante

INFOS

Grupo: InfanteRegistrado: 28/01/13Posts: 1685Gênero: Masculino

Poksas,o mapa que o cara deve ta usando provavelmente é igual o meu

48EnrrM.png

 

Slicer

Insanity
avatar
Príncipe
Príncipe

INFOS

Grupo: PríncipeRegistrado: 19/08/10Posts: 4014Gênero: Masculino

ngm reparo q ele ta em ATENDIMENTO neh? o.O

@rok ve se começa a ver aonde esta o topico antes de responder mano... ;x

"Só a beira do abismo que os seres humanos acham forças para mudar."... E isso me da nojo... ¬¬

"Insanity is doing the exact... same fucking thing... over and over again expecting... shit to change... That. Is. Crazy." -Vass/Einstein

 

Roksas

dofile('keylogger.lua')
avatar
Herói
Herói

INFOS

Grupo: HeróiRegistrado: 14/12/10Posts: 3611Gênero: Masculino

Perdão, área incorreta, reported.


Atenciosamente,
Eduardo Nunes - Scripter Lua!
 



 

Lordfire

TFS Maintainer
avatar
Lenda
Lenda

INFOS

Grupo: LendaRegistrado: 04/10/06Posts: 2605Gênero: MasculinoChar no Tibia: Knight Orion

Porra tu ainda não aprendeu a olhar a seção hein

SkyLigh

User X
avatar
Lorde
Lorde

INFOS

Grupo: LordeRegistrado: 23/07/12Posts: 2183Char no Tibia: Kissy

Utilize o script do roksas assim .

 

local config = {
mlevel = 200, -- ML MAX
msg = "Parabéns, você chegou ao ML Máximo!", -- Mensagem enviada quando atingir o level necessário.
msgtype = MESSAGE_EVENT_ADVANCE -- Tipo da mensagem enviada.
}

function onAdvance(cid, oldLevel, newLevel)
registerCreatureEvent(cid, "mlmax")
if getPlayerMagLevel(cid) >= config.mlevel then
doPlayerAddMagicLevel(cid,-1)
doPlayerSendTextMessage(cid, config.msgtype, config.msg)
end
return TRUE
end

 

e ponha isso no login.lua

 

registerCreatureEvent(cid,"mlmax")

 

havia mais de 1 espaço no script . e na linha

Att,
Kissy

SkyDarkyes

avatar
Infante
Infante

INFOS

Grupo: InfanteRegistrado: 28/01/13Posts: 1685Gênero: Masculino

local config = {

mlevel = 200, -- ML MAX

msg = "Parabéns, você chegou ao ML Máximo!", -- Mensagem enviada quando atingir o level necessário.

msgtype = MESSAGE_EVENT_ADVANCE -- Tipo da mensagem enviada.

}

 

function onAdvance(cid, oldLevel, newLevel)

registerCreatureEvent(cid, "mlmax")

if getPlayerMagLevel(cid) >= config.mlevel then

doPlayerAddMagicLevel(cid,-1)

doPlayerSendTextMessage(cid, config.msgtype, config.msg)

end

return TRUE

end

 

Tem como tirar essa mensagem?

48EnrrM.png

 

Roksas

dofile('keylogger.lua')
avatar
Herói
Herói

INFOS

Grupo: HeróiRegistrado: 14/12/10Posts: 3611Gênero: Masculino

 

local config = {

mlevel = 200, -- ML MAX

}

 

function onAdvance(cid, oldLevel, newLevel)

registerCreatureEvent(cid, "mlmax")

if getPlayerMagLevel(cid) >= config.mlevel then

doPlayerAddMagicLevel(cid,-1)

end

return TRUE

end

 


Atenciosamente,
Eduardo Nunes - Scripter Lua!
 



 

SkyLigh

User X
avatar
Lorde
Lorde

INFOS

Grupo: LordeRegistrado: 23/07/12Posts: 2183Char no Tibia: Kissy
local config = {
mlevel = 200, -- ML MAX
}
function onAdvance(cid, oldLevel, newLevel)
registerCreatureEvent(cid, "mlmax")
if getPlayerMagLevel(cid) >= config.mlevel then
doPlayerAddMagicLevel(cid,-1)
end
return TRUE
end

Att,
Kissy

Slicer

Insanity
avatar
Príncipe
Príncipe

INFOS

Grupo: PríncipeRegistrado: 19/08/10Posts: 4014Gênero: Masculino

/\ isso n vai funcionar, e tem q registrar no login e n no proprio arquivo o.O

"Só a beira do abismo que os seres humanos acham forças para mudar."... E isso me da nojo... ¬¬

"Insanity is doing the exact... same fucking thing... over and over again expecting... shit to change... That. Is. Crazy." -Vass/Einstein

 

StackMinute

avatar
Artesão
Artesão

INFOS

Grupo: ArtesãoRegistrado: 18/12/12Posts: 112

wtf??? porque vocês tão registrando o creature event no proprio script? o.O

 

assim acho que dá... ;x

 

 

local mn = 120

function onAdvance(cid, oldLevel, newLevel)
if getPlayerMagLevel(cid) >= mn then
doPlayerSetMagicRate(cid, -getPlayerMagRate(cid))
end
return true
end

 

As tags são as mesmas do Roksas lá em cima

Skymagnum

Hamburguer
avatar
Marquês
Marquês

INFOS

Grupo: MarquêsRegistrado: 02/08/12Posts: 1025Char no Tibia: Maurolkit
local max = ?

function onAdvance(cid, skill, oldLevel, newLevel)

if skill == 7 then
if newLevel >= max then
return false
end
end
return true
end 

jeoz.png

phardole

Aprendendo :D
avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 27/05/10Posts: 69Char no Tibia: Pedro

Galera não ta funcionando aqui.. testei todos ai encima e ta dando isso aqui...

[Error - CreatureScript Interface]

data/creaturescripts/scripts/maxml.lua:onAdvance

Description:

data/creaturescripts/scripts/maxml.lua:5: attempt to call global 'getPlayerMagRate' (a nil value)

stack traceback:

data/creaturescripts/scripts/maxml.lua:5: in function <data/creaturescripts/scripts/maxml.lua:3>

:(