shuzin 1 Postado Março 8, 2013 Share Postado Março 8, 2013 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! Link para o comentário https://xtibia.com/forum/topic/209307-encerrado-como-ganhar-crystal-coins-mount-doll-e-um-addon-doll/ Compartilhar em outros sites More sharing options...
murilo103 42 Postado Março 8, 2013 Share Postado Março 8, 2013 (editado) 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 8, 2013 por murilo103 Link para o comentário https://xtibia.com/forum/topic/209307-encerrado-como-ganhar-crystal-coins-mount-doll-e-um-addon-doll/#findComment-1482772 Compartilhar em outros sites More sharing options...
shuzin 1 Postado Março 8, 2013 Autor Share Postado Março 8, 2013 vlw manoo, tu sabe de não dropar a bp até lv 100? Link para o comentário https://xtibia.com/forum/topic/209307-encerrado-como-ganhar-crystal-coins-mount-doll-e-um-addon-doll/#findComment-1482778 Compartilhar em outros sites More sharing options...
murilo103 42 Postado Março 8, 2013 Share Postado Março 8, 2013 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"/> Link para o comentário https://xtibia.com/forum/topic/209307-encerrado-como-ganhar-crystal-coins-mount-doll-e-um-addon-doll/#findComment-1482783 Compartilhar em outros sites More sharing options...
BrStaff 1 Postado Março 8, 2013 Share Postado Março 8, 2013 Obrigado Murilo, tava precisando de um sistema desse para proteção de level. Muito obrigado mesmo! Link para o comentário https://xtibia.com/forum/topic/209307-encerrado-como-ganhar-crystal-coins-mount-doll-e-um-addon-doll/#findComment-1482786 Compartilhar em outros sites More sharing options...
murilo103 42 Postado Março 8, 2013 Share Postado Março 8, 2013 Autor do tópico, caso sua dúvida foi sanada, clique em Report >> \/ e reporte para algum moderador mover sua dúvida! Obrigado. Link para o comentário https://xtibia.com/forum/topic/209307-encerrado-como-ganhar-crystal-coins-mount-doll-e-um-addon-doll/#findComment-1482787 Compartilhar em outros sites More sharing options...
shuzin 1 Postado Março 8, 2013 Autor Share Postado Março 8, 2013 Como eu faço para reportar? Link para o comentário https://xtibia.com/forum/topic/209307-encerrado-como-ganhar-crystal-coins-mount-doll-e-um-addon-doll/#findComment-1482791 Compartilhar em outros sites More sharing options...
murilo103 42 Postado Março 8, 2013 Share Postado Março 8, 2013 Já reportei, peço para algum moderador mover, e Shutzin mandei uma PM para você em seus recados, verifique, por favor. Link para o comentário https://xtibia.com/forum/topic/209307-encerrado-como-ganhar-crystal-coins-mount-doll-e-um-addon-doll/#findComment-1482792 Compartilhar em outros sites More sharing options...
Demonbholder 420 Postado Março 8, 2013 Share Postado Março 8, 2013 Tópico movido para a seção de dúvidas e pedidos resolvidos. Link para o comentário https://xtibia.com/forum/topic/209307-encerrado-como-ganhar-crystal-coins-mount-doll-e-um-addon-doll/#findComment-1482865 Compartilhar em outros sites More sharing options...
Stigal 585 Postado Abril 21, 2018 Share Postado Abril 21, 2018 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. Link para o comentário https://xtibia.com/forum/topic/209307-encerrado-como-ganhar-crystal-coins-mount-doll-e-um-addon-doll/#findComment-1733961 Compartilhar em outros sites More sharing options...
Posts Recomendados