OTServ
¿Quieres reaccionar a este mensaje? Regístrate en el foro con unos pocos clics o inicia sesión para continuar.
Dirección Ip
[CreatureScrip] Addons Por Nivel 3
Conectarse

Recuperar mi contraseña

Buscar
 
 

Resultados por:
 

 


Rechercher Búsqueda avanzada

Mejores posteadores
XxStroksxX (463)
[CreatureScrip] Addons Por Nivel Vote1111[CreatureScrip] Addons Por Nivel Vote2111[CreatureScrip] Addons Por Nivel Vote3111 
~*~[:Đαяќ:]~[:тιβια:]~*~ (366)
[CreatureScrip] Addons Por Nivel Vote1111[CreatureScrip] Addons Por Nivel Vote2111[CreatureScrip] Addons Por Nivel Vote3111 
spoor (83)
[CreatureScrip] Addons Por Nivel Vote1111[CreatureScrip] Addons Por Nivel Vote2111[CreatureScrip] Addons Por Nivel Vote3111 
Dj Pacos (73)
[CreatureScrip] Addons Por Nivel Vote1111[CreatureScrip] Addons Por Nivel Vote2111[CreatureScrip] Addons Por Nivel Vote3111 
God Skit (68)
[CreatureScrip] Addons Por Nivel Vote1111[CreatureScrip] Addons Por Nivel Vote2111[CreatureScrip] Addons Por Nivel Vote3111 
GoD MexicanSoul (40)
[CreatureScrip] Addons Por Nivel Vote1111[CreatureScrip] Addons Por Nivel Vote2111[CreatureScrip] Addons Por Nivel Vote3111 
fuzzy (35)
[CreatureScrip] Addons Por Nivel Vote1111[CreatureScrip] Addons Por Nivel Vote2111[CreatureScrip] Addons Por Nivel Vote3111 
Eddie (31)
[CreatureScrip] Addons Por Nivel Vote1111[CreatureScrip] Addons Por Nivel Vote2111[CreatureScrip] Addons Por Nivel Vote3111 
GOD Chimito (30)
[CreatureScrip] Addons Por Nivel Vote1111[CreatureScrip] Addons Por Nivel Vote2111[CreatureScrip] Addons Por Nivel Vote3111 
conalep1996 (23)
[CreatureScrip] Addons Por Nivel Vote1111[CreatureScrip] Addons Por Nivel Vote2111[CreatureScrip] Addons Por Nivel Vote3111 

Últimos temas
» [???] [Super Naruto OT]
[CreatureScrip] Addons Por Nivel Icon_m10Lun Jun 08, 2015 12:08 pm por keishmer91

» [ACTION] God/GM da item a un player
[CreatureScrip] Addons Por Nivel Icon_m10Mar Dic 02, 2014 12:53 pm por hecmanos

» [8.60] Nuevo War Thais By TheRobertxon
[CreatureScrip] Addons Por Nivel Icon_m10Vie Jun 20, 2014 10:56 am por luismc

» [7.92]Naruto Final Story!
[CreatureScrip] Addons Por Nivel Icon_m10Dom Mayo 26, 2013 2:40 am por ricardotuck

» [9.1] Fun Server
[CreatureScrip] Addons Por Nivel Icon_m10Mar Mayo 14, 2013 5:32 pm por skifer

» [9.1] The Forgotten Server v0.2.11pl2 (Mystic Spirit)
[CreatureScrip] Addons Por Nivel Icon_m10Mar Mayo 14, 2013 5:29 pm por skifer

» New Map 8.60 (Darksystem) By: Turock & Gilio LIsto Arreglado El
[CreatureScrip] Addons Por Nivel Icon_m10Mar Mayo 07, 2013 5:27 pm por tonyso

» Ocean Clasic Global Map 8.6
[CreatureScrip] Addons Por Nivel Icon_m10Miér Mayo 01, 2013 11:19 pm por maganiua

» ayuda a abrir puertos
[CreatureScrip] Addons Por Nivel Icon_m10Lun Abr 29, 2013 5:58 pm por XxStroksxX

» [8.60] Speedy War
[CreatureScrip] Addons Por Nivel Icon_m10Dom Abr 28, 2013 5:51 pm por Sunnade'Audio

Upload Images
ImagesHack
Scanner
VirusTotal

[CreatureScrip] Addons Por Nivel

2 participantes

Ir abajo

[CreatureScrip] Addons Por Nivel Empty [CreatureScrip] Addons Por Nivel

Mensaje por XxStroksxX Jue Ene 20, 2011 9:56 am

Script creado por Acordion =D


Que hace?
Ejemplo:
Player Advance a level 30, Le dan Citizen Addons
Player Advance a level 50, Le dan Hunter addons

