DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • November 12, 2018, 10:33:39 AM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1] 2   Go Down
  Print  
Author Topic: Vampire Lord (Forest Special)  (Read 10832 times)
0 Members and 1 Guest are viewing this topic.
GenmaC
Moderator
Codemeister
*****
Offline Offline

Posts: 430

Coder


View Profile WWW
« on: August 01, 2004, 07:09:20 AM »

~yo don't download dis, it's busted~

I no longer support this module  Cool

Random encounter in the forest, trade HP for str, vit, or cash.  COOL HUH yeah that's what I thought
« Last Edit: July 30, 2007, 02:23:17 PM by GenmaC » Logged



Castle Siege - a work in progress
Kendaer
Guest
« Reply #1 on: August 01, 2004, 12:03:38 PM »

Comments:

As currently constructed, you will only ever be able to visit the vampire once in your life.  If that's your intent, you might want to change the percentage to 0 if the player has already visited the vampire (see the darkhorse.php or grassyfield.php modules for examples of how to deal with runtime event percentages)

If you didn't intend it to be a once in a 'lifetime' event, then you need to reset visited via a newday hook (if you want to allow one visit a day -- possibly bad idea, see below) or some a dragonkill hook (allow one visit per dragonkill).

If you allow multiple visits however, you'll want to put in safeguards to prevent a person from draining themselves to the point where they will die permanently when they DK (actually you want to do that anyway.. if someone with exactly their level*10 hp uses your vampire lord they will lose HP and then on their dk will have a permanentlyl negative maxhp.. not a good state!!!)
Logged
GenmaC
Moderator
Codemeister
*****
Offline Offline

Posts: 430

Coder


View Profile WWW
« Reply #2 on: August 01, 2004, 11:10:21 PM »

Once per lifetime is the plan.

I've applied the runtime percentage changes, which is more elegant than my previous implementation.
« Last Edit: August 01, 2004, 11:55:03 PM by GenmaC » Logged



Castle Siege - a work in progress
GenmaC
Moderator
Codemeister
*****
Offline Offline

Posts: 430

Coder


View Profile WWW
« Reply #3 on: August 24, 2004, 01:43:20 AM »

Now translation ready.

Edit, uh yeah, also, there was a bit of bug that let users enter more than once and caused one of my users to be at 3 hp after DK.

That, uh, also, has been fixed.
« Last Edit: August 24, 2004, 08:43:50 AM by GenmaC » Logged



Castle Siege - a work in progress
WebPixie
Guest
« Reply #4 on: November 13, 2004, 08:07:28 AM »

Found this little error while trying it out, figured others might like to know if they hadn't already fixed it.

If you select vitality you get a screen full of HTML code instead of the mod running. This is due to a misspelling in the script.

Code:
   case "vit":
      $reward = $session['user']['level']/2 + 1;
      $session['user']['defence'] += $reward;
      break;

should be
Code:
   case "vit":
      $reward = $session['user']['level']/2 + 1;
      $session['user']['defense'] += $reward;
      break;

Defense is misspelled so the script was going nuts, but that fixes it up Smiley
Logged
GenmaC
Moderator
Codemeister
*****
Offline Offline

Posts: 430

Coder


View Profile WWW
« Reply #5 on: November 15, 2004, 01:21:53 PM »

doh I forgot that the spellings had been updated...I'll zip up a corrected version at some point soon
Logged



Castle Siege - a work in progress
lonnyl
Guest
« Reply #6 on: November 16, 2004, 05:16:56 AM »

Might as well add an uninstall too....  Tongue

(Not that it needs to be uninstalled... the function is just not there - at least in the one I downloaded)
« Last Edit: November 16, 2004, 05:17:50 AM by lonnyl » Logged
GenmaC
Moderator
Codemeister
*****
Offline Offline

Posts: 430

Coder


View Profile WWW
« Reply #7 on: November 19, 2004, 10:04:33 AM »

Code:
function vampirelord_uninstall(){ return true; }

It was in my version, which I think I zipped up.  Either way, the defense/defence spelling has been corrected and uploaded.
Logged



Castle Siege - a work in progress
MikeHawke
Guest
« Reply #8 on: April 22, 2006, 01:05:07 PM »

Anyone have a copy of this module, the link for it no longer works.

Thanks
Logged
Nightborn
Guest
« Reply #9 on: April 22, 2006, 01:19:01 PM »

try the downloads section here...

downloads -> forest specials
Logged
MikeHawke
Guest
« Reply #10 on: April 22, 2006, 04:57:26 PM »

Thanks
Logged
Gucky2000
Captain of the Guard
***
Offline Offline

Posts: 150


View Profile
« Reply #11 on: July 22, 2006, 01:07:08 AM »

Hi Genmac,


I had to change some lines. To save players from getting low hitpoints on next dragonkill, I changed to that only additional hitpoints are affected. So minimum hitpoints (level*10) stay unaffected.
This was necessary, because some player started with 1 or even 0 hitpoints. Last one was even buggy because they where permanently dead.
Perhaps I made a setting for the grotto to select this for the admin (all hitpoints, only additional hitpoints)

greets Gucky2000

PS: If someone is interested in the Code I post it later, but currently I`m at work :-)
Logged
Gucky2000
Captain of the Guard
***
Offline Offline

Posts: 150


View Profile
« Reply #12 on: July 23, 2006, 04:59:12 AM »

I changed the gain/loss output, so it's better to translate:

Code:
output("You gain %s %s!`n", $reward, $what_str);
output("You lose %s hitpoints!`n", $loss);

greets Gucky2000

PS: If someone interested in my changes I send him the whole code, perhaps GenmaC is interested to release it.
Logged
Nightborn
Guest
« Reply #13 on: July 23, 2006, 01:02:54 PM »

Actually I rewrote this module in its translation unready-parts and enhanced it a bit.

It is yet to release as I had no time =)

I also added links for modules to hook in at the points where you offer points for xzy
Logged
zamochit
Guest
« Reply #14 on: October 10, 2006, 05:48:00 PM »

Fatal error: Call to undefined function: vampirelord_uninstall() in /mnt/w0401/d22/s14/b0286d41/www/lotgd/lib/modules.php on line 1262

unable to uninstal has there been an update that will allow me to
Logged
Pages: [1] 2   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Play LoGD on Dragonprime

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