• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Kasyno pod 0.3.5

Jest dzwignia
kladzie sie obok np 5 cc i jak sie wygra ma sie 10 cc jak sie przegra traci sie to 5 cc
widzialem skrypt na tnet ale jest pod 8.1
chojrak nie dam ci rep bo mi narazie nie pomogles :D

@down
Nom oni śmierdza ale pomóżcie
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local pienionc = getTileItemById(2160, {x = , y = , z = })
	if (pienionc.uid) then
		if (pienionc.type ~= 5) then
			return true
		end

		if (math.random(1, 2) == 1) then
			doPlayerAddItem(cid, 2160, 10)
		end
		doRemoveItem(pienionc.uid, 5)
	end

	if (item.itemid == 1945) then
		doTransformItem(item.uid, item.itemid + 1)
	elseif (item.itemid == 1946) then
		doTransformItem(item.uid, item.itemid - 1)
	end

	return true
end
 
Napisalem przed chwila, kladziesz na x,y,z 5cc i masz 50% szansy, ze da Ci 10cc
 
no, ok lookne czy dziala i dam repa jak dziala
@edit
jednak nie dziala
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local pienionc = getTileItemById(2160, {x = , y = , z = })
	if (pienionc.uid) then
		if (pienionc.type ~= 5) then
			return true
		end

		if (math.random(1, 2) == 1) then
			doPlayerAddItem(cid, 2160, 10)
		end
		doRemoveItem(pienionc.uid, 5)
	end

	if (item.itemid == 1945) then
		doTransformItem(item.uid, item.itemid + 1)
	elseif (item.itemid == 1946) then
		doTransformItem(item.uid, item.itemid - 1)
	end

	return true
end

statckpos brak czyli pozycji na stosie :)
 
do getTileItemById? :peace:

ups wpadłem :)
Trochę inaczej bym to zrobił xD ale już wpadłem :)

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local pienionc = getThingFromPos({x = 100, y = 100, z = 7, stackpos=1})
	if (pienionc.uid and pienionc.itemid == 2160) then
		if (pienionc.type ~= 5) then
			return true
		end

		if (math.random(1, 2) == 1) then
			doPlayerAddItem(cid, 2160, 10)
		end
		doRemoveItem(pienionc.uid, 5)
	end

	if (item.itemid == 1945) then
		doTransformItem(item.uid, item.itemid + 1)
	elseif (item.itemid == 1946) then
		doTransformItem(item.uid, item.itemid - 1)
	end

	return true
end
 
#Averateg
A chcesz moim wxTrackerem przez łeb?

#Topic
Proszem.

LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if(item.itemid == 1946) then
		doTransformItem(item.uid, 1945)
		return true
	end
	
	if(item.itemid ~= 1945) then
		return true
	end
	
	local pieniondz = getTileItemById({x = xxxx, y = yyyy, z = zzzz}, 2160).uid
	if(not pieniondz) then
		return true
	end
	
	if(pieniondz.type ~= 5) then
		return true
	end

	if(math.random(1, 2) == 1) then
		doPlayerAddItem(cid, 2160, 10)
	else
		doRemoveItem(pieniondz, 5)
	end

	doTransformItem(item.uid, 1946)
	return true
end
 
#Averateg
A chcesz moim wxTrackerem przez łeb?

#Topic
Proszem.

LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if(item.itemid == 1946) then
		doTransformItem(item.uid, 1945)
		return true
	end
	
	if(item.itemid ~= 1945) then
		return true
	end
	
	local pieniondz = getTileItemById({x = xxxx, y = yyyy, z = zzzz}, 2160).uid
	if(not pieniondz) then
		return true
	end
	
	if(pieniondz.type ~= 5) then
		return true
	end

	if(math.random(1, 2) == 1) then
		doPlayerAddItem(cid, 2160, 10)
	else
		doRemoveItem(pieniondz, 5)
	end

	doTransformItem(item.uid, 1946)
	return true
end

Za co ? :)
 
Wiem właśnie, też to wykrzyczałem jak przeczytałem mojego posta!! :******

Ale uwaga uwaga
LUA:
local losowanko_w_dupanko = math.random(1, 2) == 1 and doPlayerAddItem(cid, 2160, 10) or doRemoveItem(pieniondz, 5)
 
Back
Top