View Single Post
Old 02-11-2005, 04:28 PM   #2 (permalink)
Erica
Forum Expert
 
Erica's Avatar
 
Join Date: Jan 2005
Location: Laramie Wyoming
Age: 43
Posts: 1,280
Send a message via ICQ to Erica Send a message via AIM to Erica Send a message via MSN to Erica Send a message via Yahoo to Erica Send a message via Skype™ to Erica
Unhappy

Quote:
Originally Posted by daat99
Changelog:
11/02/2005 v0.1 post #1
11/02/2005: after close to 22 hours of scripting finished daat99's Token System
10/02/2005: got permission from Viago to start working on token system after seeing his post.

Credits to daat99's Token System v0.1 Runuo 1.0.0:
Took the "invisible tokens" idea from Viago's token system (ThanX a lot for your permission Viago )
Took the Ultimate Prize Stone and modded it to accept daat99tokens as default (from the token ledger) also fixed a few things.
Thanx to Murzin for all the english help


Description:
A token system with much less lag then you used to

The tokens are stored as a variable in a "token ledger" which make it without the endless lag of countless of tokens around the world.

Tokens are given based on a complex formula that takes into acount most of the factors that make monsters strong and harder to kill rather then the simple fame == reward and those kinds.

Each token ledger can store up to 2,147,483,647 token (yes over 2 billion, just think about the lag they'll do without it MUAHAHAHA).

The Token Ledger values can be modified by admins ONLY, if a gm want to give someone tokens he'll have to give him a token check.

Each token ledger is protected with the serial number of the character himself so other players can't steal the tokens (they can steal the token ledger, they just can't use the tokens in it).

If for any reason you want to give an existing token ledger to another player then the admin can dclick the ledger and select the new owner for it.

Token ledgers are spawned as "An Empty Token Ledger", that means they don't have owner.

Once a player double click on an empty token ledger the name will be changed to "<player name>'s Token Ledger" and from then on he'll be the only 1 who can use it (it'll reset the tokens on it too, just in case).

Also in the pack a Token Stone (which is basically the Ultimate Prize Stone by Raelis) When you [add tokenstone in game the currency is auto set to the currency the tokens uses (daat99tokens), you can change the currency to whatever you want, ThanX Raelis for great script

Players can make Token Checks when using the token ledger gump (gm's can make them with [add tokencheck #amount#).

The token checks can be used only when they're inside the backpack of the user and they'll only add their value to the token ledger in his pack and if he owns it.

Pakcage include 3 files:
daat99;s Token System.cs This file holds everything you need to have tokens.
daat99's Token System.txt this readme file
Token Stone.cs This file will add vendor stone that use this system tokens (daat99tokens) as default currency (currency can be changed to anything you want). <== This is based on the Ultimate Prize Stone script by Raelis, all credits goes for him

Installation:
1. Place all the files anywhere in **\runuo\scripts\custom\**
2. In BaseCreature.cs look for those 2 lines:
Code:
		Titles.AwardFame( ds.m_Mobile, totalFame, true );
		Titles.AwardKarma( ds.m_Mobile, totalKarma, true );
Add just after them this line:
Code:
		GiveTokens.GiveTokensAct(ds.m_Mobile, this); // daat99 token system 1/1
3. Restart the server and let your players have fun

P.S.
You will have to give your players the "Token Ledger" and they'll need to dclick it before they can get tokens.
I suggest adding it in charactercreation.cs


P.S.S
The original Ultimate Prize Stone by Raelis can be found here:
Ore Propeties and Weapon AosAttributes

Please give him credits for it, I just modded it to fit the token system.
very nice good for new shard tho no one really is going to delete there old tokens if they do delete old ones thats going to get plaqyers pisted cause what tokens they got already and also thats lots of work to get rid of the other tokens
Erica is offline