DragonPrime - LoGD Resource Community
Welcome Guest
  • Good evening, Guest.
    Please log in, or register.
  • September 25, 2017, 08:38:08 PM
Home Forums News Downloads Login Register Advanced Search
* *
DragonPrime Menu
Login
 
 
Resource Pages
Search

  Show Posts
Pages: 1 2 [3] 4 5 ... 9
31  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: File Discussion: Multi Poke on: September 01, 2017, 12:36:43 PM
So does this module like, completely work now?

Can I plug and play it into my 1.1.0 server?

I know, I know...a lot of people here hate older versions of the core but I don't.
32  Coding Support / Coding Support Desk / Idea For An Item Cabinet on: August 31, 2017, 03:34:06 PM
Ok, this is just for those who use the Item System...
Also, need to have houses.php for my idea to really work.

If you know how you can get a Weapons Closet in your house, thus saving weapons across a dragonkill...

How about a cabinet, or several cabinets, you could buy to store Items in?

What I need to know is how do I make the module know how many of each certain item they have (my idea is different "cabinets" for different types of items)
and then make it so that, like the basicitemshop...you can click down on how many of that item you want to place in the "cabinet?

Of course then you also need to be able to withdraw from the cabinet, but it will know how many of each item you have already in the cabinet via your prefs, so no biggie there.

My ideas is like, a Medicine Cabinet for potions, a Pantry for food/feed items, a Nightstand for various odds and ends.....and so on....all of which you could buy through the office where you build your house and where you buy your closet...and where you also order a party.

Any help??  Not quite sure where to start on this one, but it would be a fun idea.
33  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Signet Sale by DaveS on: August 28, 2017, 09:47:58 AM
Forgive grave-digging here for a minute, but I have a unique problem.  This thing is preventing a character from showing up in the HOF, and it shouldn't.

This character is a test character of mine, and has ONLY the Translation Tool enabled in Superuser Flags...nothing else.

Translation tool IS NOT one of the Flags that should disable one from appearing in the HOF...and this character DOES show up in most HOF's...but NOT in Vanquishers...and I want this character to show up there...as I consider it my main player-character.

I have looked thru the code over and over and I cannot see WHERE it is eliminating superusers from the HOF.  I may have an older version, I am not sure...BUT...ok, just checked, I have version 5.02  I see no problem with this except that I want THIS character to show in the HOF.

If someone has a SU Flag that IS STARRED...then, yeah, I want that character blocked from HOF.

It seems this thing is blocking anyone with any SU Flag.  And it should not.

I am attaching copy of the code from signetsale.php the one I have...from op"hof" and see if someone can point me to where this is happening.
I am not even sure, at this point if non-SU players are being listed, because nobody else has completed the Series on my site.

