Kuro o Shiniga 87 Postado Janeiro 16, 2011 Share Postado Janeiro 16, 2011 Olá Galera Venho Mostrar Um Script Bem Interessante Addon Por Level :tongue2: O Jogador Só Poderá Fazer O Addon Se Ele Estiver O Level Necessário Para Aquele Addon Que Ele Escolheu Fazer Aconselho Por Bonus Nos Addons Para Os Jogadores Achar Mais Divertidos Vamos Ao Que Interessa :biggrin: Creature Event Xml Adicione <event type="advance" name="Addons" event="script" value="Addons.lua"/> Depois Em Data\Creaturescripts\Scripts\Login.lua Adicione registerCreatureEvent(cid, "Addons") Depois Crie Um Arquivo Lua Com O Nome Addons E Adicione function onAdvance(cid, skill, oldLevel, newLevel) --- Other Config --- local TextType = MESSAGE_STATUS_CONSOLE_ORANGE --- Citizen --- local citizentext = "Agora Você Tem O Citizen Addons." local citizenlevel = 30 local citizenstorage = 11500 --- Hunter --- local huntertext = "Agora Você Tem O Hunter Addons." local hunterlevel = 50 local hunterstorage = 11505 --- Mage --- local magetext = "Agora Você Tem O Mage Addons." local magelevel = 60 local magestorage = 11510 --- Knight --- local knighttext = "Agora Você Tem O Knight Addons." local knightlevel = 70 local knightstorage = 11515 --- Noble --- local nobletext = "Agora Você Tem O Nobleman Addons." local noblelevel = 90 local noblestorage = 11520 --- Summoner --- local summonertext = "Agora Você Tem O Summoner Addons." local summonerlevel = 100 local summonerstorage = 11525 --- Warrior --- local Warriortext = "Agora Você Tem O Warrior Addons." local Warriorlevel = 120 local Warriorstorage = 11530 --- Barbarian --- local Barbariantext = "Agora Você Tem O Barbarian Addons." local Barbarianlevel = 125 local Barbarianstorage = 11605 --- Druid --- local Druidtext = "Agora Você Tem O Druid Addons." local Druidlevel = 130 local Druidstorage = 11535 --- Wizard --- local Wizardtext = "Agora Você Tem O Wizard Addons." local Wizardlevel = 135 local Wizardstorage = 11540 --- Oriental --- local Orientaltext = "Agora Você Tem O Oriental Addons." local Orientallevel = 150 local Orientalstorage = 11545 --- Pirate --- local Piratetext = "Agora Você Tem O Pirate Addons." local Piratelevel = 155 local Piratestorage = 11550 --- Assassin --- local Assassintext = "Agora Você Tem O Assassin Addons." local Assassinlevel = 170 local Assassinstorage = 11555 --- Beggar --- local Beggartext = "Agora Você Tem O Beggar Addons." local Beggarlevel = 175 local Beggarstorage = 11560 --- Shaman --- local Shamantext = "Agora Você Tem O Shaman Addons." local Shamanlevel = 270 local Shamanstorage = 11565 --- Norse --- local Norsetext = "Agora Você Tem O Norseman Addons." local Norselevel = 180 local Norsestorage = 11570 --- Nightmare --- local Nightmaretext = "Agora Você Tem O Nightmare Addons." local Nightmarelevel = 190 local Nightmarestorage = 11575 --- Jester --- local Jestertext = "Agora Você Tem O Jester Addons." local Jesterlevel = 200 local Jesterstorage = 11580 --- Brotherhood --- local Brotherhoodtext = "Agora Você Tem O Brotherhood Addons." local Brotherhoodlevel = 220 local Brotherhoodstorage = 11585 --- Demonhunter --- local Demonhuntertext = "Agora Você Tem O Demonhunter Addons." local Demonhunterlevel = 240 local Demonhunterstorage = 11590 --- Yalaharian --- local Yalahariantext = "Agora Você Tem O Yalaharian Addons." local Yalaharianlevel = 245 local Yalaharianstorage = 11595 --- Warmaster --- local Warmastertext = "Agora Você Tem O Warmaster Addons." local Warmasterlevel = 260 local Warmasterstorage = 11600 --- Citizen --- if (skill == SKILL__LEVEL) then if(newLevel >= citizenlevel) then if(getPlayerStorageValue(cid, citizenstorage) == -1)then doPlayerAddOutfit(cid, 136, 3) doPlayerAddOutfit(cid, 128, 3) setPlayerStorageValue(cid, citizenstorage, 1) doPlayerSendTextMessage(cid, TextType, citizentext) end end end --- Hunter --- if (skill == SKILL__LEVEL) then if(newLevel >= hunterlevel) then if(getPlayerStorageValue(cid, hunterstorage) == -1)then doPlayerAddOutfit(cid, 137, 3) doPlayerAddOutfit(cid, 129, 3) setPlayerStorageValue(cid, hunterstorage, 1) doPlayerSendTextMessage(cid, TextType, huntertext) end end end --- Mage --- if (skill == SKILL__LEVEL) then if(newLevel >= magelevel) then if(getPlayerStorageValue(cid, magestorage) == -1)then doPlayerAddOutfit(cid, 138, 3) doPlayerAddOutfit(cid, 130, 3) setPlayerStorageValue(cid, magestorage, 1) doPlayerSendTextMessage(cid, TextType, magetext) end end end --- Knight --- if (skill == SKILL__LEVEL) then if(newLevel >= knightlevel) then if(getPlayerStorageValue(cid, knightstorage) == -1)then doPlayerAddOutfit(cid, 139, 3) doPlayerAddOutfit(cid, 131, 3) setPlayerStorageValue(cid, knightstorage, 1) doPlayerSendTextMessage(cid, TextType, knighttext) end end end --- Nobleman and Noblewoman --- if (skill == SKILL__LEVEL) then if(newLevel >= noblelevel) then if(getPlayerStorageValue(cid, noblestorage) == -1)then doPlayerAddOutfit(cid, 140, 3) doPlayerAddOutfit(cid, 132, 3) setPlayerStorageValue(cid, noblestorage, 1) doPlayerSendTextMessage(cid, TextType, nobletext) end end end --- Summoner --- if (skill == SKILL__LEVEL) then if(newLevel >= summonerlevel) then if(getPlayerStorageValue(cid, summonerstorage) == -1)then doPlayerAddOutfit(cid, 141, 3) doPlayerAddOutfit(cid, 133, 3) setPlayerStorageValue(cid, summonerstorage, 1) doPlayerSendTextMessage(cid, TextType, summonertext) end end end --- Warrior --- if (skill == SKILL__LEVEL) then if(newLevel >= Warriorlevel) then if(getPlayerStorageValue(cid, Warriorstorage) == -1)then doPlayerAddOutfit(cid, 142, 3) doPlayerAddOutfit(cid, 134, 3) setPlayerStorageValue(cid, Warriorstorage, 1) doPlayerSendTextMessage(cid, TextType, Warriortext) end end end --- Barbarian --- if (skill == SKILL__LEVEL) then if(newLevel >= Barbarianlevel) then if(getPlayerStorageValue(cid, Barbarianstorage) == -1)then doPlayerAddOutfit(cid, 147, 3) doPlayerAddOutfit(cid, 143, 3) setPlayerStorageValue(cid, Barbarianstorage, 1) doPlayerSendTextMessage(cid, TextType, Barbariantext) end end end --- Druid --- if (skill == SKILL__LEVEL) then if(newLevel >= Druidlevel) then if(getPlayerStorageValue(cid, Druidstorage) == -1)then doPlayerAddOutfit(cid, 148, 3) doPlayerAddOutfit(cid, 144, 3) setPlayerStorageValue(cid, Druidstorage, 1) doPlayerSendTextMessage(cid, TextType, Druidtext) end end end --- Wizard --- if (skill == SKILL__LEVEL) then if(newLevel >= Wizardlevel) then if(getPlayerStorageValue(cid, Wizardstorage) == -1)then doPlayerAddOutfit(cid, 149, 3) doPlayerAddOutfit(cid, 145, 3) setPlayerStorageValue(cid, Wizardstorage, 1) doPlayerSendTextMessage(cid, TextType, Wizardtext) end end end --- Oriental --- if (skill == SKILL__LEVEL) then if(newLevel >= Orientallevel) then if(getPlayerStorageValue(cid, Orientalstorage) == -1)then doPlayerAddOutfit(cid, 150, 3) doPlayerAddOutfit(cid, 146, 3) setPlayerStorageValue(cid, Orientalstorage, 1) doPlayerSendTextMessage(cid, TextType, Orientaltext) end end end --- Pirate --- if (skill == SKILL__LEVEL) then if(newLevel >= Piratelevel) then if(getPlayerStorageValue(cid, Piratestorage) == -1)then doPlayerAddOutfit(cid, 155, 3) doPlayerAddOutfit(cid, 151, 3) setPlayerStorageValue(cid, Piratestorage, 1) doPlayerSendTextMessage(cid, TextType, Piratetext) end end end --- Assassin --- if (skill == SKILL__LEVEL) then if(newLevel >= Assassinlevel) then if(getPlayerStorageValue(cid, Assassinstorage) == -1)then doPlayerAddOutfit(cid, 156, 3) doPlayerAddOutfit(cid, 152, 3) setPlayerStorageValue(cid, Assassinstorage, 1) doPlayerSendTextMessage(cid, TextType, Assassintext) end end end --- Beggar --- if (skill == SKILL__LEVEL) then if(newLevel >= Beggarlevel) then if(getPlayerStorageValue(cid, Beggarstorage) == -1)then doPlayerAddOutfit(cid, 157, 3) doPlayerAddOutfit(cid, 153, 3) setPlayerStorageValue(cid, Beggarstorage, 1) doPlayerSendTextMessage(cid, TextType, Beggartext) end end end --- Shaman --- if (skill == SKILL__LEVEL) then if(newLevel >= Shamanlevel) then if(getPlayerStorageValue(cid, Shamanstorage) == -1)then doPlayerAddOutfit(cid, 158, 3) doPlayerAddOutfit(cid, 154, 3) setPlayerStorageValue(cid, Shamanstorage, 1) doPlayerSendTextMessage(cid, TextType, Shamantext) end end end --- Norse --- if (skill == SKILL__LEVEL) then if(newLevel >= Norselevel) then if(getPlayerStorageValue(cid, Norsestorage) == -1)then doPlayerAddOutfit(cid, 252, 3) doPlayerAddOutfit(cid, 251, 3) setPlayerStorageValue(cid, Norsestorage, 1) doPlayerSendTextMessage(cid, TextType, Norsetext) end end end --- Nightmare --- if (skill == SKILL__LEVEL) then if(newLevel >= Nightmarelevel) then if(getPlayerStorageValue(cid, Nightmarestorage) == -1)then doPlayerAddOutfit(cid, 269, 3) doPlayerAddOutfit(cid, 268, 3) setPlayerStorageValue(cid, Nightmarestorage, 1) doPlayerSendTextMessage(cid, TextType, Nightmaretext) end end end --- Jester --- if (skill == SKILL__LEVEL) then if(newLevel >= Jesterlevel) then if(getPlayerStorageValue(cid, Jesterstorage) == -1)then doPlayerAddOutfit(cid, 270, 3) doPlayerAddOutfit(cid, 273, 3) setPlayerStorageValue(cid, Jesterstorage, 1) doPlayerSendTextMessage(cid, TextType, Jestertext) end end end --- Brotherhood --- if (skill == SKILL__LEVEL) then if(newLevel >= Brotherhoodlevel) then if(getPlayerStorageValue(cid, Brotherhoodstorage) == -1)then doPlayerAddOutfit(cid, 279, 3) doPlayerAddOutfit(cid, 278, 3) setPlayerStorageValue(cid, Brotherhoodstorage, 1) doPlayerSendTextMessage(cid, TextType, Brotherhoodtext) end end end --- Demonhunter --- if (skill == SKILL__LEVEL) then if(newLevel >= Demonhunterlevel) then if(getPlayerStorageValue(cid, Demonhunterstorage) == -1)then doPlayerAddOutfit(cid, 288, 3) doPlayerAddOutfit(cid, 289, 3) setPlayerStorageValue(cid, Demonhunterstorage, 1) doPlayerSendTextMessage(cid, TextType, Demonhuntertext) end end end --- Yalaharian --- if (skill == SKILL__LEVEL) then if(newLevel >= Yalaharianlevel) then if(getPlayerStorageValue(cid, Yalaharianstorage) == -1)then doPlayerAddOutfit(cid, 324, 3) doPlayerAddOutfit(cid, 325, 3) setPlayerStorageValue(cid, Yalaharianstorage, 1) doPlayerSendTextMessage(cid, TextType, Yalahariantext) end end end --- Warmaster --- if (skill == SKILL__LEVEL) then if(newLevel >= Warmasterlevel) then if(getPlayerStorageValue(cid, Warmasterstorage) == -1)then doPlayerAddOutfit(cid, 336, 3) doPlayerAddOutfit(cid, 335, 3) setPlayerStorageValue(cid, Warmasterstorage, 1) doPlayerSendTextMessage(cid, TextType, Warmastertext) end end end return true end E Isso Galera : Link para o comentário https://xtibia.com/forum/topic/149563-addon-por-level/ Compartilhar em outros sites More sharing options...
Vodkart 1515 Postado Janeiro 16, 2011 Share Postado Janeiro 16, 2011 Dá para fazer uma tabela e deixar o script bem menor em amigo Link para o comentário https://xtibia.com/forum/topic/149563-addon-por-level/#findComment-989227 Compartilhar em outros sites More sharing options...
Kuro o Shiniga 87 Postado Janeiro 16, 2011 Autor Share Postado Janeiro 16, 2011 Sim Sim Mais Não Tenho Muito Tempo Para Mexer kkk Mais Vlw Vou Ver Se Consigo Um Tempo Para Diminuir Ele :smile_positivo: Link para o comentário https://xtibia.com/forum/topic/149563-addon-por-level/#findComment-989231 Compartilhar em outros sites More sharing options...
Pokerangers 17 Postado Julho 12, 2013 Share Postado Julho 12, 2013 Mano, No meu sv, Não possui Creature Event, Nesse caso, Oque Fazer? Aguardando Link para o comentário https://xtibia.com/forum/topic/149563-addon-por-level/#findComment-1538760 Compartilhar em outros sites More sharing options...
ddanton 0 Postado Julho 17, 2013 Share Postado Julho 17, 2013 DAHORA MESMO MAIS VC SABE FAZER ADDONS POR VOCAÇÃO SE VC SOUBER ME ENSINA REP++ ADD EU AI MANOW SKYPE; DDANTON741 Link para o comentário https://xtibia.com/forum/topic/149563-addon-por-level/#findComment-1540343 Compartilhar em outros sites More sharing options...
Posts Recomendados