Secret Experience

Secret Experience (https://secretexperience.net/)
-   [Lineage] Java Mods (https://secretexperience.net/lineage-java-mods/)
-   -   [L2JServer] Custom Start Vip Per Day's (https://secretexperience.net/lineage-java-mods/32236-custom-start-vip-per-days.html)

allanalcantara 17-07-2011 07:15 PM

Custom Start Vip Per Day's
 
opa, belezinha ? hehe
estou mais uma vez aqui postando pra vocês outro mod.


bom uma explicação simples: ESSE SISTEMA SÓ FUNCIONA SE TIVER O MOD VIP NO SEU SERVIDOR.
//setvip name [days]

bom, ele interage com esse sistemaa, e o donator também. se tiver tempo é claro.
eheeheh
então vamos lá:

Código:

Index: Config/functions/l2jdemonniac.properties
===================================================================
--- config/main/altgame.properties        (revision 1710)
+++ config/main/altgame.properties        (working copy)
@@ -298,6 +298,11 @@
 # if True Player Vip gain Xp*VipMulXp and Sp*VipMulSp
 # Note only works if player not in party
 AllowVipMulXpSp = True
 VipMulXp = 2
 VipMulSp = 2
 VipMulSp = 2
+
+# ---------------------------------------------- #
+#              Custom Day for Vip                #
+# ---------------------------------------------- #
+# Allow custom Day's Vip
+# Default: False
+AllowCustomStartVip = False
+# Custom Start Days for Vip
+# Default: 1
+CustomStartDays = 1
+
 # ----------------
 # Section: Summons
 # ----------------
Index: head-src/com/l2jdemonniac/Config.java
===================================================================
--- head-src/com/l2jdemonniac/Config.java        (revision 1710)
+++ head-src/com/l2jdemonniac/Config.java        (working copy)
@@ -1878,6 +1878,10 @@
        // ---------- Summons ---------------------------------------
        public static float                        ALT_GAME_SUMMON_PENALTY_RATE;                        // Alternative game summon penalty
+
+        /** System Day Create char Vip  */
+        public static boolean                ALLOW_CUSTOM_CHAR_VIP;
+        public static int                CUSTOM_DAY_VIP;
+
        //********************************************************************************************
        public static void loadAltConfig()
        {
@@ -1926,6 +1930,10 @@
 
                        // ----------- Summmons --------------
                        ALT_GAME_SUMMON_PENALTY_RATE = Float.parseFloat(altSettings.getProperty("AltSummonPenaltyRate", "1."));
+
+                        /** System Custom Vip Day Mod By allanalcantara */
+                        ALLOW_CUSTOM_CHAR_VIP = Boolean.parseBoolean(l2jdemonniacSettings.getProperty("AllowCustomStartVip", "false"));
+                        CUSTOM_DAY_VIP = Integer.parseInt(l2jdemonniacSettings.getProperty("CustomStartDays", "1"));
+
                }
                catch (Exception e)
                {
Index: head-src/com/l2jdemonniac/gameserver/network/clientpackets/CharacterCreate.java
===================================================================
--- head-src/com/l2jdemonniac/gameserver/network/clientpackets/CharacterCreate.java        (revision 1710)
+++ head-src/com/l2jdemonniac/gameserver/network/clientpackets/CharacterCreate.java        (working copy)
@@ -210,6 +225,11 @@
 
                newChar.addAdena("Init", Config.STARTING_ADENA, null, false);
                }
-
+
+                /**
+                * @author allanalcantara <L2jDemonniac Dev>
+                * @version Kinho! <help assistence>
+                * Contato: [email protected]
+                * Mod Exclusivo Acesse: www.allanalcantara.com.br
+                */
+
+                if (Config.ALLOW_CUSTOM_CHAR_VIP)
+                {
+                                //        activeChar.getStat().add(setvip.getName.Config.CUSTOM_DAY_VIP);
+                                //        activeChar.getStat().add(setVipEndTime.getName.Config.CUSTOM_DAY_VIP);
+                       
+                        newChar.setVip(true);
+                        newChar.setVipEndTime(Config.CUSTOM_DAY_VIP);
+                       
+                }
+
Index: head-src/com/l2jdemonniac/gameserver/network/clientpackets/EnterWorld.java
===================================================================
--- head-src/com/l2jdemonniac/gameserver/network/clientpackets/EnterWorld.java        (revision 1710)
+++ head-src/com/l2jdemonniac/gameserver/network/clientpackets/EnterWorld.java        (working copy)
@@ -684,6 +688,11 @@

                                activeChar.getAppearance().setTitleColor(Config.CLAN_LEADER_COLOR);
                        }
                }
-
-
-                if(Config.ALLOW_AIO_NCOLOR && activeChar.isAio())
+               
+                if(activeChar.isVip())
+        {
+          activeChar.getAppearance().setNameColor(Config.VIP_NCOLOR);
+          activeChar.getAppearance().setTitleColor(Config.VIP_TCOLOR);
+                                {
+                                        activeChar.sendMessage("Vip period end of is " + (int)_daysleft + " days.");
+                                }
+        }
+
+                if(Config.ALLOW_AIO_NCOLOR && activeChar.isAio())
/**

Créditos: allanalcantara
Créditos: Kinho <help assistence>

xdavison 03-08-2011 10:22 AM

Duvida:

Citação:

+AllowCustomStartVip = False
+# Custom Start Days for Vip
+# Default: 1
+CustomStartDays = 1
Pelo que entendi nesta opção ela deixa os novos chars Vip por 1 dia?

Alguém poderia me postar o mod vip//setvip Name [Days]?

allanalcantara 03-08-2011 05:07 PM

correto davison, ela faz o seguinte, por exemplo quando cria o char, você já recebe o vip. então ele transforma seu vip em dias, automaticamente e faz com que você fique com o vip pelos dias que editar, no meu ai no caso ta 1 dia então ele fica 1 dia como vip! ^^'

jhweb 16-09-2011 10:13 PM

Ola, Queria Saber se Tem Como Eu ADD Um Bonus Para Char Vip Como Por Ex:
1k de HP, 500 CP etc..?

allanalcantara 17-09-2011 07:16 PM

concerteza.
isso depende bastante do sistema vip.

jhweb 17-09-2011 09:45 PM

Beleza, Eu Quero Saber onde eu edito para dar esses bonus!

Donator 11-02-2012 06:11 AM

great share man, good job ;)

SerialKiller 31-07-2012 04:24 PM

Este mod não funciona !
Se lerem o código, podem ver que está faltando coisa.


Horários baseados na GMT -3. Agora são 10:32 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.