Meanwhile, i am downloading the later version to see if there is any difference in the coding concerning the HOF.
Code:
if ($op == "hof") {
page_header("Hall of Fame");
$pp = get_module_setting("frpp","signetd5");
$pageoffset = (int)$page;
if ($pageoffset > 0) $pageoffset--;
$pageoffset *= $pp;
$limit = "LIMIT $pageoffset,$pp";
$sql = "SELECT COUNT(*) AS c FROM " . db_prefix("module_userprefs") . " WHERE modulename = 'signetd5' AND setting = 'frhofnum' AND value > 0";
$result = db_query($sql);
$row = db_fetch_assoc($result);
$total = $row['c'];
$count = db_num_rows($result);
if (($pageoffset + $pp) < $total){
$cond = $pageoffset + $pp;
}else{
$cond = $total;
}
$rank = translate_inline("Rank");
$name = translate_inline("Name");
$none = translate_inline("Mierscri is Undefeated!");
output("`b`c`@Vanquishers of the Dark Lord Mierscri`c`b`n`n");
rawoutput("<table border='0' cellpadding='2' cellspacing='1' align='center' bgcolor='#999999'>");
rawoutput("<tr class='trhead'><td>$rank</td><td>$name</td></tr>");
if (get_module_setting("dksincewin")==-1){
$sql = "SELECT ".db_prefix("module_userprefs").".value, ".db_prefix("accounts").".name FROM " . db_prefix("module_userprefs") . "," . db_prefix("accounts") . " WHERE acctid = userid AND modulename = 'signetd5' AND setting = 'frhofnum' AND value > 0 ORDER BY (value+0) DESC $limit";
$result = db_query($sql);
if (db_num_rows($result)==0){
output_notl("<tr class='trlight'><td colspan='3' align='center'>`&$none`0</td></tr>",true);
}else{
for($i = $pageoffset; $i < $cond && $count; $i++) {
$row = db_fetch_assoc($result);
if ($row['name']==$session['user']['name']){
rawoutput("<tr class='trhilight'><td>");
}else{
rawoutput("<tr class='".($i%2?"trdark":"trlight")."'><td>");
}
$j=$i+1;
output_notl("$j.");
rawoutput("</td><td>");
output_notl("`&%s`0",$row['name']);
rawoutput("</td></tr>");
}
}
}else{
$names=translate_inline(array("`)DarkSlayer","`&Vanquisher","`@Grand Vanquisher","`#Supreme Vanquisher","`1Nemesis","`6Bane of Evil","`3Air Mage","`QEarth Mage","`!Water Mage","`\$Fire Mage","`%Power Mage","`^Signet Mage","`^Signet Mage","`^Signet Mage","`^Signet Mage","`^Signet Mage","`^Signet Mage","`^Signet Mage","`^Signet Mage","`^Signet Mage","`^Signet Mage","`^Signet Mage","`^Signet Mage","`^Signet Mage","`^Signet Mage","`^Signet Mage","`^Signet Mage"));
$sql = "SELECT ".db_prefix("module_userprefs").".value, ".db_prefix("accounts").".name FROM " . db_prefix("module_userprefs") . "," . db_prefix("accounts") . " WHERE acctid = userid AND modulename = 'signetsale' AND setting = 'completednum' AND value > 0 ORDER BY (value+0) DESC $limit";
$result = db_query($sql);
if (db_num_rows($result)==0){
output_notl("<tr class='trlight'><td colspan='3' align='center'>`&$none`0</td></tr>",true);
}else{
for($i = $pageoffset; $i < $cond && $count; $i++) {
$row = db_fetch_assoc($result);
if ($row['name']==$session['user']['name']){
rawoutput("<tr class='trhilight'><td>");
}else{
rawoutput("<tr class='".($i%2?"trdark":"trlight")."'><td>");
}
$j=$i+1;
output_notl("$j.");
rawoutput("</td><td>");
output_notl("`&%s`0",$row['name']);
rawoutput("</td><td>");
output_notl("`@%s`0",$names[$row['value']]);
rawoutput("</td></tr>");
}
}
}
rawoutput("</table>");
if ($total>$pp){
addnav("Pages");
for ($p=0;$p<$total;$p+=$pp){
addnav(array("Page %s (%s-%s)", ($p/$pp+1), ($p+1), min($p+$pp,$total)), "runmodule.php?module=signetsale&op=hof&page=".($p/$pp+1));
}
}
addnav("Other");
addnav("Back to HoF", "hof.php");
if (is_module_active("mapmaker")){
if(get_module_setting("mapmaker")==1) blocknav("runmodule.php?module=mapmaker");
}
if (is_module_active("cartographer")){
if(get_module_setting("mapmaker")==1) blocknav("runmodule.php?module=cartographer");
}
villagenav();
}
34  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Petra the Tattoo Artist on: August 13, 2017, 01:02:45 AM
Can one just overwrite the existing petra module?  So that people do not lost the tats they have already??

Also, does this petra module also work with Dragon Eggs Reearch?

And, by the way, does this module work on 1.1.0?

Yes, you can overwrite it. The prefs aren't changed.

No idea.

And no idea, I don't use deprecated versions of the core.

Later versions of the core do not support alternate currencies.  My entire game is dependent on it.  I have built a lot around the alternate currency my game uses.
35  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Petra the Tattoo Artist on: August 13, 2017, 12:15:05 AM
Attached is the Petra's Tattoos module with an in-built editor, allowing for site-wide and player-specific tattoos.

Can one just overwrite the existing petra module?  So that people do not lost the tats they have already??

