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

Winning Lottery Ticket Script

Rexanilator

New Member
Joined
Oct 3, 2009
Messages
297
Reaction score
2
Does anybody happen to have the script for this I need it for my addon guys. Thanks Rep+++ to person who helps me!
 
ORIGINAL TOPIC:
http://otland.net/f81/action-moveevent-talkaction-scripts-public-61240/

I found this script here on otland, edit it as you want

LUA:
<action itemid="5957" event="script" value="other/lotto.lua"/>


action/scripts/lotto.lua
LUA:
function onUse(cid, item, frompos, item2, topos)
	rand = math.random(1,11)

if item.itemid == 5957 then
	if rand == 7 then
		doPlayerSendTextMessage(cid,25,"WINNER, Congratulations you draw a winner lottery ticket!")
		doSendMagicEffect(frompos, 12) 
		doTransformItem(item.uid,item.itemid+1)
	else
		doPlayerSendTextMessage(cid,25,"Try again later, you draw blank.")
		doSendMagicEffect(frompos, 12)
		doTransformItem(item.uid,item.itemid-1)
	end 
	
    return
    end
end
 
Back
Top