Howdy Posted August 9, 2009 Author Share Posted August 9, 2009 Hey, I've just started out using eclipse again and I'm making a game for me and some friends to just play around on, and I have a few questions.* Is it possible to change the Max Length of what a friendly NPC can say when you hit CTRL over them?* Is it possible to make an item which when double clicked can warp you to somewhere?* Is it possible to make an NPC stand still on one spot?Thanks a lot, any help will be appreciated. Link to comment Share on other sites More sharing options...
Owen F Posted August 9, 2009 Share Posted August 9, 2009 Hello and welcome to eclipse, Howdy ;)First of all1: I am not so sure about this, you could have it scripted to say multiple messages though2\. Scripted definitely :)3\. Yes, when you put the NPC in define his X and Y (e.g 5, 5) then put NPC Avoids all around him:) Link to comment Share on other sites More sharing options...
Howdy Posted August 9, 2009 Author Share Posted August 9, 2009 Thanks for helping.How would I go about scripting the NPC to say multiple messages? Link to comment Share on other sites More sharing options...
Owen F Posted August 9, 2009 Share Posted August 9, 2009 Go to Server/Scripts/ open Main.txtCtrl+f (find) ScriptedNPCreplace case 0 with```Case 0Call PlayerMsg(index,"your message here",0)Call PlayerMsg(index,"your message here",0)'Etc, etc.Exit Sub```First of all edit the 'Your Message Here' partsget rid of the 'etc. etc partPut a new Call PlayerMsg(index,"",0) For each message :) (make sure it is BEFORE THE EXIT SUB)then go make a new npc, set its behaviour to scripted,put the bar on 0make all of his stats at least 1, then save.Now put him on a map and when you press ctrl all your messages will pop up Link to comment Share on other sites More sharing options...
Howdy Posted August 9, 2009 Author Share Posted August 9, 2009 Thanks a lot :).If I am correct I can do the same with Case 1,2,3 etc. for different NPC's? Link to comment Share on other sites More sharing options...
Owen F Posted August 9, 2009 Share Posted August 9, 2009 indeed you can :) Link to comment Share on other sites More sharing options...
Howdy Posted August 9, 2009 Author Share Posted August 9, 2009 I have done what you said, but when I press CTRL on my NPC no messages are sent through. Did I do anything wrong?I have restarted the server also and it still doesn't work. Link to comment Share on other sites More sharing options...
Patrick Posted August 9, 2009 Share Posted August 9, 2009 Did you input the code exactly as INH wait OWEN fox did? Becuase you have to tab in the lines. Link to comment Share on other sites More sharing options...
Howdy Posted August 9, 2009 Author Share Posted August 9, 2009 Here's a picture of exactly how my code is:![](http://img18.imageshack.us/img18/192/57671209.jpg) Link to comment Share on other sites More sharing options...
Patrick Posted August 9, 2009 Share Posted August 9, 2009 I think the exit sub should be back a tab. Link to comment Share on other sites More sharing options...
Howdy Posted August 9, 2009 Author Share Posted August 9, 2009 I did that and it still does not work. :/ Link to comment Share on other sites More sharing options...
Howdy Posted August 11, 2009 Author Share Posted August 11, 2009 Please can anyone help with this, it's one of the only things left to do in my game, also, signs do not work either. Link to comment Share on other sites More sharing options...
Owen F Posted August 11, 2009 Share Posted August 11, 2009 Just use this one```Sub ScriptedNPC(Index, Script)Select Case ScriptCase 0Call PlayerMsg(Index,"Welcome to Howdy's",0)Call PlayerMsg(index,"Please follow on down these stairs to meet the next tutorial NPC",0)Exit Sub```Signs require enter to read, not control. If you want, you can just use the notice attribute in front of a sign as a makeshift one, if it still does not work.Hope i helped.:azn: Link to comment Share on other sites More sharing options...
Admiral Refuge Posted August 11, 2009 Share Posted August 11, 2009 Make sure your scripted NPC is using script0.Make sure you give your NPC stats (str, def, health, etc) higher then 0.Check your server's control panel, make sure it says Scripts: ON Link to comment Share on other sites More sharing options...
Diskmaster Posted August 11, 2009 Share Posted August 11, 2009 Scripted Teleportation Item:Sub ScriptedItems(index)```Case 0Call PlayerWarp(index, X, Y, MAP)Call PlayerMsg(index, "you have been warped to"& GetMapName(GetPlayerMap(index))&"!", BRIGHTGREEN)```Replace the X with the x coordinate of the map u want to be warped to, Replace the Y with the y coordinate, and replace the MAP with the map #, Note, if that works, after u teleport, it will desplay a message telling u u got warped to: and then the Map Name. 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