DragonPrime - LoGD Resource Community

Modules, Themes and other customizations for your game => Completed Modules for version 1.x.x => Topic started by: SaucyWench on August 30, 2004, 07:42:42 PM



Title: Petra the Tattoo Artist
Post by: SaucyWench on August 30, 2004, 07:42:42 PM
(and the assembly line churns away)

Petra, the tattoo artist. Alluded to in the Kitchen mod, she also offers a discount if the player has the feather that Lauri places on their plate in the Kitchen's special event of "crow cake". Each tattoo bought will appear in the player's bio.

On its own, the tattoos are nothing but a gem drain. I have plans however for the tattoos to have another use with a (future) mod to be coded.

This will be part of the core download I think, when Pre Release 5 comes out shortly.

A large amount of the code (specifically the part remembering the previous tattoos) is courtesy of Kendaer. Mad props, etc. =)

This module is now in the core. (http://dragonprime.net/users/Kendaer/)


Title: Re:Petra the Tattoo Artist
Post by: Hooker on August 31, 2004, 11:13:06 AM
hows about  having a description of the tatto in the players bio.. and also the option to have their lovers name on there 9stays per even if the lover changes :P)



Title: Re:Petra the Tattoo Artist
Post by: Sichae on August 31, 2004, 11:18:25 AM
Very Nice Module Saucy.

There are some errors, where it refers to Petra as a he...


Title: Re:Petra the Tattoo Artist
Post by: SaucyWench on August 31, 2004, 02:24:48 PM
The description does appear in the bio. I did not consider custom tattoos because the mod is keeping track of which ones the player has for later on.

And thank you Sichae, I will have a look at where I have typeoh'd...


Title: Re:Petra the Tattoo Artist
Post by: SaucyWench on August 31, 2004, 02:27:50 PM
Oh, I see what you mean. No, this line
output("`7The elf gets back to his drawing as you gaze about and try to decide.");

is referring to Petra's assistant from the first part:
output("`7A tiny elf looks up from a sketch pad and smiles at you as you enter the shop.");


Title: Re:Petra the Tattoo Artist
Post by: Spider on August 31, 2004, 03:20:52 PM
nice addition, it's always good to have something for my players to throw money and gems at to their hearts content :-)

you missed out a comma in the prefs array though:
Code:
         "tatname"=>"List of recent tattoosviewonly|none",

should read

Code:
         "tatname"=>"List of recent tattoos,viewonly|none",


Title: Re:Petra the Tattoo Artist
Post by: SaucyWench on August 31, 2004, 03:56:37 PM
That was Kendaer =)

Thank you.


Title: Re:Petra the Tattoo Artist
Post by: Sichae on August 31, 2004, 04:16:04 PM
Aw, sorry about the alarm Saucy. I guess I should've read a little closer. But good mod after all.


Title: Re:Petra the Tattoo Artist
Post by: lonnyl on October 04, 2004, 04:21:58 PM
Well.. this is a great mod.... The one thing I would really like.... customizable tatoos.... I have  fielded a bunch of requests for Custom Tatoos.  Would be an easy set of settings values...


Title: Re:Petra the Tattoo Artist
Post by: lonnyl on October 18, 2004, 07:00:35 AM
Well... took a few minutes this morning and added 1 custom tatoo with comments in the file where I made the changes (just a few)..... changed the download link to the file I uploaded here.... I will remove this if Saucy decided to integrate it.... and only added 1 custom tatoo as more of a how-to.  Should be easy to add any number of custom tatoo fields as this module was built fairly flexible....

Anyway as I said.... will be removing the link if this becomes part of the "official" module.

http://dragonprime.net/users/lonnyl/petra.zip


Title: Re:Petra the Tattoo Artist
Post by: SaucyWench on October 18, 2004, 12:23:14 PM
I've asked Kendaer to have a look (mainly because noncapitalised tattoos would bug me - call me fussy) but when he has I'm happy for the changes to go into the next pre release.

Thanks! =)


Title: Re:Petra the Tattoo Artist
Post by: lonnyl on October 18, 2004, 12:30:22 PM
There is no reason that the tatoo could not be capitalized....... at least I don't think.... didn't bother to do much, just make sure the code worked.... and because of the way the tatoo is stored for a player... one could change a custom tatoo every day.....  The only problem I forsee is if someone timed out and the tatoo was changed in the meantime (could produce a badnav)....

and I would say 6 to 10 custom tatoos would be more than enough for most games.


Title: Re:Petra the Tattoo Artist
Post by: lonnyl on October 18, 2004, 01:04:18 PM
as a matter of fact if upper case doesn't work... one could lcase(get_module_setting('customtat1')).... to get it to lowercase....


