• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

[MOD] CASINO TFS 0.3.6 - Is Work All Version

Status
Not open for further replies.

GM Denniz

Website- Designer- Mapper
Joined
Jan 1, 2012
Messages
62
Reaction score
2
Location
Stockholm
Hope you like this script mod casino, is not my script

reupload from another he name is Collz in otland

PHP:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Casino lever" enabled="yes">
	<action uniqueid="5875" event="script"><![CDATA[
		local pos = {x=1004, y=995, z=6, stackpos = 255}
		local cash = 2160
		local t = {
			[{1, 55}] = 0,
			[{56, 90}] = 2,
			[{91, 100}] = 2
		}
		local a, b = getItemInfo(cash).name, getItemInfo(cash).plural
 
		function onUse(cid, item, fromPosition, itemEx, toPosition)
			local v = getThingfromPos(pos)
			if v.itemid ~= cash then
				return doCreatureSay(cid, 'You can only use ' .. b .. '.', TALKTYPE_ORANGE_1, false, cid)
			end
 
			local r = math.random(100)
			for i, k in pairs(t) do
				if r >= i[1] and r <= i[2] then
					doRemoveItem(v.uid)
					if k < 1 then
						doCreatureSay(cid, 'You lost ' .. v.type .. ' ' .. (v.type == 1 and a or b) .. ' :(', TALKTYPE_ORANGE_1, false, cid)
						doSendMagicEffect(pos, CONST_ME_POFF)
					else
						doCreatureSay(cid, 'You won ' .. v.type * k .. ' ' .. (v.type == 1 and a or b) .. ' :)', TALKTYPE_ORANGE_1, false, cid)
						doCreateItem(cash, v.type * k, pos)
						doSendMagicEffect(pos, CONST_ME_MAGIC_RED)
						doSendMagicEffect(toPosition, CONST_ME_SOUND_YELLOW)
					end
					return TRUE
				end
			end
		end
	]]></action>
</mod>
 
Last edited:
Lurking around the forum, finds an old script and reposts it. That's the way to get reputation from people? :w00t:
 
GM Denniz, make your own script and ask reputation oki :) but you are very fun
 
Status
Not open for further replies.
Back
Top