DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • May 19, 2013, 07:20:27 AM
Home Forums News Links Downloads Login Register Advanced Search
* *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

  Show Posts
Pages: [1] 2 3 ... 101
1  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / File Discussion: Creature Weapon and Armour Drop v1.0.0 on: May 17, 2013, 01:21:26 PM
Based on the 'itemdrop' module by Turock.

Turock's module had a maximum of 14 weapons and 14 armour which were stored in the settings. This module uses object prefs to store a weapon and armour for each creature. So you don't get over whelmed with drops, there's also a chance(%) pref and a setting to stop multiple drops if you're fighting multiple creatures and happen to get lucky with more than one. Smiley

File Submission: Here.
File Download: Here.
2  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / File Discussion: Tournament Arena v1.2 (modified) on: May 14, 2013, 07:25:20 AM
This is a modified version of Excalibur's Tournament v1.1 module. His thread can be found Here.

Here are a list of changes in my version.

  • There is a minimal contestant number required. This stops only one person entering and winning 1st place. The Tournament will start when this number is reached.
  • The Tournament will end and reset when the duration time has been reached. Set it to a an hour, a day, week, month, something inbetween.
  • The current leader is shown on the index and village pages (can be turned off in settings). Also shows the time left in the tournament, or time until the next Tournament starts.
  • Added secret bonus pages for people with the thiefskills specialty and seductiveskills specialty. Cheesy
  • The winnings are collected the next time the player visits. This stops the possibilty of the winnings being lost if the player is online and active. A setting allows you to set which level the player must be to collect.
  • A HoF page showing previous champions.
  • A Bio page showing player's trial scores.
  • Hooked into Blusprings to remind players to do their next trial when they go up a level.
  • Heavily modified code and reworded text here and there. This is probably more of a rewrite. Smiley

Please post bugs and feedback. Thanks.

Enjoy. Smiley


File Download: Here.
File Submission: Here
3  LotGD Around the World - Language and Translation Support / Board fr allgemeine Spieldiskussionen (Support in German) / Re: Schwarzes Brett /Black Board on: April 29, 2013, 09:58:15 AM
That module is in the downloads section, but for the life of me I can't find the category it's under. :-/
4  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: City Creator v1.0.1 (Beta) on: April 27, 2013, 07:13:03 AM
Ryan, the query mentions object prefs so it's a module that has city prefs and involves creatures. Edit a city and look to see if there are any settings there for forest creatures. City themed creatures or something like that.

If there's not a setting to disable it in each city then you'll have to deactivate the module. Smiley

Still on holiday. Cheesy

Edit: It is the city themed creatures module that's having a sql hissy fit. Don't really know why it should have a conflict with this module.
5  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: City Creator v1.0.1 (Beta) on: April 19, 2013, 03:21:03 AM
For some strange reason, you had my version of the dwellings 'village' file. I had added an extra boolean city pref to allow me to turn off dwellings in each village with the village file doing the check. I've put back the original file so it should always show up now.

Use the block navs section if you wish to stop the link from showing up. Smiley
6  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: City Creator v1.0.1 (Beta) on: April 18, 2013, 04:52:48 PM
Last update, v1.0.1 fixed the dwelling link problem. Smiley
7  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: City Creator v1.0.0 (Beta) on: April 18, 2013, 02:50:08 AM
The dwellings editor queries the city prefs table directly. Need to change the code there.

Open the file 'modules/dwellingeditor/lib.php' and find:
Code:
<?php
$vname getsetting('villagename'LOCATION_FIELDS);
$locs = array($vname => sprintf_translate("%s"$vname));
        
$sql2 "SELECT cityname FROM ".db_prefix("cityprefs")."";
        
$res2 db_query($sql2);
        while(
$row2 db_fetch_assoc($res2)){
$vname $row2['cityname'];
$locs[$vname] = sprintf_translate("%s"$vname);
}
ksort($locs);
reset($locs);
rawoutput("<select name='location'>");
foreach($locs as $loc=>$name) {
rawoutput("<option value='$loc'".($dwell['location']==$loc?" selected":"").">$name</option>");
}

Replace with this code:
Code:
<?php
$locs = array();
$vname getsetting('villagename'LOCATION_FIELDS);
$locs[$vname] = 'village';
$locs['all'] = 1;
$locs modulehook('validlocation'$locs);
unset($locs['all']);
ksort($locs);
reset($locs);
rawoutput("<select name='location'>");
foreach($locs as $loc=>$name) {
rawoutput("<option value='$loc'".($dwell['location']==$loc?" selected":"").">$loc</option>");
}

Not sure about the dwellings nav not appearing. Think I can see a possible issue where if cityprefs is installed and then you install city creator, there's nothing to match the city ids. Need to add some code to the install function to copy the data from the city prefs table data to the city creator table. Smiley
8  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Race Creator v1.0.0 (Beta) on: April 17, 2013, 05:09:56 AM
I've looked into making a specialty creator. Wink

To give an additional buff, you can always enter the raw code into the 'creatureencounter' PHP box. Cheesy

Code:
<?php
global $session;

if( 
$session['user']['specialty'] == 'DA' )
{

     
// Enter buff code here.

}
9  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Race Creator v1.0.0 (Beta) on: April 16, 2013, 02:30:39 PM
Thanks Rayn, link was pointing to the wrong place. Fixed now, give it a try. Smiley

