local startx = {} local starty = {} local startz = {} local fpsx = 0 local fps = 0 function fish_init_name(e,name) fish_name[e] = name Hide(e) CollisionOff(e) end function fish_main(e) SetAnimationFrames(0,40) if g_Entity[e]['animating'] == 0 then PlayAnimation(e) g_Entity[e]['animating'] = 1 end if GetTimer(e) > 1000 then StartTimer(e) fps = fpsx fpsx = 0 else fpsx = fpsx + 1 end if startx[e] == nil or starty[e] == nil or startz[e] == nil then startx[e] = g_Entity[e]['x'] starty[e] = g_Entity[e]['y'] startz[e] = g_Entity[e]['z'] else if g_Entity[e]['activated'] == 1 then Hide(e) CollisionOff(e) RotateToPlayer(e) SetPosition(e,startx[e],starty[e],startz[e]) elseif g_Entity[e]['activated'] == 2 then Show(e) if GetPlayerDistance(e) > min_fish_distance then MoveForward(e,fps * (rod_success_rate[current_rod]/20)) end end end end