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

  Show Posts
Pages: 1 ... 6 7 [8] 9
106  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Custom Colors : File Submission/Discussion on: June 30, 2017, 10:40:41 PM
And now, it'd be nice if you got back on topic on the discussion thread for my module...

If you have any questions unrelated to this module, please start a new thread. Cheerio.

My apologies for a "thread hijack"  Just did not know where else to put it.  I guess I will try starting my own thread on this...because I still would like to do what I am trying to do.  As to your module...it just seems rather complicated, to be honest.
107  Village Square / General Discussion Area / Re: Abigail - Core Module on: June 30, 2017, 10:38:33 PM
If you not that experienced with php coding then I recommend that you teach yourself. That's what I did. That way you will understand the code and how it works and don't need to upgrade, but can edit the files with the required changes. Smiley

That's what I did. Ended up writing my own modules. Cheesy

Actually, I have written many of my own modules.  I know enough PHP coding to be dangerous.  I am not that good, probably, I am actually a very sloppy coder.  But I can get it done.

But this particular module is flummoxing me as to how I restrict it, because it is coded in a way I have never seen done.  Probably done professionally and correctly instead of my bass-ackward sloppy way.

I wil ook at the new coding and the old and see if I can figure it out.  I am self-taught in PHP coding.
108  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Wrongful Wraiths v1.2.6 (Modified) on: June 29, 2017, 06:11:01 AM
As long as you've made all the security code and other trivial bug fixes by hand then you'll be ok. Smiley

Haven't had a chance to do anythng with the new one yet...end of month invoicing timme with my home business keeping me busy.  It is nice to get paid...
109  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Custom Colors : File Submission/Discussion on: June 29, 2017, 06:10:02 AM
I might try it sometime.  But my server is not one I OWN...it is a hosted site, and they have their own security and backups.  They seem reliable, I have had to use them before.

TBH, I am a bit of a dunce about some of these things and I have NO IDEA...how you own your own server and thus host your site yourself...

So I have only the one site to play with, I do not even have a test server.  If anyone would be able to advise how this sutuation could be changed...

I am of the belief that the only supid uestion is one not asked...and so that makes this question...until now...a stupid question for me, since I never asked before.
110  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Item system on: June 29, 2017, 06:06:02 AM
I try to respond to a few things you mentioned.

The "creaturedrop" is not part of the itemsystem as far as I know.
The drops are managed by findloot.php in where you set the categories of items who can drop.

As for the "give item to a player" - nothing out of the box.

The PHP for giving an item is really short:

Code:
require_once("modules/inventory/lib/itemhandler.php");
$id = THE_ITEM_ID_YOU_WANT_TO_GIVE.
$user = THE_USER_ID;
$quantity = THE_QUANTITY;
add_item($id,$quantity,$user);
output("`\$Item no. %s added once, the user now has %s pieces.", $id, check_qty($id,$user));

You need to replace the capital lettered texts with integer numbers to fit the bill.
If you do direct SQL, you may add unique items twice, or over the max quantity you defined in the item manager.

Thanks.  So I would have to create an item called Give Items...which I would give only to myself...and change the exec value on it to match the player I wanted to give and the item I wanted to give.  Then I could give the item.

Understand.

As to creaturedrop:  That is an add-on to this which was coded by myself and another person I am no longer in contact with.  But I found the error...we had not done require_once lib/itemhandler.php
So whenever the add_item_by_id function was called, it did not know what to do with it...undefined function, and it would throw the error.

I fixed it.

Like I said, ths was NOT a part of the originalItem System...it was something we added on...because I had a specific item I wanted dropped ONLY by a specific monster...it was in keeping with a certaiin theme.

In this case, I have a Misteltoe Arrow.  It is for use against the Green Dragon only.  BUT...I wanted it dropped ONLY by Loki.  (This is in keeping with Norse Mythology...which my site utilizes...if you are familiar, Loki killed Baldur with a Mistletoe Arrow)

I did not find myself able, in the item system as it came...to control it so that ONLY that creature could drop that item.

I since expanded it so that a luck potion called Felix Felicitas (from Happy Potter) is dropped ONLY by a monster called Lucky Bastard.

