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

Pages: [1]   Go Down
  Print  
Author Topic: Lightning Rod  (Read 4218 times)
0 Members and 1 Guest are viewing this topic.
Lightbringer
Member
Codemeister
****
Offline Offline

Posts: 267


Life's a lich and then you don't die...damn unlife


View Profile
« on: February 23, 2005, 10:29:07 PM »

Here is a simple forest special..I must have been in a foul mood...

Only should be added if you have a heap of specials or a nasty streak a mile wide...

http://dragonprime.net/users/Lightbringer/lightningrod.zip

Enjoy Wink

~Cheers
Logged

________________________ _____________________

Lightbringer
PHP/SQL/VB.NET/C#/AJAX Developer
enderwiggin
Guest
« Reply #1 on: February 23, 2005, 10:36:56 PM »

Well, there are a lot of Forest Specials, so this won't happen all the time.

A few suggestions.

1 - Replace "him/her remains" with "his/her remains".

2 - Perhaps make a check before auto-killing, such as doing 95% of maxhitpoints in damage, so if you're at full health you might survive.  Or, perhaps check to see if they are in high spirits.  If so, they are extremely lucky, and just miss getting zapped.  Low spirits means Murphy's Law is in full effect, and they get zotted.
Logged
Eth
Member
Codemeister
****
Offline Offline

Posts: 302


Shameless Drunk


View Profile
« Reply #2 on: February 23, 2005, 10:42:52 PM »

That, and you can always lower the find chance. Or let the game admin choose by adding a setting. *shrugs*

I'm going to put this on my own server for a while just to be evil.
Logged

Purveyor of fine cloaks, gloves, boots, gerbils, and Siamese cats.
enderwiggin
Guest
« Reply #3 on: March 02, 2005, 02:25:11 AM »

Another thing I just caught...

Instead of setting $session['user']['alive'] to false, you should be setting it to 0.
Logged
Kendaer
Guest
« Reply #4 on: March 02, 2005, 07:58:21 AM »

Another thing I just caught...

Instead of setting $session['user']['alive'] to false, you should be setting it to 0.

No, setting $session['user']['alive'] to false is perfectly and completely correct.

See the other thread talking about false/etc. values. (The thread is titled 'Boolean Bug!?')
Basically, you all need to just go read the documentation on PHP.net so that you understand how the language works. :/
Logged
Pages: [1]   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
68 Guests, 1 User
Megan|SaraBeth
Home Forums News Downloads Login Register Advanced Search