Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting money in players bank
Author Message
TigerBlitz
Apprentice
*

Posts: 25
Likes Given: 2
Likes Received: 1 in 1 posts
Joined: Aug 2013
Reputation: 0



Post: #1
Information Getting money in players bank
Hi Community

i have another problem. Actualy its not problem but i want to learn its how to ?

Criminal or PK'ing players when enter guards zone, players encounter with guards after guards, send them a small jail.
you can only go out with pay bail in this jail.

Bails are as follows:
option to reduce little bit stat
option to reduce little bit skill
and pay with money

I want to tell here, stat and skill works well.
But about the money, the players when there is no money on them own backpack.

Code:
there is no money in his backpack, > check bank > if his have money in own bank get it. and release him
like that.

Here is the part of gump i want to learn it.
This button only money section

Code:
ON=3
// Bail with Money Button
IF <SRC.restest 5000 i_gold>
    src.consume=i_gold 5000
    SRC.SYSMESSAGE @060 Bail was accepted. Now you are free.
    src.go somewhere in the world
    RETURN 1
ELSE
SRC.SYSMESSAGE @060 You are not have money. Choose another bail
ENDIF

help me plz.

sry for google bad english Smile
(This post was last modified: 09-18-2013 06:56 AM by TigerBlitz.)
09-18-2013 06:00 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 246
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: Getting money in players bank
PHP Code:
ON=3
// Bail with Money Button 
IF <SRC.restest 5000 i_gold>
    
src.consume=i_gold 5000
    SRC
.SYSMESSAGE @060 Bail was acceptedNow you are free.
    
src.go somewhere in the world
    
RETURN 1
ELSEIF <BANKBALANCE> >= 5000   //Bankbalance = money in bank
    
GOLD -= 5000  //Gold = Money in Bank + Money in Backpack
    
SRC.SYSMESSAGE @060 Bail was acceptedNow you are free.
    
src.go somewhere in the world
    
RETURN 1
SRC
.SYSMESSAGE @060 You are not have moneyChoose another bail
ENDIF 
(This post was last modified: 09-18-2013 06:07 AM by darksun84.)
09-18-2013 06:06 AM
Find all posts by this user Like Post Quote this message in a reply
TigerBlitz
Apprentice
*

Posts: 25
Likes Given: 2
Likes Received: 1 in 1 posts
Joined: Aug 2013
Reputation: 0



Post: #3
RE: Getting money in players bank
darksun

update script but i see this error in console.

Code:
23:14:ERROR:(bailsystem.scp,84)Can't resolve <BANKBALANCE>
23:14:ERROR:(bailsystem.scp,84)Undefined symbol ''
09-18-2013 06:16 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 246
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #4
RE: Getting money in players bank
Ahh sorry i forgot the src in bankbalance and gold
PHP Code:
ON=3
// Bail with Money Button 
IF <SRC.restest 5000 i_gold>
    
src.consume=i_gold 5000
    SRC
.SYSMESSAGE @060 Bail was acceptedNow you are free.
    
src.go somewhere in the world
    
RETURN 1
ELSEIF <SRC.BANKBALANCE> >= 5000   //Bankbalance = money in bank
    
SRC.GOLD -= 5000  //Gold = Money in Bank + Money in Backpack
    
SRC.SYSMESSAGE @060 Bail was acceptedNow you are free.
    
src.go somewhere in the world
    
RETURN 1
SRC
.SYSMESSAGE @060 You are not have moneyChoose another bail
ENDIF 
(This post was last modified: 09-18-2013 06:34 AM by darksun84.)
09-18-2013 06:34 AM
Find all posts by this user Like Post Quote this message in a reply
TigerBlitz
Apprentice
*

Posts: 25
Likes Given: 2
Likes Received: 1 in 1 posts
Joined: Aug 2013
Reputation: 0



Post: #5
RE: Getting money in players bank
thx for helping darksun pls stay always HELP FLAG Wink
09-18-2013 06:55 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #6
RE: Getting money in players bank
PHP Code:
ON=3
// Bail with Money Button 
IF <SRC.GOLD> >= 5000
 SRC
.GOLD -= 5000
 SRC
.SYSMESSAGE @060 Bail was acceptedNow you are free.
 
src.go somewhere in the world
 
RETURN 1
ELSE
 
SRC.SYSMESSAGE @060 You are not have moneyChoose another bail
 
RETURN 1
ENDIF 

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
09-18-2013 07:26 AM
Find all posts by this user Like Post Quote this message in a reply
TigerBlitz
Apprentice
*

Posts: 25
Likes Given: 2
Likes Received: 1 in 1 posts
Joined: Aug 2013
Reputation: 0



Post: #7
RE: Getting money in players bank
Good Extreme you choose easy way
thx to you rep in case Wink
09-18-2013 07:30 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)