lotto npc

Mu online season 21 - grand opening

wanabee

Golden Oldie
Golden Oldie
Jul 10, 2004
723
4
155
newbury
im asuming you are using 2.3 files? if so check the npc in bw you will find a loto npc just edit that and you have a script of your own.
 
Upvote 0

azzi

Golden Oldie
Golden Oldie
Aug 16, 2005
1,662
19
175
[@main]
#SAY
Hey There <$USERNAME> - You want to do the lottery? You Do?\
Great. It Costs Lottery Ticket A go and you can win from a bene..\
To A MirSword!! So, you still wanna' do it <$USERNAME> ?...\
<Yes I DO!!/@lotteryyes> <No Thanks - I'm poor!/@exit>

[@lotteryyes]
#SAY
Click Yes To Play The Lottery. Its Lottery Ticket To Enter..\
<Yes/@lotteryyes1>

[@lotteryyes1]
#IF
CHECK LotteryTicket 1
RANDOM 3500
#ACT
SENDMSG 6 "Congrats <$USERNAME>, you won a ClearRing from Lottery!"
goto @main
#ELSEACT
goto @lotteryno

[@lotteryno]
#ACT
ADDNAMELIST LotteryNo.txt
LINEMSG 6 "You do not have A Lottery Ticket! <$USERNAME>! I'm no fool!"


Enjoy =] .............
 
Upvote 0

azzi

Golden Oldie
Golden Oldie
Aug 16, 2005
1,662
19
175
Will it change each time u use it, i.e clearring, to a bene, to a mirsword etc ? or will i need to add to that script

you'd have to add more, i just gave that as a basic idea. Wanted whoever to put a little effort in :D


Nah i havent made my own server yet. K_Jonzy
 
Upvote 0

TheBoss

Golden Oldie
Golden Oldie
Sep 6, 2004
1,810
6
175
Middlesbrough
you'd have to add more, i just gave that as a basic idea. Wanted whoever to put a little effort in :D

Ok mate , im no good with npcs thats why i asked lol.

so baicly i an just copy and paste this

[@lotteryyes1]
#IF
CHECK LotteryTicket 1
RANDOM 3500
#ACT
SENDMSG 6 "Congrats <$USERNAME>, you won a ClearRing from Lottery!"
goto @main
#ELSEACT
goto @lotteryno


But obvi changin "ClearRing" to other things ?

Ta
 
Upvote 0

azzi

Golden Oldie
Golden Oldie
Aug 16, 2005
1,662
19
175
Yeah basically. But change the Random count. More Random = rarer, Id put the Clearring as about 15000 really tho.

Btw id change the Price of Lottery tickets in the Std_items. So they aint 500 gold from the NPC :P
 
Upvote 0

TheBoss

Golden Oldie
Golden Oldie
Sep 6, 2004
1,810
6
175
Middlesbrough
Yeah basically. But change the Random count. More Random = rarer, Id put the Clearring as about 15000 really tho.

Btw id change the Price of Lottery tickets in the Std_items. So they aint 500 gold from the NPC :P

Higher the number the rarer it is , and i was gunna make them drop off mobs lol but ill change the price also .!
 
Upvote 0

K_Jonzy

Golden Oldie
Golden Oldie
Oct 8, 2008
590
15
105
My House
ooooooo do i have to put like

[lottery1]
ect
ect
ect

[lottery2]
ect
ect
ect

with 1 item per [lottery(number)]????
 
Last edited:
Upvote 0

azzi

Golden Oldie
Golden Oldie
Aug 16, 2005
1,662
19
175
Hmm you sure? So ure Clicking npc with "LotteryTicket" in your bag yes?
 
Upvote 0

K_Jonzy

Golden Oldie
Golden Oldie
Oct 8, 2008
590
15
105
My House
this ma lotto npc so far
[@main]
#SAY
Hey There <$USERNAME> - You want to do the lottery? You Do?\
Great. It Costs Lottery Ticket A go and you can win from a bene..\
To A MirSword!! So, you still wanna' do it <$USERNAME> ?...\
<Yes I DO!!/@lotteryyes> <No Thanks - I'm poor!/@exit>
[@lotteryyes]
#SAY
Click Yes To Play The Lottery. Its Lottery Ticket To Enter..\
<Yes/@lotteryyes1>
[@lotteryyes1]
#say
kk press IM DEFFO to continue\
<IM DEFFO/@deffo>
[@deffo]
#IF
CHECKGOLD > 10000000
#ACT
RANDOM 100000
GIVE clearring
SENDMSG 6 "Congrats <$USERNAME>, you won a ClearRing from Lottery!"
goto @main
#IF
CHECKGOLD > 10000000
#ACT
GIVE goldbar
RANDOM 99000
SENDMSG 6 "Congrats <$USERNAME>, you won a goldbar from Lottery!"
goto @main
#IF
CHECKGOLD > 10000000
#ACT
GIVE goldbarbundle
RANDOM 98000
SENDMSG 6 "Congrats <$USERNAME>, you won a goldbarbundle from Lottery!"
goto @main
#IF
CHECKGOLD > 10000000
#ACT
GIVE goldchest
RANDOM 97000
SENDMSG 6 "Congrats <$USERNAME>, you won a goldchest from Lottery!"
goto @main
#IF
CHECKGOLD > 10000000
#ACT
GIVE protectionring
RANDOM 96000
SENDMSG 6 "Congrats <$USERNAME>, you won a proring from Lottery!"
goto @main

