CarlosCM . de
Home
About Me
Curriculum Vitae
Images
Programming
Gaming
Blog
Online Planner
Guestbook

Legend of the green dragon

Legend of the green dragon is a PHP-browser game with a Creative Commons license, meaning it can be downloaded, changed and used by anybody, as long as the changes are made available to the rest of the world (read the Creative commons license for a more detailed description on what's allowed and what's not). Presently, the source code is available at DragonPrime, which has also an active community of creators of modules for the game. Because no program will ever be perfect, changes and improvements to the code of old modules are often needed, as well as new modules to bring new features to the game. This is the list of modules I've created or modified while hosting a private game of LOTGD for the DLH.net community, under the nickname of SexyCook.

Banked Gold Display v1.3 - Kurt P., fixes by SexyCook

- Download

//V1.2 Translation readied the addcharstat
//V1.3 Removed the .xx display bug at newday

Needy Beggar v1.42 - Eth, minor fixes by SexyCook

- Download

//1.41 Minor fix on an addnews
//1.42 Added get_partner function, corrected "begger"

Breakin Module v1.11 - Shannon Brown, fix by SexyCook

- Download

//1.11 Added blocknav to flirting, as blockmodule apparently wasn't working

Liver Cirrhosis v1.12 - SexyCook

- Download

//1.10 Improved fail-safe to never allow players to fall below level*10 hitpoints
//1.11 The newday counter was missing two vital lines of code. I must have been drunk...
//1.12 Code cleanup by Maeher

Clan Forge v1.31 - Kalazaar, fixes by SexyCook

- Download

//V1.31 Fixed the "clan forge" titles when getting your fortune read

Clan Turn Training (enhanced) v2.01 - Tristan Lueking (original concept) - modifications by Lightbringer, Akuma, Kody Sumter, Sloth - enhanced by SexyCook

- Download

//V1.01: Improved "New Day in" for translation readyness, added admin values for exp-randomizer-multiplicator
//V1.10: Added 2 new training hardness (factor 2 and factor 3 from forest fights/normal training)
//V1.11: output message now displays even if you didn't have any cash on you
//V1.12: new message if money is picked from your bank
//V1.13: Disabled "a new day in" display, wasn't working properly and there's a better module for it
//V1.20: Added an "if" in case people don't have enough cash for 1 round
//V1.21: Added a cash check for the training costs for >1 rounds
//V1.22: Added admin-values for gold- and exp-increase in the new functions
//V1.23: Added new outputs to display max and min values for each training
//V1.30: Added exaustion, admin-values
//V1.31: Added energy drink, admin-values
//V1.32: Corrected drink-price-display-bug
//V1.33: Added 10 exaustion messages
//V1.40: Added Events and Accidents
//V1.50: Added the "Kill the Player" code, so he can't heal himself from death
//V2.00: Added death news anouncements, polished some code
//V2.01: Added Download-Link

NPC - Dag 1.31 - Darrel Morrone, Updates by Andrew Senger, JT Traub, and Eric Stevens

- Download

//1.31 Added message for when the bounty is already over max

Game Day Accumulation v1.5 - Exxar, fixes by SexyCook

- Download

// v1.1 fixed a bug that caused a possible infinite newday loop when not logging out after using a newday
// V1.2 Fixes newday hook, added debug info by SexyCook
// V1.3 Added hook to jail
// V1.4 commented the debugs that were getting on my nerves, added an output for 0 days, due to translation difficulties.
// V1.5 Fixed the bug that gave new players the max amount of saved days

Dwelling Stats v1.2 - SexyCook

- Download

//V1.1 Germanized line 61
//V1.2 Corrected the -1 day display bug

User controlled inns as dwellings v2.09 - SexyCook and Maeher

- Download

