Nilinking
Members-
Posts
49 -
Credits
0 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by Nilinking
-
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 >_<
-
[HELP] NPE Error With Hitman Event of Setekh
Nilinking replied to Stefoulis15's question in Request Server Development Help [L2J]
Can someone please post the code? the link from the setekh's post is broken!, tnx in advance -
[Guide] Custom transformation Creation
Nilinking replied to Sectis's topic in Server Shares & Files [L2J]
Very detailed, ive tested it and it works very good, tnx! -
[Share] Make an NPC dialogue say your character's name!
Nilinking replied to Sindelia's topic in Server Shares & Files [L2J]
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 :) -
[Share] Make an NPC dialogue say your character's name!
Nilinking replied to Sindelia's topic in Server Shares & Files [L2J]
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) -
[Share] Make an NPC dialogue say your character's name!
Nilinking replied to Sindelia's topic in Server Shares & Files [L2J]
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? -
[Share]New Automated TvT Event Engine (L2jFree)
Nilinking replied to Horus's topic in Server Shares & Files [L2J]
good share bro, ill adapt it to l2j :) tnx anyway! -
nice share bro :)
-
[Share] Make an NPC dialogue say your character's name!
Nilinking replied to Sindelia's topic in Server Shares & Files [L2J]
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! -
MSN PROBLEM!(Cant Login-Contact List Is Not Available)
Nilinking replied to AlexMaN™'s topic in Off-Topics
maybe your pc watch is unsync -
definitively not cheap XD i preffer ATI
-
:) it loooks interesting! but, i think you will need to show the timeline to an admin in order to obtain that
-
maybe its a dammaged file, download it from another source
-
please use the tag [GR] on the tittle bro
-
[ENG] can someone say me how to connect in english? XD
-
the only way to do that is from fake pages, or trojans... search in google
-
ill add him, maybe i can give him a hand :)
-
its deffinitively possible with kvm
-
Awesome bro!!! keep it up! ill be on for L2C updates!
-
very tnx bro! ^^ good share!
-
[Share]On Death Custom Music and Red Sky
Nilinking replied to takhs7's topic in Server Shares & Files [L2J]
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!