lahdeedah2 Posted April 7, 2009 Author Share Posted April 7, 2009 How do I add NPCs to the maps? I can't figure it out. :P. I have 2.7, btw. Link to comment Share on other sites More sharing options...
Admiral Refuge Posted April 7, 2009 Share Posted April 7, 2009 Hi, before anyything, let me be the very first one here to welcome you to the Eclipse :azn:It's always great to see new members on here asking questions and using the engine XDThat being said, the solution is very simple. After you're in the map Editor, hit "Map Properties", and click the "NPC" tab; you should find the solution you're looking for.If you have any other questions, please let us know, we would be more than happy to help. Link to comment Share on other sites More sharing options...
lahdeedah2 Posted April 7, 2009 Author Share Posted April 7, 2009 @Ã…ÃÂüiÑÂôζ:> Hi, before anyything, let me be the very first one here to welcome you to the Eclipse :azn:> > It's always great to see new members on here asking questions and using the engine XD> > That being said, the solution is very simple. After you're in the map Editor, hit "Map Properties", and click the "NPC" tab; you should find the solution you're looking for.> > If you have any other questions, please let us know, we would be more than happy to help.Thank you for the welcome & the help :DEdit:They will not show up for me =/. I put the coordinates, but they don't spawn there. Link to comment Share on other sites More sharing options...
Admiral Refuge Posted April 7, 2009 Share Posted April 7, 2009 Have you saved the map afterward?Try re-starting the client. Link to comment Share on other sites More sharing options...
lahdeedah2 Posted April 7, 2009 Author Share Posted April 7, 2009 Okay, I got it on my map, but when I attack it, nothing happens Link to comment Share on other sites More sharing options...
yorty Posted April 7, 2009 Share Posted April 7, 2009 A glitch, your 1st npc is unattackable (sometimes) Link to comment Share on other sites More sharing options...
lahdeedah2 Posted April 7, 2009 Author Share Posted April 7, 2009 Should I remove it, and put another?Edit:I tried remove it, and adding it to the map again, but it's still unattackable. Link to comment Share on other sites More sharing options...
Admiral Refuge Posted April 7, 2009 Share Posted April 7, 2009 OH, you may need a weapon to attack the NPC if the NPC has and def Link to comment Share on other sites More sharing options...
lahdeedah2 Posted April 7, 2009 Author Share Posted April 7, 2009 Alright, I got it :). Thank you.Edit:Now, it's night everywhere. I don't know why. I set it back, but it just goes back to night as soon as I leave the map editor. =/ Link to comment Share on other sites More sharing options...
Admiral Refuge Posted April 7, 2009 Share Posted April 7, 2009 Okay, to change Night, you need to go to your server. You'll see an are where you can set the time. Just set it to like, 11:00 and it will become daytime again (then, once it's day, you can "Disable Time" if you don't want to use the night-system) Link to comment Share on other sites More sharing options...
lahdeedah2 Posted April 7, 2009 Author Share Posted April 7, 2009 How do you give a shop-keeper a weapon to sell? Link to comment Share on other sites More sharing options...
Admiral Refuge Posted April 7, 2009 Share Posted April 7, 2009 I think the shopkeepers are bugged, but you can use a Scripted NPC.Use the command:Call goshopping(index, ShopNum)Replace "ShopNum" with the number of the shop (if the shop is number "2", replace it with "2").To learn how to install scripts, you can use [this tutorial](http://www.touchofdeathforums.com/smf/index.php?topic=10036.0).Of course, you can also use a "Shop" attribute on the Map Editor, so when a player steps on that attribute, it can open the shop. Link to comment Share on other sites More sharing options...
lahdeedah2 Posted April 7, 2009 Author Share Posted April 7, 2009 Dang. So I got script them? Link to comment Share on other sites More sharing options...
Admiral Refuge Posted April 7, 2009 Share Posted April 7, 2009 @lahdeedah2:> Dang. So I got script them?You only have to do it for the NPC.It's not that hard, it's just 1 command.Just go to your Scripted NPC sub (here it is):**' Executes whenever a scripted NPC does an action.Sub ScriptedNPC(Index, Script)Select Case ScriptCase 0Call PlayerMsg(Index, "This scripted NPC has no apparent use.", WHITE)Exit SubCase ElseCall PlayerMsg(Index, "No NPC script found. Please contact an admin to solve this problem.", WHITE)Exit SubEnd SelectEnd Sub**And make Case 0:**Case 0Call goshopping(index, ShopNum)Exit Sub**Then in your NPC editor, set the type to "Scripted", and choose Script 0; it's that easyPS: Remember to change "ShopNum" to whatever number the shop is Link to comment Share on other sites More sharing options...
lahdeedah2 Posted April 7, 2009 Author Share Posted April 7, 2009 Thank for the help. I appreciate it :D. Is there a way I can change the amount of stat points you get everytime you level? Link to comment Share on other sites More sharing options...
Admiral Refuge Posted April 8, 2009 Share Posted April 8, 2009 @lahdeedah2:> Thank for the help. I appreciate it :D. Is there a way I can change the amount of stat points you get everytime you level?Yep, that's an easy one.Go into your Main.txt, and find this part:Sub PlayerLevelUp(Index)You'll see a command that says:Call SetPlayerPOINTS(Index, GetPlayerPOINTS(Index) + 1)Change the + 1 to a + 2 to get 2 stat points, or change it to whatever number you want Link to comment Share on other sites More sharing options...
lahdeedah2 Posted April 8, 2009 Author Share Posted April 8, 2009 I know this sounds stupid, but what's my main text? lol Link to comment Share on other sites More sharing options...
Admiral Refuge Posted April 8, 2009 Share Posted April 8, 2009 @lahdeedah2:> I know this sounds stupid, but what's my main text? lolYour main.txt is where you will need to edit that NPC, that sub, and it's the core of your scripting system.The Main.txt is in the Server\Scripts\ folder. Link to comment Share on other sites More sharing options...
lahdeedah2 Posted April 8, 2009 Author Share Posted April 8, 2009 I changed it to five, but it doesn't work in-game. Link to comment Share on other sites More sharing options...
Admiral Refuge Posted April 8, 2009 Share Posted April 8, 2009 Oh, you have to restart the server, or in the server control panel. hit "Reload Scripts" Link to comment Share on other sites More sharing options...
lahdeedah2 Posted April 8, 2009 Author Share Posted April 8, 2009 Okay. It works for regular players, but not the owner, me. I still get 1 point every level. The regular players get 5 points a level. Is it because I use the mass level thing? Link to comment Share on other sites More sharing options...
Admiral Refuge Posted April 8, 2009 Share Posted April 8, 2009 @lahdeedah2:> Okay. It works for regular players, but not the owner, me. I still get 1 point every level. The regular players get 5 points a level. Is it because I use the mass level thing?That might be the reason, not entirely sure; try leveling up normally and see if you get extra points. 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