Jump to content

Help Help Plisss


golf
 Share

Recommended Posts

buenas me gustaria saver si alguien me puede ayudar con esto que ya estoy desesperado.

el problema en con el vote rewared a continuacion pongo mis datos del server a ver si es por alguna razon que no me de los votos.

en el config.
vote reware.

 

 

 

good I would like saver if anyone can help me with this I'm desperate.

The problem with the vote rewared below put my data server to see if it is for some reason I was not of the vote.

in the config.
reware vote.


#---------------------------------------------------------------------------#
# This system is not unique in the world of Lineage, use at your own risk!  #
#---------------------------------------------------------------------------#

###########################################
#               Vote System               #
###########################################

# Enable vote system?
EnableVoteSystem = true

# VoteGlobal
EnableVoteGlobal = true

# Activa/Desactiva el sistema de votos en L2jBrasil
# Necesita que EnableVoteSystem este activado
VoteSystemBrasil = false
# Activa/Desactiva el sistema de votos en Hopzone
# Necesita que EnableVoteSystem este activado
VoteSystemHopzone = True

# Activa/Desactiva el sistema de votos en Topzone
# Necesita que EnableVoteSystem este activado
VoteSystemTopzone = True

# Activa/Desactiva el sistema de votos en TopAdminsPro
# Necesita que EnableVoteSystem este activado
VoteSystemAdminsPro = False

# Guardar votos en la DB ?
# Recomendacion true si haces Shutdown/Restart en el server.
SaveVotesIntoDataBase = True

# Vote Page URL.
# HopZone. VoteSystemPageHopzone = [HopZone]
VoteSystemPageHopzone = http://l2.hopzone.net/lineage2/details/75176/L2saphira

# Vote Page URL.
# TopZone. VoteSystemPageTopzone = [TopZone]
VoteSystemPageTopzone = http://l2topzone.com/lineage2/server-list/top.html/

# Vote Page URL.
# TopBrasil. VoteSystemPageBrasil = [TopBrasil]
VoteSystemPageBrasil = http://top.l2jbrasil.com/index.php?a=stats&u=macelord23
# http://top.l2jbrasil.com/index.php?a=stats&u=macelord23
# http://top.l2jbrasil.com/index.php?a=stats&u=evans19

# TopAdminsPro.
# Ejemplo: Al registrar su servidor se les dara un link similar a este:
# http://hopzone.com.es/votoServerImg?i=17&s=38">
# donde podran observar el ID del servidor que en este caso es el 38, ese es el valor q deberan poner en el config
# a continuacion.
VoteSystemPageAdminsPro = [TopAdminsPro]

# Reward players every xxx votes.
VoteSystemVotes = 10

# First Check delay.
# In Seconds.
VoteSystemStartCheckTime = 60

# Continue Check delay.
# In Seconds.
VoteSystemRunCheckTime = 1800

###########################################
#                 Global                  #
###########################################
# Anula los sistemas de votos individuales

# Items Rewards ID in Hopzone.
# Format: reward1,reward2,reward3...
VoteSystemItemId = 57,4037

# Count Rewards Count in Hopzone.
# Format: count1,count2,count3...
VoteSystemItemCount = 1000,2


###########################################
#                 Hopzone                 #
###########################################
# Items Rewards ID in Hopzone.
# Format: reward1,reward2,reward3...
VoteSystemItemIdHopzone = 57,4037

# Count Rewards Count in Hopzone.
# Format: count1,count2,count3...
VoteSystemItemCountHopzone = 1000,2


###########################################
#                 Topzone                 #
###########################################
# Items Rewards ID in Topzone.
# Format: reward1,reward2,reward3...
VoteSystemItemIdTopzone = 57,4037

# Count Rewards Count in Topzone.
# Format: count1,count2,count3...
VoteSystemItemCountTopzone = 1000,2


###########################################
#                TopBrasil                #
###########################################
# Items Rewards ID in Brasil.
# Format: reward1,reward2,reward3...
VoteSystemItemIdBrasil = 57,4037

