DragonPrime - LoGD Resource Community
Welcome Guest
  • Good evening, Guest.
    Please log in, or register.
  • April 23, 2018, 11:54:18 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1] 2 3   Go Down
  Print  
Author Topic: The Mad Monk  (Read 9541 times)
0 Members and 1 Guest are viewing this topic.
ges
Guest
« on: March 21, 2005, 07:56:31 PM »

Here's my first attempt at writing a module.

The player encounters a rundown tower inhabited by The Mad Monk (who, it becomes apparent, it Foilwench's boyfriend). If the player approaches, the monk will attack.

If the player wins, they receive a random number of scrolls which give specialty power increases.  It's admin confgurable how powerful the monk is, the max number of scrolls the player can find, and whether they can gain knowledge outside their current specialty.

The code itself is based quite heavily in the "Zeratul, the Dark Templar" code (Thanks, Sichae!)

Since it's my first attempt, I appreciate any feedback or bug fixes.

Link is http://dragonprime.net/index.php?module=Downloads;sa=dlview;id=566

Thanks,
ges
« Last Edit: September 19, 2007, 10:10:40 PM by Elessa » Logged
Sichae
iMod God
SVN Users
Mod God
*
Offline Offline

Posts: 3458


If ya didn't get it by now... you're hopeless...


View Profile WWW
« Reply #1 on: March 21, 2005, 08:05:55 PM »

* Sichae spits out his drink

Wow... hehe, very nice. ^_^ You are most welcome. Good to see that my scripts are going somewhere.
Logged

If you didn't understand anything in the above post, don't try to attempt anything suggested.

Sichae
iMod God
SVN Users
Mod God
*
Offline Offline

Posts: 3458


If ya didn't get it by now... you're hopeless...


View Profile WWW
« Reply #2 on: March 21, 2005, 08:47:27 PM »

Although you do have an odd coding style, yet again Tongue, there are some things wrong.

Line 149:
Code:
debuglog("found %s scrolls of ancient wisdom in their own specialty.",$scrollcount);
Will not work. There are several threads talking about it, and basically, don't try to make it translation ready. Should be:
Code:
debuglog("found $scrollcount scrolls of ancient wisdom in their own specialty.");
As well as any subsequent debuglogs as such.
Logged

If you didn't understand anything in the above post, don't try to attempt anything suggested.

ges
Guest
« Reply #3 on: March 21, 2005, 09:11:42 PM »

Thanks! I've uploaded a new version (and changed the version number.)

Logged
Dannic
Guest
« Reply #4 on: March 22, 2005, 06:42:38 PM »

If you are going to use the vertxtloc you might want to upload the file to that location.
Logged
ges
Guest
« Reply #5 on: March 22, 2005, 08:48:13 PM »

That'll teach me to cut and paste without understanding what I do.

My bad.   Embarrassed

I've taken it out of my copy,  but I'll hold off uploading a version for a few more hours in case anyone else finds something.

 
Logged
Jim
Guest
« Reply #6 on: April 10, 2005, 09:52:57 AM »

PHP Warning: "fopen(http://dragonprime.net/users/ges/version.txt): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found"

I don't know if it is this module generating this or not.
Logged
lonnyl
Guest
« Reply #7 on: April 10, 2005, 09:56:25 AM »

PHP Warning: "fopen(http://dragonprime.net/users/ges/version.txt): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found"

I don't know if it is this module generating this or not.

There is no version.txt file in ges's shared folder.......
So... that definately would create a file not found error  Grin
Logged
Dannic
Guest
« Reply #8 on: April 10, 2005, 10:05:23 AM »

Probably should just comment out that part of the code till Ges fixes it.

Though I thought he had.
Logged
ges
Guest
« Reply #9 on: April 14, 2005, 06:00:34 PM »

I had fixed it, but silly me forgot to upload the new zip file.

My apologies. Is done now.

Logged
Lightbringer
Member
Codemeister
****
Offline Offline

Posts: 267


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


View Profile
« Reply #10 on: April 16, 2005, 09:13:49 PM »

Utterly unrelated..

But....love the avatar, Jim..
Logged

________________________ _____________________

Lightbringer
PHP/SQL/VB.NET/C#/AJAX Developer
Jim
Guest
« Reply #11 on: April 17, 2005, 06:42:36 AM »

Utterly unrelated..

But....love the avatar, Jim..

Thanks.  Grin
Logged
geezerjoe
Guest
« Reply #12 on: April 30, 2006, 11:06:54 PM »

One of my players reported this error:

Code:
Something Special!
The monk hears you appoach and whirls around, with madness in his eyes!
You shall not steal the treasure!
PHP Warning: "Division by zero"
in /home/romperz/public_html/logd/battle.php at 26.
Call Stack:
2: unknown() called from /home/romperz/public_html/logd/battle.php on line 26
3: include("/home/romperz/public_html...") called from /home/romperz/public_html/logd/modules/madmonk.php on line 114
4: madmonk_runevent("forest", "forest.php?") called from /home/romperz/public_html/logd/lib/modules.php on line 1088
5: module_do_event("forest", "madmonk", false, "forest.php?") called from /home/romperz/public_html/logd/lib/events.php on line 46
6: handle_event("forest") called from /home/romperz/public_html/logd/forest.php on line 16
~ ~ ~ Fight ~ ~ ~
You have encountered Mad Monk which lunges at you with skills brought on by years of meditiation, training and practise!

Level: 0
Start of round:
Mad Monk's Hitpoints: 35
YOUR Hitpoints: 28

I really like this module and it seems so do my players. Thought you might want to know. Cheesy
Logged
Ender
Member
Militia
**
Offline Offline

Posts: 76


Wizards First Rule


View Profile WWW
« Reply #13 on: May 01, 2006, 03:23:16 AM »

Well if someone finds the solution to this error I will upload it to my server I love it Smiley
Logged

Nightborn
Guest
« Reply #14 on: May 01, 2006, 04:54:31 AM »

did you create the badguy string with a "level"=>x
in it? if you leave it out, the level, like displayed, is 0

and it divides by the level...so it must not be 0.

=) just enhance your badguy string and that's it.
Logged
Pages: [1] 2 3   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
19 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search