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

Action Use Item >>> Lose 1 Lvl >>> Get 100 cc

perfection

FATAL DAMAGE
Joined
Aug 27, 2011
Messages
196
Reaction score
8
Lua:
local lvl = -1

function onUse(cid, item, fromPosition, itemEx, toPosition)
	return doPlayerAddLevel(cid, lvl) and doPlayerAddItem(cid, 2160, 100) and doRemoveItem(cid, item.uid, 1)
end
 
Won't work, it'll set player level to -1.
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	return doPlayerAddLevel(cid, getPlayerLevel(cid) -1) and doPlayerAddItem(cid, 2160, 100) and doRemoveItem(cid, item.uid, 1)
end
 
To be honest, everyone can do such script. You should start creating something bigger than 1 line scripts.
 
Won't work, it'll set player level to -1.
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	return doPlayerAddLevel(cid, getPlayerLevel(cid) -1) and doPlayerAddItem(cid, 2160, 100) and doRemoveItem(cid, item.uid, 1)
end

YOUR code won't work.
Its doPlayerAddLevel not SET level.
 
Won't work, it'll set player level to -1.
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	return doPlayerAddLevel(cid, getPlayerLevel(cid) -1) and doPlayerAddItem(cid, 2160, 100) and doRemoveItem(cid, item.uid, 1)
end

if ur not a gd scripter dont post without testing coz ur script doubles ur lvl lol :S
 
Back
Top