PDA

View Full Version : Cloudy Potion


N0ctrnl
03-26-2016, 11:23 PM
I made an item script for cloudy potions that will drop all forms of invisibility on you so that the potion can cast. Previously it wouldn't allow you to cast the invis spell if you were already invisible. This meant that you had to wait for it to completely drop before recasting, which is no good.

Stick this in a quests/global/items/script_###.pl file and update the item to point to it and should be all good.


sub EVENT_ITEM_CLICK {
$client->BuffFadeByEffect(12);
$client->BuffFadeByEffect(28);
$client->BuffFadeByEffect(29);
}


Just thought I'd share in case anybody else has use for it :)