Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Lottery system

Junior Spellweaver
Joined
Oct 20, 2012
Messages
128
Reaction score
68
i always get 80.000 geons in group (index 1000)
and another group doesnt work, maybe i've made something wrong.. take alook
itemgroup.txt
PHP:
;Lottery System
(group (index 1000) (money (600 80000)))
(group (index 1001) (item (550 9319 5)))
(group (index 1002) (item (500 271)))
(group (index 1003) (item (500 272)))
(group (index 1004) (item (450 2442 50)))
(group (index 1005) (item (400 1118)))
(group (index 1006) (item (350 1119)))
(group (index 1007) (item (300 1120)))
(group (index 1008) (item (250 1121)))
(group (index 1009) (item (200 8005)))
(group (index 1010) (item (180 8007)))
(group (index 1011) (item (160 2365)))
(group (index 1012) (item (140 3056)))
(group (index 1013) (item (120 3057)))
(group (index 1015) (item (100 1497)))
(group (index 1016) (item (100 1498)))
(group (index 1017) (item (20 3360)))
(itemgroup (index 1000) (group (58 1000)(116 1001)(174 1002)(232 1003)(290 1004)(348 1005)(406 1006)(464 1007)(522 1008)(580 1009)(638 1010)(696 1011)(754 1012)(812 1013)(870 1014)(928 1015)(986 1016)(1000 1017)))

e.pk
PHP:
( param send quest 1000 1 )

quest.txt
PHP:
;Lottery system
(quest (index 1000 1)
(case (if (item (31 100000))) (then (itemrand 1000)(item (out 31 100000))))
(case (then (html )))
)

so what's wrong in it?
 
Joined
Oct 10, 2012
Messages
798
Reaction score
292
i suggest you to put ; before the group 1001 and 1004 :)
the right structure is dropchance-itemindex-prefix-amount i quess :?:
anyways make everythink in one group / which is 100% dropchance , and apply items there with the percentage of droprate.
(group (index 20011) (item (4 7026)(7 7022)(10 7021)(12 7020)(14 7023)(15 7024)(16 7025)))-and above
(itemgroup (index 21060) (group (1000 20011)))
like that
 
Last edited:
Upvote 0
Newbie Spellweaver
Joined
Dec 16, 2014
Messages
91
Reaction score
6
i always get 80.000 geons in group (index 1000)
and another group doesnt work, maybe i've made something wrong.. take alook
itemgroup.txt
PHP:
;Lottery System
(group (index 1000) (money (600 80000)))
(group (index 1001) (item (550 9319 5)))
(group (index 1002) (item (500 271)))
(group (index 1003) (item (500 272)))
(group (index 1004) (item (450 2442 50)))
(group (index 1005) (item (400 1118)))
(group (index 1006) (item (350 1119)))
(group (index 1007) (item (300 1120)))
(group (index 1008) (item (250 1121)))
(group (index 1009) (item (200 8005)))
(group (index 1010) (item (180 8007)))
(group (index 1011) (item (160 2365)))
(group (index 1012) (item (140 3056)))
(group (index 1013) (item (120 3057)))
(group (index 1015) (item (100 1497)))
(group (index 1016) (item (100 1498)))
(group (index 1017) (item (20 3360)))
(itemgroup (index 1000) (group (58 1000)(116 1001)(174 1002)(232 1003)(290 1004)(348 1005)(406 1006)(464 1007)(522 1008)(580 1009)(638 1010)(696 1011)(754 1012)(812 1013)(870 1014)(928 1015)(986 1016)(1000 1017)))

e.pk
PHP:
( param send quest 1000 1 )

quest.txt
PHP:
;Lottery system
(quest (index 1000 1)
(case (if (item (31 100000))) (then (itemrand 1000)(item (out 31 100000))))
(case (then (html )))
)

so what's wrong in it?
made my day hhhhhhhhhhhhhh XD

(group (index 1004) (item (450 2442 50))) => for amounts should be like (450 2442 0 50) as chelios said on its structure :D
 
Upvote 0
Experienced Elementalist
Joined
Jul 11, 2015
Messages
201
Reaction score
273
i always get 80.000 geons in group (index 1000)
and another group doesnt work, maybe i've made something wrong.. take alook
itemgroup.txt
PHP:
;Lottery System
(group (index 1000) (money (1000 80000)))
(group (index 1001) (item (1000 9319 0 5)))
(group (index 1002) (item (1000 271 0)))
(group (index 1003) (item (1000 272 0)))
(group (index 1004) (item (1000 2442 0 50)))
(group (index 1005) (item (1000 1118 0)))
(group (index 1006) (item (1000 1119 0)))
(group (index 1007) (item (1000 1120 0)))
(group (index 1008) (item (1000 1121 0)))
(group (index 1009) (item (1000 8005 0)))
(group (index 1010) (item (1000 8007 0)))
(group (index 1011) (item (1000 2365 0)))
(group (index 1012) (item (1000 3056 0)))
(group (index 1013) (item (1000 3057 0)))
(group (index 1015) (item (1000 1497 0)))
(group (index 1016) (item (1000 1498 0)))
(group (index 1017) (item (1000 3360 0)))
(itemgroup (index 1000) (group (58 1000)(116 1001)(174 1002)(232 1003)(290 1004)(348 1005)(406 1006)(464 1007)(522 1008)(580 1009)(638 1010)(696 1011)(754 1012)(812 1013)(870 1014)(928 1015)(986 1016)(1000 1017)))

e.pk
PHP:
( param send quest 1000 1 )

quest.txt
PHP:
;Lottery system
(quest (index 1000 1)
(case (if (item (31 100000))) (then (item (out 31 100000)) (itemrand 1000)))
(case (then (html )))
)

so what's wrong in it?

PHP:
;Lottery System
(group (index 1000) (money (58 80000)) (item (116 9319 0 5) (174 271 0) (232 272 0) (290 2442 0 50) (348 1118 0) (406 1119 0) (464 1120 0) (522 1121 0) (580 8005 0) (638 8007 0) (696 2365 0) (754 3056 0) (812 3057 0) (870 1497 0) (928 1498 0) (1000 3360 0) ))
PHP:
(itemgroup (index 1000) (group (1000 1000)))

e.pk
PHP:
( param send quest 1000 1 )
PHP:
;Lottery system
(quest (index 1000 1)
(case (if (item (31 100000))) (then (item (out 31 100000)) (itemrand 1000)))
(case (then (html )))
)

Code:
(money (percentage amount))
(item (percentage itemindex prefix amount))
(group (percentage groupindex))

Try one of those two.
 
Upvote 0
Back
Top