- 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:
I dont think "settoPlayerStorageValue" is going to work since it dosen't exist what can i use instead?
Transfer Part:
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: