SphereCommunity

Full Version: Change the settings of the bank
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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.
tnx Smile
How has this function, do the only bank to open in the house ??
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.
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
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
thank .... for the resurrection of the same thing,
changing the command
Reference URL's