[DiscordArchive] How is the roll/rand_chance determined? I’m assuming that if you roll a number greater than 70 you g
[DiscordArchive] How is the roll/rand_chance determined? I’m assuming that if you roll a number greater than 70 you g
Archived author: Anchy • Posted: 2023-05-06T10:45:17.248000+00:00
Original source
np
Archived author: Anchy • Posted: 2023-05-06T10:45:50.182000+00:00
Original source
there's a crash in that photo by the way
Archived author: Anchy • Posted: 2023-05-06T10:46:17.945000+00:00
Original source
```cpp
return qr->Fetch()[0].Get<uint32>();
```
Will crash the server if it returns no results IIRC
Archived author: Voidnt • Posted: 2023-05-06T10:47:43.422000+00:00
Original source
Is there a way to get rid of that?
Archived author: Voidnt • Posted: 2023-05-06T10:47:58.229000+00:00
Original source
Or is it suppose to be there?
Archived author: Anchy • Posted: 2023-05-06T10:49:19.932000+00:00
Original source
you would need to fix a few lines
Archived author: Anchy • Posted: 2023-05-06T10:49:43.597000+00:00
Original source
its probably fine honestly, just make sure you have enchants for all tiers
Archived author: Anchy • Posted: 2023-05-06T10:49:46.213000+00:00
Original source
and your table isnt empty
Archived author: Anchy • Posted: 2023-05-06T10:50:19.486000+00:00
Original source
if it finds an enchant for tier 1, 2, 3, 4 or 5 in the DB and it doesnt exist your server will crash so just be mindful of that
Archived author: Voidnt • Posted: 2023-05-06T10:51:33.301000+00:00
Original source
Ok thanks. I’ll take a look. Not to familiar with this coding stuff. I know how to change a few variables but nothing crazy.