DragonPrime - LoGD Resource Community
Welcome Guest
  • Good evening, Guest.
    Please log in, or register.
  • July 21, 2018, 08:15:14 PM
Home Forums News Downloads Login Register Advanced Search
* *
DragonPrime Menu
Login
 
 
Resource Pages
Search

  Show Posts
Pages: [1] 2 3 ... 113
1  Coding Support / Coding Support Desk / Re: New Specialty Idea That Incorporates Moon Phases on: March 02, 2018, 03:55:14 PM
Is your modified moons.php file backwards compatible?
2  Game Administration, Installation and Configuration / The Idea Place / Re: suggestions for new modules: find bezoar and pages/books/newspapers on: February 23, 2018, 07:46:08 AM
Quote
If you wanted your putative Bezoar to be usable in several modules, I'd recommend making the Bezoar using the Item System.

Then, various modules can check if you have one...and if you do...give you a nav to use the Bezoar or not.  With whatever results follow.

Code:
<?php

if( get_module_pref('has','bezoar') == )
{
    
// Player has a bezoar
}

If you have item module installed then sure, use it. But if not you don't really need it. Easy enough to check to see if a player has something from another module. :-)
3  Game Administration, Installation and Configuration / The Idea Place / Re: suggestions for new modules: find bezoar and pages/books/newspapers on: February 21, 2018, 08:39:08 PM
The bezoar may be a "Hogwarts" thing and so people who've read HP will know what it is and does, but if they haven't some text will explain it quite quickly.

You can put it into a simple forest/village events module.

Step 1: Randomly find the bezoar. "Your keen eyes spot a dropped pouch on the ground. You pick it up and look through it, it's just some old herbs and... SCORE, you find a bezoar which is good for stopping poison.".

Step 2: Randomly come across a medicine man who wants you to try his new health potion. Different outcomes will be good or bad. A bad one can lose you health/fights/gold and give a bad buff unless you have the bezoar, which can then lead to a fight with the medicine man.

You're attacked by a Medicine Man with Rusty Surgical Tools.

Have fun. Cheesy
4  Coding Support / Coding Support Desk / Re: Trouble With Pet Shop on 1.1.2 on: January 13, 2018, 08:22:50 AM
Try out my modified Pet Shop v4.0.1 module. Smiley
5  Game Administration, Installation and Configuration / Installation and Configuration Assistance / Re: Test Server on: September 08, 2017, 03:11:00 PM
Yeah, somewhere in C-Panel there'll be a page that shows you the versions. Smiley
6  Game Administration, Installation and Configuration / Installation and Configuration Assistance / Re: Test Server on: September 07, 2017, 06:27:05 PM
You need to find out what versions of php and (my?)sql you're currently using as your test server should be as near a mirror image as possible.

I recommend installing apache server on your home PC and the installation files for php/sql. And phpMyAdmin, you can use the latest version I think. But if you can find a free host with the same versions then that's probably just as good. Smiley
7  Modules, Themes and other customizations for your game / Completed Forest, Village and Travel Events for Version 1.x.x / Re: Abigail The Street Hawker Is Narrow-Minded - I Fixed This... on: July 17, 2017, 09:20:45 AM
Quote
Yes, but how to deal with all those modules that assume a binary gender system?

You'd just have to edit every single one of them. One you figure out the correct code it's just a case of copy and paste. Smiley

To do what you're wanting, it may be easier to edit the core code to allow for more than 2 sexes. It's your game, hack away. Cheesy

For example on the registration form it asks you to pick a sex and after each choice you could have the pronouns in brackets.

You might have to draw the line somewhere, after all this is a fantasy game where you're supposed to become someone other than yourself. Smiley
8  Modules, Themes and other customizations for your game / Completed Forest, Village and Travel Events for Version 1.x.x / Re: Abigail The Street Hawker Is Narrow-Minded - I Fixed This... on: July 16, 2017, 03:54:21 PM
The genders can be easily dealt with. A module to add a dropdown menu of all the different types to the registration form. This would be displayed on the player's bio page for role playing purposes. Smiley
9  Modules, Themes and other customizations for your game / Completed Forest, Village and Travel Events for Version 1.x.x / Re: File Discussion - the patrol on: July 16, 2017, 03:40:53 PM
Yes, but it shouldn't matter if it only appears in one city or them all, the new name needs to be saved when it's changed. Smiley
10  Modules, Themes and other customizations for your game / Completed Forest, Village and Travel Events for Version 1.x.x / Re: File Discussion - the patrol on: July 16, 2017, 12:30:35 PM
Unless I'm missing something, I don't think it's required and that IF statement can be removed.

If the villagename has been changed then the old name needs to be updated. Smiley
11  Modules, Themes and other customizations for your game / Completed Forest, Village and Travel Events for Version 1.x.x / Re: File Discussion - the patrol on: July 15, 2017, 12:03:44 PM
Hi,

Code:
<?php
case 
"changesetting":
if ($allowall == 1){
        
if ($args['setting'] == "villagename") {
            
if ($args['old'] == get_module_setting("wapatloc")) {
                
set_module_setting("wapatloc"$args['new']);
            
}
        
}
    
}
    
break;

Where does $allowall come from?
12  Modules, Themes and other customizations for your game / Completed Forest, Village and Travel Events for Version 1.x.x / Re: Abigail The Street Hawker Is Narrow-Minded - I Fixed This... on: July 15, 2017, 11:55:18 AM
Yeah there's been many a discussion over the years about how there's only 2 sexes in the game and a gender field should be added etc. Hopefully the next version that's being worked on will have these. Smiley
13  Coding Support / Coding Support Desk / Re: Anyone want to help with my Luck system? on: July 14, 2017, 08:23:39 AM
Nice module, a few pointers for you. Smiley

1. Your module is called luck, so all functions within the file must start with this. get_luck() or set_luck should be reversed. Also maybe change luck() to luck_add().

2. You need to hook into where mounts are bought and sold and add/remove luck there as needed.

Have you thought about luck just being used to stop a player from dying? Mounts/pets/events give luck up to 100%, but instead of dying, part of your luck is used up to save you, decided in the settings.

1. Mount gives you +50.
2. Pet gives you +15.
3. You find gold in the village, that was lucky +5
4. Wow, you find a gem in the forest +5.
5. A forest creature has a luck of 10, but only if it defeats you does it's luck get removed from the players to calculate if the player's lucky enough to not die.

Code:
<?php
$players_luck 
75;
$creatures_luck 10;

if( (
$players_luck-$creatures_luck) > rand(1100) )
{
    
// Player lives!!!!
    // Some luck was used up to save you, get value from settings.
}

6. Luck gets reset on a newday.

Regarding adding an event hook, these should be done in the install function and look something like,
Code:
<?php
module_addeventhook
("village","\$bought=get_module_pref(\"bought\", \"abigail\");return (\$bought?0:50);");

Smiley
14  Modules, Themes and other customizations for your game / Completed Forest, Village and Travel Events for Version 1.x.x / Re: New Module - Miyagi's Topiary on: July 11, 2017, 08:44:56 AM
This is the discussion thread to discuss the module, put a link at the bottom of the first post linking to the submission thread. The first post in the submission thread should link back here and also have the file attached. Smiley
15  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Custom Colors : File Submission/Discussion on: July 07, 2017, 07:27:16 AM
Yeah sorry Aeolus. </offtopic>
Pages: [1] 2 3 ... 113

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

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