DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • May 23, 2019, 01:49:51 PM
Home Forums News Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
Search

Pages: [1]   Go Down
  Print  
Author Topic: Throw Stuff at People in the Stocks  (Read 5934 times)
0 Members and 1 Guest are viewing this topic.
Eth
Member
Codemeister
****
Offline Offline

Posts: 302


Shameless Drunk


View Profile
« 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
« Last Edit: February 09, 2005, 09:50:29 PM by Eth » Logged

Purveyor of fine cloaks, gloves, boots, gerbils, and Siamese cats.
Dannic
Guest
« Reply #1 on: February 09, 2005, 08:47:12 PM »

how about an addnews() so everyone knows who threw what.
Logged
Eth
Member
Codemeister
****
Offline Offline

Posts: 302


Shameless Drunk


View Profile
« Reply #2 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. Shocked

Link in first post leads to updated version.  
Logged

Purveyor of fine cloaks, gloves, boots, gerbils, and Siamese cats.
Sichae
iMod God
SVN Users
Mod God
*
Offline Offline

Posts: 3458


If ya didn't get it by now... you're hopeless...


View Profile WWW
« Reply #3 on: February 09, 2005, 09:03:33 PM »

* Sichae 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.
« Last Edit: February 09, 2005, 09:06:43 PM by Sichae » Logged

If you didn't understand anything in the above post, don't try to attempt anything suggested.

Eth
Member
Codemeister
****
Offline Offline

Posts: 302


Shameless Drunk


View Profile
« Reply #4 on: February 09, 2005, 09:22:58 PM »

Eh, why not. Updates and uploads.  *points up*
Logged

Purveyor of fine cloaks, gloves, boots, gerbils, and Siamese cats.
Eth
Member
Codemeister
****
Offline Offline

Posts: 302


Shameless Drunk


View Profile
« Reply #5 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!
Logged

Purveyor of fine cloaks, gloves, boots, gerbils, and Siamese cats.
Eth
Member
Codemeister
****
Offline Offline

Posts: 302


Shameless Drunk


View Profile
« Reply #6 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.
Logged

Purveyor of fine cloaks, gloves, boots, gerbils, and Siamese cats.
Eth
Member
Codemeister
****
Offline Offline

Posts: 302


Shameless Drunk


View Profile
« Reply #7 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.
Logged

Purveyor of fine cloaks, gloves, boots, gerbils, and Siamese cats.
lonnyl
Guest
« Reply #8 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.
Logged
Eth
Member
Codemeister
****
Offline Offline

Posts: 302


Shameless Drunk


View Profile
« Reply #9 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.

« Last Edit: February 28, 2005, 07:34:43 AM by Eth » Logged

Purveyor of fine cloaks, gloves, boots, gerbils, and Siamese cats.
WereMagi
Militia
**
Offline Offline

Posts: 87


I like trains.


View Profile
« Reply #10 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.
Logged
Nder'
Codemeister
****
Offline Offline

Posts: 256


Google is our savior!


View Profile
« Reply #11 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
Logged

insert sympathy here

Message me!
WereMagi
Militia
**
Offline Offline

Posts: 87


I like trains.


View Profile
« Reply #12 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!
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Version 1.1.2 is the current supported version and is available for download.

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