Also, does this petra module also work with Dragon Eggs Reearch?

And, by the way, does this module work on 1.1.0?
36  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Petra the Tattoo Artist on: August 10, 2017, 08:33:06 AM
I'd be willing to help and collaborate if you like.  Sound like an interesting project.

Thank you for the offer, but I work easier on my own. I could have it done in less than an hour; I'm just wondering if anyone else has already done it.

Thought so. Thanks. I'll probably post it here when I'm done, since this module is outdated as anything.
OK, understand.  Please do post up the final work.  I would be interested...especially if it made it easy to add tattoos.  If you need a second set of eyes for debugging let me know, be happy to help...heaven knows there's times a second set of eyes is very helpful for me!
37  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Petra the Tattoo Artist on: August 09, 2017, 06:31:41 AM
Incredibly old post... Has anyone ever revamped the Petra's Tattoo module to make it more usable, so that we don't need to directly edit the module to modify the tattoos? If not, I'll go ahead and do so myself.

I'd be willing to help and collaborate if you like.  Sound like an interesting project.

I also have a project I am thinking on...but as I do not plan to release it (mainly because it will not be plug-and-play...it will depend on the Item System) I won't say more on it here, but I would not mind a collaborator on it...with whom I would then share, of course.  So, if you would like to collaborate on a couple of projects, let me know.
38  Coding Support / Coding Support Desk / Re: Module Idea: Notepad on: August 07, 2017, 06:49:58 PM
I'm not greatly convinced of the merits of this as opposed to the user saving the data on their own computer and not consuming your resources, but this seems like a good excuse to get back into the coding vibe.  Here's a fairly simple implementation.

EDIT: Old attachment removed.  Newer version is in this post below.

Got this.  Thanks.  It is a nice touch.
39  Coding Support / Coding Support Desk / Re: Move Superuser Grotto Links on: August 04, 2017, 07:35:39 AM
here is what is in Wraith's:

Code:
if( $session['user']['superuser'] & SU_MANAGE_MODULES )

