[Encerrado] Como Ganhar Crystal Coins ,Mount Doll e um Addon Doll

shuzin
Por shuzin
em Tópicos Sem Resposta

shuzin

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 02/03/13Posts: 93Char no Tibia: Frenetico Housedown

Tipo, pego lv 80, ganho 30k, pego lv 130 ganho 50k, pego lv 200 ganho 100k + mount doll + addon doll!

 

 

E como fazer para que meus player até lv 100 não percam bp quando morrem!

 

Obrigado a todos!

 

Estão me ajudando mto!

 

Sou mto grato a vocês!

murilo103

Só Jesus Salva!
avatar
Cavaleiro
Cavaleiro

INFOS

Grupo: CavaleiroRegistrado: 20/09/07Posts: 196Char no Tibia: Programadorfp

Crie um arquivo em data\creaturescripts\scripts chamado de premios.lua

 

 

local t = {

39001, {

[20] = {2160, 2, "Congratulations, you have achieved one of eleven goals! You have been awarded with 2 crystal coins!", 1},

[60] = {2160, 4, "Congratulations, you have achieved two of eleven goals! You have been awarded with 4 crystal coins!", 2},

[100] = {2160, 5, "Congratulations, you have achieved three of eleven goals! You have been awarded with 5 crystal coins!", 3},

[140] = {2160, 7, "Congratulations, you have achieved four of eleven goals! You have been awarded with 7 crystal coins!", 4},

[180] = {2160, 8, "Congratulations, you have achieved five of eleven goals! You have been awarded with 8 crystal coins!", 5},

[220] = {2160, 9, "Congratulations, you have achieved six of eleven goals! You have been awarded with 9 crystal coins!", 6},

[260] = {2160, 10, "Congratulations, you have achieved seven of eleven goals! You have been awarded with 10 crystal coins!", 7},

[300] = {2160, 11, "Congratulations, you have achieved eight of eleven goals! You have been awarded with 11 crystal coins!", 8},

[340] = {2160, 12, "Congratulations, you have achieved ten of eleven goals! You have been awarded with 12 crystal coins!", 9},

[380] = {2160, 13, "Congratulations, you have achieved all eleven goals! You have been awarded with 13 crystal coins!", 10}

}

}

function onAdvance(cid, skill, oldlevel, newlevel)

if skill == SKILL__LEVEL then

for level, v in pairs(t[2]) do

if oldlevel < level and getPlayerLevel(cid) >= level and getPlayerStorageValue(cid, t[1]) < v[4] then

doPlayerAddItem(cid, v[1], v[2])

doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, v[3])

setPlayerStorageValue(cid, t[1], v[4])

end

end

end

doPlayerSave(cid, true)

return true

end

 

 

 

e em login.lua você coloca.

registerCreatureEvent(cid, "PREMIOS")

 

Logo após você entra em creaturescript.xml

E coloca isso:

<event type="advance" name="PREMIOS" event="script" value="premios.lua"/>

uXme5bR.png

Feito por Gears!

 

Que todos fiquem com Deus, um grande abraço meu :) Murilo Loureiro.

shuzin

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 02/03/13Posts: 93Char no Tibia: Frenetico Housedown

vlw manoo, tu sabe de não dropar a bp até lv 100? :)

murilo103

Só Jesus Salva!
avatar
Cavaleiro
Cavaleiro

INFOS

Grupo: CavaleiroRegistrado: 20/09/07Posts: 196Char no Tibia: Programadorfp

Crie um arquivo em data\creaturescripts\scripts chamado de protecaolevel.lua

 

function onDeath(cid, corpse, deathList)

local config = {

onlypremium = false, -- se precisa ser premium para não perder nada

skills = false, -- se ao morrer vai perder skills

magic = false, -- se vai perder magic level

loot = false, -- se ao morrer o jogador irá perder o loot

level = 300 -- até que level irá proteger o player

}

if isPlayer(cid) and getPlayerLevel(cid) <= config.level then

if config.onlypremium == true and not isPremium(cid) then return TRUE end

if config.loot == false then doCreatureSetDropLoot(cid, false) end

if config.magic == false then doPlayerSetLossPercent(cid, false) end

if config.skills == false then doPlayerSetLossPercent(cid, false) end

return TRUE end return TRUE end

 

 

e em login.lua você coloca.

 

registerCreatureEvent(cid, "Protecao")

 

Logo após você entra em creaturescript.xml

E coloca isso:

<event type="death" name="Protecao" event="script" value="protecaolevel.lua"/>

uXme5bR.png

Feito por Gears!

 

Que todos fiquem com Deus, um grande abraço meu :) Murilo Loureiro.

BrStaff

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 12/12/11Posts: 9

Obrigado Murilo, tava precisando de um sistema desse para proteção de level. Muito obrigado mesmo!

murilo103

Só Jesus Salva!
avatar
Cavaleiro
Cavaleiro

INFOS

Grupo: CavaleiroRegistrado: 20/09/07Posts: 196Char no Tibia: Programadorfp

Autor do tópico, caso sua dúvida foi sanada, clique em Report >> \/ e reporte para algum moderador mover sua dúvida!

Obrigado.

uXme5bR.png

Feito por Gears!

 

Que todos fiquem com Deus, um grande abraço meu :) Murilo Loureiro.

shuzin

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 02/03/13Posts: 93Char no Tibia: Frenetico Housedown

Como eu faço para reportar?

murilo103

Só Jesus Salva!
avatar
Cavaleiro
Cavaleiro

INFOS

Grupo: CavaleiroRegistrado: 20/09/07Posts: 196Char no Tibia: Programadorfp

Já reportei, peço para algum moderador mover, e Shutzin mandei uma PM para você em seus recados, verifique, por favor.

uXme5bR.png

Feito por Gears!

 

Que todos fiquem com Deus, um grande abraço meu :) Murilo Loureiro.

Demonbholder

avatar
Infante
Infante

INFOS

Grupo: InfanteRegistrado: 13/10/08Posts: 1551Char no Tibia: Demonbholder

Tópico movido para a seção de dúvidas e pedidos resolvidos.

Oie :D

Stigal

don't ever stop...
avatar
Herói
Herói

INFOS

Grupo: HeróiRegistrado: 28/11/10Posts: 3402Gênero: Masculino
A questão neste tópico de suporte foi encerrada por falta de respostas. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta.

+ Caso a dúvida não tenha sido resolvida você poderá criar outro tópico solicitando ajuda.
* Lembre-se que é permitido dar UP no tópico a cada 24 horas para assim o destacar e manter movimentado.

VI6MDIG.png

 

"O fracasso é a oportunidade de se começar de novo inteligentemente"

Minhas Redes Sociais: Youtube | Página & Grupo | Steam  | Discord Xtibia | Skype: @mrooger

 

OTpanel