• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Help] Forgotte Server Banker

Status
Not open for further replies.

Mokerhamer

Retired Global Mod
Senator
Joined
Aug 6, 2007
Messages
1,767
Reaction score
35
[Help] TFS Banker Transfer (Need to fix before release of banker!)

I got olmoost my npc working all things work expect for
Transfer money can anyone help me?

Bug Shown:
-None


What's wrong with it then:
If i'm done i'm going to make some minor fixes and released it only on this forum

Bugged Lines:
Code:
elseif getCreatureName(cid}[COLOR="Magenta"]<---- How do i get the name the player said he wants to transfers to?[/COLOR]
and isNumber(getCount(msg)) and talk_state == 4 then
talk_state = 0

if doTransferBankMoney(cid, toplayer, count) then
setPlayerStorageValue(cid,300, oldcount-count)
set[COLOR="magenta"]to[/COLOR]PlayerStorageValue(cid,300, oldcount+count)

I dont think "settoPlayerStorageValue" is going to work since it dosen't exist what can i use instead?

Transfer Part:
Code:
   ------------------------Begin!--transfer--Crap----
            elseif msgcontains(msg, 'transfer') then
			if getPlayerPremiumDays(cid) > 0 then
			selfSay('If you want to transver sai this,   Name   Amount')
					talk_state = 4
			else
				selfSay(bank_need_premium)
				talk_state = 0
			end
---transver--Confurm--Yes
elseif getCreatureName(cid) and isNumber(getCount(msg)) and talk_state == 4 then
talk_state = 0
if doTransferBankMoney(cid, toplayer, count) then
setPlayerStorageValue(cid,300, oldcount-count)
settoPlayerStorageValue(cid,300, oldcount+count)
selfSay('Transver success')
else
selfSay(no_money)
end
------------------------End!--transfer--Crap----
 
Last edited:
The transfer part to offline player is only possible using ways I recommend you to NOT use, if you're hosting in Windows at the moment.

What i wanted to do is you are only able to transfer if a player is online.. and the next bug is with withdraw you are able to withdraw more then u have .. need to find out how to fix it..
P.s i dident use DepositId But Deposit 300..
 
Last edited:
I got olmoost my npc working all things work expect for
Transfer money can anyone help me (You can only transfer if the other players is online)?

Bug Shown:
-None


What's wrong with it then:
If i'm done i'm going to make some minor fixes and released it only on this forum

Bugged Lines:
Code:
elseif getCreatureName(cid}[COLOR="Magenta"]<---- How do i get the name the player said he wants to transfers to?[/COLOR]
and isNumber(getCount(msg)) and talk_state == 4 then
talk_state = 0

if doTransferBankMoney(cid, toplayer, count) then
setPlayerStorageValue(cid,300, oldcount-count)
set[COLOR="magenta"]to[/COLOR]PlayerStorageValue(cid,300, oldcount+count)

I dont think "settoPlayerStorageValue" is going to work since it dosen't exist what can i use instead?

Transfer Part:
Code:
   ------------------------Begin!--transfer--Crap----
            elseif msgcontains(msg, 'transfer') then
			if getPlayerPremiumDays(cid) > 0 then
			selfSay('If you want to transver sai this,   Name   Amount')
					talk_state = 4
			else
				selfSay(bank_need_premium)
				talk_state = 0
			end
---transver--Confurm--Yes
elseif getCreatureName(cid) and isNumber(getCount(msg)) and talk_state == 4 then
talk_state = 0
if doTransferBankMoney(cid, toplayer, count) then
setPlayerStorageValue(cid,300, oldcount-count)
settoPlayerStorageValue(cid,300, oldcount+count)
selfSay('Transver success')
else
selfSay(no_money)
end
------------------------End!--transfer--Crap----
 
Status
Not open for further replies.
Back
Top