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

  Show Posts
Pages: [1] 2 3 ... 17
1  Coding Support / Coding Support Desk / Re: How Would I Block Certain Words From Being Used in Character Names at Creation? on: Yesterday at 01:57:58 PM
Actually, yes. There is a module, called creationaddon that allows you to filter badnames and titles, along with a few other things you may find handy. It gives you the editor option of what badnames and titles you'd like to block from making it happen. It is attached for your convenience.

Thank you kindly, I shall try it!
2  Coding Support / Coding Support Desk / How Would I Block Certain Words From Being Used in Character Names at Creation? on: Yesterday at 08:03:43 AM
I got a stalker and he keeps using similar words.  I use the blocker and the brendan blocker module, and I require email verification, plus only one email per account.

The guy like has no life and keep finding a way way back.  He's just a pain in the ass.

Is there a way to cause certain words to be rejected ONLY in character names without putting it in the naughty words filter?  

I know, for example, you can't use "account" anywhere in your character name.  That has to be somewhere in the core.  I'd like to add a few things to that.

Guy will probably still find a way, but I'd like to be as much a pain in the ass to him as he is being to me.

I find this code in the create.php file...i wonder if it could be useful...
Code:
if (strlen($shortname)<3){
$msg.=translate_inline("Your name must be at least 3 characters long.`n");
$blockaccount=true;


Could we make other lines in there that checks for other values in $shortname?
Any way to do a wildcard...so that no matter where in an account the characters come up...it causes $blockaccount to be set to true?

Ideas??

Like I said, that is the place I have looked not sure where I go from this point though.

example of what I am thinking...
Code:
if (strlen($shortname)="forbidden"){
$msg.=translate_inline("Your name must be at least 3 characters long.`n");
$blockaccount=true;

or
Code:
if (strlen($shortname)="*forbi*"){
$msg.=translate_inline("Your name must be at least 3 characters long.`n");
$blockaccount=true;


something like that would be helpful.
3  Game Administration, Installation and Configuration / Game Administration Chat / Re: GDPR Privacy in the EU (and those who accept EU players) - Issues with Lotgd on: January 14, 2018, 02:21:19 PM
I think I have the charrestore ready now.

Issue is the stored email, but a hash serves as well for people to claim ownership. You can restore the char and then manually replace the mail if the token matches.

* replaced emailaddress with a sha512 hash (varchar128 in the db is exactly right)
* added a salt as setting (FILL BEFORE HASHING!)
* added a mail notification when a char is deleted/expires and is stored.
* added a convert function for legacy stuff. it will convert all your old chars and put the hash in

DISCLAIMER:
Somebody with an untouched 1.1.2 dp edition could edit it please, I think I built a few things in (replaceemail?) in core that don't exist.
I have also changed some stuff in the charrestore (I believe I added the mail search in the first place).
Please BACKUP and then TEST.


I have an untouched 1.1.2 DP version running now in XAMPP.

I will try it out thoroughly for you...please tell me everything you want tested.
4  Game Administration, Installation and Configuration / The Idea Place / Re: scenario's for new modules? on: January 13, 2018, 11:30:06 PM
Perhaps mailing to each other would be more handy than using message system at forum or this topic? I send you my mailadress in a private message earlier. Best, WW

You are probably right.  Let me find that email and I will send you one so that you have mine.
5  Coding Support / Coding Support Desk / Re: Require Admin Approval For Unmute?? on: January 13, 2018, 11:28:32 PM
Thanks.
I did not know to do this because I never had to in over a decade!

But at this point I have several safeguards in place and the problem seems to have resolved.

Namely, I made it so that people have to verify email addresses...only one account per email.
They have to Petition Admin to be unmuted.

I have the Cell and the ability to mute/ban players.

Additionally, I can add the IP addresses and email addresses to my Brendan Blocker.

So there are, I have found...many things I can do.  In either case, the problem seems solved for now.
6  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Pet Shop v4.0.1 (Modified) on: January 13, 2018, 02:25:58 PM
This works for me whereas the old Pets Shop module did not.

However, one weird thing I notice...no matter WHAT you set the attack to, No, Yes-Automatic or Yes-Manual - in the Pet Editor list they all show up as Attacks NO

Thinking they should show up as NO, Manual, Automatic.
7  Coding Support / Coding Support Desk / Re: Trouble With Pet Shop on 1.1.2 on: January 13, 2018, 01:11:31 PM
Try out my modified Pet Shop v4.0.1 module. Smiley

Thanks.
Checking it out now.
8  Game Administration, Installation and Configuration / The Idea Place / Re: scenario's for new modules? on: January 13, 2018, 04:56:00 AM
okay concerning spider and fight; we are using the same line. I don't know the correct proverb in English, but in Dutch we would say "on the same ???golflengte". I'll go on with writing the scenario for the fairy thing. Best, WW

OK, cool.

I do have several projects working concurrently, and most of them have nothing to do with LOTGD, but I will get this done.  Helpful if I have the scenarios written and ready to go.
9  Game Administration, Installation and Configuration / The Idea Place / Re: scenario's for new modules? on: January 10, 2018, 07:51:49 PM
I was reacting on your passage about working with the fairy in spider's web; I would like to have a fight with the spider like you have to fight Gorgon or tatoo monster; there's a fight. But on Hogwartslive, there's a challenge with 3 castles: Wyvern Keep, Castle Slaag and Draco's Dungeon; after chosing an option where to go, you sometimes come into a fight; but the game decides what's the result, you as player can't do anything. So with fairy thing: I want to have a fight in which the player can actively participate; not a fight as described in the 3 castles challenge.
You also wrote about the potions recipe notes on your game and that I had to use the notepath thing to get the recipes. Well, as I wasn't used to do this on Hogwartslive, I didn't save the notes on notepath, I thought this parts of notes would end up in my inventory or somewhere else to consult them later and to put the parts together.

I did not write the recipes module, so I had no control over that.  Best I could do was to provide players a notepad in their stats where they could save all manner of important things.

And, yes, I already intended the spider fight to be a real fight and not the three choices with random outcome that you can't control.
10  Coding Support / Coding Support Desk / Re: Module Database Tables Not Creating on: January 09, 2018, 08:21:58 PM
Having same problem with Pets myself on 1.1.2 - where is this updated version of the pets you found?
11  Coding Support / Coding Support Desk / Re: Virtual Box on: January 09, 2018, 08:17:43 PM
You can either use a shared folder (much like when you insert a CD, it should be mounted to /media) and install it like you would install it on webserver.
It's really the very same, you just have the server in that box.

As alternative, SSH should be pre-installed and you could use WIN-SCP to connect to the IP of the machine (linux command "ifconfig")



Ended up getting things working....on XAMPP.
12  Game Administration, Installation and Configuration / Game Administration Chat / Re: GDPR Privacy in the EU (and those who accept EU players) - Issues with Lotgd on: January 09, 2018, 08:16:52 PM
Quick response in here:

Mhm, platform overview (I think you're using webspace).

You know:
webserver/webspace <-- FTP to get on it and drop files
database <-- you go to a phpmadmin and import/export, right?
domain <-- you do a setup on a web frontend for that

that's the foundation you will build in a virtualbox. it will provide above, though you may need to install the necessary software and do a bit of configuration.
Most should be installed, but I'll mention the software
webspace <-- install apache2 to provide a webserver, put your files in /var/www/html
database <--- install mysql and phpmyadmin (best as an ubuntu package via APT or if you downloaded a desktop ubuntu, from the desktop, package management)
domain <-- you have none, but you should be able to work on IP basis (virtualbox assigns a net)

Yes, it's a lot if you've never done things like it, but it's really helpful. Cheesy

I managed to get a test server going in XAMPP.
The problem I had had before with it was that I needed an older version of XAMPP, the one I was trying to use came with PHP 7 and LOTGD 1.1.2 won't work on PHP 7.

So the one I got now has PHP 5.6
13  Game Administration, Installation and Configuration / The Idea Place / Re: scenario's for new modules? on: January 09, 2018, 08:15:05 PM
concerning our fairy and spider event: I prefer the fight with the spider would be a fight like fight with gorgon or other fights in forest, not a fight you don't have to duel as player (like the current freing the fairy thing). Mount and other buffs could be used, I hope? On hogwartslive there's no notepath thing, so I lost the notes. Best, WW

Am not sure what you are driving at here.
14  Coding Support / Coding Support Desk / Re: Trouble With Pet Shop on 1.1.2 on: January 09, 2018, 07:56:14 PM
here is code for the install on the petshop.  I am suspecting it is not REALLY creating the database at all, just says it is...is there something wrong in the code here
Code:
function petshop_install(){
if (db_table_exists(db_prefix("pets"))) {
$sql = "Select petattack FROM ".db_prefix("pets")." LIMIT 1";
$result = mysql_query($sql);
   if (!$result) db_query("ALTER TABLE ".db_prefix("pets")." ADD `petattack` tinyint(3) NOT NULL default '0'");
   $sql = "Select attacktype FROM ".db_prefix("pets")." LIMIT 1";
$result = mysql_query($sql);
   if (!$result) db_query("ALTER TABLE ".db_prefix("pets")." ADD `attacktype` tinyint(3) NOT NULL default '0'");
   $sql = "Select mindamage FROM ".db_prefix("pets")." LIMIT 1";
$result = mysql_query($sql);
   if (!$result) db_query("ALTER TABLE ".db_prefix("pets")." ADD `mindamage` int(11) NOT NULL default '0'");
   $sql = "Select maxdamage FROM ".db_prefix("pets")." LIMIT 1";
$result = mysql_query($sql);
   if (!$result) db_query("ALTER TABLE ".db_prefix("pets")." ADD `maxdamage` int(11) NOT NULL default '0'");
   $sql = "Select petturns FROM ".db_prefix("pets")." LIMIT 1";
$result = mysql_query($sql);
   if (!$result) db_query("ALTER TABLE ".db_prefix("pets")." ADD `petturns` int(11) NOT NULL default '0'");

}else{
output("`6Installing the pets database now.`n");
output("`6Presto. Done.`n`n");
$sql = array(
"CREATE TABLE ".db_prefix("pets")." (petid INT(11) NOT NULL AUTO_INCREMENT ,petname VARCHAR(25) DEFAULT 'Unknown' NOT NULL ,petbreed TINYINT(3) DEFAULT '0' NOT NULL ,valuegold INT(11) DEFAULT '0' NOT NULL ,valuegems INT(11) DEFAULT '0' NOT NULL, upkeepgold INT(11) DEFAULT '0' NOT NULL ,upkeepgems INT(11) DEFAULT '0' NOT NULL ,petdk INT(11) DEFAULT '0' NOT NULL ,petcharm INT(11) DEFAULT '0' NOT NULL,petdesc VARCHAR(100) NOT NULL,newdaymsg VARCHAR(100) NOT NULL,villagemsg VARCHAR(100) NOT NULL,gardenmsg VARCHAR(100) NOT NULL,battlemsg VARCHAR(100) NOT NULL,petattack TINYINT(3) DEFAULT '0' NOT NULL, attacktype tinyint(3) default '0' NOT NULL, mindamage INT(11) DEFAULT '0' NOT NULL, maxdamage INT(11) DEFAULT '0' NOT NULL, petturns INT(11) DEFAULT '0' NOT NULL, PRIMARY KEY (petid)) TYPE = InnoDB;",
);
foreach ($sql as $statement) {
db_query($statement);
}
}
module_addhook("biostat");
module_addhook("village");
module_addhook("village-desc");
module_addhook("charstats");
module_addhook("superuser");
module_addhook("dragonkill");
module_addhook("training-victory");
module_addhook("training-defeat");
module_addhook("battle");
module_addhook("battle-victory");
module_addhook("battle-defeat");
module_addhook("fightnav-specialties");
module_addhook("apply-specialties");
module_addhook("newday");
module_addhook("changesetting");
module_addhook("forest");
module_addhook("gardens");
module_addhook("inn-desc");
return true;
}

Now obviously, on first install, it is jumping down to
Code:
}else{
output("`6Installing the pets database now.`n");
output("`6Presto. Done.`n`n");
$sql = array(
"CREATE TABLE ".db_prefix("pets")." (petid INT(11) NOT NULL AUTO_INCREMENT ,petname VARCHAR(25) DEFAULT 'Unknown' NOT NULL ,petbreed TINYINT(3) DEFAULT '0' NOT NULL ,valuegold INT(11) DEFAULT '0' NOT NULL ,valuegems INT(11) DEFAULT '0' NOT NULL, upkeepgold INT(11) DEFAULT '0' NOT NULL ,upkeepgems INT(11) DEFAULT '0' NOT NULL ,petdk INT(11) DEFAULT '0' NOT NULL ,petcharm INT(11) DEFAULT '0' NOT NULL,petdesc VARCHAR(100) NOT NULL,newdaymsg VARCHAR(100) NOT NULL,villagemsg VARCHAR(100) NOT NULL,gardenmsg VARCHAR(100) NOT NULL,battlemsg VARCHAR(100) NOT NULL,petattack TINYINT(3) DEFAULT '0' NOT NULL, attacktype tinyint(3) default '0' NOT NULL, mindamage INT(11) DEFAULT '0' NOT NULL, maxdamage INT(11) DEFAULT '0' NOT NULL, petturns INT(11) DEFAULT '0' NOT NULL, PRIMARY KEY (petid)) TYPE = InnoDB;",
);
foreach ($sql as $statement) {
db_query($statement);
}
}
module_addhook("biostat");
module_addhook("village");
module_addhook("village-desc");
module_addhook("charstats");
module_addhook("superuser");
module_addhook("dragonkill");
module_addhook("training-victory");
module_addhook("training-defeat");
module_addhook("battle");
module_addhook("battle-victory");
module_addhook("battle-defeat");
module_addhook("fightnav-specialties");
module_addhook("apply-specialties");
module_addhook("newday");
module_addhook("changesetting");
module_addhook("forest");
module_addhook("gardens");
module_addhook("inn-desc");
return true;
So whatever is wrong has to be in that section of it.
15  Coding Support / Coding Support Desk / Trouble With Pet Shop on 1.1.2 on: January 09, 2018, 07:41:27 PM
So I managed to get myself a test server, and i am slowly putting things on and fixing anything broken... So far, nothing major till now.

The Pet Shop does not work.  It did not inject the extra pets into the pets database.

It did not wrote to the database the pet when I tried to create one manually.

So i came here, and checked the original file.  There is a _macosx file, but I do not think it does anything...it is like just an extra copy of the program itself.

At any rate, I was looking for anything in the original zip that I might not have put on my own system, and I find nothing.
The pet shop shows in the village.

The pet editor shows up in the grotto

Nothing will make it add pets though.

So there are never any pets for sale.

It said, when installing, that it was creating the database table and apparently did so.  But all no avail.

I cannot seem to make pet shop run on 1.1.2 - wondering if this is a known issue with 1.1.2 or is there something else I don't seem to know about?
Pages: [1] 2 3 ... 17

*
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
12 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search