Skip to content

Commit

Permalink
Fix clone cash bug
Browse files Browse the repository at this point in the history
Use Bank NPCs that does not allow to transfer money to 'sample' characters, if you want to give money to new characters.
  • Loading branch information
gesior committed May 1, 2016
1 parent 7c4b429 commit 3c4c6fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/accountmanagement.php
Expand Up @@ -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
Expand Down Expand Up @@ -829,4 +830,4 @@ function NameStateChanged()
}
}
}
}
}

0 comments on commit 3c4c6fe

Please sign in to comment.