----- local collect_rod = 0 rod_name = {} rod_type = {} rod_success_rate = {} rod_collected = {} max_rod_types = 4 function rod_init_name(e,name) state[e] = "wait" rod_name[e] = tonumber(name) --to adjust the rod names rod_type[1] = "Basic" rod_type[2] = "Normal" rod_type[3] = "Advanced" rod_type[4] = "Expert" --to adjust the rod reel speeds etc --this can make the fish reel extremely fast, probably better to only adjust this if you have to) rod_success_rate[1] = 15 rod_success_rate[2] = 20 rod_success_rate[3] = 25 rod_success_rate[4] = 30 for a = 1,max_rod_types do rod_collected[a] = 0 end end function rod_main(e) if state[e] == "wait" then if PlayerLooking(e,130,10) == 1 then if rod_collected[rod_name[e]] == 1 then Prompt("You already have a "..rod_type[rod_name[e]].." fishing rod.") else Prompt("Collect "..rod_type[rod_name[e]].." fishing rod?") if GetScancode() == 18 and pressed == 0 then pressed = 1 PromptDuration("Collected "..rod_type[rod_name[e]].." fishing rod.",2500) rods_collected = rods_collected + 1 rod_collected[rod_name[e]] = 1 current_rod = rod_name[e] rod[rod_name[e]] = rod_type[rod_name[e]] state[e] = "" Destroy(e) end end end end if GetScancode() == 0 then pressed = 0 end end