SH
dúvida

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

Por shuzin, 07 de mar. de 2013 em Tópicos Sem Resposta

resolvido
10
958
shuzinS
07 de março de 2013 às 22:54

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!

murilo103M
07 de março de 2013 às 23:35

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"/>

Editado Março 7 por murilo103

shuzinS
07 de março de 2013 às 23:42

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

murilo103M
07 de março de 2013 às 23:46

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"/>

BrStaffB
07 de março de 2013 às 23:49

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

murilo103M
07 de março de 2013 às 23:53

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

Obrigado.

shuzinS
08 de março de 2013 às 00:12

Como eu faço para reportar?

murilo103M
08 de março de 2013 às 00:15

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

08 de março de 2013 às 09:58

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

5 anos depois...
StigalS
21 de abril de 2018 às 02:42
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.