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

Russian roulette

gullfisk

- Hoster / Mapper -
Joined
Aug 2, 2008
Messages
64
Reaction score
0
Location
With my mother :D
any know why this doesnt work.. im no
expert nor have any knowledge of lua scripting so if any1
would be so kind and rescript it to work on TFS 0.2
that would be very much appreciated..
PHP:
function onUse(cid, item, frompos, item2, topos)

	if item.type >= 6 then
		doRemoveItem(item.uid, 100)
		return -1
	end

 	n = math.random(1,6)
 	name = getCreatureName(cid)
	rem = getCreatureHealth(cid) + getCreatureMana(cid)
	if n <= item.type then
		doCreatureSay(cid, name..' got OwN3D!', 16)
		doAddCreatureHealth(cid, - rem)
	else
		doCreatureSay(cid, name..' got lucky! ', 16)
	end
	
	doRemoveItem(item.uid, 100)
	
	return 1
end
 
Back
Top