DragonPrime - LoGD Resource Community
Welcome Guest
  • Good evening, Guest.
    Please log in, or register.
  • July 21, 2018, 12:29:41 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1] 2   Go Down
  Print  
Author Topic: NPC - Violet  (Read 5844 times)
0 Members and 1 Guest are viewing this topic.
lonnyl
Guest
« on: October 24, 2004, 07:29:13 AM »

I've started coding NPC's.  I started with Violet and will be releasing Dag Durnik, Bard Seth, and Barkeep Cedrick shortly.  I decided to make each npc their own seperate module as you can set different options to each and even activate and de-activate npc's to have a variety of who is on and who is not.   The NPC file should be pretty easy to convert to your own NPC's with a simple replace of the modulename and character name.  Then one would want to change some of the commentary values to match your NPC.  

Anyway doing them seperate should make it so that you can make any number of NPC's for your game and have only some or all of them active at one time.  

Note on Installer.  I wanted to make it so that you can set the password for the NPC account yourself, so the installer goes through 2 times... so the install will work a little different (not much). But because the install routine is fairly limited it will look a bit different.  

The NPC's have 3 admin settable sayings as well as an admin configurable chattiness and location.

http://www.pqcomp.com/modules/mydownloads/visit.php?cid=3&lid=24
« Last Edit: January 31, 2005, 05:39:31 AM by lonnyl » Logged
lonnyl
Guest
« Reply #1 on: October 24, 2004, 08:07:58 AM »

Just a note on some Ideas for NPC's...
Santa Claus (only active on Christmas and Christmas Eve)...
Jason (friday 13th)
etc....
Other Holiday based NPC's....

Logged
lonnyl
Guest
« Reply #2 on: October 26, 2004, 05:40:27 AM »

Updated to Ver 1.1 streamlined code... db-prefix... translation compat....
Logged
lonnyl
Guest
« Reply #3 on: November 06, 2004, 08:03:10 AM »

Updated to version 1.2 (still has some debug code in it)..... This is a complete re-write of the talk routine (this one works for me!).   I have done the smileys with an array and done the entire commentary with an array, and things seem to work much better this way...

I will be pulling a little of the code (my output line for howmuch)... and tweaking some bugs that may still be there, but this is much improved over the previous NPC code, so I thought I would upload Violet and let you get a look at it.  Once I am satisfied with it, I will update the other NPC files...
Logged
Arune
Member
Mod God
*****
Offline Offline

Posts: 718


Arune Vai - khatfield


View Profile WWW
« Reply #4 on: November 06, 2004, 09:55:00 AM »

Seems to be working better now on my linux box....Although mine may not have been working right since I had like 6 dag users 3 violets etc...not sure how I did that.

I guess maybe re-installing instead of uninstalling and reinstalling? Had to manually delete the characters...Seems to have fixed my problem though.

Thanks again Lonny Smiley
Logged
lonnyl
Guest
« Reply #5 on: November 07, 2004, 05:32:58 AM »

I still have some trouble activating more than 1 npc, but am working to solve the problem.  Things are however much better with the new code.....
Logged
Jim
Guest
« Reply #6 on: November 07, 2004, 05:36:36 AM »

I have all of them running plus the new vampire character. I am not having any problems what so ever. All I had to do with Violet was put her in another town and now she won't shut up...... just like a woman!
Logged
lonnyl
Guest
« Reply #7 on: November 07, 2004, 05:38:18 AM »

Yes.... my next step is to seperate my NPC's into diffent towns.  However I would like for the 4 inn characters to hang out near the inn.... (I may make Cedrick actually hang out in the Inn)
Logged
Jim
Guest
« Reply #8 on: November 07, 2004, 05:43:00 AM »

Having them all in Lunsford Land (capital city) was my hopes at first as well. All of the gentlemen did fine together it was just Violet that didn't like hanging with the guys. Having Cedrick in the inn is an awesome idea.  

After you get done playing with Violet's code is that when you plan on releasing the " npc template"?
Logged
lonnyl
Guest
« Reply #9 on: November 07, 2004, 06:09:32 AM »

Updated again.. trying to reduce the custom sql calls a bit..... violet still comments on other modules.... releasing dag and cedrick which do not comment on other modules....
Logged
AndyMC
Guest
« Reply #10 on: November 07, 2004, 11:26:47 AM »

is there a way to keep violet in the Inn?  I am getting sick of her spamming my capital city
Logged
lonnyl
Guest
« Reply #11 on: November 07, 2004, 06:41:21 PM »

try changing the value $howmuch < 500 to $howmuch <100 or less..... actually should be at 21.... but raised it for testing purposes...
Logged
sixf00t4
Mod God
*****
Offline Offline

Posts: 1916



View Profile WWW
« Reply #12 on: January 16, 2005, 12:06:13 AM »

try changing the value $howmuch < 500 to $howmuch <100 or less..... actually should be at 21.... but raised it for testing purposes...

and that will keep her out of the village commentary and in the inn???

I like the way you did the NPCs in .9.7 better, why are you restricting it to village name as opposed to commentary section?  I am trying to write a ramius npc, and having a bugger of a time converting it over to use the shades(AKA "shade" Wink ).
Logged

lonnyl
Guest
« Reply #13 on: January 16, 2005, 05:56:46 AM »

Each village has it's own commentary.... so to put them in the village I simply used the village name.  I would think that with a few minor modifications, one would be able to place and NPC in the shades.  
Logged
lonnyl
Guest
« Reply #14 on: April 18, 2005, 05:55:16 AM »

Updated NPC code... split the functions off into lib files... reduces server load and script sizes.

Violet 2.0
http://www.pqcomp.com/modules/mydownloads/visit.php?cid=3&lid=24
Logged
Pages: [1] 2   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Version 1.1.2 is the current supported version and is available for download.

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Recent Topics
DragonPrime LoGD
Who's Online
39 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search