Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Execute Lua Online

`local maxcount = 1`

`if string.find(chess,'11') ~= nil and (string.find(chess,'tp') ~= nil or string.find(chess,'eh') ~= nil) then`

	`chess = string.sub(chess,1,-2)`

	`maxcount = 4`

`end`

`if string.find(chess,'1') ~= nil and (string.find(chess,'tp') ~= nil or string.find(chess,'eh') ~= nil) then`

	`chess = string.sub(chess,1,-2)`

	`maxcount = 2`

`end`

`if string.find(chess,'11') ~= nil then`

	`chess = string.sub(chess,1,-2)`

	`maxcount = 9`

`end`

`if string.find(chess,'1') ~= nil then`

	`chess = string.sub(chess,1,-2)`

	`maxcount = 3`

`end`

`for count = 1,maxcount do`

	`if GameRules:GetGameModeEntity().chess_2_mana[chess] ~= nil then`

		`local cost = GameRules:GetGameModeEntity().chess_2_mana[chess]`

		`table.insert(GameRules:GetGameModeEntity().chess_pool[cost],chess)`

	`end`

`end`

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.