Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - casual onion

Pages: 1 ... 132 133 [134] 135 136
1996
Ideas / Re: texture ambient sound block
« on: December 21, 2014, 03:10:26 PM »
Hang on a minute...I suggested this a few days ago. As well

Casual likes this idea

1997
Creative Features / Re: Would it be possible to make a loan script
« on: December 17, 2014, 07:35:59 AM »
Any where you see "SetHistory" Change it to just "History"

Ok thanks

1998
Creative Features / Re: Would it be possible to make a loan script
« on: December 16, 2014, 02:21:48 PM »
In short yes, or a least some where close to what you are after.

Script > loan

Inventory [add] [Goldpieces] [10000]
Notify [[gamertag]the clocks ticking] [ local]
Script [ticktoc]

Script > ticktoc

Wait [3600000]
SetHistory [debt] [player]
Script [payment]

Script > payment

If
HasInventory [player] [Goldpieces] [<] [10100]
Then
Script [ticktoc]

Elseif
HasHistory [debt] [player] [=] [1]
HasInventory [player] [Goldpieces] [=>] [10100]
Then
Inventory [player] [take] [Goldpieces] [10100]

Elseif
HasHistory [debt] [player] [=] [2]
HasInventory [player] [Goldpieces] [=>] [10200]
Then
Inventory [player] [take] [Goldpieces] [10200]

The wait of 3600000 is one hour. 
This script will give the player 10k and then add an interest of 100 goldpieces every hour until the player has the correct amount to pay back.
You may have to put a cap on the repayment amount, it really depends on how long you want your script to be.  You just need to repeat this last 5 lines over,  changing the history number to check for and the amount of goldpieces for repayment.

I would personally run it 5 times then ;

Elseif
HasHistory [debt] [player] [=>] [5]
HasInventory [player] [Goldpieces] [=>] [10500]
Then
Inventory [player] [take] [Goldpieces] [10500]

Else
Script [ticktoc]


* note *

I haven't tested this script in game so there may be a few creases to iron out

Hope this is what you are looking for?

Edit: Tbone makes a very good point about the script ending once they leave, although I have never tested to see if histories stay with the player

It says that SetHistory is not recognised

1999
Creative Features / Re: auction script ideas?
« on: December 16, 2014, 07:38:14 AM »
I get it know :) it's basically a script that runs a script thanks a lot Zoidberg

In regards to the increment in bid price, will it basically be if (X) bids 100 gold then the other two can bid 200 gold?

2000
Creative Features / Re: auction script ideas?
« on: December 15, 2014, 05:57:31 PM »
Im a bit confused :!, from what I understand I have a script for each bidder, an winner script and one for each bidding station. Would I need to amend them if a certain person won say bidder 3, I'm guessing that's the history bit.

On a completely unrelated note, how would you do a prison script that teleports a certain player to jail as it currently says Teleport (player) (Co-ordinates of jail) and it sends me to the jail, I want to send a certain player in the session.

I appreciate your help I'm just a bit daunted by scripting and I'm still learning :-)

Thanks


2001
Introductions / Re: Hi, i'm a ghost.
« on: December 15, 2014, 05:48:19 PM »
Hello Ghost

2002
Introductions / Re: Hey guys I'm new
« on: December 15, 2014, 05:47:28 PM »
Why hello there!

2003
Total Miner Discussion / Making a city map...
« on: December 13, 2014, 07:44:18 PM »
Hello, due to my Airedale Town map becoming bugged and me generally not liking my other city I have decided to create a new map. The story goes that I wanted to make a flat area on a grass lands map but when I loaded up a new grasslands map to my amazement a map with an expanse of flat with surrounding hills - perfect for a city. I'm hoping to release it to the community sometime next year based on no delays (apart from my exams) but yeah I'll keep updating with images and videos (sorry filmed in my phone)

Tasks
Build and script jail and police station - in progress
Build spawn - finished
Build roads - finished
Build and script lighting system - finished
Build actual buildings - not started
Job system - not started

Thanks  :D

2004
Creative Features / auction script ideas?
« on: December 13, 2014, 11:14:40 AM »
Hello, I am aware that I have asked this before but it said that it was inactive for over 21 days so I didn't post in it but anyway, I was wondering if anyone had any ideas on an auction script with a 'bid button' and if nobody bided and raised the price in (X) seconds the last bidder bought it and the money was removed from their inventory.

Thanks