I kinda have a few different themes running thru my site, actually, but there is a strong Norse presence...and a strong Japanese presence.  I know, it's a weird mix but it works.  Because I am weird, LOL.
111  Village Square / General Discussion Area / Re: Abigail - Core Module on: June 29, 2017, 05:57:44 AM
The file you linked to is version is 1.0

Have you tried the 1.1 version? It's part of the core module pack. Smiley

http://dragonprime.net/index.php?module=Downloads;sa=dlview;id=1419

Well, I will give it a try.  I run 1.1.0 and this says fr 1.1.2 and higher.
I expect the only difference may be some color codes, but I can try it.

It's either that or Abigail gets dumped from my game for being an annoying wench.

Likely I have the older version of Abigail, because I started out running 1.0.6 and upgraded to 1.1.0 a long time ago.

I think I already mentioned my unwillingness to upgrade higher than 1.1.0
112  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Custom Colors : File Submission/Discussion on: June 27, 2017, 07:44:53 AM
It shouldn't be a matter of willingness to upgrade for yourself, it should be a desire not to use a version that is outdated in security measures that put your players at risk.

I cannot answer your questions, as I am not familiar with 1.1.0. Maybe you could try on your own test server?

Why does one always have to have the latest greratest of everything?  People just find ways to get around any new security anyway, it is an endless game.  You act as if people do not have their own security on their own computers.

I'm not willing to risk an upgrade that would break modules I put a lot of work into coding.  There are sites and people running lots older versions than I do...there's even one running 0.97!!

If there was no risk to breaking my modules...that might be one thing...but, even then, there are, quite frankly, features in versions beyond 1.1.0 that I do not like.  I do not like multiple monsters in a fight for example.  I like one player one monster.  Call me something of a Luddite.
113  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Wrongful Wraiths v1.2.6 (Modified) on: June 26, 2017, 04:13:51 PM
I shall try playing with this late at night when nobody is playing.

Meanwhile, I am on 1.1.0 because I am unwilling to upgrade higher.  I have many unique modukes on my site which may not work with later versons of code, not willing to try it and lose what I worked so hard on.  As long as 1.1.0 works....I have never quite understood the craze some people seem to have to have the latest greatest everythng...no early adopter am I....never have been.
114  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Custom Colors : File Submission/Discussion on: June 26, 2017, 04:11:42 PM
I know it's outdated, but it's what i run and love and I have many unique modules that might not work with later versions of code, hence my unwillingness to upgrade.

Just would like, if possible, to add a few more colors.

Wondering if it is even possible, to flat out install the lib/output/ph file from 1.1.2, for example...into the file structure that currenty exists on 1.1.0 and get the extra colors.

If you look at the code for the two the way colors are defined in 1.1.0 versus 1.1.2 is very different.  Not sure if it mmatters.  Just wanted to know if someone knew if this could be done...maybe culd try it on a test server for me.
115  Village Square / General Discussion Area / Abigail - Core Module on: June 26, 2017, 04:08:46 PM
This module here http://dragonprime.net/index.php?module=Downloads;sa=dlview;id=100
has no discussion thread.

i have noted, much to my annoyance, that what was being attempted here does not work.  I'm not sure how to make it work, because it looks right to me I am just not seeing it.

 should note this is a core module I have not in any way maodified and I am running 1.1.0

The problem?  After you have ALREADY BOUGHT A GIFT THAT DAY...the rotten wench shows u and tries to make you buy another one...several times in a day...according to the commented out lines in the core module this was not supposed to happen.

Could someone look at this and tell me how to fix it...and then maybe even fix it in the moduke that is available here?

Allprefs drive me crazy.  I just want it set so that once someone has bought a gift that day, the wench goes away and stays away till the next new day.
-K
116  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Custom Colors : File Submission/Discussion on: June 26, 2017, 09:23:36 AM
Because I was unable to find any other thread dealing with adding colors.  Because your module does not seem to work with 1.1.0 - I was hoping to either encourage you to work it back...or lacking that, someone could tell me a way to just add the colors manualy directly into the core code myself.

There must be a way.
117  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Wrongful Wraiths v1.2.6 (Modified) on: June 25, 2017, 05:14:00 PM
Nice.  I am grabbing that.