The sql error, 3 of the field name had dashes in them '-' and I guess mysql doesn't like that. Had to put the names inside another set of quotes and that fixed it. Smiley
10  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Race Creator v1.0.0 (Beta) on: April 14, 2013, 05:44:20 PM
Just like my 'city_creator' module. This allows you to create as many races as you like. A racial buff can be added along with settings for additional turns/travel/pvp etc. I have also included 4 text boxes for entering PHP code for the following 4 hooks, pvpadjust, creatureencounter, battle-victory and battle-defeat. I checked 109 race modules and these 4 hooks were the only ones that anybody ever used. Probably due to them all just being copies of one another. Smiley

Please be aware that certain modules require race modules to be installed. An example would be the gem tears quest module requiring both the elf and dwarf race modules.

To start you off, I've taken the race text and code from the 4 race files that come with LotGD and created an install page for Humans, Dwarves, Elves and Trolls.

Support Modules:
race_customisetext.php v1.0.0 - Allows you to change village text, stable text, armour shop text, weapon shop text, mercenary camp text for each race in their home city.
race_minedeathchance.php v1.0.0 - If you have the 'metalmine' module installed, you can set each races' death chance and saved text. More convenient to use than my 'metalmine_raceminedeath' module. Smiley
race_prerequisites.php v1.0.0 - Allows you to create race access conditions based on players' dragon kills, alignment, charm, sex or lodge points. (Based on Iori's 'mountprereq' module)
race_weaponarmour.php v1.0.0 - Allows you to change the weapon and armour names for each race in their home city..

All module files are in the zip file.

Update:
16/04/2013
+ Fixed two addnavs that had the wrong &op value. Also fixed the sql table problem, 3 field names required extra quotes. Same version. Thanks Rayn. Smiley

This is a *Beta*. Do not upload to a live site without giving it a good working over on a test server first.

Please post any bugs and feedback. Smiley
11  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / City Creator v1.0.1 (Beta) on: April 13, 2013, 05:42:56 PM
City Creator does what it says on the tin, you create cities with it, as many as you like. All the info is saved in a database table. You can alter all the village text, stable text, armour shop text, weapon shop text, mercenary camp text, block/unblock any module and block any nav link. Smiley

The idea behind this module is to do away with stand alone city modules which you can't really configure and be able to have as many cities as you like. Although city creator does work ok with city modules installed, it's best to also create a city with the same name in the editor.

To start you off (on a clean install), I've taken the village text from the 4 race files that come with LotGD and created an install page for Romar, Qexelcrag, Glorfindal and Glukmoore.

If you've used my alternative mount and creature editor modules then you'll be used to each module appearing as a tab. I've done this here as well so any module associated with city prefs will appear as tabs. You no longer need to have the module 'city prefs' installed, but if you do then I suggest you leave it as you may have some modules that require it. In that case use the modified version supplied.

Required Modules:
cities.php v1.2 - Modified version to work with city creator.
cityprefs.php v1.1.0 - Modified version to work with city creator. You only need this version if you have the original installed, else just ignore this.

Support Modules:
city_prerequisites.php v1.0.0 - Allows you to create city access conditions based on players' dragon kills, alignment, charm, sex or lodge points. (Based on Iori's 'mountprereq' module)
city_routes.php v1.0.0 - Allows you to set up travel routes so you can only access certain cities from certain other cities.


UPDATE:
14/04/2013 'city_prerequisites'
There was an error in 'city_prerequisites'. Fixed it and uploaded a new zip file. Same version.
18/04/2013 - v1.0.1 'city_creator'
+ Added a transfer option for 'cityprefs'. The cities in its table will be copied to the city creator table. This is so the object prefs that are set for each city will continue to match.
+ Changed the cities' module's version number to v1.2 and updated this fact in the other modules that require it. Please re-upload.

All module files are in the zip file.

This is a *Beta*. Do not upload to a live site without giving it a good working over on a test server first.

Please post any bugs and feedback. Smiley

Started this two and a half years ago, I'm glad to finally get it 'out there'. Heh Now, to finish testing 'race_creator'. Smiley
12  Game Administration, Installation and Configuration / Game Administration Chat / Re: Strange 1's in Forest Fights on: April 09, 2013, 05:25:14 AM
Your player may have a buff that's made using his stats so is unique to them and might have a bug.
13  Coding Support / Coding Support Desk / Re: Dragon Gems - hook to dragon kill on: April 04, 2013, 04:15:04 PM
OOPS Embarrassed Smiley
14  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Discussion: Auto Level Up on: April 01, 2013, 04:07:19 AM
They were just examples, not code to be inserted into the module. Smiley
15  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Discussion: Auto Level Up on: March 31, 2013, 06:57:55 PM
*bookmarks this for future reference  Grin*

Thanks a ton Mark!

Bookmark this PHP.net page instead. Goes into greater detail. Smiley

Correction: You *can* use arrays in a string with double quotes without it being enclosed in curly brackets, but only as long as the name doesn't include single quotes.

$array[0][4] <-- doesn't need curly brackets.
$array['key'][6] <-- does.

Smiley
Pages: [1] 2 3 ... 101

*
DragonPrime Notices
Welcome to DragonPrime - The LoGD Resource Community!

Support Us
$100 raised this year
Your help is greatly appreciated!
Who's Online
28 Guests, 0 Users
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search