//0.1 Show the inn for everyone, all the time.
//0.2 Display inn-settings for guests, added navs for guests
//0.3 Added Navs for Owner, added Village Advertisement
//0.4 Added Kitchen for Owner, added rotten food newday-event
//0.5 Added Brewery for Owner, added stale beer newday-event, added beer license and experience
//0.6 Added Rooms for Owner, added log SQL entries
//0.7 Added Stars for Owner, added messages in the reception room, added price increase
//0.75 Added Admin values for most important variables
//0.8 Added Guest rooms, newday event to remove guest status and boni/mali relative to the number of stars of the inn
//0.9 Added guest meals to restore HP and some to temporarly increase HP over max
//0.95 Added Owner profit goes to goldinbank at newday-runonce
//0.96 Added an if-sentence to the profit transfer, as many users without inns were getting newday messages
//1.00 Added drinks. Besides some minor bugs and a couple of tweeks, this is it.
//1.01 Added 10% taxes
//1.02 Deleted 2 unneeded uninstall procedures, removed newday-runonce commands and added them to normal newday event (thanks kickme)
//1.03 Improved village case (thanks XChrisX)
//1.04 Minor Text improvements
//1.05 Forgot drinks and meals counter when selling these, added admin variable to allow owner to use his own inn
//1.06 Corrected SQL condition for renting a room
//1.10 Added Change room price feature
//1.11 Changed order in price increase/decrease
//1.12 Minor Text improvements, added the license-quality to the buffs, as intended
//1.13 Changed all but one if to elseif in run(), which apparently is better for performance (Thanks Maeher)
//1.14 Corrected a possible bug in SET commands (thanks kickme)
//1.15 Corrected a minor bug in the drinklog, added Ale customization by Maeher, lowered buff creation to start in negative buffs
//1.16 Corrected a bug displaying village-adds, deleted a "break;" on the star status display of the inn
// Minor text changes, added a gender specific output when standing at the bar,
// improve link will vanish when you have 10 stars, improve info will vanish when 10 stars is acchieved
// deleted a couple of redundant vars to decrease memory load, ales now use the drunkness values of "exotic drinks"
//2.00beta1 Splitted Module into libs. Reduced Number ob database queries by complete redesign of the database structure.
// deleted a bunch of redundant vars to reduce memory-load. fixes a couple of minor and a few major bugs. Minor text corrections.
// reduced number of get_module_setting("dwname","dwinns")-calls to reduce database-load. Complete code-review with tons of
// code-improvements, especially in if-structures. Moved alename, alerounds, aleattack and aledefense from userprefs into the module's
// own database-table, due to the fact, that a user can have multiple dwinns. Moved sleepingindwinn from the module's database-table
// into userprefs due to redesign and the fact a user can only rent a room in ONE dwinn.
//Amount of distributable alepoints can now be set by admins.
//2.00RC1 corrected a bunch of mistakes in SQL-syntax, version seems to work fine.
//if no bugs are reported, this version will be raised to 2.0Final
//2.00RC2 fixed a bug in change-ale.php which caused the input-field to always show '0' at the beginning. Changed the output in
// case the user has already rented a room
//ideas for future features: maintenance relative to stars, restrict room construction by adding floors/wings
//room increase with stone/wood (if installed), random nightly events
//what'll happen on injail=1 or hp=0? Remove guest status there too?
//2.00RC3 Deleted redundant sql column, corrected blocknav bug for coffers
//RC4 Added star display on dwelling listing, players now can only rent 1 room per day
//RC5 Changed meal price and effect over max-hp, added 8 more values to the database for statistic purposes.
//Improved displays on brewing ales and purchasing meals instead of cooking, added statistic page
//RC6 Added value increase by 30 % of the cost of new rooms/improvements when buying these
//RC7 Made a cap on numbers of meals a player can buy per day, changed boni/mali on sleeping in an inn
//Added closed-variable to the dwinns table, added closed to inn improvements >6 (min 3 days, max 6)
//increased room price to be relative to the number of stars, improvements now cost wood and stone
//2.00 - Stable! - Reset the download link (still an old version, until this is the stable release), created this changelog,
//moved the project to a CVS, gave full co-author status to Maeher
//2.01 newday owner Status bug corrected
//2.02 Village adds can't be bought if the dwelling has no name (wouldn't be shown anyway)
//2.03 Corrected some if-statements at the brewery/kitchen and one old mealprice calculation
//2.04 Corrected display of new rooms when adding a new one, corrected addnavs when cooking a meal
//2.05 Corrected meal price bug when purchasing from SexyCook
//2.06 Corrected village ad bug when using multiple cities (thx Thanatos)
//2.07 Corrected display of inns in the dwelling listing using multiple cities
//2.08 Code cleanup and optimization in village.php by Maeher
//2.09 Corrected newday-bug, if dwelling was created via dwelling-editor. cleaned up the tabledescriptors

Forgotten Password recovery by mail input v1.2 - SexyCook

- Download

//1.1 and 1.2 Changes in the URL-Link in the recieved mail

Free Ale v20060701 - Anpera - Converted by Sixf00t4
Modified by CortalUX, fixes by SexyCook