# Count Rewards Count in Brasil.
# Format: count1,count2,count3...
VoteSystemItemCountBrasil = 1000,2


###########################################
#               TopAdminsPro              #
###########################################
# Items Rewards ID in Topzone.
# Format: reward1,reward2,reward3...
VoteSystemItemIdAdminsPro = 57,4037

# Count Rewards Count in Topzone.
# Format: count1,count2,count3...
VoteSystemItemCountAdminsPro = 1000,2


en el config vote even npc

# ------------------------ #
# Vote reward for Hopzone. #
# ------------------------ #
# Hopzone server url
HopzoneUrl = http://l2.hopzone.net/lineage2/details/75176/L2saphira

# Vote Page URL.
# TopZone. VoteSystemPageTopzone = [TopZone]
VoteSystemPageTopzone = http://l2topzone.com/lineage2/server-list/top.html/

# Vote Page URL.
# TopBrasil. VoteSystemPageBrasil = [TopBrasil]
VoteSystemPageBrasil = http://top.l2jbrasil.com/index.php?a=stats&u=macelord23
# http://top.l2jbrasil.com/index.php?a=stats&u=macelord23
# http://top.l2jbrasil.com/index.php?a=stats&u=evans19

# TopAdminsPro.
# Ejemplo: Al registrar su servidor se les dara un link similar a este:
# http://hopzone.com.es/votoServerImg?i=17&s=38">
# donde podran observar el ID del servidor que en este caso es el 38, ese es el valor q deberan poner en el config
# a continuacion.
VoteSystemPageAdminsPro = [TopAdminsPro]

# Reward players every xxx votes.
VoteSystemVotes = 10

# First Check delay.
# In Seconds.
VoteSystemStartCheckTime = 60

# Continue Check delay.
# In Seconds.
VoteSystemRunCheckTime = 1800

###########################################
#                 Global                  #
###########################################
# Anula los sistemas de votos individuales

# Items Rewards ID in Hopzone.
# Format: reward1,reward2,reward3...
VoteSystemItemId = 57,4037

# Count Rewards Count in Hopzone.
# Format: count1,count2,count3...
VoteSystemItemCount = 1000,2


###########################################
#                 Hopzone                 #
###########################################
# Items Rewards ID in Hopzone.
# Format: reward1,reward2,reward3...
VoteSystemItemIdHopzone = 57,4037

# Count Rewards Count in Hopzone.
# Format: count1,count2,count3...
VoteSystemItemCountHopzone = 1000,2


###########################################
#                 Topzone                 #
###########################################
# Items Rewards ID in Topzone.
# Format: reward1,reward2,reward3...
VoteSystemItemIdTopzone = 57,4037

# Count Rewards Count in Topzone.
# Format: count1,count2,count3...
VoteSystemItemCountTopzone = 1000,2


###########################################
#                TopBrasil                #
###########################################
# Items Rewards ID in Brasil.
# Format: reward1,reward2,reward3...
VoteSystemItemIdBrasil = 57,4037

# Count Rewards Count in Brasil.
# Format: count1,count2,count3...
VoteSystemItemCountBrasil = 1000,2


###########################################
#               TopAdminsPro              #
###########################################
# Items Rewards ID in Topzone.
# Format: reward1,reward2,reward3...
VoteSystemItemIdAdminsPro = 57,4037

# Count Rewards Count in Topzone.
# Format: count1,count2,count3...
VoteSystemItemCountAdminsPro = 1000,2


en el config vote even npc

# ------------------------ #
# Vote reward for Hopzone. #
# ------------------------ #
# Hopzone server url
HopzoneUrl = http://l2.hopzone.net/lineage2/details/75176/L2saphira

# Vote Page URL.
# TopZone. VoteSystemPageTopzone = [TopZone]
VoteSystemPageTopzone = http://l2topzone.com/lineage2/server-list/top.html/

