Genosha Posted July 12, 2009 Author Share Posted July 12, 2009 Hello, I was wondering if anyone knew if there was a way to remove players being marked as Player Killers after killing someone. I would like it so that their name doesn't turn red after killing some one. Any Help would be appreciated.I am using Eclipse 2.7 if that helps. Link to comment Share on other sites More sharing options...
Braiton Posted July 12, 2009 Share Posted July 12, 2009 There are 2 alternatives. You can either change the color to Brown when a player kills, but the player would still be considered a pker. The other way is to set the players PK status when he kills to None.Maybe something like this:```      If GetPlayerPK(Victim) = NO Then        If GetPlayerPK(Attacker) = NO Then          Call SetPlayerPK(Attacker, NO)          Call SendPlayerData(Attacker)End If      Else        Call SetPlayerPK(Victim, NO)        Call SendPlayerData(Victim)      End If``` Link to comment Share on other sites More sharing options...
Genosha Posted July 12, 2009 Author Share Posted July 12, 2009 Ok, I where would I put the code? Sorry, but I'm new at scripting. Thanks for the help. Link to comment Share on other sites More sharing options...
Braiton Posted July 12, 2009 Share Posted July 12, 2009 In ModGameLogic, server side, under the AttackPlayer Sub, search for "has been deemed a player killer!". Thats the part that that sets your PK status so find```Call SetPlayerPK(Attacker, YES)```and change it to```Call SetPlayerPK(Attacker, NO)``` Link to comment Share on other sites More sharing options...
Genosha Posted July 12, 2009 Author Share Posted July 12, 2009 Sorry, but I don't seem to have that file, I looked every where in the Server section. Could you post the contents of that file and tell me where to place the text? Thanks for the help. Link to comment Share on other sites More sharing options...
Harris6310 Posted July 12, 2009 Share Posted July 12, 2009 Have you got the source version? Link to comment Share on other sites More sharing options...
Genosha Posted July 12, 2009 Author Share Posted July 12, 2009 No, is that where the file is located? I'll download it now. Link to comment Share on other sites More sharing options...
Harris6310 Posted July 12, 2009 Share Posted July 12, 2009 Have you got Visual Basic 6? Link to comment Share on other sites More sharing options...
Genosha Posted July 12, 2009 Author Share Posted July 12, 2009 I have Visual Basic 08, would that work? Link to comment Share on other sites More sharing options...
Braiton Posted July 12, 2009 Share Posted July 12, 2009 No, you need visual basic 6 (not portable edition) to edit the source. You can buy it from Ebay. Link to comment Share on other sites More sharing options...
Genosha Posted July 12, 2009 Author Share Posted July 12, 2009 Well, I opened up the file and it showed everything fine, I found what I had to edit it and it seems that Visual Basic 08 works fine for me though. Do I just copy and paste the source files from the source to the regular server folder to get is to work? Or do I have to transfer all my files from the regular to the source folder? Thanks. Link to comment Share on other sites More sharing options...
Braiton Posted July 12, 2009 Share Posted July 12, 2009 Copy the source files into your game's folder.Anyway, using VB 08 wont work. You'll see sooner or later. Link to comment Share on other sites More sharing options...
Admiral Refuge Posted July 12, 2009 Share Posted July 12, 2009 @Genosha:> Well, I opened up the file and it showed everything fine, I found what I had to edit it and it seems that Visual Basic 08 works fine for me though. Do I just copy and paste the source files from the source to the regular server folder to get is to work? Or do I have to transfer all my files from the regular to the source folder? Thanks.Visual Basic 6 has the .net framework; you will not be able to sucsessfully compile the source with that.But regardless, you edit the "Project" as a whole.In the client, I believe it's "Eclipse.vpb", if it's the server, it's "Server.vpb"; either way, you open up the VPB file.But yea, the only legal way of getting Visual Basic 6, is buying it secondhand; you could buy it from eBay, but you're going to end up paying afew hundred.You can get Visual Basic 6.0 Enterprise or Professional Edition for like, $20 as a computer show; then, there are the [illegal](http://lmgtfy.com/?q=vb6+torrent+plox) methods. Link to comment Share on other sites More sharing options...
Genosha Posted July 12, 2009 Author Share Posted July 12, 2009 Ok, thanks everyone for your help. I'll try to see if I can find VB 6 anywhere. Link to comment Share on other sites More sharing options...
dao Posted July 12, 2009 Share Posted July 12, 2009 look for vb6 portable if u cant find the other one Link to comment Share on other sites More sharing options...
Braiton Posted July 13, 2009 Share Posted July 13, 2009 No, VB6 Portable wont do either. Link to comment Share on other sites More sharing options...
Genosha Posted July 13, 2009 Author Share Posted July 13, 2009 Ok, one last question, do I have to edit anything in server.bpw to get this to work? Or do I just have to move all the server files and edit ModGameLogic? Thanks again for the help. Link to comment Share on other sites More sharing options...
Braiton Posted July 13, 2009 Share Posted July 13, 2009 Open Server.vbp and on the right you should see the Project Manager, expand the Modules section and open ModGameLogic. Link to comment Share on other sites More sharing options...
Genosha Posted July 13, 2009 Author Share Posted July 13, 2009 Ok, when ever I try to install Visual Basic 6, it just freezes every time when I try to install. It says, "Setup is searching for installed components" and it freezes there. It is Visual Basic 6 Enterprise and I am using Windows XP Media Center SP 3\. You sure there isn't any other version of Visual Basic that will work? I have tried looking for a fix, but I have found none. Thanks. Link to comment Share on other sites More sharing options...
Braiton Posted July 13, 2009 Share Posted July 13, 2009 Try installing again. If it fails, consider buying a real copy. Link to comment Share on other sites More sharing options...
Genosha Posted July 13, 2009 Author Share Posted July 13, 2009 Ok, thanks everyone for your help. Link to comment Share on other sites More sharing options...
Genosha Posted July 13, 2009 Author Share Posted July 13, 2009 Ok, so after I have finished editing the file through source.vwp, do I compile it? Then do I run the compiled source.exe instead of the other one? Thanks. Link to comment Share on other sites More sharing options...
Admiral Refuge Posted July 13, 2009 Share Posted July 13, 2009 Why are you editing any vwp file?You need to edit the vbp Project file (if you're editing the client, it's Eclipse.vbp, if you're editing the server, it's Server.vbp).Either way, you compile by going to "File -> Make.exe" Link to comment Share on other sites More sharing options...
Genosha Posted July 13, 2009 Author Share Posted July 13, 2009 Ok, thanks I ment to say server.vwp. Thanks for all the help. Link to comment Share on other sites More sharing options...
Akselj Posted July 13, 2009 Share Posted July 13, 2009 @Genosha:> Ok, thanks I ment to say server.vwp. Thanks for all the help.I hope you mean "I meant to say Server.**vbp**"In that case, how can you hit W instead of B? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now