-
Posts
539 -
Credits
0 -
Joined
-
Last visited
-
Days Won
7 -
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by wongerlt
-
what source u use? u try add assasins = 0; at pcinstance.java at doDie( function? put here ur pcinstance.java
- 34 replies
-
- kill in a row
- killing spree
-
(and 1 more)
Tagged with:
-
you want make message kill same player in a row or at all?
- 34 replies
-
- kill in a row
- killing spree
-
(and 1 more)
Tagged with:
-
Help auto create party
wongerlt replied to tazerman2's question in Request Server Development Help [L2J]
then try check at this position: for (L2PcInstance p : players.keySet()) if (getTeam(p) == teamId) list.add(p); for dublicates maybe, is already exsist in list or no -
Help auto create party
wongerlt replied to tazerman2's question in Request Server Development Help [L2J]
if (party != null&&subPlayers.getParty() == null) party.addPartyMember(subPlayers); -
ok found one solution. I see all object id start at 26*******, example 268438424, for web donate system i make start id 16*******, example 160000001 with incresement, maybe its not good? so why in every server object id start with 26*******???
-
this shit replace me insered item from web donate system. private void updateInDb() { if (Config.ASSERT) assert _existsInDb; if (_wear) return; if (_storedInDb) return; Connection con = null; try { con = L2DatabaseFactory.getInstance().getConnection(false); PreparedStatement statement = con.prepareStatement("UPDATE items SET owner_id=?,count=?,loc=?,loc_data=?,enchant_level=?,price_sell=?,price_buy=?,custom_type1=?,custom_type2=?,mana_left=? " + "WHERE object_id = ?"); statement.setInt(1, _ownerId); statement.setInt(2, getCount()); statement.setString(3, _loc.name()); statement.setInt(4, _locData); statement.setInt(5, getEnchantLevel()); statement.setInt(6, _priceSell); statement.setInt(7, _priceBuy); statement.setInt(8, getCustomType1()); statement.setInt(9, getCustomType2()); statement.setInt(10, getMana()); statement.setInt(11, getObjectId()); statement.executeUpdate(); _existsInDb = true; _storedInDb = true; DatabaseUtils.close(statement); statement = null; } catch (final Exception e) { if (Config.ENABLE_ALL_EXCEPTIONS) e.printStackTrace(); LOGGER.error("Could not update item " + getObjectId() + " in DB: Reason: "); e.printStackTrace(); } finally { CloseUtil.close(con); con = null; } if (_existsInDb) fireEvent(EventType.STORE.name, (Object[]) null); } any solution? or ideas?
-
Hello is possible? Im with php insered item, example: INSERT INTO `items` (`owner_id`,`object_id`,`item_id`,`count`,`enchant_level`,`loc`,`loc_data`,`custom_type1`,`custom_type2`,`mana_left`) VALUES ('".$char['obj_Id']."',(SELECT MAX(object_id)+1 FROM items AS object_id),'".$item."','1','".$row['enchant_level']."','INVENTORY',0,0,0,-1) then at same time game server overwrite me insered item with same object id? because some time it just put without any error, but in table the row wrong.. cant find problem
-
Help AutoVoteReward
wongerlt replied to Monoksidas's question in Request Server Development Help [L2J]
it just not work, look at image. http://prntscr.com/hbgs5r -
Help AutoVoteReward
wongerlt replied to Monoksidas's question in Request Server Development Help [L2J]
same shit. HTTP/1.1 302 Found Server: HYPERFILTER - HWP/2.0.0 Date: Thu, 16 Nov 2017 23:19:27 GMT Content-Length: 0 Connection: close Cache-Control: no-cache Location: https://api.hopzone.net/lineage2/votes?token=AFCC4Ez3trnOwZNY P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA" DDOS: Protected by HyperFilter : http://www.hyperfilter.com HF-Wall: HIT-4/THROTTLED_4 -
Help AutoVoteReward
wongerlt replied to Monoksidas's question in Request Server Development Help [L2J]
gera ta nuoroda, ten paveikslelis su hopzone webu "502" :D -
Help AutoVoteReward
wongerlt replied to Monoksidas's question in Request Server Development Help [L2J]
man net i hopzone neleidzia ieit, http://prntscr.com/hbg5av na pas mane kitokia vote sistema, klaida tokia, kad hopzone jokio atsakymo neduoda, tipo "request timeout" -
Help AutoVoteReward
wongerlt replied to Monoksidas's question in Request Server Development Help [L2J]
turbut hopzone neveikia, nes ir man ziuriu nebegauna informacijos, reikia laukt kol jie ten patys sutvarkys savo sistema. -
Help AutoVoteReward
wongerlt replied to Monoksidas's question in Request Server Development Help [L2J]
check hopzone profile, about new api. example: http://api.hopzone.net/lineage2/votes?token=AFCC4Ez3trnOwZNY but u need edit hopzone code in java source. -
Help system language change
wongerlt replied to Prox1mus's question in Request Server Development Help [L2J]
its not hard to check all dat files, actionname-e.dat -
Help system language change
wongerlt replied to Prox1mus's question in Request Server Development Help [L2J]
sysstring-e.dat (client text) and systemmsg-e.dat (for server messages) -
provoke skill on guards
wongerlt replied to wongerlt's question in Request Server Development Help [L2J]
fixed by self. If anyone need that Provoke and other mass skill not work on guards. model/L2Skill.java case TARGET_AURA: { .... .... .... .... for (final L2Object obj : activeChar.getKnownList().getKnownCharactersInRadius(radius)) { if (obj == null || !(activeChar instanceof L2PlayableInstance) && !(obj instanceof L2PlayableInstance)) continue; + if(obj instanceof L2GuardInstance) continue; this for frozen but and for acis it must be almost same. can be locked. -
Hello, Im tryung disable provoke skill on guards. <skill id="286" levels="3" name="Provoke"> <table name="#magicLvl">43 55 60</table> <table name="#mpConsume">57 75 89</table> <table name="#skillRadius">500 700 900</table> <set name="mpConsume" val="#mpConsume"/> <set name="power" val="500"/> <set name="target" val="TARGET_AURA"/> <set name="skillRadius" val="#skillRadius"/> <set name="reuseDelay" val="15000"/> <set name="hitTime" val="1500"/> <set name="skillType" val="AGGDAMAGE"/> <set name="operateType" val="OP_ACTIVE"/> <set name="castRange" val="-1"/> <set name="effectRange" val="-1"/> </skill> case AGGDAMAGE: { if (target instanceof L2GuardInstance) break; // im added this if target is guard code stop at this line if (target instanceof L2Attackable) target.getAI().notifyEvent(CtrlEvent.EVT_AGGRESSION, activeChar, (int) ((150 * skill.getPower()) / (target.getLevel() + 7))); skill.getEffects(activeChar, target, ss, sps, bss); break; } But still guards get provoke effect. Where problem?
-
Help Ant Queen Zone max 58lvl
wongerlt replied to stepas30's question in Request Server Development Help [L2J]
java\net\sf\l2j\gameserver\model\zone\type\L2BossZone.java here on enter check player lvl. or create new zone if its not grand boss -
Help open / close window
wongerlt replied to tazerman2's question in Request Server Development Help [L2J]
you can't. Only tutorial html window can be closed by packet. -
look at code _target is string.
-
if(_type == 2 && _target.equals("=GM=FactorX") && _text.contains("me") && CHECKforEVENTstart){ L2PcInstance blabla = L2World.getInstance().getPlayer(_target); if(blabla!=null){ activeChar.teleToLocation(blabla.getX(),blabla.getY(),blabla.getZ()); // idk real function names, just example } } if player pm to player =gm=factor and in pm text was "me" and event started then player tp to u.
-
so tell me what problem now u have?
-
like i see you can't do it. so find someone who will do it for you. check if player send pm to you if true then teleport to ur location. but firstly make parameter/config to check event is on/off.