mirror of
				https://github.com/ErikasKontenis/SabrehavenServer.git
				synced 2025-10-31 03:56:22 +01:00 
			
		
		
		
	remove training statues
This commit is contained in:
		| @@ -7,24 +7,24 @@ local statues = { | ||||
| } | ||||
|  | ||||
| function onUse(player, item, fromPosition, target, toPosition, isHotkey) | ||||
| 	local skill = statues[item:getActionId()] | ||||
| 	if not player:isPremium() then | ||||
| 		player:sendCancelMessage(RETURNVALUE_YOUNEEDPREMIUMACCOUNT) | ||||
| 		return true | ||||
| 	end | ||||
| 	-- local skill = statues[item:getActionId()] | ||||
| 	-- if not player:isPremium() then | ||||
| 		-- player:sendCancelMessage(RETURNVALUE_YOUNEEDPREMIUMACCOUNT) | ||||
| 		-- return true | ||||
| 	-- end | ||||
|  | ||||
| 	if player:isPzLocked() then | ||||
| 		return false | ||||
| 	end | ||||
| 	-- if player:isPzLocked() then | ||||
| 		-- return false | ||||
| 	-- end | ||||
| 	 | ||||
| 	local entreePrice = 1000 | ||||
| 	if player:getBankBalance() < entreePrice then | ||||
| 		player:sendCancelMessage("You do not have 1000 gold coins in your bank account balance to participate in offline training.") | ||||
| 		return true | ||||
| 	end | ||||
| 	-- local entreePrice = 1000 | ||||
| 	-- if player:getBankBalance() < entreePrice then | ||||
| 		-- player:sendCancelMessage("You do not have 1000 gold coins in your bank account balance to participate in offline training.") | ||||
| 		-- return true | ||||
| 	-- end | ||||
| 	 | ||||
| 	player:setOfflineTrainingSkill(skill) | ||||
| 	player:setBankBalance(player:getBankBalance() - entreePrice) | ||||
| 	player:remove() | ||||
| 	-- player:setOfflineTrainingSkill(skill) | ||||
| 	-- player:setBankBalance(player:getBankBalance() - entreePrice) | ||||
| 	-- player:remove() | ||||
| 	return true | ||||
| end | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 ErikasKontenis
					ErikasKontenis