Question^ PHP: $effect = Effect::getEffect(15); $effect->setDuration(250); $effect->setVisible(true); if (!$pl instanceof Player){ return; } $p->addEffect($effect);
PHP: if(mt_rand(0,6) == 1){$effect = Effect::getEffect(15);$effect->setDuration(250);$effect->setVisible(true);if (!$pl instanceof Player){return;}$p->addEffect($effect);}
@korado531m7 I tried that. mt_rand is not random at all. It goes in sequence :/ mt_rand(1,6) will go like 1, 2, 3, 4, 5, 6 (in a sequence)