JadeCurt1ss Posted September 27, 2008 Author Share Posted September 27, 2008 Well, when I started this project, I wanted tough NPCs especially boss NPCs; however the current system of NPC Creation did not allow for that, as scroll bars only go up to 32,767 (The size of an integer in VB6)Well, looking in the game finds that the NPC HP values are longs which can reach 2,147,850,675\. Thats a far cry from 32,767\. So, let's unlock the potential of NPCs:First: Obtain VB6, and a copy of EE 2.7 (I haven't tested on anything lower.)Open your client, and then examine the interface of frmNPCeditor. Find the scrollbar for NPC HP, and delete it.Next, create a Textbox in its place with the name "StartHP".Double Click on the Code and change the .value to .textUnder that, input this code:> Private Sub StartHP_KeyPress(KeyAscii As Integer)> Dim Counter As Byte> Dim IsNumber As Boolean> > IsNumber = False> > For Counter = 0 To 9> If Chr$(KeyAscii) = Trim(Counter) Then IsNumber = True> Next> > If Not IsNumber Then MsgBox ("That is not a number.")> End SubThis makes sure you have a number as your input.Next, hit CTRL + F simultaneously. This opens the search/find box. Enter StartHP.Value into the search terms and set the search parameters to "Enitre Project" using the radio buttons. Everwhere it shows you a "StartHP.Value" change it to a "StartHP.Text".That's all there is to it! Have fun! Link to comment Share on other sites More sharing options...
Fred Posted September 28, 2008 Share Posted September 28, 2008 Wow, yes. I will use it after. I never like scrollls on npc editor, and biger valutes are also very useful. Thanks for share. Link to comment Share on other sites More sharing options...
JadeCurt1ss Posted September 28, 2008 Author Share Posted September 28, 2008 Thanks, Fred. I always admired you and Aphelion Online. Nice to get a compliment from the person you admire. Link to comment Share on other sites More sharing options...
shadowwulf Posted September 29, 2008 Share Posted September 29, 2008 sounds pretty coolI beleive all the scroll bars should be removed…they should all just be text boxes for integers and just give a little warning when to high. Link to comment Share on other sites More sharing options...
JadeCurt1ss Posted September 29, 2008 Author Share Posted September 29, 2008 Except certain stats. Ever heard of a boss battle? Link to comment Share on other sites More sharing options...
shadowwulf Posted September 29, 2008 Share Posted September 29, 2008 not sure what you are getting at.boss has super high stats so you have to be really smart/lucky or have a good group. Link to comment Share on other sites More sharing options...
JadeCurt1ss Posted September 29, 2008 Author Share Posted September 29, 2008 > text boxes for integersnonono… no integers.Longs.Yeah. L-o-n-g-s. I can't stand plain ol' integers. Link to comment Share on other sites More sharing options...
shadowwulf Posted September 29, 2008 Share Posted September 29, 2008 i didnt mean a variable definition of integer… i meant integer as in number... Link to comment Share on other sites More sharing options...
JadeCurt1ss Posted September 30, 2008 Author Share Posted September 30, 2008 Oic. This helped my post count none the less. Link to comment Share on other sites More sharing options...
shadowwulf Posted September 30, 2008 Share Posted September 30, 2008 rofl, me too… cause i sooo need it... Link to comment Share on other sites More sharing options...
JadeCurt1ss Posted September 30, 2008 Author Share Posted September 30, 2008 I could go on and just spam my own topic like crazy just chatting with you, Shadow ;] Link to comment Share on other sites More sharing options...
shadowwulf Posted September 30, 2008 Share Posted September 30, 2008 rofl.arguing that that is wrong would be condoning it by the action in itself.i love logic! Link to comment Share on other sites More sharing options...
JadeCurt1ss Posted September 30, 2008 Author Share Posted September 30, 2008 That actually made sense. Lets keep going till te admins tell us to piss off. We'll just keep going, none the less, amirite? Link to comment Share on other sites More sharing options...
DrNova Posted September 30, 2008 Share Posted September 30, 2008 Piss off XDSeriously though, back on topic.I'll lock it if it becomes neccesary, bleh Link to comment Share on other sites More sharing options...
shadowwulf Posted September 30, 2008 Share Posted September 30, 2008 ok ok, now what was the topic again?oh yeah, we should really remove the slider bars for the most part.I hate when my mouse jumps and tried to pick like 20k and i crash the serveryou should go through 2.7 and see if its helps to switch the majority of them.add a check for above max and just tell user its too high… instead of crash. Link to comment Share on other sites More sharing options...
unnown Posted September 30, 2008 Share Posted September 30, 2008 hmm well i think a lot of values could be either integers, and some could have an custom inputboxi believe this same topic was raised before Link to comment Share on other sites More sharing options...
JadeCurt1ss Posted September 30, 2008 Author Share Posted September 30, 2008 Well it would require one of us going through the source and figuring out the values the sliderbars values change. I Could edit the main post as I come acrss it for people who want/need it like shadow. Link to comment Share on other sites More sharing options...
Skieth Posted October 25, 2008 Share Posted October 25, 2008 The only problem with using more longs then integers is that longs take up more data ._.Personally I would rather make the long an integer in this case and just increase the defense by a lot instead of the hp.Because more def > more hp Link to comment Share on other sites More sharing options...
JadeCurt1ss Posted October 25, 2008 Author Share Posted October 25, 2008 I much prefer a large value of hp for boss fights. Link to comment Share on other sites More sharing options...
Skieth Posted October 25, 2008 Share Posted October 25, 2008 @JadeCurt1ss:> I much prefer a large value of hp for boss fights.an integer uses 2 bytesa long uses 4 bytesyour game therefore is faster with integers =D Link to comment Share on other sites More sharing options...
Firestar Posted October 25, 2008 Share Posted October 25, 2008 @Skieth:> an integer uses 2 bytes> > a long uses 4 bytes> > your game therefore is faster with integers =DBut is it really by very much? 500 NPCs with integer HP would probably use 1 KB, while 500 NPCs with long HP just take 2, if I'm understanding this correctly. Link to comment Share on other sites More sharing options...
mrmiguu Posted October 25, 2008 Share Posted October 25, 2008 This is a great guide! Thank you so much for posting this because now I can my my Boss monsters in Lostica 100x's stronger! I never though of doing this… ty, very helpful!Sincerely, MrMiguu Link to comment Share on other sites More sharing options...
Skieth Posted October 25, 2008 Share Posted October 25, 2008 @Firestar:> But is it really by very much? 500 NPCs with integer HP would probably use 1 KB, while 500 NPCs with long HP just take 2, if I'm understanding this correctly.but its not like its only sent one time… Link to comment Share on other sites More sharing options...
mrmiguu Posted October 25, 2008 Share Posted October 25, 2008 @Firestar:> But is it really by very much? 500 NPCs with integer HP would probably use 1 KB, while 500 NPCs with long HP just take 2, if I'm understanding this correctly.But see, initially HP is long but the variable change is used via integer scrolling bars, so all she is doing is opening the full capability of the Long HP variables used in the eclipse source… lol Link to comment Share on other sites More sharing options...
Skieth Posted October 25, 2008 Share Posted October 25, 2008 @MrMiguu:> But see, initially HP is long but the variable change is used via integer scrolling bars, so all she is doing is opening the full capability of the Long HP variables used in the eclipse source… lolwhich is why you should change it from long to integer like I did 5 minutes ago xD 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