• 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!

Anti-Clone items via Creaturescript

Mooosie

- Lua Scripter -
Joined
Aug 2, 2008
Messages
702
Reaction score
27
Location
Sweden
I have tried to do a anti cloner via creaturescript but I have failed too much.
I have tried Darkhaos anti-dupe system, but i just lose mysql connection.

I have done a global variable in /libs and its containing all donation items, as:
Lua:
blocked_donation_items = {2160, 2173}
and so on.
That i want is:
The blocked items can you buy from the homepage shop and they will get the "description" attribute.
I want a creaturescript that is "function onThink" and looks if the donation items have the attribute "description" else just delete it and send a text message "You have tried to clone an item."...

Thanks in advance.
 
bro u need make this!
if player open any container items = Saveplayer
if is onstep depot = saveplayer outstep = saveplayer
 
Narko, can you show me where i can edit it? and i think it will be a little bit laggy if someone spams and opens bags.

@Topic:
I got this so far, and it gives me errors:
Lua:
function onThink(cid, interval)
local donation_items = {2160, 2173}
	local d = getItemAttribute(blocked_items, "description")
		for _, donation_items in ipairs (blocked_items) do
			if d then
				if getPlayerItemCount(cid, blocked_items) >= 1 then
					doPlayerRemoveItem(cid, blocked_items, 1000)
				end
			end
		break
		end
	return true
end
 
Actions.xml
Code:
	<action itemid="2589-2596;1987-2004;5949-5950;3939-3940;5926-5927;7342;7343;2330;2331;2365;9774;9775" event="script" value="saved.lua"/>

saved.lua
Code:
function onUse(cid)
	doPlayerSave(cid)
end

Try!
 
Back
Top