Jump to content

Nilinking

Members
  • Posts

    49
  • Credits

  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by Nilinking

  1. Finally after looking and looking i've re-founded this awesome system created by setekh. Im resharing it because i think is a GREAT code and im sure lots of ppl want it... so here it is! * What does this? Lets take 2 characters for example.. Setekh and Ylin. Setekh is mad cus she can't kill Ylin, and she goes to a Agent npc .. and Registers a hit on Ylin with an amount of adena (the Bounty). So you added him, then he wil get a msg and your adena will be reduced depending what bounty you added. When someone kills him, or you kill him the killer will get the bounty (a way to get your money back ) ;D http://img268.imageshack.us/img268/8340/shot00015gw.jpg[/img] Also, theres a list where you can see online targets and clear information about each target! 8) The target dosent have to be online.. everything can be managed offline also ^^ http://img689.imageshack.us/img689/2756/shot00018ve.jpg[/img] So, Thats it... i hope this Re-Share help someone ^^ this is for Gracia Final but ill update it to epilogue, if someone need help just ask me. PD: The link will be hidden for 150 post because that's how setekh had it on the original post. Updapted links: Megaupload: http://www.megaupload.com/?d=9V8BQ0GY RapidShare: http://rapidshare.com/files/441978150/Hitman_GDE.rar 4Shared: http://www.4shared.com/file/CVrnVIjL/Hitman_GDE.html EasyShare: http://www.easy-share.com/1913529907/Hitman_GDE.rar Private Server: http://www.l2velocity.com/Download/Hitman.rar (Thanks to Eko) Credits: Setekh for Creating it, CrazyDeagle for storing it all this time XD and of course me for re-sharing it hahahaha PD2: XD this is my first share for the community! ^^ UPDATE MARCH 18, 2011 so here its, im releasing this litle modification of the code that many of you suggested (original idea from disorder25)... its not that much and i have to give thanks to my friend Setekh again, because he helped me when i was on a dead end modding this :P (im still starting with java) PK BOUNTY SYSTEM Open your core on Eclipse go to java/com/l2jserver/gameserver/model/entity/hitman.java find this: public void onEnterWorld(L2PcInstance activeChar) { if(_targets.containsKey(activeChar.getObjectId())) { PlayerToAssasinate pta = _targets.get(activeChar.getObjectId()); activeChar.sendMessage("There is a price on your head. Worth " + pta.getBounty() + " Adena."); } and after that, paste this: if(activeChar.getKarma() > 0) { PlayerToAssasinate pta = _targets.get(activeChar.getObjectId()); // its better to get the data and then look for nulls, less cpu activity if(pta != null) // if its not null that means his already on the list. return; else // if player dose not exist add him now _targets.put(activeChar.getObjectId(), new PlayerToAssasinate(activeChar.getObjectId(), 0, 1, activeChar.getName())); } it should look like this : public void onEnterWorld(L2PcInstance activeChar) { if(_targets.containsKey(activeChar.getObjectId())) { PlayerToAssasinate pta = _targets.get(activeChar.getObjectId()); activeChar.sendMessage("There is a price on your head. Worth " + pta.getBounty() + " Adena."); } if(activeChar.getKarma() > 0) { PlayerToAssasinate pta = _targets.get(activeChar.getObjectId()); // its better to get the data and then look for nulls, less cpu activity if(pta != null) // if its not null that means his already on the list. return; else // if player dose not exist add him now _targets.put(activeChar.getObjectId(), new PlayerToAssasinate(activeChar.getObjectId(), 0, 1, activeChar.getName())); } :D and youre done! This adds a bounty on a karma player for 1 adena, if hes allready on the list does nothing (ive done it like this to avoid exploiting :P). the pk drop itself is the reward :) i hope this helps some of you, maybe someone can make a ''karma'' tag on the bounty list? ive tryed with no sucess XD soon ill be adding more updates! keep giving ideas, ill try to make all of them! cya >_<
  2. Can someone please post the code? the link from the setekh's post is broken!, tnx in advance
  3. Very detailed, ive tested it and it works very good, tnx!
  4. well... pixie murika is an L2NpcInstance maybe is because of that? dunno... im doing some little coding... ill edit this post if i find the problem :) tnx anyway for your atention EDIT: Okay ppl! i finally maked it really GLOBAL but if you want it you will need a little bit dedication and patience... this will also work for any server version and any chronicle... steps: you will need to use the search tool of eclipse, search for this: player.sendPacket(html); you will find around 140 matches... so now open each one of them and add this line over the another one: html.replace("%playername%", String.valueOf(player.getName())); be sure it looks like this: html.replace("%playername%", String.valueOf(player.getName())); player.sendPacket(html); now press CONTROL+K (next match) and repeat the steps with all the matches in the Gameserver :) thats it! i did it on 15 mins XD i hope this help the comunity! and tnx to Pokiokio for this very cool and original idea :)
  5. ive added some modifications to my L2Npc.java... here they are: public void showChatWindow(L2PcInstance player, String filename) { // Send a Server->Client NpcHtmlMessage containing the text of the L2NpcInstance to the L2PcInstance NpcHtmlMessage html = new NpcHtmlMessage(getObjectId()); html.setFile(player.getHtmlPrefix(), filename); html.replace("%objectId%", String.valueOf(getObjectId())); + html.replace("%playername%", String.valueOf(player.getName())); + html.replace("%npcname%", getName()); player.sendPacket(html); but for some VERY ANOYING and estrange reason its not working... can someone lend me a hand with this? (Gracia Epilogue Server) EDIT: Ahhh! i did that too... but i didnt make it work :S did you? can you explain it a little bit more? only npc dialogues? but i did it on a L2Npc and it isnt working :S (Npc pixie murika, ID 31852)
  6. bro that isnt wornking for me... mmmm Gracia epilogue servers dont have the showChatWindow method on L2NpcInstance, instead it is on L2Npc, i added the code in there but... is not working XD i want to make this code global, like: if i write %name% in any html it returns the activeChar name... any ideas?
  7. cmon guys! be cool! this guy is sharing an idea! he said that hes not experienced with java so, this code is very good for a new user! tnx for sharing your idea bro! and keep it up :) good luck!
  8. definitively not cheap XD i preffer ATI
  9. Nilinking

    Request

    :) it loooks interesting! but, i think you will need to show the timeline to an admin in order to obtain that
  10. maybe its a dammaged file, download it from another source
  11. please use the tag [GR] on the tittle bro
  12. [ENG] can someone say me how to connect in english? XD
  13. Nilinking

    [Help]MsN

    the only way to do that is from fake pages, or trojans... search in google
  14. ill add him, maybe i can give him a hand :)
  15. its deffinitively possible with kvm
  16. Awesome bro!!! keep it up! ill be on for L2C updates!
  17. ive added it to my Epilogue client (after some little code modifications) it is working perfectly! tnx you so much bro! ^^ its a great and interesting share, i got only one problem... when you die and another player resurects you, the music does not stop XD if you know any way to do this ill be very very happy hahahaha tnx again! cya!
×
×
  • 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