467 lines
33 KiB
Plaintext
467 lines
33 KiB
Plaintext
version=2
|
|
:if:<register.registered(dailyrewardcount)>=false
|
|
@register.register(dailyrewardcount,int,1)
|
|
@register.register(rewardcycles,int,0)
|
|
@register.register(dailyrewardlong,str,)
|
|
:endif
|
|
@register.change(dailyrewardlong,)
|
|
@storage.clear
|
|
@storage.set(string,shortreward,)
|
|
@storage.set(string,longreward,)
|
|
@storage.set(string,override2,xxx)
|
|
@storage.set(integer,itemid,0)
|
|
@storage.set(integer,count,0)
|
|
@storage.set(boolean,dolongscript,true)
|
|
@storage.set(integer,weekcycle,<math.ceiling(<register.value(dailyrewardcount)>/7)>)
|
|
:select:<register.value(dailyrewardcount)>
|
|
:when:1;8;15;22
|
|
@storage.set(boolean,dolongscript,false)
|
|
:select:<system.random(0,2)>
|
|
:when:0;1;2;3;4;5;6;7
|
|
@player.money(10000*<storage.get(integer,weekcycle)>)
|
|
@storage.set(string,override,<math.int(10000*<storage.get(integer,weekcycle)>)>$.)
|
|
:when:8;9;10;11;12;13
|
|
@player.bp(10*<storage.get(integer,weekcycle)>)
|
|
@storage.set(string,override,<math.int(10*<storage.get(integer,weekcycle)>)> BP.)
|
|
:when:14;15
|
|
@storage.set(integer,itemid,36)
|
|
@storage.set(integer,count,3+<storage.get(integer,weekcycle)>)
|
|
:when:16
|
|
@storage.set(integer,itemid,189)
|
|
@storage.set(integer,count,<storage.get(integer,weekcycle)>)
|
|
:when:17;18;19;20;21;22
|
|
@storage.set(integer,itemid,110)
|
|
@storage.set(integer,count,10*(<storage.get(integer,weekcycle)>+1))
|
|
:when:23;24
|
|
@storage.set(integer,itemid,111)
|
|
@storage.set(integer,count,2*(<storage.get(integer,weekcycle)>+1))
|
|
:when:25
|
|
@storage.set(integer,itemid,173)
|
|
@storage.set(integer,count,1)
|
|
:when:26;27
|
|
@storage.set(integer,itemid,131)
|
|
@storage.set(integer,count,10*<storage.get(integer,weekcycle)>)
|
|
:when:28;29
|
|
@storage.set(integer,itemid,132)
|
|
@storage.set(integer,count,2*<storage.get(integer,weekcycle)>)
|
|
:when:30
|
|
@storage.set(integer,itemid,149)
|
|
@storage.set(integer,count,1)
|
|
:when:31;32;33;34;35;36
|
|
@storage.set(integer,itemid,86)
|
|
@storage.set(integer,count,20*<storage.get(integer,weekcycle)>)
|
|
:when:37;38
|
|
@storage.set(integer,itemid,87)
|
|
@storage.set(integer,count,4*<storage.get(integer,weekcycle)>)
|
|
:when:39
|
|
@storage.set(integer,itemid,153)
|
|
@storage.set(integer,count,1)
|
|
:endwhen
|
|
:when:2;9;16;23
|
|
@storage.set(integer,count,5*<storage.get(integer,weekcycle)>)
|
|
:select:<system.random(0,35)>
|
|
:when:0
|
|
:if:<system.random(0,<storage.get(integer,weekcycle)>)>=0
|
|
@storage.set(integer,itemid,2)
|
|
:else
|
|
@storage.set(integer,itemid,1)
|
|
@storage.set(integer,count,1)
|
|
:endif
|
|
:when:1;2
|
|
@storage.set(integer,itemid,2)
|
|
:when:3;4;5;6;7
|
|
@storage.set(integer,itemid,4)
|
|
@storage.set(integer,count,10*<storage.get(integer,weekcycle)>)
|
|
:when:8;9;10;11;12;13;14;15;16;17
|
|
@storage.set(integer,itemid,5)
|
|
@storage.set(integer,count,20*<storage.get(integer,weekcycle)>)
|
|
:when:18;19
|
|
@storage.set(integer,itemid,129)
|
|
:when:20;21
|
|
@storage.set(integer,itemid,158)
|
|
:when:22
|
|
@storage.set(integer,itemid,79)
|
|
:when:23
|
|
@storage.set(integer,itemid,150)
|
|
:when:24
|
|
@storage.set(integer,itemid,157)
|
|
:when:25
|
|
@storage.set(integer,itemid,80)
|
|
:when:26
|
|
@storage.set(integer,itemid,159)
|
|
:when:27
|
|
@storage.set(integer,itemid,160)
|
|
:when:28
|
|
@storage.set(integer,itemid,161)
|
|
:when:29
|
|
@storage.set(integer,itemid,164)
|
|
:when:30
|
|
@storage.set(integer,itemid,165)
|
|
:when:31
|
|
@storage.set(integer,itemid,166)
|
|
:when:32
|
|
@storage.set(integer,itemid,168)
|
|
:when:33
|
|
@storage.set(integer,itemid,174)
|
|
:when:34
|
|
@storage.set(integer,itemid,186)
|
|
:when:35
|
|
@storage.set(integer,itemid,188)
|
|
:endwhen
|
|
@item.give(3,<math.floor(<storage.get(integer,count)>/10)>)
|
|
:if:<math.floor(<storage.get(integer,count)>/10)>>0
|
|
:if:<math.floor(<storage.get(integer,count)>/10)>>1
|
|
@storage.set(string,override2,<storage.get(integer,count)> <inventory.name(<storage.get(integer,itemid)>,p)>~and <math.floor(<storage.get(integer,count)>/10)> <inventory.name(3,p)>.)
|
|
:else
|
|
@storage.set(string,override2,<storage.get(integer,count)> <inventory.name(<storage.get(integer,itemid)>,p)>~and a <inventory.name(3,s)>.)
|
|
:endif
|
|
:endif
|
|
:when:3;10;17;24
|
|
@storage.set(boolean,dolongscript,false)
|
|
:select:<system.random(0,9)>
|
|
:when:0
|
|
@storage.set(integer,itemid,40)
|
|
@storage.set(integer,count,<storage.get(integer,weekcycle)>)
|
|
:when:1
|
|
@storage.set(integer,itemid,14)
|
|
@storage.set(integer,count,<storage.get(integer,weekcycle)>)
|
|
:when:2
|
|
@storage.set(integer,itemid,15)
|
|
@storage.set(integer,count,<storage.get(integer,weekcycle)>)
|
|
:when:3
|
|
@storage.set(integer,itemid,21)
|
|
@storage.set(integer,count,<storage.get(integer,weekcycle)>)
|
|
:when:4
|
|
@storage.set(integer,itemid,62)
|
|
@storage.set(integer,count,<storage.get(integer,weekcycle)>)
|
|
:when:5
|
|
@storage.set(integer,itemid,38)
|
|
@storage.set(integer,count,2*<storage.get(integer,weekcycle)>)
|
|
:when:6
|
|
@storage.set(integer,itemid,502)
|
|
@storage.set(integer,count,2)
|
|
:when:7
|
|
@storage.set(integer,itemid,72)
|
|
@storage.set(integer,count,10*<storage.get(integer,weekcycle)>)
|
|
:when:8
|
|
@storage.set(integer,itemid,64)
|
|
@storage.set(integer,count,<storage.get(integer,weekcycle)>)
|
|
:when:9
|
|
:select:<system.random(0,3)>
|
|
:when:0
|
|
@storage.set(integer,itemid,156)
|
|
@storage.set(integer,count,1)
|
|
@item.give(156,5)
|
|
:when:1;2;3
|
|
@storage.set(integer,itemid,266)
|
|
@storage.set(integer,count,5*<storage.get(integer,weekcycle)>)
|
|
:endwhen
|
|
:endwhen
|
|
:when:4;11;18;25
|
|
@storage.set(integer,whilecount,0)
|
|
:while:<storage.get(integer,weekcycle)>><storage.get(integer,whilecount)>
|
|
@storage.set(integer,whilecount,<storage.get(integer,whilecount)>+1)
|
|
:select:<system.random(0,44)>
|
|
:when:0
|
|
@storage.set(integer,itemid,287)
|
|
:when:1
|
|
@storage.set(integer,itemid,288)
|
|
:when:2
|
|
@storage.set(integer,itemid,289)
|
|
:when:3
|
|
@storage.set(integer,itemid,290)
|
|
:when:4
|
|
@storage.set(integer,itemid,299)
|
|
:when:5
|
|
@storage.set(integer,itemid,145)
|
|
:when:6
|
|
@storage.set(integer,itemid,263)
|
|
:when:7
|
|
@storage.set(integer,itemid,264)
|
|
:when:8
|
|
@storage.set(integer,itemid,291)
|
|
:when:9
|
|
@storage.set(integer,itemid,298)
|
|
:when:10
|
|
@storage.set(integer,itemid,105)
|
|
:when:11
|
|
@storage.set(integer,itemid,163)
|
|
:when:12
|
|
@storage.set(integer,itemid,30)
|
|
:when:13
|
|
@storage.set(integer,itemid,35)
|
|
:when:14
|
|
@storage.set(integer,itemid,155)
|
|
:when:15
|
|
@storage.set(integer,itemid,118)
|
|
:when:16
|
|
@storage.set(integer,itemid,98)
|
|
:when:17
|
|
@storage.set(integer,itemid,102)
|
|
:when:18
|
|
@storage.set(integer,itemid,138)
|
|
:when:19
|
|
@storage.set(integer,itemid,144)
|
|
:when:20
|
|
@storage.set(integer,itemid,125)
|
|
:when:21
|
|
@storage.set(integer,itemid,108)
|
|
:when:22
|
|
@storage.set(integer,itemid,117)
|
|
:when:23
|
|
@storage.set(integer,itemid,95)
|
|
:when:24
|
|
@storage.set(integer,itemid,107)
|
|
:when:25
|
|
@storage.set(integer,itemid,104)
|
|
:when:26
|
|
@storage.set(integer,itemid,81)
|
|
:when:27
|
|
@storage.set(integer,itemid,77)
|
|
:when:28
|
|
@storage.set(integer,itemid,90)
|
|
:when:29
|
|
@storage.set(integer,itemid,88)
|
|
:when:30
|
|
@storage.set(integer,itemid,76)
|
|
:when:31
|
|
@storage.set(integer,itemid,113)
|
|
:when:32
|
|
@storage.set(integer,itemid,96)
|
|
:when:33
|
|
@storage.set(integer,itemid,94)
|
|
:when:34
|
|
@storage.set(integer,itemid,176)
|
|
:when:35
|
|
@storage.set(integer,itemid,146)
|
|
:when:36
|
|
@storage.set(integer,itemid,91)
|
|
:when:37
|
|
@storage.set(integer,itemid,591)
|
|
:when:38
|
|
@storage.set(integer,itemid,73)
|
|
:when:39
|
|
@storage.set(integer,itemid,154)
|
|
:when:40
|
|
@storage.set(integer,itemid,106)
|
|
:when:41
|
|
@storage.set(integer,itemid,142)
|
|
:when:42
|
|
@storage.set(integer,itemid,119)
|
|
:when:43
|
|
@storage.set(integer,itemid,170)
|
|
:when:44
|
|
@storage.set(integer,itemid,105)
|
|
:endwhen
|
|
@item.give(<storage.get(integer,itemid)>,1)
|
|
:if:<storage.get(integer,whilecount)>=1
|
|
@storage.set(string,override2,<inventory.name(<storage.get(integer,itemid)>)>)
|
|
|
|
:else
|
|
:if:<storage.get(integer,weekcycle)>=<storage.get(integer,whilecount)>
|
|
@storage.set(string,override2,<storage.get(string,override2)>~and <inventory.name(<storage.get(integer,itemid)>)>.)
|
|
:else
|
|
@storage.set(string,override2,<storage.get(string,override2)>~<inventory.name(<storage.get(integer,itemid)>)>.)
|
|
:endif
|
|
:endif
|
|
:endwhile
|
|
:if:<storage.get(integer,weekcycle)>=1
|
|
@storage.set(string,override,an item.)
|
|
:else
|
|
@storage.set(string,override,<storage.get(integer,weekcycle)> items.)
|
|
:endif
|
|
:when:5;12;19;26
|
|
@storage.set(integer,whilecount,0)
|
|
:while:<math.ceiling(<storage.get(integer,weekcycle)>/2)>><storage.get(integer,whilecount)>
|
|
@storage.set(integer,whilecount,<storage.get(integer,whilecount)>+1)
|
|
:select:<system.random(0,18)>
|
|
:when:0;1
|
|
@storage.set(integer,itemid,82)
|
|
:when:2
|
|
@storage.set(integer,itemid,83)
|
|
:when:3
|
|
@storage.set(integer,itemid,84)
|
|
:when:4
|
|
@storage.set(integer,itemid,100)
|
|
:when:5
|
|
@storage.set(integer,itemid,120)
|
|
:when:6
|
|
@storage.set(integer,itemid,141)
|
|
:when:7;8
|
|
@storage.set(integer,itemid,143)
|
|
:when:9
|
|
@storage.set(integer,itemid,151)
|
|
:when:10
|
|
@storage.set(integer,itemid,162)
|
|
:when:11
|
|
@storage.set(integer,itemid,167)
|
|
:when:12
|
|
@storage.set(integer,itemid,172)
|
|
:when:13
|
|
@storage.set(integer,itemid,185)
|
|
:when:14
|
|
@storage.set(integer,itemid,179)
|
|
:when:15
|
|
@storage.set(integer,itemid,184)
|
|
:when:16
|
|
@storage.set(integer,itemid,183)
|
|
:when:17
|
|
@storage.set(integer,itemid,503)
|
|
:when:18
|
|
@storage.set(integer,itemid,504)
|
|
:endwhen
|
|
@item.give(<storage.get(integer,itemid)>,1)
|
|
:if:<storage.get(integer,whilecount)>=1
|
|
@storage.set(string,override2,<inventory.name(<storage.get(integer,itemid)>)>.)
|
|
:else
|
|
@storage.set(string,override2,<storage.get(string,override2)>~and <inventory.name(<storage.get(integer,itemid)>)>.)
|
|
:endif
|
|
:endwhile
|
|
:if:<math.ceiling(<storage.get(integer,weekcycle)>/2)>=1
|
|
@storage.set(string,override,an item.)
|
|
:else
|
|
@storage.set(string,override,<math.ceiling(<storage.get(integer,weekcycle)>/2)> items.)
|
|
:endif
|
|
:when:6;13;20;27
|
|
@storage.set(integer,count,<storage.get(integer,weekcycle)>)
|
|
:select:<system.random(0,9)>
|
|
:when:0
|
|
@storage.set(integer,itemid,22)
|
|
:when:1
|
|
@storage.set(integer,itemid,34)
|
|
:when:2
|
|
@storage.set(integer,itemid,23)
|
|
:when:3
|
|
@storage.set(integer,itemid,24)
|
|
:when:4
|
|
@storage.set(integer,itemid,8)
|
|
:when:5
|
|
@storage.set(integer,itemid,169)
|
|
:when:6
|
|
@storage.set(integer,itemid,135)
|
|
:when:7
|
|
@storage.set(integer,itemid,136)
|
|
:when:8
|
|
@storage.set(integer,itemid,137)
|
|
:when:9
|
|
@storage.set(integer,itemid,593)
|
|
:endwhen
|
|
:when:7;14;21;28
|
|
@storage.set(boolean,dolongscript,false)
|
|
@storage.set(integer,count,1)
|
|
:select:<system.random(0,10)>
|
|
:when:0;1;2;3
|
|
@storage.set(integer,itemid,32)
|
|
@storage.set(integer,count,2+<storage.get(integer,weekcycle)>)
|
|
:when:4;5;6
|
|
@storage.set(integer,itemid,187)
|
|
@storage.set(integer,count,<storage.get(integer,weekcycle)>)
|
|
:when:7
|
|
@storage.set(integer,itemid,57)
|
|
:when:8
|
|
@storage.set(integer,itemid,126)
|
|
:when:9
|
|
@storage.set(integer,itemid,112)
|
|
:when:10
|
|
@storage.set(integer,itemid,148)
|
|
:endwhen
|
|
:when:29
|
|
:if:<system.random(0,<math.floor(<pokemon.mastershinyrate>/2)>)>=0
|
|
@storage.set(int,pokeshin,1)
|
|
:else
|
|
@storage.set(int,pokeshin,0)
|
|
:endif
|
|
:select:<system.random(0,31)>
|
|
:when:0
|
|
@storage.set(int,pokenum,1)
|
|
:when:1
|
|
@storage.set(int,pokenum,4)
|
|
:when:2
|
|
@storage.set(int,pokenum,7)
|
|
:when:3
|
|
@storage.set(int,pokenum,25)
|
|
:when:4
|
|
@storage.set(int,pokenum,133)
|
|
:when:5
|
|
@storage.set(int,pokenum,152)
|
|
:when:6
|
|
@storage.set(int,pokenum,155)
|
|
:when:7
|
|
@storage.set(int,pokenum,158)
|
|
:when:8;9
|
|
@storage.set(int,pokenum,252)
|
|
:when:10;11
|
|
@storage.set(int,pokenum,255)
|
|
:when:12;13
|
|
@storage.set(int,pokenum,258)
|
|
:when:14;15
|
|
@storage.set(int,pokenum,387)
|
|
:when:16;17
|
|
@storage.set(int,pokenum,390)
|
|
:when:18;19
|
|
@storage.set(int,pokenum,393)
|
|
:when:20;21
|
|
@storage.set(int,pokenum,495)
|
|
:when:22;23
|
|
@storage.set(int,pokenum,498)
|
|
:when:24;25
|
|
@storage.set(int,pokenum,501)
|
|
:when:26;27
|
|
@storage.set(int,pokenum,650)
|
|
:when:28;29
|
|
@storage.set(int,pokenum,653)
|
|
:when:30;31
|
|
@storage.set(int,pokenum,656)
|
|
:endwhen
|
|
:if:<storage.get(int,pokeshin)>=1
|
|
@storage.set(string,override,a shiny <pokedex.getname(<storage.get(int,pokenum)>)>.)
|
|
:else
|
|
@storage.set(string,override,a <pokedex.getname(<storage.get(int,pokenum)>)>.)
|
|
:endif
|
|
:if:<pokemon.count>>5 <or> <register.registered(cantaddtoparty)>=true
|
|
@pokemon.addtostorage({"Pokemon"[<storage.get(int,pokenum)>]}{"Level"[5]}{"Ability"[<pokedex.getability(<storage.get(int,pokenum)>,3)>]}{"CatchLocation"[logging in]}{"CatchBall"[45]}{"CatchMethod"[A gift for]}{"isShiny"[<storage.get(int,pokeshin)>]}{"IVs"[<system.random(20,31)>,<system.random(20,31)>,<system.random(20,31)>,<system.random(20,31)>,<system.random(20,31)>,<system.random(20,31)>]})
|
|
:if:<storage.get(int,pokeshin)>=1
|
|
@storage.set(string,override2,a level 5 shiny <pokedex.getname(<storage.get(int,pokenum)>)>~with its hidden ability.~It was sent to Bill's PC.)
|
|
:else
|
|
@storage.set(string,override2,a level 5 <pokedex.getname(<storage.get(int,pokenum)>)>~with its hidden ability.~It was sent to Bill's PC.)
|
|
:endif
|
|
:else
|
|
@pokemon.add({"Pokemon"[<storage.get(int,pokenum)>]}{"Level"[5]}{"Ability"[<pokedex.getability(<storage.get(int,pokenum)>,3)>]}{"CatchLocation"[logging in]}{"CatchBall"[45]}{"CatchMethod"[A gift for]}{"isShiny"[<storage.get(int,pokeshin)>]}{"IVs"[<system.random(20,31)>,<system.random(20,31)>,<system.random(20,31)>,<system.random(20,31)>,<system.random(20,31)>,<system.random(20,31)>]})
|
|
:if:<storage.get(int,pokeshin)>=1
|
|
@storage.set(string,override2,a level 5 shiny <pokedex.getname(<storage.get(int,pokenum)>)>~with its hidden ability.)
|
|
:else
|
|
@storage.set(string,override2,a level 5 <pokedex.getname(<storage.get(int,pokenum)>)>~with its hidden ability.)
|
|
:endif
|
|
:endif
|
|
:when:30
|
|
@storage.set(integer,count,1)
|
|
@storage.set(integer,itemid,501)
|
|
@register.change(dailyrewardcount,0)
|
|
@storage.set(string,override2,a Shiny Candy!*This is your 30th daily~login bonus!*Tomorrow we start counting~again from 1.*Make sure you use your~Shiny Candy before the next~time you reach reward 30~as you can only have 1!)
|
|
@register.change(rewardcycles,<register.value(rewardcycles)>+1)
|
|
:endwhen
|
|
:if:<storage.get(integer,count)>>0
|
|
@item.give(<storage.get(integer,itemid)>,<storage.get(integer,count)>)
|
|
:if:<storage.get(integer,count)>>1
|
|
@storage.set(string,shortreward,Daily Bonus!*You received <storage.get(integer,count)> <inventory.name(<storage.get(integer,itemid)>,p)>.)
|
|
@storage.set(string,longreward,Daily Login Reward!~You received <storage.get(integer,count)> <inventory.name(<storage.get(integer,itemid)>,p)>.)
|
|
:else
|
|
@storage.set(string,shortreward,Daily Bonus!*You received <storage.get(integer,count)> <inventory.name(<storage.get(integer,itemid)>,s)>.)
|
|
@storage.set(string,longreward,Daily Login Reward!~You received <storage.get(integer,count)> <inventory.name(<storage.get(integer,itemid)>,s)>.)
|
|
:endif
|
|
:else
|
|
@storage.set(string,shortreward,Daily Bonus!*You received <storage.get(string,override)>)
|
|
@storage.set(string,longreward,Daily Login Reward!~You received <storage.get(string,override)>)
|
|
:endif
|
|
:if:<not><storage.get(string,override2)>=xxx
|
|
@storage.set(string,longreward,Daily Login Reward!~You received <storage.get(string,override2)>)
|
|
:endif
|
|
@register.change(dailyrewardlong,<storage.get(string,longreward)>)
|
|
@register.change(dailyrewardcount,<register.value(dailyrewardcount)>+1)
|
|
@register.registertime(dailyreward,1,day)
|
|
:if:<storage.get(boolean,dolongscript)>=true
|
|
@text.notification(<storage.get(string,shortreward)>,500,1,1,,startscript\rewardsdetailed)
|
|
:else
|
|
@text.notification(<storage.get(string,shortreward)>,500,1,1)
|
|
:endif
|
|
:end |