Lottery Event Problem

Newbie Spellweaver
Joined
Jan 2, 2013
Messages
52
Reaction score
2
Hello guys,
i got some problem regarding Lottery Event on V2240.

When i put down my lottery event like this( default one) it's work
=====
9918 0
9919 0

[9918]
2001 40 1
[9919]
1911 5 1
=====

once i add new line for new item it's crash
=====
9918 0
9919 0
75000 0


[9918]
2001 40 1
[9919]
1911 5 1
=====

From Log (original)

Translate One


Thank You ^___^
 
Last edited:
Newbie Spellweaver
Joined
Jan 2, 2013
Messages
52
Reaction score
2
Fix it
1.Just make sure your code structure not have any extra space
2. Item ID not in range 70k+
idk about the minimum but 40k still acceptable for lottery event

this is from my experience, not the actual solution but work for me
thank you ^___^
 
Newbie Spellweaver
Joined
Nov 25, 2008
Messages
50
Reaction score
5

All ItemIDs referenced in the script must exist. All ItemIDs in the first section must be of item EVENT_LOTTERY.
Second Sections describes the EVENT_LOTTERY Item and the containing ItemIDs, Amount and Chance of dropping.

The default Syntax for LotteryEvent.txt is the following:
1st section:
<LotteryEventItemID> <ChanceOfSuccess(0-100)>

Example:
9000 90

Explanation:
ItemID 9000 from Itemscript.txt must be a EVENT_LOTTERY ItemType
90 <- % rate of success

2nd section:
[<LotteryEventItemID>]
<ItemID> <Chance> <Amount>

Example:
[9000]
1971 25 1
1972 25 1
1973 25 1
1974 25 1

The ItemID 9000 has the possibility of dropping 1971, 1972, 1973, 1974 each for 25% with the amount of 1.
You can separate each drop with a new line. It will still work.

If you've posted the complete LotteryEvent.txt then you have the following error:
ItemID 75000 is declared as a lotteryevent item but the drops of it (2nd section) are missing.
Add them and start your server again.
 
Initiate Mage
Joined
Sep 3, 2018
Messages
4
Reaction score
0
[QUOTE = akulahstatik; 8952050] Corrigir
1. Apenas certifique-se de que sua estrutura de código não tenha espaço extra
2. O ID do item não está no intervalo 70k +
idk sobre o mínimo, mas 40k ainda aceitável para eventos de loteria,

isso é da minha experiência, não do real solução, mas trabalho para mim
obrigado ^ ___ ^ [/ QUOTE]