Title: Re:Petra the Tattoo Artist
Post by: lonnyl on October 18, 2004, 01:27:05 PM
Ok... after playing a bit... changing a tatoo will uncolorize a tatoo... sooooo.... I think storing the color tatoo in the tatname pref would solve that... and would no longer need translation in the bio, but would only need to display the tatoo name.....


Title: Re:Petra the Tattoo Artist
Post by: Kendaer on October 18, 2004, 10:54:56 PM
There were actually reasons for not storing the colorized version in the pref but I don't remember what they were off hand.

Anyway, the changes you made and which Saucy pushed onto the test site are in the code and will be available in the next pre-release in a few moments.

ucfirst() is a wonderful function btw :)

Also Lonny, when you made the mods, you did them against an older version of the module so you'd lost some of the debuglog info and some of the tlschema() function calls needed for translation so I added those back.   If you're modding a piece of core code (anything distributed as part of the core) you should always try to mod the latest version :)


Title: Re:Petra the Tattoo Artist
Post by: Sichae on October 19, 2004, 01:52:02 PM
A little error I noticed. Not exactly a script error, but a tense error.

In the bio, it constantly says they were recently tattooed...dont you think after a while, it shoud that they have been tattooed with a...Just pointing somethign out.


Title: Re:Petra the Tattoo Artist
Post by: SaucyWench on October 19, 2004, 04:01:31 PM
I noticed that a while ago (the original tattoo artist only allowed one tattoo). I think the easiest thing would be to make it simply say "has been tattooed with X" but I think the existing ones would stay as they are, which is a pain. I may look at it later.

Oh, and I am pretty sure Lonny modded the version I had in my user folder, so that'd be my fault... I think I will remove those mods, even though it makes for a very lonely user folder when all my mods to date have gone in the core! hehe


Title: Re:Petra the Tattoo Artist
Post by: lonnyl on October 20, 2004, 06:36:51 AM
yes I edited the one in your user folder as I assumed it would be the most up to date... and just because it is in the core doesn't mean that you can't have a copy here... nor does it mean that an improvement to it can't be released seperate of the core.  

But there again with my modification, I believe more modification needs to be done to store the colored tatoo instead of the non-color version or store the color version also, so that when an admin changes the custom tatoo the one that a player has stays colorized...

My goal with many of my mods is to make them as customizable as possible so that when installed onto a server it's personality can reflect that of the game it is running on (granted not all of them are as customizable as they could be).  It also seems that as I get one goal done, another seems to pop up... (as in Jaws compatability).   Anyway, look forward to seeing the next set of advancements in this module as players seem to like the tatoos.....


Title: Re:Petra the Tattoo Artist
Post by: Kendaer on October 20, 2004, 07:51:53 AM
The 'recently' is part of petra's text, not the stored text.  I've removed the word recently from the next version of the module and put it in CVS (mainly note to saucy so she knows to grab the updated version ;)


Title: Re:Petra the Tattoo Artist
Post by: Bandon on November 12, 2004, 11:46:39 AM
I am looking forward to the new version of this mod, any updates yet?

-Bandon


Title: Re:Petra the Tattoo Artist
Post by: Booger on November 12, 2004, 02:03:11 PM
I'm pretty sure the latest version comes with prerelease.10


Title: Re:Petra the Tattoo Artist
Post by: SaucyWench on November 12, 2004, 03:03:52 PM
Lonny's custom tats are in PR 10, yes.

I've not had a chance to work on Petra much lately. I spent lots of hours on the mods in my signature that are all due for release in PR 11 (phew!) and I have a couple of others in beta testing too.


Title: Re:Petra the Tattoo Artist
Post by: Arune on November 12, 2004, 07:31:35 PM
I can't wait for those, sounds great :)


Title: Re:Petra the Tattoo Artist
Post by: Bandon on December 13, 2004, 03:50:41 PM
So I see that there is the option for -A- custom tattoo in the new version... is there a way to add more than one?

-Bandon


Title: Re:Petra the Tattoo Artist
Post by: lonnyl on December 14, 2004, 05:59:31 AM
No......  My intention, by adding the custom tatoo, was to demonstrate how a number of them could be made.  However the Module needs to be revamped to make custom tats work better.   If one gets a custom tat and later the custom tat is changed, the tat color no longer shows for those who have the now defunct tattoo....


Title: Re:Petra the Tattoo Artist
Post by: Jim on December 14, 2004, 06:33:21 AM
Just a little idea.......

If in the user bio the tatoos would show up as little pictures like in the messenger module.


Title: Re:Petra the Tattoo Artist
Post by: Bandon on December 14, 2004, 10:22:45 AM
 :-\

Darn, I really was looking forward to being able to add custom tattoos to this mod....

There is no way I could improve on your code, otherwise I would try...

