From 3c4c6fe5d6052d6dbf40781e7b685f15249826d3 Mon Sep 17 00:00:00 2001 From: Jerzy Skalski Date: Sun, 1 May 2016 17:43:19 +0200 Subject: [PATCH] Fix clone cash bug Use Bank NPCs that does not allow to transfer money to 'sample' characters, if you want to give money to new characters. --- pages/accountmanagement.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/accountmanagement.php b/pages/accountmanagement.php index d408635..8cbb6a0 100644 --- a/pages/accountmanagement.php +++ b/pages/accountmanagement.php @@ -764,6 +764,7 @@ function NameStateChanged() $char_to_copy->setPosX(0); $char_to_copy->setPosY(0); $char_to_copy->setPosZ(0); + $char_to_copy->setBalance(0); $char_to_copy->setCreateIP(Visitor::getIP()); $char_to_copy->setCreateDate(time()); $char_to_copy->setSave(); // make character saveable @@ -829,4 +830,4 @@ function NameStateChanged() } } } -} \ No newline at end of file +}