2005
Would make them rather hard to find. I'd suggest that when the view sound "area" option is on, they either glow red or blink or something so they could be found more easily.. otherwise it'll be difficult to locate the one brick block in the brick wall that is disguised.
True...

2006
Creative Features / Re: Would it be possible to make a loan script
« on: December 10, 2014, 07:53:08 AM »
Yes, player history is retained even when that player leaves or if the session is ended.

Thanks

2007
Creative Features / Re: Would it be possible to make a loan script
« on: December 10, 2014, 03:35:18 AM »
System history is history assigned to the session, rather than a specific player. It is applied in the same way that player history is, it is just globally accessible rather than player based. Globally accessible, meaning that it can be added by any player via scripts, and it accumulates until it is cleared or the session is ended. (It can also be added manually, through the History Log)

It can be added, checked for, and cleared by the same methods as player history, using the same commands, just omitting the [player] within the commands.

Examples:

History [example]

This would add one count of the History named [example] to the System history.

If
HasHistory [example] [>=] [2]
Then
Notify [Free cake for everyone!] [global]
Else
Notify [We need more history for cake!] [global]


This would check to see if the System history log has 2 or more counts of the History named [example], if it did, then it would notify the session that everyone is receiving free cake, if it didn't then it would notify the session that it needs more history counts for free cake.

So if I gave a player membership history let's say so they can perform certain actions for a reduced charge, would that stay with them when they join back as I'm assuming that's player history, right

You could have a script that let's them take 10k, and gives them 20 debt histories(each one accounts for $500)

For payments, make it take $500 and remove 1 history

Don't forget to add a script that prevents overpaying your debt with a notify that they are paid up.

Thanks this is a really good idea

2008
Creative Features / Re: Would it be possible to make a loan script
« on: December 09, 2014, 08:00:19 PM »

Hisories do stay within players' History log after the session has been ended, but the System history is completely cleared every time the session is ended.

What's the system history?

In short yes, or a least some where close to what you are after.

Script > loan

Inventory [add] [Goldpieces] [10000]
Notify [[gamertag]the clocks ticking] [ local]
Script [ticktoc]

Script > ticktoc

Wait [3600000]
SetHistory [debt] [player]
Script [payment]

Script > payment

If
HasInventory [player] [Goldpieces] [<] [10100]
Then
Script [ticktoc]

Elseif
HasHistory [debt] [player] [=] [1]
HasInventory [player] [Goldpieces] [=>] [10100]
Then
Inventory [player] [take] [Goldpieces] [10100]

Elseif
HasHistory [debt] [player] [=] [2]
HasInventory [player] [Goldpieces] [=>] [10200]
Then
Inventory [player] [take] [Goldpieces] [10200]

The wait of 600000 is one hour. 
This script will give the player 10k and then add an interest of 100 goldpieces every hour until the player has the correct amount to pay back.
You may have to put a cap on the repayment amount, it really depends on how long you want your script to be.  You just need to repeat this last 5 lines over,  changing the history number to check for and the amount of goldpieces for repayment.

I would personally run it 5 times then ;

Elseif
HasHistory [debt] [player] [=>] [5]
HasInventory [player] [Goldpieces] [=>] [10500]
Then
Inventory [player] [take] [Goldpieces] [10500]

Else
Script [ticktoc]


* note *

I haven't tested this script in game so there may be a few creases to iron out

Hope this is what you are looking for?

Edit: Tbone makes a very good point about the script ending once they leave, although I have never tested to see if histories stay with the player

Thanks urlag

2009
Creative Features / Re: Would it be possible to make a loan script
« on: December 09, 2014, 04:45:20 PM »
In a way there is a way to do this... We have done it on our server, but I'm pretty sure once the server closes then the scripts stop running...same goes with when they logout... We had it setup so that they can deposit money towards the loan until it is finally paid off...and then they can resume with another loan...if you want a more detailed script I can show you later?

I suppose that's a better way to do it. I thought that if you left the game then it would continue when you joined back. I'd like to see it if your offering my gamertag is casual onion

Is it a city rpg map by any chance?

2010
Ideas / Textures for ambient sound blocks
« on: December 09, 2014, 01:18:24 PM »
Hello, would it be possible to add a feature to make it available to change textures for the ambient sound blocks. This has probably been suggested but I wanted to have an input! I guess it would be idea for those with doorbells on buildings...I dunno

Thanks

Pages: 1 ... 132 133 [134] 135 136