- Download

//V20060615 Translation readied addnews
//V20060701 corrected "you gain %s charm output"

Black Jack Game for DarkHorse v0.81 - Hazardy, fix by SexyCook

- Download

//V0.81 - Old Man now can't win with a hand over 21 points

Jail v20060701 - Sixf00t4, Niksolo, and Lonny`n`2enhanced by SexyCook

- Download

//V. 20060618: translation fixes
//V. 20060620: Suicide gets you out of jail, further translation fixes
//V. 20060621: Corrected var name in "post bail" sentence, corrected superuser addnav
//V. 20060621: Corrected systemmail and addnews for witness
//V. 20060624: Translation Readied html code
// Staying the night in jail now removes evil by at least 1 point (newday-case)
// Getting arrested in the Forest-Event will lower wantedlevel
// Added Variable to show courthouse or not
// New-Day in Jail is only shown for game developers
// Waking up in Jail will remove the wanted level
// Corrected Courthouse chances for a 0-100 alignment (used in basic alignment mod)
// Corrected a whole lot of systemmails and addnews
// Added Variable to admin control rebirth of players
// Added Variable to deny gravefights by Ramius if the player uses the suicide option
// Added Variable to the price of the breaking pipe in jail
// Added some debugs here and there to test the new varsy
//V. 20060628: Added Link to the News and Admin Location
//V. 20060701: Added 5% Exp-loss upon suicide

Jail Break v2.21 - Dager - snippets from sixf00t4 and DaveS, debugged by DaveS, minot translation by SexyCook

- Download

//V2.1 tranlation readied the html code
//V2.2 Added Newday-Hook
//V2.21 translation readied a mail message

Lost Little Girl v1.46 - defproc, fixes by DaveS, kickme and SexyCook

- Download

//V1.1: Added missing $session['user']['gold/gems']+ for the reward by DaveS
//V1.2: Fixed translation readiness by SexyCook, added soulpoint bugfix by kickme
//V1.3: corrected sentenses with \n to `n
//V1.31: translation readied "$name's Mother"
//V1.32: translation readied one $sirmiss and "talk to her" html code
//V1.33: translation readied the buff from the chain of flowers
//V1.4: Added Alignment changes when returning the girl or killing her
//V1.41: Added if-arguments for the alignment module (thx Nightborn)
//V1.42: Added redundant code to case shades, in case you die outside of a battle, for example in stonehedge
//V1.43: Translation readied the numbers for the girl's ages
//V1.44: Translation readied the guityreason
//V1.45: Gradual losing soulpoints reapeared, corrected
//V1.46: Over maximum hitpoint loss during a pause bug corrected

The Lumber Yard v3.54 - DaveS, help from Chris Vorndran, minor translations by SexyCook

- Download

v3.52 translated Bear-fight
v3.53 Corrected display bug when completing 2 phases in 1 turn
v3.54 Corrected another display bug when completing 2 phases in 1 turn

Name Color v1.1 - Eric Stevens, minor translation by SexyCook

- Download

//V1.1 translation readyed line "Congratulations, your name is now"

The Quarry v3.53 - DaveS, minor translations by SexyCook

- Download

//V3.52 Translation readied HTML in Sell input-button
//V3.53 Tranlation readied Great Big Bear

Restore Soul from Graveyard v1.2 - SexyCook

- Download

//V1.1: Added an admin-controlled extra cost for quick restoring
//V1.2: Corrected calculation of extra cost, added download link

Rob the Bank V. 20060911 - Sixf00t4, fixes by DaveS and SexyCook

- Download

//V. 20060618: Translation readyed the module, added fix by DaveS
//V. 20060621: Added two get_module_setting to $battley
//V. 20060731: Changed the robbedbank reset to a newday-runonce, translation readied mails
//V. 20060911: Corrected minimum values bug, added instance for when there was nothing to rob

Robin Hood v1.46 - Lonny Luberts, fixes by SexyCook

- Download

//V1.42 Translation Readied the Systemmail
//V1.43 Translation Readied the Men's names and weapons
//V1.44 Added Alignment changes
//V1.45 Corrected alignment loss (wrong position in the code)
//V1.46 Experience win (10% up to 15%) + loss (10%) built in

Smiythe the Smith v1.2 - Eric Stevens, fix by SexyCook

- Download

//v 1.2: Changed downgrade condition to only effect weapons/armors > 1

Syphilis v1.0 - SexyCook

- Download