//frypan to cook fish faster //sold on vendors VERSION=0.55 [itemdef i_frypan_fish] Name=frypan id=2530 weight=6 TYPE=t_script RESOURCES=20 i_log SKILLMAKE=Carpentry 90.0,t_campfire VALUE=7560 ON=@CREATE COLOR=0 ON=@DCLICK uid..bounce IF ( > 98.0 ) IF if !(rand(15) == 1) src.checkcooking SRC.CONSUME=10 i_fish_cut_raw SRC.NEWITEM=i_fish_cut_cooked SRC.NEW.AMOUNT 10 SRC.NEW.BOUNCE else SRC.CONSUME=10 i_fish_cut_raw SRC.SYSMESSAGE You burnt the fish while trying to cook. endif return 1 ELSE src.sysmessage You need at least 10 fish to use this. return 1 ENDIF ELSEIF ( > 79.9 ) IF if !(rand(5) == 1) src.checkcooking SRC.CONSUME=5 i_fish_cut_raw SRC.NEWITEM=i_fish_cut_cooked SRC.NEW.AMOUNT 5 SRC.NEW.BOUNCE else SRC.CONSUME=5 i_fish_cut_raw SRC.SYSMESSAGE You burnt the fish while trying to cook. endif return 1 ELSE src.sysmessage You need at least 5 fish to use this. return 1 ENDIF ELSE src.sysmessage You need at least 80 Cooking skills to use this. ENDIF [function checkcooking] if (( == 0) && ( < 700.0)) if ( < 90.0) if (rand(5) == 1) cooking ( + 1) endif elseif ( < 100.0) if (rand(7) == 1) cooking ( + 1) endif endif endif