# Vote Page URL.
# TopBrasil. VoteSystemPageBrasil = [TopBrasil]
VoteSystemPageBrasil = http://top.l2jbrasil.com/index.php?a=stats&u=macelord23
# http://top.l2jbrasil.com/index.php?a=stats&u=macelord23
# http://top.l2jbrasil.com/index.php?a=stats&u=evans19

# TopAdminsPro.
# Ejemplo: Al registrar su servidor se les dara un link similar a este:
# http://hopzone.com.es/votoServerImg?i=17&s=38">
# donde podran observar el ID del servidor que en este caso es el 38, ese es el valor q deberan poner en el config
# a continuacion.
VoteSystemPageAdminsPro = [TopAdminsPro]

# Reward players every xxx votes.
VoteSystemVotes = 10

# First Check delay.
# In Seconds.
VoteSystemStartCheckTime = 60

# Continue Check delay.
# In Seconds.
VoteSystemRunCheckTime = 1800

###########################################
#                 Global                  #
###########################################
# Anula los sistemas de votos individuales

# Items Rewards ID in Hopzone.
# Format: reward1,reward2,reward3...
VoteSystemItemId = 57,4037

# Count Rewards Count in Hopzone.
# Format: count1,count2,count3...
VoteSystemItemCount = 1000,2


###########################################
#                 Hopzone                 #
###########################################
# Items Rewards ID in Hopzone.
# Format: reward1,reward2,reward3...
VoteSystemItemIdHopzone = 57,4037

# Count Rewards Count in Hopzone.
# Format: count1,count2,count3...
VoteSystemItemCountHopzone = 1000,2


###########################################
#                 Topzone                 #
###########################################
# Items Rewards ID in Topzone.
# Format: reward1,reward2,reward3...
VoteSystemItemIdTopzone = 57,4037

# Count Rewards Count in Topzone.
# Format: count1,count2,count3...
VoteSystemItemCountTopzone = 1000,2


###########################################
#                TopBrasil                #
###########################################
# Items Rewards ID in Brasil.
# Format: reward1,reward2,reward3...
VoteSystemItemIdBrasil = 57,4037

# Count Rewards Count in Brasil.
# Format: count1,count2,count3...
VoteSystemItemCountBrasil = 1000,2


###########################################
#               TopAdminsPro              #
###########################################
# Items Rewards ID in Topzone.
# Format: reward1,reward2,reward3...
VoteSystemItemIdAdminsPro = 57,4037

# Count Rewards Count in Topzone.
# Format: count1,count2,count3...
VoteSystemItemCountAdminsPro = 1000,2


en el config vote even npc

# ------------------------ #
# Vote reward for Hopzone. #
# ------------------------ #
# Hopzone server url
HopzoneUrl =
# Topzone server url
TopzoneUrl =
http://l2topzone.com/vote.php?id=11955

# The characters will have a choice between 3 rewards.Set id for them
VoteRewardId1 = 57
VoteRewardId2 = 3470
VoteRewardId3 = 4037

# Set the amount of each reward.
VoteRewardAmount1 = 5000
VoteRewardAmount2 = 50
VoteRewardAmount3 = 50

# Set the seconds that the character has
# until he votes in the site's banners
# Default: 20 is optimal do not change higher
SecondsToVote = 60

# Amount of votes a character must collect
# in order to get the 4th vote reward
ExtraRewVoteAm = 20

# Info of the extra reward item
VoteRewardId4 = 4037
VoteRewardAmount4 = 50


java
\game\data\scripts\handlers\voicedcommandhandlers
voice vote reware me



/*
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation, either version 3 of the License, or (at your option) any later
 * version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program. If not, see .
 */
package handlers.voicedcommandhandlers;

import com.l2jserver.Config;
import com.l2jserver.gameserver.handler.IVoicedCommandHandler;
import com.l2jserver.gameserver.model.actor.instance.L2PcInstance;
import com.l2jserver.gameserver.network.serverpackets.MagicSkillUse;
import com.l2jserver.gameserver.datatables.SkillTable;

