The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change the settings of the bank
Author Message
gunnar
Apprentice
*

Posts: 4
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Sep 2012
Reputation: 0



Post: #1
Change the settings of the bank
Hello, I'm trying to create a function cghe enable you to open your own bank only in your own city ... for example, one that is only the British can open his bank to British and other cities ..... you can create a similar system? thanks
10-22-2012 08:36 PM
Find all posts by this user Like Post Quote this message in a reply
Shaklaban
Master
**

Posts: 378
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 8

DOT

Post: #2
RE: Change the settings of the bank
just search for bank and bankself keywords in scripts, then you can customize them like:

Code:
[speech jobbanker]
on=bank
src.openbankbox
return 1//block hardcoded behaviour

[function openbankbox]
if <region.tag0.city> = <tag0.city>
    bankself
endif

and you need to replace all bankself functions with openbankbox.
(This post was last modified: 10-22-2012 09:14 PM by Shaklaban.)
10-22-2012 09:14 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
gunnar
Apprentice
*

Posts: 4
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Sep 2012
Reputation: 0



Post: #3
RE: Change the settings of the bank
tnx Smile
10-24-2012 05:33 AM
Find all posts by this user Like Post Quote this message in a reply
victorstelzer
Journeyman
*

Posts: 80
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jun 2012
Reputation: 0



Post: #4
RE: Change the settings of the bank
How has this function, do the only bank to open in the house ??
10-24-2012 07:26 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #5
RE: Change the settings of the bank
speech events for banking only work when close to a banker npc, and in houses if you have added a speech event to the actual house region.

[Image: 2nis46r.jpg]
10-24-2012 08:17 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
gunnar
Apprentice
*

Posts: 4
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Sep 2012
Reputation: 0



Post: #6
RE: Change the settings of the bank
But with this function a citizen of Trinsic can open the bank BRIT interests me that the inhabitant of Trinsic can not open the bank brit and vice versa .. control on race
10-25-2012 01:41 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #7
RE: Change the settings of the bank
However you are defining the player's "home town" you need to add

src.tag0.origin=<src.region.name>

Which will give you the home town name, then....


in jobbanker.scp
Code:
ON=*bank*
    if !(strcmpi(*<src.tag0.origin>*,*<src.region.name>*)
        bankself
    else
        src.sysmessage You may only access your bank in your home town
        return 1
    endif

[Image: 2nis46r.jpg]
10-25-2012 11:01 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
gunnar
Apprentice
*

Posts: 4
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Sep 2012
Reputation: 0



Post: #8
RE: Change the settings of the bank
thank .... for the resurrection of the same thing,
changing the command
(This post was last modified: 10-26-2012 03:33 AM by gunnar.)
10-26-2012 03:29 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)