Jump to content

^Wyatt

Members
  • Posts

    1,418
  • Credits

  • Joined

  • Last visited

  • Days Won

    2
  • Feedback

    0%

Everything posted by ^Wyatt

  1. buffer_buffs_list, canUse = 0 for every skill u want to disable
  2. ups... open the py... and change the imports Config.java import from com.l2jserver import Config L2DatabaseFactory.java import from com.l2jserver import L2DatabaseFactory and create your custom npc or change the npc_id of the script
  3. @author Solution here, you must edit npcstring-e.dat.
  4. As I said... changing the 1st parameter... the name in the NPC changes... take a look.
  5. I modified that quest with server completely Off, and then I ran the server... I will do a test changing the first parameter for another number and I think you'll see that the name on the NPC changes, wait.
  6. Yea... but as I see in the code, I think you can also use addReputationScore(-200, true) and will be the same effect xd
  7. Yep, right, just didn't have time to look it well. @author As Tryskell said you can use: player.getClan().addReputationScore(1000, true); player.getClan().takeReputationScore(1000, true);
  8. Are you sure of it? I don't agree... look an example based on what you said of 3rd parameter. Also changed the 2nd parameter to prove that what puts the name on the npc is the 1st parameter. private static final String qn = "Q23_StupidQuest"; public static void main(String[] args) { new Q10501_ZakenEmbroideredSoulCloak(10501, qn, "Stupid Quest"); }
  9. What's the point of all critics? If you don't like what he's gonna share... 1- don't use it 2- code it better (and share it(?)) 3- help him with constructive critics
  10. That's the reason to first, spam Matim's post and then, come here and post it?... Maybe if you read the error that's shown on console.... error: setReputationScore(int,boolean) has private access in L2Clan Index: java/com/l2jserver/gameserver/model/L2Clan.java =================================================================== --- java/com/l2jserver/gameserver/model/L2Clan.java (revision 5235) +++ java/com/l2jserver/gameserver/model/L2Clan.java (working copy) @@ -1904,7 +1904,7 @@ setReputationScore(getReputationScore() - value, save); } - private void setReputationScore(int value, boolean save) + public void setReputationScore(int value, boolean save) { if (_reputationScore >= 0 && value < 0) {
  11. If he is saying that no errors are shown... why to think that could be db pass... Your problem is really really strange... but maybe it is related with your mysql installation... What are u using? Linux? Windows? Etc.
  12. He looks for someone to code it at all... not?
  13. Dunno if u mean it: http://www.4shared.com/file/152842849/bc986b20/DK_RED.html
  14. Here a basic example to create a custom coin, I hope you can solve your problem, the method is the same, just see how it's done and modify it as you wish. game/data/stats/items <item id="22568" type="EtcItem" name="Custom Coin"> <set name="icon" val="icon.etc_pig_adena_i00" /> <set name="material" val="paper" /> <set name="is_tradable" val="true /> <set name="is_dropable" val="false" /> <set name="is_sellable" val="true" /> <set name="is_stackable" val="true" /> </item> EtcItemgrp.dat: 2 22568 0 3 5 3 0 DropItems.drop_pig_coin_m00 DropItemsTex.drop_pig_coin_t00 0 0 0 0 0 1 0 0 icon.etc_pig_adena_i01 -1 0 18 0 0 0 1 1 1 ItemSound.itemdrop_etc_book 2 0 0 itemname-e.dat: 22568 Custom Coin a,Custom coin of our server, use it to get special rewards.\0 -1 0 0 a, 0 0 a, 0 0 0 0 0 0 0 0 0 0 a, 1
  15. Yep, what jokkerino said, 2000 = 2 seconds, not 20. Btw... have this patch sense? Can you spam this command to all people? And if your target is eating, afk, watching tv... will go to jail in 20 seconds coz he isn't in front of PC?... u should add some checks to use it and also reuse delay :p
  16. Should be better to post your modified (adapted) code since is which is giving problems in order to wait for help, not the original...
  17. + if (killer instanceof L2PcInstance && getPvpFlag() > 0) + { + L2Party party = killer.getParty(); + L2PcInstance kill = (L2PcInstance) killer; + int pointsToAdd; + if (party == null) + { + pointsToAdd = (int) _fame*0.05; + } + else + { + pointsToAdd = (int) (_fame*0.05/party.getMemberCount()); + } + + int pointsToRemove = _fame - pointsToAdd < 0 ? 0 : _fame - pointsToAdd; + kill.setFame(kill.getFame() + pointsToAdd); + kill.setSp(kill.getSp() + pointsToAdd); + setFame(pointsToRemove); + killer.sendMessage("You have earned " + pointsToAdd + " Fame Points from " + getName() + "");
  18. Weekly Update! Fixed Heal skills (shouldn't heal invul targets) Fixed Mana Heal skills (shouldn't heal invul targets) Fixed TransferDamage skills (should transfer damage from summons) Fixed Summon skills hitTime Fixed Q642_APowerfulPrimevalCreature Fixed Q00376_ExplorationOfTheGiantsCave1 Fixed Q00377_ExplorationOfTheGiantsCave2 Fixed Q00645_GhostsOfBatur Fixed CP Heal skills (shouldn't heal invul targets) Added premium and no-premium htm option on login Fixed Heroic Miracle & Heroic Berserker (should affect summons) Added missing Warpgate spawnpoints Q00638_SeekersOfTheHolyGrail ported to java Added missing spawns on Pagans Temple Fixed invincible skill (should affect to servitor) Added missing Sel Mahum Chef spawnpoints Fixed item Strongbox of Promise Added Q00464_Oath Added Q288_HandleWithCare Added Q00457_LostAndFound Added Q00901_HowLavasaurusesAreMade Added Retail npc_skills Added Retail npc_elementals
  19. ? :/ I don't catch you at all... but if you're meaning that what I coded I so easy to do and that you don't like it... Ok, but I think is a very useful and for sure, easy code.
  20. PartyMember.broadcastUserInfo(); do u mean that for "real time"?
  21. like that? Index: java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java =================================================================== --- java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java (revision 286) +++ java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java (working copy) @@ -5955,6 +5955,26 @@ if (killer != null) { + if(killer instanceof L2PcInstance) + { + L2Party party = killer.getParty(); + if (party != null) + { + for(L2PcInstance PartyMember : party.getPartyMembers()) + { + if(PartyMember.isInsideRadius(this, 1000, true, false) && PartyMember != killer) + { + PartyMember.setPvpKills(PartyMember.getPvpKills() + 1); + + } + } + } + } + //Bugfix pet killers if(killer instanceof L2SummonInstance) {
×
×
  • 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