From 41a5bbf03f7fcbf117244e85fcc59b0a97b1f9f5 Mon Sep 17 00:00:00 2001 From: tacef Date: Sat, 10 May 2014 20:11:06 +0200 Subject: [PATCH] Updated Cloning Terminal so fee is level based --- scripts/radial/terminal/cloning_terminal.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/scripts/radial/terminal/cloning_terminal.py b/scripts/radial/terminal/cloning_terminal.py index 1e7260fc..c82b9d6a 100644 --- a/scripts/radial/terminal/cloning_terminal.py +++ b/scripts/radial/terminal/cloning_terminal.py @@ -11,11 +11,18 @@ def handleSelection(core, owner, target, option): if option == 21 and target: # REALLY Dirty hack until this can be resolved SWG way !! - str = "Will you pay the %DI credits to clone yourself here?" + stra = "Will you pay the %DI credits to clone yourself here?" + level = int(owner.getLevel()) + if level <= 10: + cloningFee = 100 + elif level >= 11: + cloningFee = (((owner.getLevel() + 17) * owner.getLevel())/2) + elif level == 90: + cloningFee = 5000 suiSvc = core.suiService - suiWindow = suiSvc.createMessageBox(MessageBoxType.MESSAGE_BOX_OK_CANCEL, '@base_player:clone_confirm_title', str.replace ("%DI" , "5000"), owner, target, 15) + suiWindow = suiSvc.createMessageBox(MessageBoxType.MESSAGE_BOX_OK_CANCEL, '@base_player:clone_confirm_title', stra.replace ("%DI" , str(cloningFee)), owner, target, 15) returnParams = Vector() returnParams.add('btnOk:Text') returnParams.add('btnCancel:Text')