madyotto Posted March 8, 2012 Author Share Posted March 8, 2012 dam my poor reading ability lolok so now the problem is that i want a good stable version to add the things i need to but i read so many posts over the last few weeks and im struggling to find them using the search functionfor my project i would need/haveto set the max :1\. NPC'S per map = 100 (done)2\. max drop amount =50,000 for gold to drop of mobs as they can only drop 255 of any item (not found/ struggling)also:3\. mouse movement (found)= http://www.touchofdeathforums.com/smf/index.php/topic,75971.0.html4\. projectiles (found a few plz suggest a good stable version)(IT'S no big one for me this just to use for one class if i end up making a rouge class)5\. lighting boss frame work (Cant find but read many references to it)6\. class defines npc's aggro range when in attack on sight (this is a request im sure it doesn't exist )few others but these have been foundcould someone plz point me in the direction of the Tut's i fail to findany other help would be epicPS. i dont want it all doing for me just to learn(let the racehorse out of the blocks before asking him to jump lol)(DAM my dyspraxia lol) Link to comment Share on other sites More sharing options...
Justn Posted March 8, 2012 Share Posted March 8, 2012 http://www.touchofdeathforums.com/smf/index.php/topic,75901.0.htmlhere is a list all work here unless you see this * (to my understanding)just dive in head first and start doing a couple you will find that most are super easy and most you can edit to your needs… make backups of your work in case you mess up though =) Link to comment Share on other sites More sharing options...
madyotto Posted March 8, 2012 Author Share Posted March 8, 2012 yep if there is one thing i learnt while editing broken/buggy versions itsA. dont use a buggy versionandB. back up and test every added tut lolthanks so much :) Link to comment Share on other sites More sharing options...
madyotto Posted March 8, 2012 Author Share Posted March 8, 2012 this is fantastic i should now be able to compile a full working version of what i had in mindLeaving only these to find1\. max drop amount =50,000 for gold to drop of mobs as they can only drop 255 of any item (not found/ struggling)2\. lighting boss frame work (Cant find but read many references to it)3\. class defines npc's aggro range when in attack on sight (this is a request im sure it doesn't exist )(for this i have a friend who knows vb6 reasonably well but pointers on where source needs to be edited are VERY much welcome)(#NEW added request EASY one i should think)4\. because i plan on having AOE based maps some with an epic 100 NPC's i really need a faster way to add them in the map_properties editorso far i have managed to make the map npc box so we can select multiple map npc numbershowever i now need a quick edit to the code so that all selected numbers have the same npc when selected in the npc drop down boxhope i made this last step as understandable as possiblethanks for any further assistance and to JUSTIN for being very nice and helping me lots Link to comment Share on other sites More sharing options...
Jimmy93 Posted March 8, 2012 Share Posted March 8, 2012 @madyotto:> 1\. max drop amount =50,000 for gold to drop of mobs as they can only drop 255 of any item (not found/ struggling)Client side,open frmEditor_NPCSelect the scroll bar beside value: 0Scroll down in the properties until you see "Max 255"Change the max to 50 000 Link to comment Share on other sites More sharing options...
madyotto Posted March 8, 2012 Author Share Posted March 8, 2012 ok thanks a huge bunchso just to confirm i dont have to edit server side? Link to comment Share on other sites More sharing options...
Jimmy93 Posted March 8, 2012 Share Posted March 8, 2012 Not that i know of Link to comment Share on other sites More sharing options...
madyotto Posted March 8, 2012 Author Share Posted March 8, 2012 ok thanks will play round later but i dont think this will work as its code that needs editing editing the properties of the slider will not make/let it drop more than 255 as this is coded in Link to comment Share on other sites More sharing options...
Ruins of Hell Posted March 9, 2012 Share Posted March 9, 2012 @madyotto:> 1\. max drop amount =50,000 for gold to drop of mobs as they can only drop 255 of any item (not found/ struggling)Just change the maximum on the scroll bar and compile. I am almost sure that it will work. Just note that you can't put it above 32767.@madyotto:> 2\. lighting boss frame work (Cant find but read many references to it)[Please try googling first.](http://lmgtfy.com/?q=site%3Atouchofdeathforums.com+lightning%27s+boss+battle+framework) I found [this as the second link](http://www.touchofdeathforums.com/smf/index.php?topic=71638.0) and another page of the topic was the second link.@madyotto:> 3\. class defines npc's aggro range when in attack on sight (this is a request im sure it doesn't exist )> (for this i have a friend who knows vb6 reasonably well but pointers on where source needs to be edited are VERY much welcome)Go to NpcRec. Find how the range is set (hint hint: Range As Byte). Find out where else Range is used (find .Range). Determine which ones are for NPCs (there's only 5 in all, so it shouldn't be hard). Find out that it's in UpdateMapLogic server-side (n = Npc(npcNum).Range). Change it so that if the class is a warrior it is "spotted" first by increasing n (n = n + GetPlayerClass(i) would give players that have a higher class number a higher aggressiveness).@madyotto:> (#NEW added request EASY one i should think)> 4\. because i plan on having AOE based maps some with an epic 100 NPC's i really need a faster way to add them in the map_properties editor> > so far i have managed to make the map npc box so we can select multiple map npc numbers> > however i now need a quick edit to the code so that all selected numbers have the same npc when selected in the npc drop down box> hope i made this last step as understandable as possiblePlease do not decide what is easy. The people who answer your question will decide what is easy. (But yeah, this isn't hard at all.)There's several ways to do this. The best way would be to allow Multiple Selection (see the MultiSelect property, and if you do, set it to Extended because it will make it much easier than Simple). You could then loop through the entire list, and if it is selected, set it appropriately. The following code is a quick sketch on how one could do that.**WARNING: the following code is untested, highly dangerous, and possibly radioactive. Please use with caution and make a backup before proceeding!**Find:``` ' make sure it's not a clear If Not cmbNpc.List(cmbNpc.ListIndex) = "No NPC" Then npcNum = CLng(Left$(tmpString(0), Len(tmpString(0)) - 1)) Map.Npc(lstNpcs.ListIndex + 1) = npcNum Else Map.Npc(lstNpcs.ListIndex + 1) = 0 End If```and replace it with:``` ' make sure it's not a clear If Not cmbNpc.List(cmbNpc.ListIndex) = "No NPC" Then npcNum = CLng(Left$(tmpString(0), Len(tmpString(0)) - 1)) Else npcNum = 0 End If For x = 1 To lstNpcs.ListCount If lstNpcs.Selected(x) Then Map.Npc(lstNpcs.ListIndex + 1) = npcNum End If Next```Usage directions:Click to select initial one.Control-Click to select another one.Click and then shift-click to select everything in between and including the two slots you clicked. Link to comment Share on other sites More sharing options...
madyotto Posted March 9, 2012 Author Share Posted March 9, 2012 1\. brilliant (appoligies to jimmy93 for doubting ya lol)Just note that you can't put it above 32767. < (this was my main query)2\. MY bad failed to read it properly 24 year's old and still struggle at not missing lines when reading lol(that's dyspraxia for ya)it is actually in the tut list that was linked above how i failed to spot this i would love to know(Ps. Google is my best friend it just didn't occur to me that it would show let alone be on the first page :P)3\. out of my league lol (pall88) has some work to do when he gets home pmsl :Pbut thanks makes much more sense now4.very nice i am going to try these right now first off i will try NUM 4\. as this is the untested bit and easier to debug if needed with no added Tut's lol :PEPIC THANKS TO : JUSTIN, JIMMY93, and even bigger thanks to SOUL for the work he did(PS the statement said: it should be (easy)i wouldn't of put a request in if i hadn't had 2 friends suggest it can be done and say it shouldn't be to hardbut your all very kind im hardly the most competent but as i say we all start somewheredam having a disabillity would love to be able to learn VB properly Link to comment Share on other sites More sharing options...
madyotto Posted March 9, 2012 Author Share Posted March 9, 2012 HELP PLEASEi tried you addition for multi npc selecti get errorruntime 381pointing at this lineIf lstNpcs.Selected(x) Thenhave i done something wrong or is it the code ? Link to comment Share on other sites More sharing options...
erkro1 Posted March 9, 2012 Share Posted March 9, 2012 I've seen that some fix the problem with this, **but I'm not sure if this works:**Replace:``` ' make sure it's not a clear If Not cmbNpc.List(cmbNpc.ListIndex) = "No NPC" Then npcNum = CLng(Left$(tmpString(0), Len(tmpString(0)) - 1)) Else npcNum = 0 End If For x = 1 To lstNpcs.ListCount If lstNpcs.Selected(x) Then Map.Npc(lstNpcs.ListIndex + 1) = npcNum End If Next```With:``` ' make sure it's not a clear If Not cmbNpc.List(cmbNpc.ListIndex) = "No NPC" Then npcNum = CLng(Left$(tmpString(0), Len(tmpString(0)) - 1)) Else npcNum = 0 End If For x = 1 To lstNpcs.ListCount - 1 If lstNpcs.Selected(x) Then Map.Npc(lstNpcs.ListIndex + 1) = npcNum End If Next``` Link to comment Share on other sites More sharing options...
madyotto Posted March 9, 2012 Author Share Posted March 9, 2012 ok thanks a lot this did sort the error but it still only places the last map npc selected not the whole rangeany ideas ive had a play ive deleted npc's and maps and still no joybut love you all :) Link to comment Share on other sites More sharing options...
Ruins of Hell Posted March 9, 2012 Share Posted March 9, 2012 @madyotto:> have i done something wrong or is it the code ?It's the code. Erwin's fix is (mostly) good. Just needs a small change to fix his fix, replace what he gave you with this:``` ' make sure it's not a clear If Not cmbNpc.List(cmbNpc.ListIndex) = "No NPC" Then npcNum = CLng(Left$(tmpString(0), Len(tmpString(0)) - 1)) Else npcNum = 0 End If For x = 1 To MAX_MAP_NPCS If lstNpcs.Selected(x - 1) Then Map.Npc(x) = npcNum End If Next```That should sort any error/disfunction you get with it, but I'll test it when I get the chance. **Make sure that you set the MultiSelect property of the listbox to _Extended_ if you haven't already.**EDIT: fixed some things with the code. It looks cleaner now and it's faster. Link to comment Share on other sites More sharing options...
madyotto Posted March 9, 2012 Author Share Posted March 9, 2012 > . Make sure that you set the MultiSelect property of the listbox to Extended if you haven't already.CHECK this was done on simple before the code request :P > Just needs a small change to fix his fixim on it right now cheers for the support guys Link to comment Share on other sites More sharing options...
Ruins of Hell Posted March 9, 2012 Share Posted March 9, 2012 @madyotto:> im on it right now cheers for the support guysI made a small change to the code, make sure you use the new version instead. Link to comment Share on other sites More sharing options...
madyotto Posted March 9, 2012 Author Share Posted March 9, 2012 ok trying again was about to post debug info lol :P Link to comment Share on other sites More sharing options...
madyotto Posted March 9, 2012 Author Share Posted March 9, 2012 nice work you are a genius I love you lol :P Link to comment Share on other sites More sharing options...
madyotto Posted March 10, 2012 Author Share Posted March 10, 2012 for some reason after my first attempt at this it had stopped showing that it has selected the new mobs untill you click ok send all highlighted mobs are on map and when i go back to editor properties all mobs show in the npc list box as they should lol but its fine i can use it and it will save me uber time Link to comment Share on other sites More sharing options...
Ruins of Hell Posted March 10, 2012 Share Posted March 10, 2012 @madyotto:> for some reason after my first attempt at this it had stopped showing that it has selected the new mobs untill you click ok send all highlighted mobs are on map and when i go back to editor properties all mobs show in the npc list box as they should lol but its fine i can use it and it will save me uber timeSorry, I understood what you were saiyan (I think), but I wasn't able to replicate this on my copy (or on a default copy). As long as it works for you.Also, can you please stop double posting? (Posting twice in a row.) We have an edit button for that. Link to comment Share on other sites More sharing options...
madyotto Posted March 10, 2012 Author Share Posted March 10, 2012 are you connecting through local host or an ip im on ip might be the diffrencewill test this soonish (brew first :P )**EDIT it defo has nothing to do with me having it using ip lol Link to comment Share on other sites More sharing options...
kenny92316 Posted March 10, 2012 Share Posted March 10, 2012 @Jimmy93:> Client side,> open frmEditor_NPC> Select the scroll bar beside value: 0> Scroll down in the properties until you see "Max 255"> Change the max to 50 000I'm pretty sure the scroll bars have a maximum of around 32,700 about as much as interger data can max at. Link to comment Share on other sites More sharing options...
Ruins of Hell Posted March 10, 2012 Share Posted March 10, 2012 @kenny:> I'm pretty sure the scroll bars have a maximum of around 32,700 about as much as interger data can max at.Yes. We already established that in the last page. In fact, this whole topic is resolved. T_T Link to comment Share on other sites More sharing options...
madyotto Posted March 10, 2012 Author Share Posted March 10, 2012 > this whole topic is resolved. T_Tnot quite truei have a problem with adding two cirtain Tut's togetherSEE HERE \/http://www.touchofdeathforums.com/smf/index.php/topic,78675.0.htmlhuge thanks TO :JUSTNSoulJimmy93ErwinKenny IM LEARNING SO MUCH AND I ENJOY TOO :) Link to comment Share on other sites More sharing options...
Ruins of Hell Posted March 11, 2012 Share Posted March 11, 2012 @madyotto:> SEE HERE \/> http://www.touchofdeathforums.com/smf/index.php/topic,78675.0.htmlWe'll keep that in the other topic and say that this topic, just not all your questions, are resolved. ;)As for that question I'll get on it soon; I don't believe there will be any problems. 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