Vamos a creaturescript y agregamos-->
Código:
<event type="advance" name="Addons" event="script" value="Addons.lua"/>

Luego vamos a login y agregamos la siguiente linea->
Código:
registerCreatureEvent(cid, "Addons")

Creamos un archivo llamado Addons.lua y dentro ponemos:
Código:
--- Other Config ---
local TextType = MESSAGE_STATUS_CONSOLE_ORANGE

--- Citizen ---
local citizentext = "You have now citizen addons."
local citizenlevel = 30
local citizenstorage = 11500
--- Hunter ---
local huntertext = "You have now hunter addons."
local hunterlevel = 50
local hunterstorage = 11505
--- Mage ---
local magetext = "You have now mage addons."
local magelevel = 60
local magestorage = 11510
--- Knight ---
local knighttext = "You have now knight addons."
local knightlevel = 70
local knightstorage = 11515
--- Noble ---
local nobletext = "You have now noble addons."
local noblelevel = 90
local noblestorage = 11520
--- Summoner ---
local summonertext = "You have now summoner addons."
local summonerlevel = 100
local summonerstorage = 11525
--- Warrior ---
local Warriortext = "You have now Warrior addons."
local Warriorlevel = 120
local Warriorstorage = 11530
--- Barbarian ---
local Barbariantext = "You have now Barbarian addons."
local Barbarianlevel = 125
local Barbarianstorage = 11605
--- Druid ---
local Druidtext = "You have now Druid addons."
local Druidlevel = 130
local Druidstorage = 11535
--- Wizard ---
local Wizardtext = "You have now Wizard addons."
local Wizardlevel = 135
local Wizardstorage = 11540
--- Oriental ---
local Orientaltext = "You have now Oriental addons."
local Orientallevel = 150
local Orientalstorage = 11545
--- Pirate ---
local Piratetext = "You have now Pirate addons."
local Piratelevel = 155
local Piratestorage = 11550
--- Assassin ---
local Assassintext = "You have now Assassin addons."
local Assassinlevel = 170
local Assassinstorage = 11555
--- Beggar ---
local Beggartext = "You have now Beggar addons."
local Beggarlevel = 175
local Beggarstorage = 11560
--- Shaman ---
local Shamantext = "You have now Shaman addons."
local Shamanlevel = 270
local Shamanstorage = 11565
--- Norse ---
local Norsetext = "You have now Norse addons."
local Norselevel = 180
local Norsestorage = 11570
--- Nightmare ---
local Nightmaretext = "You have now Nightmare addons."
local Nightmarelevel = 190
local Nightmarestorage = 11575
--- Jester ---
local Jestertext = "You have now Jester addons."
local Jesterlevel = 200
local Jesterstorage = 11580
--- Brotherhood ---
local Brotherhoodtext = "You have now Brotherhood addons."
local Brotherhoodlevel = 220
local Brotherhoodstorage = 11585
--- Demonhunter ---
local Demonhuntertext = "You have now Demonhunter addons."
local Demonhunterlevel = 240
local Demonhunterstorage = 11590
--- Yalaharian ---
local Yalahariantext = "You have now Yalaharian addons."
local Yalaharianlevel = 245
local Yalaharianstorage = 11595
--- Warmaster ---
local Warmastertext = "You have now 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

Pueden configurar el nivel y el addon que les da a cada nivel =D


Y ya lo tienen listo para usar Razz


SI TE SIRVIO O TE GUSTO DAME +REP!
XxStroksxX
XxStroksxX

+ Administrador +
+ Administrador +

¡Sorcerer Rapero!
Masculino España Géminis Cerdo
Chrome
Edad Edad : 28
Mensajes Mensajes : 463
Localización Localización : Barcelona
Fecha de inscripción Fecha de inscripción : 01/08/2010

Hoja de personaje
Personaje: Khail Phount
Vocation: Knight
Mundo: Infernia

http://www.otserv.biz/

Volver arriba Ir abajo

[CreatureScrip] Addons Por Nivel Empty Re: [CreatureScrip] Addons Por Nivel

Mensaje por ~*~[:Đαяќ:]~[:тιβια:]~*~ Sáb Ene 29, 2011 4:10 pm

me gusto Very Happy bonito script XD
~*~[:Đαяќ:]~[:тιβια:]~*~
~*~[:Đαяќ:]~[:тιβια:]~*~

+ Moderador +
+ Moderador +

*~Elder Wolf~*
Masculino Mexico Virgo Cerdo
Chrome
Edad Edad : 28
Mensajes Mensajes : 366
Localización Localización : :O ala versh XD
Fecha de inscripción Fecha de inscripción : 29/01/2011

http://www.chaosserv.no-ip.info

Volver arriba Ir abajo

Volver arriba

- Temas similares

 
Permisos de este foro:
No puedes responder a temas en este foro.