GiftBox

~HeavenSent~

Golden Oldie
Golden Oldie
Nov 9, 2005
2,157
17
180
Chorley
Just a quick one i have the Giftbox working but if i make 10 only 8 or 9 may work i have 11 items in the script so i want it to randomly pick one of the 11 here is my script...


;----------------------
;GIFTBOX
;----------------------

[@StdmodeFunc12]
#ACT
#IF
random 10
#ACT
give HolyTaoStone 1
SENDMSG 5 "<$USERNAME> Has recived a HolyTaoStone from Legend Of mir X!"
break
#IF
random 10
#ACT
give HolyDcStone 1
SENDMSG 5 "<$USERNAME> Has recived a HolyDCStone from Legend Of mir X!"
break
#IF
random 10
#ACT
give HolyMcStone 1
SENDMSG 5 "<$USERNAME> Has recived a HolyMCStone from Legend Of mir X!"
break

I'v changed the random 10 to 1,11 & tryed 2 but can not get it to do it >.<
 

Pete107

🐑[E]dens-[E]lite🐑
Developer
Dec 10, 2003
2,905
395
355
Todmorden, West Yorkshire
Just a quick one i have the Giftbox working but if i make 10 only 8 or 9 may work i have 11 items in the script so i want it to randomly pick one of the 11 here is my script...



I'v changed the random 10 to 1,11 & tryed 2 but can not get it to do it >.<

You need to use #ELSEACT I think

Example part of my Daily Challange script:
[@rdm2]
#IF
RANDOM 1000
CHECKBAGSIZE 1
#ACT
SET [927] 0
SET [920] 0
SET [913] 0
SET [906] 0
give LegendsBracelet 1
Sendmsg 6 "Well done you won a LegendsBracelet!"
close
#ELSEACT
goto @rdm3

[@rdm3]
#IF
RANDOM 1000
CHECKBAGSIZE 1
#ACT
SET [927] 0
SET [920] 0
SET [913] 0
SET [906] 0
give LegendsArmour(M) 1
Sendmsg 6 "Well done you won LegendsArmour(M)!"
close
#ELSEACT
goto @rdm4
 
Upvote 0

Gezza

Golden Oldie
Golden Oldie
Sep 23, 2008
2,202
65
135
uk
yes at end of the script but an elseact

[@StdmodeFunc12]
#IF
random 10
#ACT
give HolyTaoStone 1
SENDMSG 5 "<$USERNAME> Has recived a HolyTaoStone from Legend Of mir X!"
break
#IF
random 10
#ACT
give HolyDcStone 1
SENDMSG 5 "<$USERNAME> Has recived a HolyDCStone from Legend Of mir X!"
break
#IF
random 10
#ACT
give HolyMcStone 1
SENDMSG 5 "<$USERNAME> Has recived a HolyMCStone from Legend Of mir X!"
break

#ESLEACT
GOTO @STDMODEFUNC12
 
Upvote 0