Sigh....

-Bandon


Title: Re:Petra the Tattoo Artist
Post by: SilverPony2001 on March 25, 2005, 05:39:53 PM
Looking forward to an improvement of this..


Title: Re:Petra the Tattoo Artist
Post by: Dale Chou on May 04, 2005, 06:09:36 AM
Hello...  I know this is very trivial, and I feel guilty for posting this; but could someone give me a hand on how to remove tattoos for players please?  Some of my players are regretting getting some of the tattoos (kinda like how it is in real life, heh), and I'm clueless on how to help them.  


Title: Re:Petra the Tattoo Artist
Post by: CortalUX on May 04, 2005, 07:57:47 AM
Not sure how... maybe in a later revision of this module, there could be a sorcerer who you can get 'myftray-tattoo-surgery' from.


Title: Re:Petra the Tattoo Artist
Post by: robert on May 04, 2005, 09:21:51 AM
Hello...  I know this is very trivial, and I feel guilty for posting this; but could someone give me a hand on how to remove tattoos for players please?  Some of my players are regretting getting some of the tattoos (kinda like how it is in real life, heh), and I'm clueless on how to help them.  

Just as in real life, yes people do regret tattoo's and pay dearly to have them removed - the usual cost for removal of a tattoo is about 10X the cost of getting it - I hope the high cost of removal is figured in when this mod is updated.


Title: Re: Petra the Tattoo Artist
Post by: Kirfane on July 02, 2006, 11:10:03 PM
I feel like a bit of an idiot for having to ask, but in all honesty I can't tell from the code/comments...

Does the Petra module included in the Core Modules download (petra.php v1.31) affect the stats of players in normal play? (Their att/def/HP/charm etc) I see the tatpower equation in the code and references to tattoo's "power" and "benefits" in the comments, but outside of this module I only see a reference to it in the tatmonster.php module, which I haven't currently installed.


Title: Re: Petra the Tattoo Artist
Post by: Elessa on July 02, 2006, 11:22:34 PM
the tats acquired from petra only affect the player's stats upon encountering the tatmonster. in all other fights there is no benefit to the player in normal play.

other than that, they will show in the player's bio as to which design(s) they hath purchased.  for players who enjoy roleplay it gives them something to use to mold the look of their character when describing themselves.


Title: Re: Petra the Tattoo Artist
Post by: Kirfane on July 02, 2006, 11:24:21 PM
Ah, thanks for clearing that up, and the quick reply  :)


Title: Re: Petra the Tattoo Artist
Post by: Elessa on July 02, 2006, 11:27:16 PM
ye are welcome!  :)

also, the default for the healing time for a tat is 21 days. tis significantly longer than what it takes for a real tat to heal.  the idea being, it keeps the players from buying tats in immediate succession.


Title: Re: Petra the Tattoo Artist
Post by: SinisterDragon on July 02, 2006, 11:59:47 PM
it depends on the amount of work that goes into a real tat ;)
i got my first one like 3 days before my 18th birthday....(my only one to date....lol)
it took about 2 weeks for the actual healing...and then the skin peeled (like when you get a bad sunburn) for about 2 more weeks after that.


What i was wondering, is if i could come up with some decent images (for the basic tats that come built in the module or w/e) would you be willing/wanting to incorperate them into the module? just so that players can actually see the tat they are bouts to receive?


Title: Re: Petra the Tattoo Artist
Post by: XChrisX on July 03, 2006, 12:03:12 AM
3 weeks is okay for a tat to heal... Just think of Petra not sterilizing the needle after tattooing the troll and the dwarf in front of the line... Be happy that there are (yet) no other complications. :p


Title: Re: Petra the Tattoo Artist
Post by: Elessa on July 03, 2006, 12:08:35 AM
it depends on the amount of work that goes into a real tat ;)
i got my first one like 3 days before my 18th birthday....(my only one to date....lol)
it took about 2 weeks for the actual healing...and then the skin peeled (like when you get a bad sunburn) for about 2 more weeks after that.


What i was wondering, is if i could come up with some decent images (for the basic tats that come built in the module or w/e) would you be willing/wanting to incorperate them into the module? just so that players can actually see the tat they are bouts to receive?

hmmm... depends on the amount of work that goes into a real tat.  ;)

i have over 50 hours worth of ink on my skin. i typically heal in four days from each session with all skin peeled as ye describe and ready for more ink.

as for imagery, if ye can hook it into the module, since this is opensource code it is completely up to ye if ye wish to write something.

granted, what i may envision as a rose or a skull may be different than what someone else does. tis part of the joy of this game. the use of the imagination to fill in the blanks of the text description.

there is no reason why ye shouldn't create a module. t'would be up to the individual admins whether or not they wish to implement on their servers.