public class Voiced_VoteRewardMe implements IVoicedCommandHandler
{
   private static final String[] VOICED_COMMANDS =
   {
         "rewardme"
   };
   
   @Override
   public boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
   {

         if(activeChar.isInOlympiadMode() || activeChar.getOlympiadGameId() != -1)
         {
            activeChar.sendMessage("You can't use that command inside Olympiad");
            return false;
         }

         if(activeChar.getInventory().getItemByItemId(Config.VOTE_ITEM_ID).getCount() >= Config.VOTE_ITEM_A)
         {
            activeChar.getInventory().destroyItemByItemId("Consume", Config.VOTE_ITEM_ID, Config.VOTE_ITEM_A, activeChar, null);
            activeChar.sendMessage(Config.VOTE_ITEM_A + " " + Config.VOTE_ITEM_NAME + "(s) have been consumed.");
            MagicSkillUse mgc = new MagicSkillUse(activeChar, activeChar, Config.VOTE_BUFF_ID, Config.VOTE_BUFF_LVL, 1, 0);
            SkillTable.getInstance().getInfo(Config.VOTE_BUFF_ID, Config.VOTE_BUFF_LVL).getEffects(activeChar,activeChar);
            activeChar.broadcastPacket(mgc);
            activeChar.sendMessage("You have been blessed with the effects of the Vote Buff!");   
         }
         else
         {         
            activeChar.sendMessage("You don't have enough " + Config.VOTE_ITEM_NAME + "(s) in order to get rewarded!");
         }
         return true;   
   }

   @Override
   public String[] getVoicedCommandList()
   {
      return VOICED_COMMANDS;
   }
}
Fuente: http://l2jtopic.foroblog.net/t187-vote-reware#ixzz3TeLM9tzw

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



  • Posts

    • try to do this:   Magic Human -> Fighter Human Magic Orc       -> Fighter Orc   or vice versa   stuck will happen ALWAYS
    • player.decayMe(); player.spawnMe();   mobius c6 does use it. dunno if other c6 use it tho. but if im not wrong mobius is based on acis   below u can see the code for the item im using. most likely can be improved since im a beginer. (note that this code is not from c6 but newer version so it needs changes but .decayMe and .spawnMe where used in c6).   /* * This file is part of the L2J Mobius project. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package handlers.itemhandlers; import org.l2jmobius.gameserver.handler.IItemHandler; import org.l2jmobius.gameserver.model.actor.Playable; import org.l2jmobius.gameserver.model.actor.Player; import org.l2jmobius.gameserver.model.item.instance.Item; import org.l2jmobius.gameserver.network.serverpackets.MagicSkillUse; import org.l2jmobius.gameserver.util.Broadcast; /** * @author Drazeal */ public class SexChange implements IItemHandler { /* * (non-Javadoc) * @see org.l2jmobius.gameserver.handler.IItemHandler#useItem(org.l2jmobius.gameserver.model.actor.Playable, org.l2jmobius.gameserver.model.items.instance.ItemInstance, boolean) */ @Override public boolean useItem(Playable playable, Item item, boolean forceUse) { if (!(playable instanceof Player)) { return true; } Player player = (Player) playable; MagicSkillUse msk; if (player.isInCombat()) { player.sendMessage("Cannot use while in combat."); return false; } if (player.isInOlympiadMode() || player.isInDuel() || player.isOnEvent()) { player.sendMessage("Cannot use while in Olympiad/Duel/Event."); return false; } if (player.getAppearance().isFemale()) { player.getAppearance().setMale(); } else { player.getAppearance().setFemale(); } msk = new MagicSkillUse(player, player, 837, 1, 1000, 0); Broadcast.toSelfAndKnownPlayersInRadius(player, msk, 1500); player.sendMessage("Your gender has been changed"); player.broadcastUserInfo(); player.decayMe(); player.spawnMe(); player.destroyItem("Consume", item.getObjectId(), 1, null, false); return false; } }  
    • Any news????? Is anything aight so far?
    • Hello can anyone share the russian system folder master class (latest from official 4games)?   ty
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock