Help with prize machine

garro

New member
Messages
23
Points
0
Github
sran
Hello download this npc and I liked it a lot, but I would like to change two things, that instead of giving hats of 100 cash example, and that to deliver the 100 cash is quite difficult that 100% is 5% to give cash

Hello download this npc and I liked it a lot, but I would like to change two things, that instead of giving hats of 100 cash example, and that to deliver the 100 cash is quite difficult that 100% is 5% to give cash

Maquina de Premios.txt

 

Attachments

// 1 / 20 chance => 5%

if (rand(20) == 0) {

getitem(...); // give the item

}

else {

// do something else

}

 
Back
Top