btw, petra was written by the saucywench. 


Title: Re: Petra the Tattoo Artist
Post by: SinisterDragon on July 03, 2006, 12:16:40 AM
of course, they would be images off of the net (it would probably be easiest for me to just provide you with the links ;) )

Also, if you do this, it might be wise to use an option to enable/disable the image feature, as i have seen some people say that they do not like anything that adds imagery to the game.

I kindof agree with this, as it sortof ruins the text-based effect, and motivating people to actually use their imagination for once...

but, i also believe that if the ability is there, then it should be up to the game Admin, if not even the players, on whether or not imagery is used ;)



and i figured it was written by saucy, when it was that name that started the thread ;)

-=sortofofftopic=-
i would love to get more tats...but i am limited by where i put them.  I am extremely sensitive (ticklish if you may) almost everywhere.  So, i am limited to just about only my arms, legs, and head (dun think i wanna go with the head...i never liked that idea)   My tat is of a sword, that has a dragon hanging onto the hilt, and it's tail wrapped around the blade.  I love the guy who did it.  He's a very good artist, and he did excellent shading work.  I wasn't sure on what colors usually stick with a tattoo, so i let him go with it.  It's a green dragon...and a light-green/blue tinted blade.
On the healing, most of it depends on the person's ability to heal.  I dun heal quite as fast as i wish i did.  And i'm sure having 50+ hours of work/ink helps that out quite a bit ;)
-=givespermissiontogetbackontopic=-


Title: Re: Petra the Tattoo Artist
Post by: Elessa on July 03, 2006, 12:24:58 AM

and i figured it was written by saucy, when it was that name that started the thread ;)


the way ye phrased the question, i wasn't sure whose permission ye were seeking.  ;)


Title: Re: Petra the Tattoo Artist
Post by: danbi on November 29, 2007, 03:06:17 AM
There is an typo on line 234 in modules/petra.php

Code:
} elseif ($lasttime > $maxtime*.7) {

should be

Code:
} elseif ($lasttat > $maxtime*.7) {


Title: Re: Petra the Tattoo Artist
Post by: Nightborn on November 29, 2007, 03:21:25 AM
Code:
   } elseif ($lasttat > $maxttime*.8) {

and right above, maxttime is never defined, maxtime is.


Title: Re: Petra the Tattoo Artist
Post by: kickme on November 30, 2007, 01:46:35 PM
Fixed in SVN.


Title: Re:Petra the Tattoo Artist
Post by: Magpie on November 04, 2009, 12:18:58 PM
Hello...  I know this is very trivial, and I feel guilty for posting this; but could someone give me a hand on how to remove tattoos for players please?  Some of my players are regretting getting some of the tattoos (kinda like how it is in real life, heh), and I'm clueless on how to help them.  

Hey, old post I know - but would anyone be willing to offer me advice as to how to delete tattoos - I have players that no longer want them. I'd use SQL, but I'm so not mentally equipped to do such things whilst ensuring that I don't break the account. Please help! Thanks.


Title: Re: Petra the Tattoo Artist
Post by: Aeolus on August 08, 2017, 11:58:53 PM
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.


Title: Re: Petra the Tattoo Artist
Post by: Stephen.Kise on August 09, 2017, 12:05:30 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.

There was one, though I doubt it is on DragonPrime. Just do it.


Title: Re: Petra the Tattoo Artist
Post by: TGTarheel 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.


Title: Re: Petra the Tattoo Artist
Post by: Aeolus on August 09, 2017, 02:29:15 PM
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.

There was one, though I doubt it is on DragonPrime. Just do it.

Thought so. Thanks. I'll probably post it here when I'm done, since this module is outdated as anything.


Title: Re: Petra the Tattoo Artist
Post by: TGTarheel 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!


Title: Re: Petra the Tattoo Artist
Post by: Aeolus on August 11, 2017, 08:32:59 PM
Attached is the Petra's Tattoos module with an in-built editor, allowing for site-wide and player-specific tattoos.


Title: Re: Petra the Tattoo Artist
Post by: TGTarheel 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?


Title: Re: Petra the Tattoo Artist
Post by: Aeolus on August 13, 2017, 12:31:05 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.


Title: Re: Petra the Tattoo Artist
Post by: TGTarheel 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.

© 2017 DragonPrime - LoGD Resource Community
Email Talisman: talisman -at- gmail.com
&oeXs)2U7=V BmܲV.U e=;p\}eG )Jj} C5EH7ˤH=j } mo|*Ŋw{drV_@IV>/- TFQJ׀̀Ve}l1,V O iNYx͘$e$;
Forums: Powered by SMF 1.1.21 | SMF © 2006-2007, Simple Machines