this is from sulinks
Code:
if ($session['user']['superuser'] &~ SU_DOESNT_GIVE_GROTTO){

from multichecker
Code:
if ($session['user']['superuser'] & SU_MEGAUSER) { //only access for megausers

Finding several other variations...but it seems to me like the one from sulinks would be what I want...because it would then give the link to all who actually have grotto access on any level.

By the way, looking around on my site and discovered I have sulinks installed.  Should try deactivating it and see what I see.  THEN...try to go about what I have in mind.

I put the site together years ago and I do not remember everything I have there, LOL

BUT...one thing bothers me.  SU_DOESNT_GIVE_GROTTO  - should it not be SU_GIVES_GROTTO?

Code:
Or maybe forget it and just use if ($session['user']['superuser']) = true {

Thus, theoretically giving the link to any superuser?

Advice here?

Normally I'd play o my own, but I don't want to accidentally give grotto access to unauthorized people and not know about it.
40  Coding Support / Coding Support Desk / Re: Move Superuser Grotto Links on: August 04, 2017, 07:22:20 AM
Duhhh.  That's what I get for trying to do too many things at the same time.

OK, so I would alter sulinks to remove, via blocknav, all the superuser links...and then have it add the link, conditionally, using every-header-logged in - which is a hook.

That would then theoretically get me what I am after....it would seem.

I might have to go about checking a few other modules to make sure they do not also add the navs...for example, I am using a fork of Wraith's that adds the Grotto links.  Meaning I could grab the conditional right from there, too or any other admin module...I know it is something like if SU_USER = true or something...gotta look...
41  Coding Support / Coding Support Desk / Re: Move Superuser Grotto Links on: August 02, 2017, 08:56:28 PM
Good so far, but of course, only want those with Grotto access to have the link in the everyheader.
42  Coding Support / Coding Support Desk / Re: Move Superuser Grotto Links on: August 01, 2017, 06:22:46 PM
Agreed.  And I have a player character.  The problem is I still see the Grotto Links because, for now, i have the Translation Too active for this player because I am overhauling the site.

Well, then - you don't have a player account then, do you?

That was what I was afraid of.  Would it require also editing every single module that would add the grotto links?
Yeah...adding Grotto Links to pages.  I want to remove them from where they are, and put them somewhere else.  A little different concept.  I was just wondering if it would be possible to make a module that would do this...or would I have to try to attempt it via core edit?

It just seemed to me that if there is a module to add superuser links to pages...then seems like one could be made to remove them.  And maybe in the same module, add the Grotto link up near the Petition Viewer link, like I mentioned.  Just was wondering if it was even possible to do this before I started wasting time if it isn't.

Let's think about this. If you have a module that adds Grotto links to every page... and you want to remove or edit those links... why not remove or edit that very same module? Having a module that adds the links then creating a new module to block those links is utterly pointless. I also just told you which module it is.

Also still a core edit.

So you are saying to edit the sulinks.ph file to remove the links instead of add them.  That makes sense.  But that only covers the villages...not the hundreds of modules that alsoo have Grotto links...this is where I am getting confused...how to get rid of them...and then...how to move the grotto link where I want it moved?

A simple blocknav would work - replacing all the addnav in sulinks with a blocknav.  But does that take care of the links in all the many modules of the game and then there is still the need to have a link...but at the upper right.  THAT is probably where a core edit is required.

Or am I wrong here? My coding skills are intermediate.  I know just enough to be truly dangerous.
43  Village Square / General Discussion Area / Re: Multiple Currencies on: August 01, 2017, 11:45:49 AM
Thanks for your prompt and courteous reply!


Yes.
My site, www.kalisiin.com integrates an alternative currency known as Valor Tokens.  I do this by use of the Item System.  There are shops on my site that will only accept payment in Valor Tokens.

Check us out.
More than welcome.  Ad thanks for coming by to check us out, hope you enjoy our site.  I have worked very hard on it for years...and try to be responsive to player ideas. Many of the things there now are a result of ideas given by players.
44  Coding Support / Coding Support Desk / Re: Move Superuser Grotto Links on: July 31, 2017, 11:07:53 PM
I would like to see the left-side navigatns the way my players see them, and the Superuser Grotto links get in the way of seeing it.

Create a second account that doesn't have any superuser flags? Quickest way to see things like a player is to be a player.
Agreed.  And I have a player character.  The problem is I still see the Grotto Links because, for now, i have the Translation Too active for this player because I am overhauling the site.
I was wondering if it would be possible to code a module that would move that link up to the upper right, near, say, the Petition Viewer...instead of in the left-side navigations.

That would require core editing, rather than a module. Take a look at the templates and see how the links are added.
That was what I was afraid of.  Would it require also editing every single module that would add the grotto links?

The reason I ask is because, literally every module has Grotto links as well as the villages and so on.  I do not want to have to manually add blocknavs on every module everywhere...was wondering if there was a way to achieve this.

That's a module doing that. sulinks.php, I believe, adds Grotto links to every page.
Yeah...adding Grotto Links to pages.  I want to remove them from where they are, and put them somewhere else.  A little different concept.  I was just wondering if it would be possible to make a module that would do this...or would I have to try to attempt it via core edit?

It just seemed to me that if there is a module to add superuser links to pages...then seems like one could be made to remove them.  And maybe in the same module, add the Grotto link up near the Petition Viewer link, like I mentioned.  Just was wondering if it was even possible to do this before I started wasting time if it isn't.
45  Coding Support / Coding Support Desk / Move Superuser Grotto Links on: July 31, 2017, 10:04:09 PM
I would like to know if there is a way to mmove the Superuser Grotto link.

I would like to see the left-side navigatns the way my players see them, and the Superuser Grotto links get in the way of seeing it.

I was wondering if it would be possible to code a module that would move that link up to the upper right, near, say, the Petition Viewer...instead of in the left-side navigations.

The reason I ask is because, literally every module has Grotto links as well as the villages and so on.  I do not want to have to manually add blocknavs on every module everywhere...was wondering if there was a way to achieve this.

By the way, I run 1.1.0 on my server.
Pages: 1 2 [3] 4 5 ... 9

*
DragonPrime Notices
Please take the time to read the FAQ and browse the DragonPedia

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