and it gives u all of the items if u win

how do i set it to win 1 item at random??
 
Upvote 0

TravisW

LOMCN Veteran
Veteran
Sep 4, 2007
737
17
105
[@main]
Hey There <$USERNAME> - You want to do the lottery? You Do?\
Great. It Costs Lottery Ticket A go and you can win from a bene..\
To A MirSword!! So, you still wanna' do it <$USERNAME> ?...\
<Yes I DO!!/@lotteryyes> <No Thanks - I'm poor!/@exit>
[@lotteryyes]
Click Yes To Play The Lottery. Its Lottery Ticket To Enter..\
<Yes/@lotteryyes1>
[@lotteryyes1]
kk press IM DEFFO to continue\
<IM DEFFO/@deffo>
[@deffo]
#IF
CHECKGOLD > 10000000
RANDOM 100000
#ACT
TAKE GOLD 10000000
GIVE clearring 1
SENDMSG 6 "Congrats <$USERNAME>, you won a ClearRing from Lottery!"
goto @main
#ELSEACT
goto @lcheck1
[@lcheck1]
#IF
CHECKGOLD > 10000000
RANDOM 99000
#ACT
TAKE GOLD 10000000
GIVE goldbar 1
SENDMSG 6 "Congrats <$USERNAME>, you won a goldbar from Lottery!"
goto @main
#ELSEACT
goto @lcheck2
[@lcheck2]
#IF
CHECKGOLD > 10000000
RANDOM 98000
#ACT
TAKE GOLD 10000000
GIVE goldbarbundle 1
SENDMSG 6 "Congrats <$USERNAME>, you won a goldbarbundle from Lottery!"
goto @main
#ELSEACT
goto @lcheck3
[@lcheck3]
#IF
CHECKGOLD > 10000000
RANDOM 97000
#ACT
TAKE GOLD 10000000
GIVE goldchest 1
SENDMSG 6 "Congrats <$USERNAME>, you won a goldchest from Lottery!"
goto @main
#ELSEACT
goto @lcheck4
[@lcheck4]
#IF
CHECKGOLD > 10000000
RANDOM 96000
#ACT
TAKE GOLD 10000000
GIVE protectionring 1
SENDMSG 6 "Congrats <$USERNAME>, you won a proring from Lottery!"
goto @main
#ELSEACT
goto @nowin
[@nowin]
#ACT
TAKE GOLD 10000000
#SAY
Sorry <$USERNAME>, you've won nothing this time.\
<Close/@exit>
 
Last edited:
Upvote 0

azzi

Golden Oldie
Golden Oldie
Aug 16, 2005
1,662
19
175
#IF
CHECKGOLD > 10000000
#ACT
RANDOM 100000
GIVE clearring
SENDMSG 6 "Congrats <$USERNAME>, you won a ClearRing from Lottery!"
goto @main
#IF
CHECKGOLD > 10000000
#ACT
GIVE goldbar
RANDOM 99000
SENDMSG 6 "Congrats <$USERNAME>, you won a goldbar from Lottery!"
goto @main


i kinda find this funny as you put ClearRing only a tiny bit more than a gold bar :O Id have goldbar ect on 3000
 
Upvote 0

TheBoss

Golden Oldie
Golden Oldie
Sep 6, 2004
1,810
6
175
Middlesbrough
ive added it in game, when i click plat lotto , it says i dont have a ticket lol :-S .. but it lets me double click the lotto ticket and says i won 5th prize or i didnt win, just wondering if this is right ?
 
Upvote 0

K_Jonzy

Golden Oldie
Golden Oldie
Oct 8, 2008
590
15
105
My House
change the part of the script to

instead of

#ACT
TAKE LOTTERYTICKET or whatever

to
#ACT
TAKEGOLD 1000000

if that is correct
 
Upvote 0

K_Jonzy

Golden Oldie
Golden Oldie
Oct 8, 2008
590
15
105
My House
if u urgently need the lotto ticket lol

then make it so u double click it and it takes u into the room
were u cant recall
and u can only use the lotto once evry hour lol
 
Upvote 0

azzi

Golden Oldie
Golden Oldie
Aug 16, 2005
1,662
19
175
if you dont want that do checkgold => 10000000
then takegold 10000000
 
Upvote 0