Jump to content

Recommended Posts


  • 10 months later...

 

ola, voce poderia me ajudar a adaptar este mod para acis 398? 
.. estou com os seguintes erros

aCis_gameserver/java/net/sf/l2j/gameserver/votesystem/VoteUtil/VoteSiteXml.java

(new Reward(parseAttributes(itemNode)) <==error

forEach(votesiteNode,"items", itemsNode -> forEach(itemsNode,"item",itemNode -> votesite.getRewardList().add(new Reward(parseAttributes(itemNode)))));

aCis_gameserver/java/net/sf/l2j/gameserver/votesystem/Handler/voteManager.java

import net.sf.l2j.commons.concurrent.ThreadPool;
_updateIndividualVotes = ThreadPool.scheduleAtFixedRate(new AutoUpdateIndividualVotesTask(), 30000, 	Config.NEXT_TIME_TO_AUTO_UPDATE_INDIVIDUAL_VOTES);
_autoGlobalVotesReward = ThreadPool.scheduleAtFixedRate(new AutoGlobalVoteRewardTask(), 10000, Config.NEXT_TIME_TO_CHECK_AUTO_GLOBAL_VOTES_REWARD);
_saveGlobalVotes = ThreadPool.scheduleAtFixedRate(new AutoSaveGlobalVotesTask(), 30000, Config.NEXT_TIME_TO_AUTO_UPDATE_TOTAL_VOTE);

if (getTimeRemaining(new individualVote(ip, ivr.getVoteSiteTime(), ordinalSite, false)) < 0)

ThreadPool <==error

(new individualVote(ip, ivr.getVoteSiteTime(), ordinalSite, false)) <==error

aCis_gameserver/java/net/sf/l2j/gameserver/votesystem/Model/Reward.java

public Reward(StatsSet set)

StatsSet <==error

aCis_gameserver/java/net/sf/l2j/gameserver/votesystem/DB/individualVoteDB

import net.sf.l2j.L2DatabaseFactory;

try(Connection con = L2DatabaseFactory.getInstance().getConnection();PreparedStatement ps = con.prepareStatement("SELECT voterIp,voteSite,diffTime,votingTimeSite,alreadyRewarded FROM individualvotes");

L2DatabaseFactory; <==error

aCis_gameserver/java/net/sf/l2j/gameserver/model/actor/instance/NpcVote.java

import net.sf.l2j.gameserver.data.ItemTable;

sb.append(String.format("<td width=110 height=32 align=center><font color=BFAF00>%s x%s</font></td>",ItemTable.getInstance().getTemplate(r.getItemId()).getName(), r.getItemCount()));

ItemTable<==error

aCis_gameserver/java/net/sf/l2j/gameserver/network/clientpackets/RequestBypassToServer.java

if (object != null && object instanceof Npc && endOfId > 0 && ((Npc) object).canInteract(player))

canInteract <==error 

Eu sei que para alguns vai ser muito fácil porque são variáveis mas 
infelizmente eu não sei muito sobre java e está matando minha cabeça
 se alguém for tão gentil em me ajudar eu agradeço .. saudações amigos

 

Link to comment
Share on other sites





×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.