Do I need to re-do ALL the files or only the min one or what?  You use some color codes that do not exist in 1.1.0 so I need to change them.

By the way, I am down with the extra underwears...great idea.  Could be fun and a lot less suitable for under 18 if we occasionally have Fat Frank or Smiling Sam in some nice panties, LOL.

Can you tell I am into this?? ;-)

I will download tomorrow when I am on my main LOTGD computer.  I will test it but first I will need to save the original in case something gets screwed up, lol.  Looks like I may be your beta tester here.
118  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Wrongful Wraiths v1.2.3 (Modified) on: June 24, 2017, 10:32:08 PM
Wouldn't you remove your bulky armour to spank someone? Cheesy

A simple few lines of code would reset the player's choice, nothing fancy, click a link with a variable in the url and the value gets nulled and the player gets the options again.

Ah.
So you are suggesting that I fool with your coding a bit...to add an extra nav into the coding, so that players could then change/null their choices with Wraith...so that they would not have to ask me to do it in their prefs (because, of course, I could...and would)

Seems like it ought to be easy enough to do to add a swtch ($op) and set of cases which would either change or null the set prefs...

Is that what you are suggesting for me??  If so, then I could try working with it, and if I get where I want I would be happy to then share my result here.

By the way...as an aside...I used the Item System to create a Spaking Certificate...which allows them to reset their spank turns for the day if they want more spanking.  I assume I could probably also do it that way...create an item in the Item System that resets those prefs, and simply have Wraith sell that item for 1 gold piece or something.  Probaby a few directions I could go here...don't mnd me, thinking outloud here.
119  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Custom Colors : File Submission/Discussion on: June 24, 2017, 10:28:03 PM
OK....I am a bit confused here.

TBH I am actually more comfortable just adding a few colors into the core file.  Is there a way to add some colors into the core file?

I know I would need to modify lib/output.php
How would I do it...and is anything eseneeded?  I am running 1.1.0 by the way.

When I do core edits, I always surround my edits with ////// both above and below the end of the edits.  I alsocomment out the originalcoding in the core files.

Before I do all that, I download the working core file as a backup.

This way, I always have a way to get back if I do something that fouls things up.

I'd just like to add a few more colors, and, rather than doing a module which ALSO requires core code edit...why not just do the core code edit in the first place and define the colors I want?

I had a look, for exxample, at the coding for lib/output.php for 1.1.0 versus 1.1.1 and they are done completely differently.

Is it simply possible to take the 1.1.1 file and run it in 1.1.0?  I do not really want to upgrade beyond 1.1.0 - I just like the version.  i started out way back on 1.0.6 and upgraded to 1.1.0

Literally...could you simply replace the /lib/output.php in the 1.1.0 setup...replace that one file with the one in 1.1.1 - and presto, get all the extra colors that 1.1.1 offers, without all the stuff in 1.1.1 that I do not want?
120  Modules, Themes and other customizations for your game / Completed Modules for version 1.x.x / Re: Item system on: June 23, 2017, 11:32:54 PM
Question, if anyone knows...how does one, as an Admin...give items to players?  I can Edit them, Delete then and Take them (for myself) but I can't GIVE them.  Is there a way I am not aware of without messing around in MySQL??

The reason I ask is because there is an Item in my Item System called "Fix Items" which wukd be useful to give to a player to fix things...just have it execute the right thing, and bingo.  But no idea how to get it into the players hands...short of putting it up for sae in my alt-currency shop (unique module) at a zero proce, and coordinating with that player to make them get it and then remove it from the store right away.

By the way...with regards the starge error I was getting, I figured tht out, too.  I have a module called creaturedrop.php...not sure if that is part of the otiginalItem System or it is an add-on, and I do not know if it is unique to my site...I am suspecting it could bem because of the author of tht moduke...this person and I collaborated heavily years ago on several unique things.

Anyway...the problem was...once I set my creatures in the Forest to actually drop items, which I had not done before, I would every so often get this error.  Turned out that it was a call to undefined function...the function add_item_by_id was not defined, because thhe author of the module forgot to put a require-once for the itemhandler.php module!
Pages: 1 ... 6 7 [8] 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
29 Guests, 0 Users
Home Forums News Downloads Login Register Advanced Search