DragonPrime - LoGD Resource Community

Modules, Themes and other customizations for your game => Completed Modules for version 1.x.x => Topic started by: Eth on February 09, 2005, 08:40:06 PM



Title: Throw Stuff at People in the Stocks
Post by: Eth on February 09, 2005, 08:40:06 PM
Took a small break from my petshop mod to hack this together. It let's you fling rotten vegetables at people stuck in the stocks, in exchange for a gem or two. Price is admin definable.

- Works only if the Stocks module is installed and active.
- Works only if someone is in the stocks and if you aren't that someone.
- Players can only throw stuff once per day.
- Display on news page for who got hit with what by who
- Unlucky sap hit by rotten food loses some charm

Once installed, it can be found under Village Modules. Enjoy!

http://dragonprime.net/users/Eth/throwstuff.zip (http://dragonprime.net/users/Eth/throwstuff.zip)


Title: Re:Throw Stuff at People in the Stocks
Post by: Dannic on February 09, 2005, 08:47:12 PM
how about an addnews() so everyone knows who threw what.


Title: Re:Throw Stuff at People in the Stocks
Post by: Eth on February 09, 2005, 08:57:41 PM
Good idea. Done and done. Also fixed a wee bug that wasn't showing the victim's name. Whoops. :o

Link in first post leads to updated version.  


Title: Re:Throw Stuff at People in the Stocks
Post by: Sichae on February 09, 2005, 09:03:33 PM
/me wanders through

Hmm, if I got pelted with rotten/good produce, I do believe something might just go down... perhaps my charm... that could be done a number of ways...

Such as:
Code:
case "newday":
if (get_module_pref("gotthrownat") == 1){
output("`nWashing off the smell of the rotten produce, you feel less attractive.`n");
$session['user']['charm']--;
set_module_pref("gotthrownat",0);
}
set_module_pref("thrownyet",0);
break;
During the throwing part:
Code:
set_module_pref("gotthrownat",1,"throwstuff",$stocks);
Then, you are all good to go.

I was going to type out a full SQL call, but I didn't feel like it... too lazy and relaxed.


Title: Re:Throw Stuff at People in the Stocks
Post by: Eth on February 09, 2005, 09:22:58 PM
Eh, why not. Updates and uploads.  *points up*


Title: Re:Throw Stuff at People in the Stocks
Post by: Eth on February 10, 2005, 12:03:41 AM
Added a few extra things.

Two more rotten vegetables to choose from, and an option to pay extra and dump a whole bucket of rotten food on that person's head.

Enjoy!


Title: Re:Throw Stuff at People in the Stocks
Post by: Eth on February 13, 2005, 01:39:21 AM
Small update, just a few grammar fixes and reworded a few things. Link in first post leads to updated version.


Title: Re:Throw Stuff at People in the Stocks
Post by: Eth on February 27, 2005, 09:23:40 PM
Take a wild guess....

Yup:

Updated to work with Lonny's module updater thingamabob. No version change.


Title: Re:Throw Stuff at People in the Stocks
Post by: lonnyl on February 28, 2005, 05:31:33 AM
Your version.txt is reporting this module as ver 1.1 and your download is ver 1.0.... so it's reporting that there is an update even after downloading and installing the update.


Title: Re:Throw Stuff at People in the Stocks
Post by: Eth on February 28, 2005, 06:33:39 AM
Slight oversight, thanks for catching that Lonny. Fixed. The module should've been showing as v1.1. So, uh, now it is.

Edit: Now it really is correct.
Edit Two: No, seriously.

Note to self: remember which folder your uploading from. Gah.



Title: Re: Throw Stuff at People in the Stocks
Post by: WereMagi on January 20, 2013, 08:46:35 PM
So, quick question. I searched for another module like this and can't find one.

Thing is, Eth, your link isn't working. Unless the module has moved and search results didn't tell me and you forgot to post it here.

Just wondering.


Title: Re: Throw Stuff at People in the Stocks
Post by: Nder' on January 20, 2013, 09:06:02 PM
It's part of core I believe

::EDIT:: Silly me ^.^

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


Title: Re: Throw Stuff at People in the Stocks
Post by: WereMagi on January 20, 2013, 10:03:19 PM
It's part of core I believe

::EDIT:: Silly me ^.^

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

Oh, I'm slowly going over each of those pages, looking at each Module to see if it will suit my game! XD I havent gotten that far in yet.

Thanks!

© 2019 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